1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 MSVCR_DLL
 644 LIBCXX
 645 LLVM_LIBS
 646 LLVM_LDFLAGS
 647 LLVM_CFLAGS
 648 LLVM_CONFIG
 649 LIBFFI_LIBS
 650 LIBFFI_CFLAGS
 651 STATIC_CXX_SETTING
 652 LIBDL
 653 LIBM
 654 LIBZIP_CAN_USE_MMAP
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBPNG
 657 PNG_LIBS
 658 PNG_CFLAGS
 659 USE_EXTERNAL_LCMS
 660 LCMS_LIBS
 661 LCMS_CFLAGS
 662 USE_EXTERNAL_LIBGIF
 663 USE_EXTERNAL_LIBJPEG
 664 ALSA_LIBS
 665 ALSA_CFLAGS
 666 FREETYPE_BUNDLE_LIB_PATH
 667 FREETYPE_LIBS
 668 FREETYPE_CFLAGS
 669 CUPS_CFLAGS
 670 X_EXTRA_LIBS
 671 X_LIBS
 672 X_PRE_LIBS
 673 X_CFLAGS
 674 XMKMF
 675 FIXPATH
 676 ZIP_DEBUGINFO_FILES
 677 ENABLE_DEBUG_SYMBOLS
 678 CFLAGS_WARNINGS_ARE_ERRORS
 679 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 680 ZERO_ARCHFLAG
 681 LDFLAGS_CXX_JDK
 682 LDFLAGS_JDKEXE_SUFFIX
 683 LDFLAGS_JDKLIB_SUFFIX
 684 LDFLAGS_JDKEXE
 685 LDFLAGS_JDKLIB
 686 CXXFLAGS_JDKEXE
 687 CXXFLAGS_JDKLIB
 688 CFLAGS_JDKEXE
 689 CFLAGS_JDKLIB
 690 MACOSX_VERSION_MIN
 691 LEGACY_EXTRA_LDFLAGS
 692 LEGACY_EXTRA_CXXFLAGS
 693 LEGACY_EXTRA_CFLAGS
 694 CXX_O_FLAG_NONE
 695 CXX_O_FLAG_DEBUG
 696 CXX_O_FLAG_NORM
 697 CXX_O_FLAG_HI
 698 CXX_O_FLAG_HIGHEST
 699 C_O_FLAG_NONE
 700 C_O_FLAG_DEBUG
 701 C_O_FLAG_NORM
 702 C_O_FLAG_HI
 703 C_O_FLAG_HIGHEST
 704 CXXFLAGS_DEBUG_OPTIONS
 705 CFLAGS_DEBUG_OPTIONS
 706 CXXFLAGS_DEBUG_SYMBOLS
 707 CFLAGS_DEBUG_SYMBOLS
 708 CXX_FLAG_DEPS
 709 C_FLAG_DEPS
 710 SET_SHARED_LIBRARY_MAPFILE
 711 SET_SHARED_LIBRARY_NAME
 712 SET_SHARED_LIBRARY_ORIGIN
 713 SET_EXECUTABLE_ORIGIN
 714 SHARED_LIBRARY_FLAGS
 715 CXX_FLAG_REORDER
 716 C_FLAG_REORDER
 717 SYSROOT_LDFLAGS
 718 SYSROOT_CFLAGS
 719 RC_FLAGS
 720 AR_OUT_OPTION
 721 LD_OUT_OPTION
 722 EXE_OUT_OPTION
 723 CC_OUT_OPTION
 724 POST_MCS_CMD
 725 POST_STRIP_CMD
 726 ARFLAGS
 727 COMPILER_TARGET_BITS_FLAG
 728 JT_HOME
 729 JTREGEXE
 730 USING_BROKEN_SUSE_LD
 731 PACKAGE_PATH
 732 LDEXECXX
 733 LDEXE
 734 USE_CLANG
 735 HOTSPOT_LD
 736 HOTSPOT_CXX
 737 HOTSPOT_RC
 738 HOTSPOT_MT
 739 BUILD_LD
 740 BUILD_CXX
 741 BUILD_CC
 742 ac_ct_OBJDUMP
 743 OBJDUMP
 744 ac_ct_OBJCOPY
 745 OBJCOPY
 746 ac_ct_NM
 747 ac_ct_STRIP
 748 MCS
 749 GNM
 750 NM
 751 STRIP
 752 DUMPBIN
 753 RC
 754 MT
 755 LIPO
 756 ac_ct_OBJC
 757 OBJCFLAGS
 758 OBJC
 759 ac_ct_AR
 760 AR
 761 AS
 762 LDCXX
 763 LD
 764 CXXCPP
 765 CPP
 766 ac_ct_CXX
 767 CXXFLAGS
 768 CXX
 769 ac_ct_PROPER_COMPILER_CXX
 770 PROPER_COMPILER_CXX
 771 TOOLCHAIN_PATH_CXX
 772 POTENTIAL_CXX
 773 OBJEXT
 774 EXEEXT
 775 ac_ct_CC
 776 CPPFLAGS
 777 LDFLAGS
 778 CFLAGS
 779 CC
 780 ac_ct_PROPER_COMPILER_CC
 781 PROPER_COMPILER_CC
 782 TOOLCHAIN_PATH_CC
 783 POTENTIAL_CC
 784 VS_LIB
 785 VS_INCLUDE
 786 VS_PATH
 787 CYGWIN_LINK
 788 EXE_SUFFIX
 789 OBJ_SUFFIX
 790 STATIC_LIBRARY
 791 SHARED_LIBRARY
 792 STATIC_LIBRARY_SUFFIX
 793 SHARED_LIBRARY_SUFFIX
 794 LIBRARY_PREFIX
 795 TOOLCHAIN_TYPE
 796 BUILD_HOTSPOT
 797 HOTSPOT_DIST
 798 BUILD_OUTPUT
 799 OVERRIDE_SRC_ROOT
 800 ADD_SRC_ROOT
 801 JDK_TOPDIR
 802 NASHORN_TOPDIR
 803 HOTSPOT_TOPDIR
 804 JAXWS_TOPDIR
 805 JAXP_TOPDIR
 806 CORBA_TOPDIR
 807 LANGTOOLS_TOPDIR
 808 JAVA_FLAGS_SMALL
 809 JAVA_FLAGS_BIG
 810 JAVA_FLAGS
 811 JAVAC_FLAGS
 812 BOOT_JDK_SOURCETARGET
 813 JARSIGNER
 814 NATIVE2ASCII
 815 JAR
 816 JAVAH
 817 JAVAC
 818 JAVA
 819 BOOT_JDK
 820 BOOT_TOOLSJAR
 821 BOOT_RTJAR
 822 JAVA_CHECK
 823 JAVAC_CHECK
 824 COOKED_BUILD_NUMBER
 825 JDK_VERSION
 826 COPYRIGHT_YEAR
 827 MACOSX_BUNDLE_ID_BASE
 828 MACOSX_BUNDLE_NAME_BASE
 829 COMPANY_NAME
 830 JDK_RC_PLATFORM_NAME
 831 PRODUCT_SUFFIX
 832 PRODUCT_NAME
 833 LAUNCHER_NAME
 834 MILESTONE
 835 JDK_BUILD_NUMBER
 836 JDK_UPDATE_VERSION
 837 JDK_MICRO_VERSION
 838 JDK_MINOR_VERSION
 839 JDK_MAJOR_VERSION
 840 USER_RELEASE_SUFFIX
 841 COMPRESS_JARS
 842 RMICONNECTOR_IIOP
 843 UNLIMITED_CRYPTO
 844 CACERTS_FILE
 845 TEST_IN_BUILD
 846 BUILD_HEADLESS
 847 SUPPORT_HEADFUL
 848 SUPPORT_HEADLESS
 849 BDEPS_FTP
 850 BDEPS_UNZIP
 851 OS_VERSION_MICRO
 852 OS_VERSION_MINOR
 853 OS_VERSION_MAJOR
 854 PKG_CONFIG
 855 CODESIGN
 856 XATTR
 857 DSYMUTIL
 858 IS_GNU_TIME
 859 TIME
 860 STAT
 861 HG
 862 READELF
 863 OTOOL
 864 LDD
 865 ZIP
 866 UNZIP
 867 FIND_DELETE
 868 MAKE
 869 CHECK_TOOLSDIR_MAKE
 870 CHECK_TOOLSDIR_GMAKE
 871 CHECK_MAKE
 872 CHECK_GMAKE
 873 PKGHANDLER
 874 OUTPUT_ROOT
 875 CONF_NAME
 876 SPEC
 877 SDKROOT
 878 XCODEBUILD
 879 BUILD_VARIANT_RELEASE
 880 DEBUG_CLASSFILES
 881 FASTDEBUG
 882 VARIANT
 883 DEBUG_LEVEL
 884 MACOSX_UNIVERSAL
 885 INCLUDE_SA
 886 JVM_VARIANT_CORE
 887 JVM_VARIANT_ZEROSHARK
 888 JVM_VARIANT_ZERO
 889 JVM_VARIANT_KERNEL
 890 JVM_VARIANT_MINIMAL1
 891 JVM_VARIANT_CLIENT
 892 JVM_VARIANT_SERVER
 893 JVM_VARIANTS
 894 JVM_INTERPRETER
 895 JDK_VARIANT
 896 SET_OPENJDK
 897 BUILD_LOG_WRAPPER
 898 BUILD_LOG_PREVIOUS
 899 BUILD_LOG
 900 TOPDIR
 901 PATH_SEP
 902 ZERO_ARCHDEF
 903 DEFINE_CROSS_COMPILE_ARCH
 904 LP64
 905 OPENJDK_TARGET_OS_EXPORT_DIR
 906 OPENJDK_TARGET_OS_API_DIR
 907 OPENJDK_TARGET_CPU_JLI_CFLAGS
 908 OPENJDK_TARGET_CPU_OSARCH
 909 OPENJDK_TARGET_CPU_ISADIR
 910 OPENJDK_TARGET_CPU_LIBDIR
 911 OPENJDK_TARGET_CPU_LEGACY_LIB
 912 OPENJDK_TARGET_CPU_LEGACY
 913 REQUIRED_OS_VERSION
 914 REQUIRED_OS_NAME
 915 COMPILE_TYPE
 916 OPENJDK_TARGET_CPU_ENDIAN
 917 OPENJDK_TARGET_CPU_BITS
 918 OPENJDK_TARGET_CPU_ARCH
 919 OPENJDK_TARGET_CPU
 920 OPENJDK_TARGET_OS_API
 921 OPENJDK_TARGET_OS
 922 OPENJDK_BUILD_CPU_ENDIAN
 923 OPENJDK_BUILD_CPU_BITS
 924 OPENJDK_BUILD_CPU_ARCH
 925 OPENJDK_BUILD_CPU
 926 OPENJDK_BUILD_OS_API
 927 OPENJDK_BUILD_OS
 928 OPENJDK_BUILD_AUTOCONF_NAME
 929 OPENJDK_TARGET_AUTOCONF_NAME
 930 target_os
 931 target_vendor
 932 target_cpu
 933 target
 934 host_os
 935 host_vendor
 936 host_cpu
 937 host
 938 build_os
 939 build_vendor
 940 build_cpu
 941 build
 942 SETFILE
 943 DF
 944 READLINK
 945 CYGPATH
 946 SED
 947 FGREP
 948 EGREP
 949 GREP
 950 AWK
 951 XARGS
 952 WHICH
 953 WC
 954 UNIQ
 955 UNAME
 956 TR
 957 TOUCH
 958 TEE
 959 TAR
 960 TAIL
 961 SORT
 962 SH
 963 RM
 964 PRINTF
 965 NAWK
 966 MV
 967 MKTEMP
 968 MKDIR
 969 LS
 970 LN
 971 HEAD
 972 FIND
 973 FILE
 974 EXPR
 975 ECHO
 976 DIRNAME
 977 DIFF
 978 DATE
 979 CUT
 980 CPIO
 981 CP
 982 COMM
 983 CMP
 984 CHMOD
 985 CAT
 986 BASH
 987 BASENAME
 988 DATE_WHEN_CONFIGURED
 989 CONFIGURE_COMMAND_LINE
 990 target_alias
 991 host_alias
 992 build_alias
 993 LIBS
 994 ECHO_T
 995 ECHO_N
 996 ECHO_C
 997 DEFS
 998 mandir
 999 localedir
1000 libdir
1001 psdir
1002 pdfdir
1003 dvidir
1004 htmldir
1005 infodir
1006 docdir
1007 oldincludedir
1008 includedir
1009 localstatedir
1010 sharedstatedir
1011 sysconfdir
1012 datadir
1013 datarootdir
1014 libexecdir
1015 sbindir
1016 bindir
1017 program_transform_name
1018 prefix
1019 exec_prefix
1020 PACKAGE_URL
1021 PACKAGE_BUGREPORT
1022 PACKAGE_STRING
1023 PACKAGE_VERSION
1024 PACKAGE_TARNAME
1025 PACKAGE_NAME
1026 PATH_SEPARATOR
1027 SHELL'
1028 ac_subst_files=''
1029 ac_user_opts='
1030 enable_option_checking
1031 with_target_bits
1032 enable_openjdk_only
1033 with_custom_make_dir
1034 with_jdk_variant
1035 with_jvm_interpreter
1036 with_jvm_variants
1037 enable_debug
1038 with_debug_level
1039 with_devkit
1040 with_sys_root
1041 with_sysroot
1042 with_tools_dir
1043 with_toolchain_path
1044 with_extra_path
1045 with_sdk_name
1046 with_conf_name
1047 with_builddeps_conf
1048 with_builddeps_server
1049 with_builddeps_dir
1050 with_builddeps_group
1051 enable_headful
1052 enable_hotspot_test_in_build
1053 with_cacerts_file
1054 enable_unlimited_crypto
1055 enable_rmiconnector_iiop
1056 with_milestone
1057 with_update_version
1058 with_user_release_suffix
1059 with_build_number
1060 with_boot_jdk
1061 with_boot_jdk_jvmargs
1062 with_add_source_root
1063 with_override_source_root
1064 with_adds_and_overrides
1065 with_override_langtools
1066 with_override_corba
1067 with_override_jaxp
1068 with_override_jaxws
1069 with_override_hotspot
1070 with_override_nashorn
1071 with_override_jdk
1072 with_import_hotspot
1073 with_toolchain_type
1074 with_jtreg
1075 with_extra_cflags
1076 with_extra_cxxflags
1077 with_extra_ldflags
1078 enable_debug_symbols
1079 enable_zip_debug_info
1080 with_x
1081 with_cups
1082 with_cups_include
1083 with_freetype
1084 with_freetype_include
1085 with_freetype_lib
1086 enable_freetype_bundling
1087 with_alsa
1088 with_alsa_include
1089 with_alsa_lib
1090 with_libjpeg
1091 with_giflib
1092 with_lcms
1093 with_libpng
1094 with_zlib
1095 with_stdc__lib
1096 with_msvcr_dll
1097 with_dxsdk
1098 with_dxsdk_lib
1099 with_dxsdk_include
1100 with_num_cores
1101 with_memory_size
1102 with_jobs
1103 with_sjavac_server_java
1104 enable_sjavac
1105 enable_precompiled_headers
1106 enable_ccache
1107 with_ccache_dir
1108 '
1109       ac_precious_vars='build_alias
1110 host_alias
1111 target_alias
1112 BASENAME
1113 BASH
1114 CAT
1115 CHMOD
1116 CMP
1117 COMM
1118 CP
1119 CPIO
1120 CUT
1121 DATE
1122 DIFF
1123 DIRNAME
1124 ECHO
1125 EXPR
1126 FILE
1127 FIND
1128 HEAD
1129 LN
1130 LS
1131 MKDIR
1132 MKTEMP
1133 MV
1134 NAWK
1135 PRINTF
1136 RM
1137 SH
1138 SORT
1139 TAIL
1140 TAR
1141 TEE
1142 TOUCH
1143 TR
1144 UNAME
1145 UNIQ
1146 WC
1147 WHICH
1148 XARGS
1149 AWK
1150 GREP
1151 EGREP
1152 FGREP
1153 SED
1154 CYGPATH
1155 READLINK
1156 DF
1157 SETFILE
1158 UNZIP
1159 ZIP
1160 LDD
1161 OTOOL
1162 READELF
1163 HG
1164 STAT
1165 TIME
1166 DSYMUTIL
1167 XATTR
1168 CODESIGN
1169 PKG_CONFIG
1170 JAVA
1171 JAVAC
1172 JAVAH
1173 JAR
1174 NATIVE2ASCII
1175 JARSIGNER
1176 CC
1177 CFLAGS
1178 LDFLAGS
1179 LIBS
1180 CPPFLAGS
1181 CXX
1182 CXXFLAGS
1183 CCC
1184 CPP
1185 CXXCPP
1186 AS
1187 AR
1188 OBJC
1189 OBJCFLAGS
1190 LIPO
1191 STRIP
1192 NM
1193 GNM
1194 MCS
1195 OBJCOPY
1196 OBJDUMP
1197 BUILD_CC
1198 BUILD_CXX
1199 BUILD_LD
1200 JTREGEXE
1201 XMKMF
1202 FREETYPE_CFLAGS
1203 FREETYPE_LIBS
1204 ALSA_CFLAGS
1205 ALSA_LIBS
1206 LCMS_CFLAGS
1207 LCMS_LIBS
1208 PNG_CFLAGS
1209 PNG_LIBS
1210 LIBFFI_CFLAGS
1211 LIBFFI_LIBS
1212 CCACHE'
1213 
1214 
1215 # Initialize some variables set by options.
1216 ac_init_help=
1217 ac_init_version=false
1218 ac_unrecognized_opts=
1219 ac_unrecognized_sep=
1220 # The variables have the same names as the options, with
1221 # dashes changed to underlines.
1222 cache_file=/dev/null
1223 exec_prefix=NONE
1224 no_create=
1225 no_recursion=
1226 prefix=NONE
1227 program_prefix=NONE
1228 program_suffix=NONE
1229 program_transform_name=s,x,x,
1230 silent=
1231 site=
1232 srcdir=
1233 verbose=
1234 x_includes=NONE
1235 x_libraries=NONE
1236 
1237 # Installation directory options.
1238 # These are left unexpanded so users can "make install exec_prefix=/foo"
1239 # and all the variables that are supposed to be based on exec_prefix
1240 # by default will actually change.
1241 # Use braces instead of parens because sh, perl, etc. also accept them.
1242 # (The list follows the same order as the GNU Coding Standards.)
1243 bindir='${exec_prefix}/bin'
1244 sbindir='${exec_prefix}/sbin'
1245 libexecdir='${exec_prefix}/libexec'
1246 datarootdir='${prefix}/share'
1247 datadir='${datarootdir}'
1248 sysconfdir='${prefix}/etc'
1249 sharedstatedir='${prefix}/com'
1250 localstatedir='${prefix}/var'
1251 includedir='${prefix}/include'
1252 oldincludedir='/usr/include'
1253 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1254 infodir='${datarootdir}/info'
1255 htmldir='${docdir}'
1256 dvidir='${docdir}'
1257 pdfdir='${docdir}'
1258 psdir='${docdir}'
1259 libdir='${exec_prefix}/lib'
1260 localedir='${datarootdir}/locale'
1261 mandir='${datarootdir}/man'
1262 
1263 ac_prev=
1264 ac_dashdash=
1265 for ac_option
1266 do
1267   # If the previous option needs an argument, assign it.
1268   if test -n "$ac_prev"; then
1269     eval $ac_prev=\$ac_option
1270     ac_prev=
1271     continue
1272   fi
1273 
1274   case $ac_option in
1275   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1276   *=)   ac_optarg= ;;
1277   *)    ac_optarg=yes ;;
1278   esac
1279 
1280   # Accept the important Cygnus configure options, so we can diagnose typos.
1281 
1282   case $ac_dashdash$ac_option in
1283   --)
1284     ac_dashdash=yes ;;
1285 
1286   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1287     ac_prev=bindir ;;
1288   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1289     bindir=$ac_optarg ;;
1290 
1291   -build | --build | --buil | --bui | --bu)
1292     ac_prev=build_alias ;;
1293   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1294     build_alias=$ac_optarg ;;
1295 
1296   -cache-file | --cache-file | --cache-fil | --cache-fi \
1297   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1298     ac_prev=cache_file ;;
1299   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1300   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1301     cache_file=$ac_optarg ;;
1302 
1303   --config-cache | -C)
1304     cache_file=config.cache ;;
1305 
1306   -datadir | --datadir | --datadi | --datad)
1307     ac_prev=datadir ;;
1308   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1309     datadir=$ac_optarg ;;
1310 
1311   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1312   | --dataroo | --dataro | --datar)
1313     ac_prev=datarootdir ;;
1314   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1315   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1316     datarootdir=$ac_optarg ;;
1317 
1318   -disable-* | --disable-*)
1319     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1320     # Reject names that are not valid shell variable names.
1321     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322       as_fn_error $? "invalid feature name: $ac_useropt"
1323     ac_useropt_orig=$ac_useropt
1324     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325     case $ac_user_opts in
1326       *"
1327 "enable_$ac_useropt"
1328 "*) ;;
1329       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1330          ac_unrecognized_sep=', ';;
1331     esac
1332     eval enable_$ac_useropt=no ;;
1333 
1334   -docdir | --docdir | --docdi | --doc | --do)
1335     ac_prev=docdir ;;
1336   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1337     docdir=$ac_optarg ;;
1338 
1339   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1340     ac_prev=dvidir ;;
1341   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1342     dvidir=$ac_optarg ;;
1343 
1344   -enable-* | --enable-*)
1345     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1346     # Reject names that are not valid shell variable names.
1347     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348       as_fn_error $? "invalid feature name: $ac_useropt"
1349     ac_useropt_orig=$ac_useropt
1350     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351     case $ac_user_opts in
1352       *"
1353 "enable_$ac_useropt"
1354 "*) ;;
1355       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1356          ac_unrecognized_sep=', ';;
1357     esac
1358     eval enable_$ac_useropt=\$ac_optarg ;;
1359 
1360   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1361   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1362   | --exec | --exe | --ex)
1363     ac_prev=exec_prefix ;;
1364   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1365   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1366   | --exec=* | --exe=* | --ex=*)
1367     exec_prefix=$ac_optarg ;;
1368 
1369   -gas | --gas | --ga | --g)
1370     # Obsolete; use --with-gas.
1371     with_gas=yes ;;
1372 
1373   -help | --help | --hel | --he | -h)
1374     ac_init_help=long ;;
1375   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1376     ac_init_help=recursive ;;
1377   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1378     ac_init_help=short ;;
1379 
1380   -host | --host | --hos | --ho)
1381     ac_prev=host_alias ;;
1382   -host=* | --host=* | --hos=* | --ho=*)
1383     host_alias=$ac_optarg ;;
1384 
1385   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1386     ac_prev=htmldir ;;
1387   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1388   | --ht=*)
1389     htmldir=$ac_optarg ;;
1390 
1391   -includedir | --includedir | --includedi | --included | --include \
1392   | --includ | --inclu | --incl | --inc)
1393     ac_prev=includedir ;;
1394   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1395   | --includ=* | --inclu=* | --incl=* | --inc=*)
1396     includedir=$ac_optarg ;;
1397 
1398   -infodir | --infodir | --infodi | --infod | --info | --inf)
1399     ac_prev=infodir ;;
1400   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1401     infodir=$ac_optarg ;;
1402 
1403   -libdir | --libdir | --libdi | --libd)
1404     ac_prev=libdir ;;
1405   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1406     libdir=$ac_optarg ;;
1407 
1408   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1409   | --libexe | --libex | --libe)
1410     ac_prev=libexecdir ;;
1411   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1412   | --libexe=* | --libex=* | --libe=*)
1413     libexecdir=$ac_optarg ;;
1414 
1415   -localedir | --localedir | --localedi | --localed | --locale)
1416     ac_prev=localedir ;;
1417   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1418     localedir=$ac_optarg ;;
1419 
1420   -localstatedir | --localstatedir | --localstatedi | --localstated \
1421   | --localstate | --localstat | --localsta | --localst | --locals)
1422     ac_prev=localstatedir ;;
1423   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1424   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1425     localstatedir=$ac_optarg ;;
1426 
1427   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1428     ac_prev=mandir ;;
1429   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1430     mandir=$ac_optarg ;;
1431 
1432   -nfp | --nfp | --nf)
1433     # Obsolete; use --without-fp.
1434     with_fp=no ;;
1435 
1436   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1437   | --no-cr | --no-c | -n)
1438     no_create=yes ;;
1439 
1440   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1441   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1442     no_recursion=yes ;;
1443 
1444   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1445   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1446   | --oldin | --oldi | --old | --ol | --o)
1447     ac_prev=oldincludedir ;;
1448   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1449   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1450   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1451     oldincludedir=$ac_optarg ;;
1452 
1453   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1454     ac_prev=prefix ;;
1455   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1456     prefix=$ac_optarg ;;
1457 
1458   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1459   | --program-pre | --program-pr | --program-p)
1460     ac_prev=program_prefix ;;
1461   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1462   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1463     program_prefix=$ac_optarg ;;
1464 
1465   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1466   | --program-suf | --program-su | --program-s)
1467     ac_prev=program_suffix ;;
1468   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1469   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1470     program_suffix=$ac_optarg ;;
1471 
1472   -program-transform-name | --program-transform-name \
1473   | --program-transform-nam | --program-transform-na \
1474   | --program-transform-n | --program-transform- \
1475   | --program-transform | --program-transfor \
1476   | --program-transfo | --program-transf \
1477   | --program-trans | --program-tran \
1478   | --progr-tra | --program-tr | --program-t)
1479     ac_prev=program_transform_name ;;
1480   -program-transform-name=* | --program-transform-name=* \
1481   | --program-transform-nam=* | --program-transform-na=* \
1482   | --program-transform-n=* | --program-transform-=* \
1483   | --program-transform=* | --program-transfor=* \
1484   | --program-transfo=* | --program-transf=* \
1485   | --program-trans=* | --program-tran=* \
1486   | --progr-tra=* | --program-tr=* | --program-t=*)
1487     program_transform_name=$ac_optarg ;;
1488 
1489   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1490     ac_prev=pdfdir ;;
1491   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1492     pdfdir=$ac_optarg ;;
1493 
1494   -psdir | --psdir | --psdi | --psd | --ps)
1495     ac_prev=psdir ;;
1496   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1497     psdir=$ac_optarg ;;
1498 
1499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1500   | -silent | --silent | --silen | --sile | --sil)
1501     silent=yes ;;
1502 
1503   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1504     ac_prev=sbindir ;;
1505   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1506   | --sbi=* | --sb=*)
1507     sbindir=$ac_optarg ;;
1508 
1509   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1510   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1511   | --sharedst | --shareds | --shared | --share | --shar \
1512   | --sha | --sh)
1513     ac_prev=sharedstatedir ;;
1514   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1515   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1516   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1517   | --sha=* | --sh=*)
1518     sharedstatedir=$ac_optarg ;;
1519 
1520   -site | --site | --sit)
1521     ac_prev=site ;;
1522   -site=* | --site=* | --sit=*)
1523     site=$ac_optarg ;;
1524 
1525   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1526     ac_prev=srcdir ;;
1527   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1528     srcdir=$ac_optarg ;;
1529 
1530   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1531   | --syscon | --sysco | --sysc | --sys | --sy)
1532     ac_prev=sysconfdir ;;
1533   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1534   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1535     sysconfdir=$ac_optarg ;;
1536 
1537   -target | --target | --targe | --targ | --tar | --ta | --t)
1538     ac_prev=target_alias ;;
1539   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1540     target_alias=$ac_optarg ;;
1541 
1542   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1543     verbose=yes ;;
1544 
1545   -version | --version | --versio | --versi | --vers | -V)
1546     ac_init_version=: ;;
1547 
1548   -with-* | --with-*)
1549     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1550     # Reject names that are not valid shell variable names.
1551     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1552       as_fn_error $? "invalid package name: $ac_useropt"
1553     ac_useropt_orig=$ac_useropt
1554     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1555     case $ac_user_opts in
1556       *"
1557 "with_$ac_useropt"
1558 "*) ;;
1559       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1560          ac_unrecognized_sep=', ';;
1561     esac
1562     eval with_$ac_useropt=\$ac_optarg ;;
1563 
1564   -without-* | --without-*)
1565     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1566     # Reject names that are not valid shell variable names.
1567     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1568       as_fn_error $? "invalid package name: $ac_useropt"
1569     ac_useropt_orig=$ac_useropt
1570     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571     case $ac_user_opts in
1572       *"
1573 "with_$ac_useropt"
1574 "*) ;;
1575       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1576          ac_unrecognized_sep=', ';;
1577     esac
1578     eval with_$ac_useropt=no ;;
1579 
1580   --x)
1581     # Obsolete; use --with-x.
1582     with_x=yes ;;
1583 
1584   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1585   | --x-incl | --x-inc | --x-in | --x-i)
1586     ac_prev=x_includes ;;
1587   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1588   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1589     x_includes=$ac_optarg ;;
1590 
1591   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1592   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1593     ac_prev=x_libraries ;;
1594   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1595   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1596     x_libraries=$ac_optarg ;;
1597 
1598   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1599 Try \`$0 --help' for more information"
1600     ;;
1601 
1602   *=*)
1603     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1604     # Reject names that are not valid shell variable names.
1605     case $ac_envvar in #(
1606       '' | [0-9]* | *[!_$as_cr_alnum]* )
1607       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1608     esac
1609     eval $ac_envvar=\$ac_optarg
1610     export $ac_envvar ;;
1611 
1612   *)
1613     # FIXME: should be removed in autoconf 3.0.
1614     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1615     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1616       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1617     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1618     ;;
1619 
1620   esac
1621 done
1622 
1623 if test -n "$ac_prev"; then
1624   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1625   as_fn_error $? "missing argument to $ac_option"
1626 fi
1627 
1628 if test -n "$ac_unrecognized_opts"; then
1629   case $enable_option_checking in
1630     no) ;;
1631     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1632     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1633   esac
1634 fi
1635 
1636 # Check all directory arguments for consistency.
1637 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1638                 datadir sysconfdir sharedstatedir localstatedir includedir \
1639                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1640                 libdir localedir mandir
1641 do
1642   eval ac_val=\$$ac_var
1643   # Remove trailing slashes.
1644   case $ac_val in
1645     */ )
1646       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1647       eval $ac_var=\$ac_val;;
1648   esac
1649   # Be sure to have absolute directory names.
1650   case $ac_val in
1651     [\\/$]* | ?:[\\/]* )  continue;;
1652     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1653   esac
1654   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1655 done
1656 
1657 # There might be people who depend on the old broken behavior: `$host'
1658 # used to hold the argument of --host etc.
1659 # FIXME: To remove some day.
1660 build=$build_alias
1661 host=$host_alias
1662 target=$target_alias
1663 
1664 # FIXME: To remove some day.
1665 if test "x$host_alias" != x; then
1666   if test "x$build_alias" = x; then
1667     cross_compiling=maybe
1668   elif test "x$build_alias" != "x$host_alias"; then
1669     cross_compiling=yes
1670   fi
1671 fi
1672 
1673 ac_tool_prefix=
1674 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1675 
1676 test "$silent" = yes && exec 6>/dev/null
1677 
1678 
1679 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1680 ac_ls_di=`ls -di .` &&
1681 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1682   as_fn_error $? "working directory cannot be determined"
1683 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1684   as_fn_error $? "pwd does not report name of working directory"
1685 
1686 
1687 # Find the source files, if location was not specified.
1688 if test -z "$srcdir"; then
1689   ac_srcdir_defaulted=yes
1690   # Try the directory containing this script, then the parent directory.
1691   ac_confdir=`$as_dirname -- "$as_myself" ||
1692 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1693          X"$as_myself" : 'X\(//\)[^/]' \| \
1694          X"$as_myself" : 'X\(//\)$' \| \
1695          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1696 $as_echo X"$as_myself" |
1697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1698             s//\1/
1699             q
1700           }
1701           /^X\(\/\/\)[^/].*/{
1702             s//\1/
1703             q
1704           }
1705           /^X\(\/\/\)$/{
1706             s//\1/
1707             q
1708           }
1709           /^X\(\/\).*/{
1710             s//\1/
1711             q
1712           }
1713           s/.*/./; q'`
1714   srcdir=$ac_confdir
1715   if test ! -r "$srcdir/$ac_unique_file"; then
1716     srcdir=..
1717   fi
1718 else
1719   ac_srcdir_defaulted=no
1720 fi
1721 if test ! -r "$srcdir/$ac_unique_file"; then
1722   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1723   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1724 fi
1725 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1726 ac_abs_confdir=`(
1727         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1728         pwd)`
1729 # When building in place, set srcdir=.
1730 if test "$ac_abs_confdir" = "$ac_pwd"; then
1731   srcdir=.
1732 fi
1733 # Remove unnecessary trailing slashes from srcdir.
1734 # Double slashes in file names in object file debugging info
1735 # mess up M-x gdb in Emacs.
1736 case $srcdir in
1737 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1738 esac
1739 for ac_var in $ac_precious_vars; do
1740   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1741   eval ac_env_${ac_var}_value=\$${ac_var}
1742   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1743   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1744 done
1745 
1746 #
1747 # Report the --help message.
1748 #
1749 if test "$ac_init_help" = "long"; then
1750   # Omit some internal or obsolete options to make the list less imposing.
1751   # This message is too long to be a string in the A/UX 3.1 sh.
1752   cat <<_ACEOF
1753 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1754 
1755 Usage: $0 [OPTION]... [VAR=VALUE]...
1756 
1757 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1758 VAR=VALUE.  See below for descriptions of some of the useful variables.
1759 
1760 Defaults for the options are specified in brackets.
1761 
1762 Configuration:
1763   -h, --help              display this help and exit
1764       --help=short        display options specific to this package
1765       --help=recursive    display the short help of all the included packages
1766   -V, --version           display version information and exit
1767   -q, --quiet, --silent   do not print \`checking ...' messages
1768       --cache-file=FILE   cache test results in FILE [disabled]
1769   -C, --config-cache      alias for \`--cache-file=config.cache'
1770   -n, --no-create         do not create output files
1771       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1772 
1773 Installation directories:
1774   --prefix=PREFIX         install architecture-independent files in PREFIX
1775                           [$ac_default_prefix]
1776   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1777                           [PREFIX]
1778 
1779 By default, \`make install' will install all the files in
1780 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1781 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1782 for instance \`--prefix=\$HOME'.
1783 
1784 For better control, use the options below.
1785 
1786 Fine tuning of the installation directories:
1787   --bindir=DIR            user executables [EPREFIX/bin]
1788   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1789   --libexecdir=DIR        program executables [EPREFIX/libexec]
1790   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1791   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1792   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1793   --libdir=DIR            object code libraries [EPREFIX/lib]
1794   --includedir=DIR        C header files [PREFIX/include]
1795   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1796   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1797   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1798   --infodir=DIR           info documentation [DATAROOTDIR/info]
1799   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1800   --mandir=DIR            man documentation [DATAROOTDIR/man]
1801   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1802   --htmldir=DIR           html documentation [DOCDIR]
1803   --dvidir=DIR            dvi documentation [DOCDIR]
1804   --pdfdir=DIR            pdf documentation [DOCDIR]
1805   --psdir=DIR             ps documentation [DOCDIR]
1806 _ACEOF
1807 
1808   cat <<\_ACEOF
1809 
1810 X features:
1811   --x-includes=DIR    X include files are in DIR
1812   --x-libraries=DIR   X library files are in DIR
1813 
1814 System types:
1815   --build=BUILD     configure for building on BUILD [guessed]
1816   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1817   --target=TARGET   configure for building compilers for TARGET [HOST]
1818 _ACEOF
1819 fi
1820 
1821 if test -n "$ac_init_help"; then
1822   case $ac_init_help in
1823      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1824    esac
1825   cat <<\_ACEOF
1826 
1827 Optional Features:
1828   --disable-option-checking  ignore unrecognized --enable/--with options
1829   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1830   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1831   --enable-openjdk-only   suppress building custom source even if present
1832                           [disabled]
1833   --enable-debug          set the debug level to fastdebug (shorthand for
1834                           --with-debug-level=fastdebug) [disabled]
1835   --disable-headful       disable building headful support (graphical UI
1836                           support) [enabled]
1837   --enable-hotspot-test-in-build
1838                           run the Queens test after Hotspot build [disabled]
1839   --enable-unlimited-crypto
1840                           Enable unlimited crypto policy [disabled]
1841   --enable-rmiconnector-iiop
1842                           enable the JMX RMIConnector iiop transport
1843                           [disabled]
1844   --disable-debug-symbols disable generation of debug symbols [enabled]
1845   --disable-zip-debug-info
1846                           disable zipping of debug-info files [enabled]
1847   --disable-freetype-bundling
1848                           disable bundling of the freetype library with the
1849                           build result [enabled on Windows or when using
1850                           --with-freetype, disabled otherwise]
1851   --enable-sjavac         use sjavac to do fast incremental compiles
1852                           [disabled]
1853   --disable-precompiled-headers
1854                           disable using precompiled headers when compiling C++
1855                           [enabled]
1856   --enable-ccache         enable using ccache to speed up recompilations
1857                           [disabled]
1858 
1859 Optional Packages:
1860   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1861   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1862   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1863                           support it), e.g. --with-target-bits=32 [guessed]
1864   --with-custom-make-dir  Deprecated. Option is kept for backwards
1865                           compatibility and is ignored
1866   --with-jdk-variant      JDK variant to build (normal) [normal]
1867   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1868   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1869                           client, minimal1, kernel, zero, zeroshark, core)
1870                           [server]
1871   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1872                           optimized (HotSpot build only)) [release]
1873   --with-devkit           use this devkit for compilers, tools and resources
1874   --with-sys-root         alias for --with-sysroot for backwards compatability
1875   --with-sysroot          use this directory as sysroot
1876   --with-tools-dir        alias for --with-toolchain-path for backwards
1877                           compatibility
1878   --with-toolchain-path   prepend these directories when searching for
1879                           toolchain binaries (compilers etc)
1880   --with-extra-path       prepend these directories to the default path
1881   --with-sdk-name         use the platform SDK of the given name. [macosx]
1882   --with-conf-name        use this as the name of the configuration [generated
1883                           from important configuration options]
1884   --with-builddeps-conf   use this configuration file for the builddeps
1885   --with-builddeps-server download and use build dependencies from this server
1886                           url
1887   --with-builddeps-dir    store downloaded build dependencies here
1888                           [/localhome/builddeps]
1889   --with-builddeps-group  chgrp the downloaded build dependencies to this
1890                           group
1891   --with-cacerts-file     specify alternative cacerts file
1892   --with-milestone        Set milestone value for build [internal]
1893   --with-update-version   Set update version value for build [b00]
1894   --with-user-release-suffix
1895                           Add a custom string to the version string if build
1896                           number is not set.[username_builddateb00]
1897   --with-build-number     Set build number value for build [b00]
1898   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1899   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
1900                           invocations of boot JDK, overriding the default
1901                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1902                           -enableassertions"
1903   --with-add-source-root  for each and every source directory, look in this
1904                           additional source root for the same directory; if it
1905                           exists and have files in it, include it in the build
1906   --with-override-source-root
1907                           for each and every source directory, look in this
1908                           override source root for the same directory; if it
1909                           exists, use that directory instead and ignore the
1910                           directory in the original source root
1911   --with-adds-and-overrides
1912                           use the subdirs 'adds' and 'overrides' in the
1913                           specified directory as add-source-root and
1914                           override-source-root
1915   --with-override-langtools
1916                           use this langtools dir for the build
1917   --with-override-corba   use this corba dir for the build
1918   --with-override-jaxp    use this jaxp dir for the build
1919   --with-override-jaxws   use this jaxws dir for the build
1920   --with-override-hotspot use this hotspot dir for the build
1921   --with-override-nashorn use this nashorn dir for the build
1922   --with-override-jdk     use this jdk dir for the build
1923   --with-import-hotspot   import hotspot binaries from this jdk image or
1924                           hotspot build dist dir instead of building from
1925                           source
1926   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1927                           to show possible values [platform dependent]
1928   --with-jtreg            Regression Test Harness [probed]
1929   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1930   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1931   --with-extra-ldflags    extra flags to be used when linking jdk
1932   --with-x                use the X Window System
1933   --with-cups             specify prefix directory for the cups package
1934                           (expecting the headers under PATH/include)
1935   --with-cups-include     specify directory for the cups include files
1936   --with-freetype         specify prefix directory for the freetype package
1937                           (expecting the libraries under PATH/lib and the
1938                           headers under PATH/include)
1939   --with-freetype-include specify directory for the freetype include files
1940   --with-freetype-lib     specify directory for the freetype library
1941   --with-alsa             specify prefix directory for the alsa package
1942                           (expecting the libraries under PATH/lib and the
1943                           headers under PATH/include)
1944   --with-alsa-include     specify directory for the alsa include files
1945   --with-alsa-lib         specify directory for the alsa library
1946   --with-libjpeg          use libjpeg from build system or OpenJDK source
1947                           (system, bundled) [bundled]
1948   --with-giflib           use giflib from build system or OpenJDK source
1949                           (system, bundled) [bundled]
1950   --with-lcms             use lcms2 from build system or OpenJDK source
1951                           (system, bundled) [bundled]
1952   --with-libpng           use libpng from build system or OpenJDK source
1953                           (system, bundled) [bundled]
1954   --with-zlib             use zlib from build system or OpenJDK source
1955                           (system, bundled) [bundled]
1956   --with-stdc++lib=<static>,<dynamic>,<default>
1957                           force linking of the C++ runtime on Linux to either
1958                           static or dynamic, default is static with dynamic as
1959                           fallback
1960   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1961                           only) [probed]
1962   --with-dxsdk            Deprecated. Option is kept for backwards
1963                           compatibility and is ignored
1964   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1965                           compatibility and is ignored
1966   --with-dxsdk-include    Deprecated. Option is kept for backwards
1967                           compatibility and is ignored
1968   --with-num-cores        number of cores in the build system, e.g.
1969                           --with-num-cores=8 [probed]
1970   --with-memory-size      memory (in MB) available in the build system, e.g.
1971                           --with-memory-size=1024 [probed]
1972   --with-jobs             number of parallel jobs to let make run [calculated
1973                           based on cores and memory]
1974   --with-sjavac-server-java
1975                           use this java binary for running the sjavac
1976                           background server [Boot JDK java]
1977   --with-ccache-dir       where to store ccache files [~/.ccache]
1978 
1979 Some influential environment variables:
1980   BASENAME    Override default value for BASENAME
1981   BASH        Override default value for BASH
1982   CAT         Override default value for CAT
1983   CHMOD       Override default value for CHMOD
1984   CMP         Override default value for CMP
1985   COMM        Override default value for COMM
1986   CP          Override default value for CP
1987   CPIO        Override default value for CPIO
1988   CUT         Override default value for CUT
1989   DATE        Override default value for DATE
1990   DIFF        Override default value for DIFF
1991   DIRNAME     Override default value for DIRNAME
1992   ECHO        Override default value for ECHO
1993   EXPR        Override default value for EXPR
1994   FILE        Override default value for FILE
1995   FIND        Override default value for FIND
1996   HEAD        Override default value for HEAD
1997   LN          Override default value for LN
1998   LS          Override default value for LS
1999   MKDIR       Override default value for MKDIR
2000   MKTEMP      Override default value for MKTEMP
2001   MV          Override default value for MV
2002   NAWK        Override default value for NAWK
2003   PRINTF      Override default value for PRINTF
2004   RM          Override default value for RM
2005   SH          Override default value for SH
2006   SORT        Override default value for SORT
2007   TAIL        Override default value for TAIL
2008   TAR         Override default value for TAR
2009   TEE         Override default value for TEE
2010   TOUCH       Override default value for TOUCH
2011   TR          Override default value for TR
2012   UNAME       Override default value for UNAME
2013   UNIQ        Override default value for UNIQ
2014   WC          Override default value for WC
2015   WHICH       Override default value for WHICH
2016   XARGS       Override default value for XARGS
2017   AWK         Override default value for AWK
2018   GREP        Override default value for GREP
2019   EGREP       Override default value for EGREP
2020   FGREP       Override default value for FGREP
2021   SED         Override default value for SED
2022   CYGPATH     Override default value for CYGPATH
2023   READLINK    Override default value for READLINK
2024   DF          Override default value for DF
2025   SETFILE     Override default value for SETFILE
2026   UNZIP       Override default value for UNZIP
2027   ZIP         Override default value for ZIP
2028   LDD         Override default value for LDD
2029   OTOOL       Override default value for OTOOL
2030   READELF     Override default value for READELF
2031   HG          Override default value for HG
2032   STAT        Override default value for STAT
2033   TIME        Override default value for TIME
2034   DSYMUTIL    Override default value for DSYMUTIL
2035   XATTR       Override default value for XATTR
2036   CODESIGN    Override default value for CODESIGN
2037   PKG_CONFIG  path to pkg-config utility
2038   JAVA        Override default value for JAVA
2039   JAVAC       Override default value for JAVAC
2040   JAVAH       Override default value for JAVAH
2041   JAR         Override default value for JAR
2042   NATIVE2ASCII
2043               Override default value for NATIVE2ASCII
2044   JARSIGNER   Override default value for JARSIGNER
2045   CC          C compiler command
2046   CFLAGS      C compiler flags
2047   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2048               nonstandard directory <lib dir>
2049   LIBS        libraries to pass to the linker, e.g. -l<library>
2050   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2051               you have headers in a nonstandard directory <include dir>
2052   CXX         C++ compiler command
2053   CXXFLAGS    C++ compiler flags
2054   CPP         C preprocessor
2055   CXXCPP      C++ preprocessor
2056   AS          Override default value for AS
2057   AR          Override default value for AR
2058   OBJC        Objective C compiler command
2059   OBJCFLAGS   Objective C compiler flags
2060   LIPO        Override default value for LIPO
2061   STRIP       Override default value for STRIP
2062   NM          Override default value for NM
2063   GNM         Override default value for GNM
2064   MCS         Override default value for MCS
2065   OBJCOPY     Override default value for OBJCOPY
2066   OBJDUMP     Override default value for OBJDUMP
2067   BUILD_CC    Override default value for BUILD_CC
2068   BUILD_CXX   Override default value for BUILD_CXX
2069   BUILD_LD    Override default value for BUILD_LD
2070   JTREGEXE    Override default value for JTREGEXE
2071   XMKMF       Path to xmkmf, Makefile generator for X Window System
2072   FREETYPE_CFLAGS
2073               C compiler flags for FREETYPE, overriding pkg-config
2074   FREETYPE_LIBS
2075               linker flags for FREETYPE, overriding pkg-config
2076   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2077   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2078   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2079   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2080   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2081   PNG_LIBS    linker flags for PNG, overriding pkg-config
2082   LIBFFI_CFLAGS
2083               C compiler flags for LIBFFI, overriding pkg-config
2084   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2085   CCACHE      Override default value for CCACHE
2086 
2087 Use these variables to override the choices made by `configure' or to help
2088 it to find libraries and programs with nonstandard names/locations.
2089 
2090 Report bugs to <build-dev@openjdk.java.net>.
2091 OpenJDK home page: <http://openjdk.java.net>.
2092 _ACEOF
2093 ac_status=$?
2094 fi
2095 
2096 if test "$ac_init_help" = "recursive"; then
2097   # If there are subdirs, report their specific --help.
2098   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2099     test -d "$ac_dir" ||
2100       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2101       continue
2102     ac_builddir=.
2103 
2104 case "$ac_dir" in
2105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2106 *)
2107   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2108   # A ".." for each directory in $ac_dir_suffix.
2109   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2110   case $ac_top_builddir_sub in
2111   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2112   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2113   esac ;;
2114 esac
2115 ac_abs_top_builddir=$ac_pwd
2116 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2117 # for backward compatibility:
2118 ac_top_builddir=$ac_top_build_prefix
2119 
2120 case $srcdir in
2121   .)  # We are building in place.
2122     ac_srcdir=.
2123     ac_top_srcdir=$ac_top_builddir_sub
2124     ac_abs_top_srcdir=$ac_pwd ;;
2125   [\\/]* | ?:[\\/]* )  # Absolute name.
2126     ac_srcdir=$srcdir$ac_dir_suffix;
2127     ac_top_srcdir=$srcdir
2128     ac_abs_top_srcdir=$srcdir ;;
2129   *) # Relative name.
2130     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2131     ac_top_srcdir=$ac_top_build_prefix$srcdir
2132     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2133 esac
2134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2135 
2136     cd "$ac_dir" || { ac_status=$?; continue; }
2137     # Check for guested configure.
2138     if test -f "$ac_srcdir/configure.gnu"; then
2139       echo &&
2140       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2141     elif test -f "$ac_srcdir/configure"; then
2142       echo &&
2143       $SHELL "$ac_srcdir/configure" --help=recursive
2144     else
2145       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2146     fi || ac_status=$?
2147     cd "$ac_pwd" || { ac_status=$?; break; }
2148   done
2149 fi
2150 
2151 test -n "$ac_init_help" && exit $ac_status
2152 if $ac_init_version; then
2153   cat <<\_ACEOF
2154 OpenJDK configure jdk9
2155 generated by GNU Autoconf 2.69
2156 
2157 Copyright (C) 2012 Free Software Foundation, Inc.
2158 This configure script is free software; the Free Software Foundation
2159 gives unlimited permission to copy, distribute and modify it.
2160 _ACEOF
2161   exit
2162 fi
2163 
2164 ## ------------------------ ##
2165 ## Autoconf initialization. ##
2166 ## ------------------------ ##
2167 
2168 # ac_fn_c_try_compile LINENO
2169 # --------------------------
2170 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2171 ac_fn_c_try_compile ()
2172 {
2173   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174   rm -f conftest.$ac_objext
2175   if { { ac_try="$ac_compile"
2176 case "(($ac_try" in
2177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178   *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182   (eval "$ac_compile") 2>conftest.err
2183   ac_status=$?
2184   if test -s conftest.err; then
2185     grep -v '^ *+' conftest.err >conftest.er1
2186     cat conftest.er1 >&5
2187     mv -f conftest.er1 conftest.err
2188   fi
2189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190   test $ac_status = 0; } && {
2191          test -z "$ac_c_werror_flag" ||
2192          test ! -s conftest.err
2193        } && test -s conftest.$ac_objext; then :
2194   ac_retval=0
2195 else
2196   $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198 
2199         ac_retval=1
2200 fi
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202   as_fn_set_status $ac_retval
2203 
2204 } # ac_fn_c_try_compile
2205 
2206 # ac_fn_cxx_try_compile LINENO
2207 # ----------------------------
2208 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_compile ()
2210 {
2211   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212   rm -f conftest.$ac_objext
2213   if { { ac_try="$ac_compile"
2214 case "(($ac_try" in
2215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216   *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220   (eval "$ac_compile") 2>conftest.err
2221   ac_status=$?
2222   if test -s conftest.err; then
2223     grep -v '^ *+' conftest.err >conftest.er1
2224     cat conftest.er1 >&5
2225     mv -f conftest.er1 conftest.err
2226   fi
2227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228   test $ac_status = 0; } && {
2229          test -z "$ac_cxx_werror_flag" ||
2230          test ! -s conftest.err
2231        } && test -s conftest.$ac_objext; then :
2232   ac_retval=0
2233 else
2234   $as_echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236 
2237         ac_retval=1
2238 fi
2239   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240   as_fn_set_status $ac_retval
2241 
2242 } # ac_fn_cxx_try_compile
2243 
2244 # ac_fn_c_try_cpp LINENO
2245 # ----------------------
2246 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2247 ac_fn_c_try_cpp ()
2248 {
2249   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250   if { { ac_try="$ac_cpp conftest.$ac_ext"
2251 case "(($ac_try" in
2252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253   *) ac_try_echo=$ac_try;;
2254 esac
2255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2256 $as_echo "$ac_try_echo"; } >&5
2257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2258   ac_status=$?
2259   if test -s conftest.err; then
2260     grep -v '^ *+' conftest.err >conftest.er1
2261     cat conftest.er1 >&5
2262     mv -f conftest.er1 conftest.err
2263   fi
2264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265   test $ac_status = 0; } > conftest.i && {
2266          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2267          test ! -s conftest.err
2268        }; then :
2269   ac_retval=0
2270 else
2271   $as_echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273 
2274     ac_retval=1
2275 fi
2276   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277   as_fn_set_status $ac_retval
2278 
2279 } # ac_fn_c_try_cpp
2280 
2281 # ac_fn_cxx_try_cpp LINENO
2282 # ------------------------
2283 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2284 ac_fn_cxx_try_cpp ()
2285 {
2286   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287   if { { ac_try="$ac_cpp conftest.$ac_ext"
2288 case "(($ac_try" in
2289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290   *) ac_try_echo=$ac_try;;
2291 esac
2292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2293 $as_echo "$ac_try_echo"; } >&5
2294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2295   ac_status=$?
2296   if test -s conftest.err; then
2297     grep -v '^ *+' conftest.err >conftest.er1
2298     cat conftest.er1 >&5
2299     mv -f conftest.er1 conftest.err
2300   fi
2301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2302   test $ac_status = 0; } > conftest.i && {
2303          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2304          test ! -s conftest.err
2305        }; then :
2306   ac_retval=0
2307 else
2308   $as_echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2310 
2311     ac_retval=1
2312 fi
2313   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314   as_fn_set_status $ac_retval
2315 
2316 } # ac_fn_cxx_try_cpp
2317 
2318 # ac_fn_objc_try_compile LINENO
2319 # -----------------------------
2320 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2321 ac_fn_objc_try_compile ()
2322 {
2323   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324   rm -f conftest.$ac_objext
2325   if { { ac_try="$ac_compile"
2326 case "(($ac_try" in
2327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328   *) ac_try_echo=$ac_try;;
2329 esac
2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331 $as_echo "$ac_try_echo"; } >&5
2332   (eval "$ac_compile") 2>conftest.err
2333   ac_status=$?
2334   if test -s conftest.err; then
2335     grep -v '^ *+' conftest.err >conftest.er1
2336     cat conftest.er1 >&5
2337     mv -f conftest.er1 conftest.err
2338   fi
2339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340   test $ac_status = 0; } && {
2341          test -z "$ac_objc_werror_flag" ||
2342          test ! -s conftest.err
2343        } && test -s conftest.$ac_objext; then :
2344   ac_retval=0
2345 else
2346   $as_echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348 
2349         ac_retval=1
2350 fi
2351   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352   as_fn_set_status $ac_retval
2353 
2354 } # ac_fn_objc_try_compile
2355 
2356 # ac_fn_c_try_link LINENO
2357 # -----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded.
2359 ac_fn_c_try_link ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   rm -f conftest.$ac_objext conftest$ac_exeext
2363   if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370   (eval "$ac_link") 2>conftest.err
2371   ac_status=$?
2372   if test -s conftest.err; then
2373     grep -v '^ *+' conftest.err >conftest.er1
2374     cat conftest.er1 >&5
2375     mv -f conftest.er1 conftest.err
2376   fi
2377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378   test $ac_status = 0; } && {
2379          test -z "$ac_c_werror_flag" ||
2380          test ! -s conftest.err
2381        } && test -s conftest$ac_exeext && {
2382          test "$cross_compiling" = yes ||
2383          test -x conftest$ac_exeext
2384        }; then :
2385   ac_retval=0
2386 else
2387   $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389 
2390         ac_retval=1
2391 fi
2392   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394   # interfere with the next link command; also delete a directory that is
2395   # left behind by Apple's compiler.  We do this before executing the actions.
2396   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2397   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398   as_fn_set_status $ac_retval
2399 
2400 } # ac_fn_c_try_link
2401 
2402 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2403 # ---------------------------------------------------------
2404 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2405 # the include files in INCLUDES and setting the cache variable VAR
2406 # accordingly.
2407 ac_fn_cxx_check_header_mongrel ()
2408 {
2409   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410   if eval \${$3+:} false; then :
2411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2412 $as_echo_n "checking for $2... " >&6; }
2413 if eval \${$3+:} false; then :
2414   $as_echo_n "(cached) " >&6
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 else
2420   # Is the header compilable?
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2422 $as_echo_n "checking $2 usability... " >&6; }
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h.  */
2425 $4
2426 #include <$2>
2427 _ACEOF
2428 if ac_fn_cxx_try_compile "$LINENO"; then :
2429   ac_header_compiler=yes
2430 else
2431   ac_header_compiler=no
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2435 $as_echo "$ac_header_compiler" >&6; }
2436 
2437 # Is the header present?
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2439 $as_echo_n "checking $2 presence... " >&6; }
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h.  */
2442 #include <$2>
2443 _ACEOF
2444 if ac_fn_cxx_try_cpp "$LINENO"; then :
2445   ac_header_preproc=yes
2446 else
2447   ac_header_preproc=no
2448 fi
2449 rm -f conftest.err conftest.i conftest.$ac_ext
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2451 $as_echo "$ac_header_preproc" >&6; }
2452 
2453 # So?  What about this header?
2454 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2455   yes:no: )
2456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2457 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2458     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2459 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2460     ;;
2461   no:yes:* )
2462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2463 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2465 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2467 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2468     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2469 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2471 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2472 ( $as_echo "## ----------------------------------------- ##
2473 ## Report this to build-dev@openjdk.java.net ##
2474 ## ----------------------------------------- ##"
2475      ) | sed "s/^/$as_me: WARNING:     /" >&2
2476     ;;
2477 esac
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if eval \${$3+:} false; then :
2481   $as_echo_n "(cached) " >&6
2482 else
2483   eval "$3=\$ac_header_compiler"
2484 fi
2485 eval ac_res=\$$3
2486                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 fi
2489   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 
2491 } # ac_fn_cxx_check_header_mongrel
2492 
2493 # ac_fn_cxx_try_run LINENO
2494 # ------------------------
2495 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2496 # that executables *can* be run.
2497 ac_fn_cxx_try_run ()
2498 {
2499   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500   if { { ac_try="$ac_link"
2501 case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507   (eval "$ac_link") 2>&5
2508   ac_status=$?
2509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2511   { { case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516 $as_echo "$ac_try_echo"; } >&5
2517   (eval "$ac_try") 2>&5
2518   ac_status=$?
2519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520   test $ac_status = 0; }; }; then :
2521   ac_retval=0
2522 else
2523   $as_echo "$as_me: program exited with status $ac_status" >&5
2524        $as_echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526 
2527        ac_retval=$ac_status
2528 fi
2529   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2530   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531   as_fn_set_status $ac_retval
2532 
2533 } # ac_fn_cxx_try_run
2534 
2535 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2536 # ---------------------------------------------------------
2537 # Tests whether HEADER exists and can be compiled using the include files in
2538 # INCLUDES, setting the cache variable VAR accordingly.
2539 ac_fn_cxx_check_header_compile ()
2540 {
2541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if eval \${$3+:} false; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h.  */
2549 $4
2550 #include <$2>
2551 _ACEOF
2552 if ac_fn_cxx_try_compile "$LINENO"; then :
2553   eval "$3=yes"
2554 else
2555   eval "$3=no"
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 fi
2559 eval ac_res=\$$3
2560                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2563 
2564 } # ac_fn_cxx_check_header_compile
2565 
2566 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2567 # ----------------------------------------------
2568 # Tries to find the compile-time value of EXPR in a program that includes
2569 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2570 # computed
2571 ac_fn_cxx_compute_int ()
2572 {
2573   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574   if test "$cross_compiling" = yes; then
2575     # Depending upon the size, compute the lo and hi bounds.
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h.  */
2578 $4
2579 int
2580 main ()
2581 {
2582 static int test_array [1 - 2 * !(($2) >= 0)];
2583 test_array [0] = 0;
2584 return test_array [0];
2585 
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590 if ac_fn_cxx_try_compile "$LINENO"; then :
2591   ac_lo=0 ac_mid=0
2592   while :; do
2593     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h.  */
2595 $4
2596 int
2597 main ()
2598 {
2599 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2600 test_array [0] = 0;
2601 return test_array [0];
2602 
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_cxx_try_compile "$LINENO"; then :
2608   ac_hi=$ac_mid; break
2609 else
2610   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2611                         if test $ac_lo -le $ac_mid; then
2612                           ac_lo= ac_hi=
2613                           break
2614                         fi
2615                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618   done
2619 else
2620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 $4
2623 int
2624 main ()
2625 {
2626 static int test_array [1 - 2 * !(($2) < 0)];
2627 test_array [0] = 0;
2628 return test_array [0];
2629 
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_cxx_try_compile "$LINENO"; then :
2635   ac_hi=-1 ac_mid=-1
2636   while :; do
2637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h.  */
2639 $4
2640 int
2641 main ()
2642 {
2643 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2644 test_array [0] = 0;
2645 return test_array [0];
2646 
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_cxx_try_compile "$LINENO"; then :
2652   ac_lo=$ac_mid; break
2653 else
2654   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2655                         if test $ac_mid -le $ac_hi; then
2656                           ac_lo= ac_hi=
2657                           break
2658                         fi
2659                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2660 fi
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662   done
2663 else
2664   ac_lo= ac_hi=
2665 fi
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 fi
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 # Binary search between lo and hi bounds.
2670 while test "x$ac_lo" != "x$ac_hi"; do
2671   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h.  */
2674 $4
2675 int
2676 main ()
2677 {
2678 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2679 test_array [0] = 0;
2680 return test_array [0];
2681 
2682   ;
2683   return 0;
2684 }
2685 _ACEOF
2686 if ac_fn_cxx_try_compile "$LINENO"; then :
2687   ac_hi=$ac_mid
2688 else
2689   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 done
2693 case $ac_lo in #((
2694 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2695 '') ac_retval=1 ;;
2696 esac
2697   else
2698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h.  */
2700 $4
2701 static long int longval () { return $2; }
2702 static unsigned long int ulongval () { return $2; }
2703 #include <stdio.h>
2704 #include <stdlib.h>
2705 int
2706 main ()
2707 {
2708 
2709   FILE *f = fopen ("conftest.val", "w");
2710   if (! f)
2711     return 1;
2712   if (($2) < 0)
2713     {
2714       long int i = longval ();
2715       if (i != ($2))
2716         return 1;
2717       fprintf (f, "%ld", i);
2718     }
2719   else
2720     {
2721       unsigned long int i = ulongval ();
2722       if (i != ($2))
2723         return 1;
2724       fprintf (f, "%lu", i);
2725     }
2726   /* Do not output a trailing newline, as this causes \r\n confusion
2727      on some platforms.  */
2728   return ferror (f) || fclose (f) != 0;
2729 
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 if ac_fn_cxx_try_run "$LINENO"; then :
2735   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2736 else
2737   ac_retval=1
2738 fi
2739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2740   conftest.$ac_objext conftest.beam conftest.$ac_ext
2741 rm -f conftest.val
2742 
2743   fi
2744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745   as_fn_set_status $ac_retval
2746 
2747 } # ac_fn_cxx_compute_int
2748 
2749 # ac_fn_cxx_try_link LINENO
2750 # -------------------------
2751 # Try to link conftest.$ac_ext, and return whether this succeeded.
2752 ac_fn_cxx_try_link ()
2753 {
2754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755   rm -f conftest.$ac_objext conftest$ac_exeext
2756   if { { ac_try="$ac_link"
2757 case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762 $as_echo "$ac_try_echo"; } >&5
2763   (eval "$ac_link") 2>conftest.err
2764   ac_status=$?
2765   if test -s conftest.err; then
2766     grep -v '^ *+' conftest.err >conftest.er1
2767     cat conftest.er1 >&5
2768     mv -f conftest.er1 conftest.err
2769   fi
2770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771   test $ac_status = 0; } && {
2772          test -z "$ac_cxx_werror_flag" ||
2773          test ! -s conftest.err
2774        } && test -s conftest$ac_exeext && {
2775          test "$cross_compiling" = yes ||
2776          test -x conftest$ac_exeext
2777        }; then :
2778   ac_retval=0
2779 else
2780   $as_echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782 
2783         ac_retval=1
2784 fi
2785   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2786   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2787   # interfere with the next link command; also delete a directory that is
2788   # left behind by Apple's compiler.  We do this before executing the actions.
2789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791   as_fn_set_status $ac_retval
2792 
2793 } # ac_fn_cxx_try_link
2794 
2795 # ac_fn_cxx_check_func LINENO FUNC VAR
2796 # ------------------------------------
2797 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2798 ac_fn_cxx_check_func ()
2799 {
2800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2802 $as_echo_n "checking for $2... " >&6; }
2803 if eval \${$3+:} false; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h.  */
2808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2810 #define $2 innocuous_$2
2811 
2812 /* System header to define __stub macros and hopefully few prototypes,
2813     which can conflict with char $2 (); below.
2814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815     <limits.h> exists even on freestanding compilers.  */
2816 
2817 #ifdef __STDC__
2818 # include <limits.h>
2819 #else
2820 # include <assert.h>
2821 #endif
2822 
2823 #undef $2
2824 
2825 /* Override any GCC internal prototype to avoid an error.
2826    Use char because int might match the return type of a GCC
2827    builtin and then its argument prototype would still apply.  */
2828 #ifdef __cplusplus
2829 extern "C"
2830 #endif
2831 char $2 ();
2832 /* The GNU C library defines this for functions which it implements
2833     to always fail with ENOSYS.  Some functions are actually named
2834     something starting with __ and the normal name is an alias.  */
2835 #if defined __stub_$2 || defined __stub___$2
2836 choke me
2837 #endif
2838 
2839 int
2840 main ()
2841 {
2842 return $2 ();
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 if ac_fn_cxx_try_link "$LINENO"; then :
2848   eval "$3=yes"
2849 else
2850   eval "$3=no"
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext \
2853     conftest$ac_exeext conftest.$ac_ext
2854 fi
2855 eval ac_res=\$$3
2856                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2857 $as_echo "$ac_res" >&6; }
2858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2859 
2860 } # ac_fn_cxx_check_func
2861 
2862 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2863 # -------------------------------------------------------
2864 # Tests whether HEADER exists and can be compiled using the include files in
2865 # INCLUDES, setting the cache variable VAR accordingly.
2866 ac_fn_c_check_header_compile ()
2867 {
2868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2870 $as_echo_n "checking for $2... " >&6; }
2871 if eval \${$3+:} false; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h.  */
2876 $4
2877 #include <$2>
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880   eval "$3=yes"
2881 else
2882   eval "$3=no"
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 fi
2886 eval ac_res=\$$3
2887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2888 $as_echo "$ac_res" >&6; }
2889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890 
2891 } # ac_fn_c_check_header_compile
2892 cat >config.log <<_ACEOF
2893 This file contains any messages produced by compilers while
2894 running configure, to aid debugging if configure makes a mistake.
2895 
2896 It was created by OpenJDK $as_me jdk9, which was
2897 generated by GNU Autoconf 2.69.  Invocation command line was
2898 
2899   $ $0 $@
2900 
2901 _ACEOF
2902 exec 5>>config.log
2903 {
2904 cat <<_ASUNAME
2905 ## --------- ##
2906 ## Platform. ##
2907 ## --------- ##
2908 
2909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2914 
2915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2916 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2917 
2918 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2919 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2921 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2922 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2923 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2924 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2925 
2926 _ASUNAME
2927 
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933     $as_echo "PATH: $as_dir"
2934   done
2935 IFS=$as_save_IFS
2936 
2937 } >&5
2938 
2939 cat >&5 <<_ACEOF
2940 
2941 
2942 ## ----------- ##
2943 ## Core tests. ##
2944 ## ----------- ##
2945 
2946 _ACEOF
2947 
2948 
2949 # Keep a trace of the command line.
2950 # Strip out --no-create and --no-recursion so they do not pile up.
2951 # Strip out --silent because we don't want to record it for future runs.
2952 # Also quote any args containing shell meta-characters.
2953 # Make two passes to allow for proper duplicate-argument suppression.
2954 ac_configure_args=
2955 ac_configure_args0=
2956 ac_configure_args1=
2957 ac_must_keep_next=false
2958 for ac_pass in 1 2
2959 do
2960   for ac_arg
2961   do
2962     case $ac_arg in
2963     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2964     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2965     | -silent | --silent | --silen | --sile | --sil)
2966       continue ;;
2967     *\'*)
2968       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2969     esac
2970     case $ac_pass in
2971     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2972     2)
2973       as_fn_append ac_configure_args1 " '$ac_arg'"
2974       if test $ac_must_keep_next = true; then
2975         ac_must_keep_next=false # Got value, back to normal.
2976       else
2977         case $ac_arg in
2978           *=* | --config-cache | -C | -disable-* | --disable-* \
2979           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2980           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2981           | -with-* | --with-* | -without-* | --without-* | --x)
2982             case "$ac_configure_args0 " in
2983               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2984             esac
2985             ;;
2986           -* ) ac_must_keep_next=true ;;
2987         esac
2988       fi
2989       as_fn_append ac_configure_args " '$ac_arg'"
2990       ;;
2991     esac
2992   done
2993 done
2994 { ac_configure_args0=; unset ac_configure_args0;}
2995 { ac_configure_args1=; unset ac_configure_args1;}
2996 
2997 # When interrupted or exit'd, cleanup temporary files, and complete
2998 # config.log.  We remove comments because anyway the quotes in there
2999 # would cause problems or look ugly.
3000 # WARNING: Use '\'' to represent an apostrophe within the trap.
3001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3002 trap 'exit_status=$?
3003   # Save into config.log some information that might help in debugging.
3004   {
3005     echo
3006 
3007     $as_echo "## ---------------- ##
3008 ## Cache variables. ##
3009 ## ---------------- ##"
3010     echo
3011     # The following way of writing the cache mishandles newlines in values,
3012 (
3013   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3014     eval ac_val=\$$ac_var
3015     case $ac_val in #(
3016     *${as_nl}*)
3017       case $ac_var in #(
3018       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3020       esac
3021       case $ac_var in #(
3022       _ | IFS | as_nl) ;; #(
3023       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3024       *) { eval $ac_var=; unset $ac_var;} ;;
3025       esac ;;
3026     esac
3027   done
3028   (set) 2>&1 |
3029     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3030     *${as_nl}ac_space=\ *)
3031       sed -n \
3032         "s/'\''/'\''\\\\'\'''\''/g;
3033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3034       ;; #(
3035     *)
3036       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3037       ;;
3038     esac |
3039     sort
3040 )
3041     echo
3042 
3043     $as_echo "## ----------------- ##
3044 ## Output variables. ##
3045 ## ----------------- ##"
3046     echo
3047     for ac_var in $ac_subst_vars
3048     do
3049       eval ac_val=\$$ac_var
3050       case $ac_val in
3051       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3052       esac
3053       $as_echo "$ac_var='\''$ac_val'\''"
3054     done | sort
3055     echo
3056 
3057     if test -n "$ac_subst_files"; then
3058       $as_echo "## ------------------- ##
3059 ## File substitutions. ##
3060 ## ------------------- ##"
3061       echo
3062       for ac_var in $ac_subst_files
3063       do
3064         eval ac_val=\$$ac_var
3065         case $ac_val in
3066         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3067         esac
3068         $as_echo "$ac_var='\''$ac_val'\''"
3069       done | sort
3070       echo
3071     fi
3072 
3073     if test -s confdefs.h; then
3074       $as_echo "## ----------- ##
3075 ## confdefs.h. ##
3076 ## ----------- ##"
3077       echo
3078       cat confdefs.h
3079       echo
3080     fi
3081     test "$ac_signal" != 0 &&
3082       $as_echo "$as_me: caught signal $ac_signal"
3083     $as_echo "$as_me: exit $exit_status"
3084   } >&5
3085   rm -f core *.core core.conftest.* &&
3086     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3087     exit $exit_status
3088 ' 0
3089 for ac_signal in 1 2 13 15; do
3090   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3091 done
3092 ac_signal=0
3093 
3094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3095 rm -f -r conftest* confdefs.h
3096 
3097 $as_echo "/* confdefs.h */" > confdefs.h
3098 
3099 # Predefined preprocessor variables.
3100 
3101 cat >>confdefs.h <<_ACEOF
3102 #define PACKAGE_NAME "$PACKAGE_NAME"
3103 _ACEOF
3104 
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3107 _ACEOF
3108 
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3111 _ACEOF
3112 
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_STRING "$PACKAGE_STRING"
3115 _ACEOF
3116 
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3119 _ACEOF
3120 
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_URL "$PACKAGE_URL"
3123 _ACEOF
3124 
3125 
3126 # Let the site file select an alternate cache file if it wants to.
3127 # Prefer an explicitly selected file to automatically selected ones.
3128 ac_site_file1=NONE
3129 ac_site_file2=NONE
3130 if test -n "$CONFIG_SITE"; then
3131   # We do not want a PATH search for config.site.
3132   case $CONFIG_SITE in #((
3133     -*)  ac_site_file1=./$CONFIG_SITE;;
3134     */*) ac_site_file1=$CONFIG_SITE;;
3135     *)   ac_site_file1=./$CONFIG_SITE;;
3136   esac
3137 elif test "x$prefix" != xNONE; then
3138   ac_site_file1=$prefix/share/config.site
3139   ac_site_file2=$prefix/etc/config.site
3140 else
3141   ac_site_file1=$ac_default_prefix/share/config.site
3142   ac_site_file2=$ac_default_prefix/etc/config.site
3143 fi
3144 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3145 do
3146   test "x$ac_site_file" = xNONE && continue
3147   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3148     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3149 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3150     sed 's/^/| /' "$ac_site_file" >&5
3151     . "$ac_site_file" \
3152       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error $? "failed to load site script $ac_site_file
3155 See \`config.log' for more details" "$LINENO" 5; }
3156   fi
3157 done
3158 
3159 if test -r "$cache_file"; then
3160   # Some versions of bash will fail to source /dev/null (special files
3161   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3162   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3163     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3164 $as_echo "$as_me: loading cache $cache_file" >&6;}
3165     case $cache_file in
3166       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3167       *)                      . "./$cache_file";;
3168     esac
3169   fi
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3172 $as_echo "$as_me: creating cache $cache_file" >&6;}
3173   >$cache_file
3174 fi
3175 
3176 # Check that the precious variables saved in the cache have kept the same
3177 # value.
3178 ac_cache_corrupted=false
3179 for ac_var in $ac_precious_vars; do
3180   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3181   eval ac_new_set=\$ac_env_${ac_var}_set
3182   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3183   eval ac_new_val=\$ac_env_${ac_var}_value
3184   case $ac_old_set,$ac_new_set in
3185     set,)
3186       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3188       ac_cache_corrupted=: ;;
3189     ,set)
3190       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3192       ac_cache_corrupted=: ;;
3193     ,);;
3194     *)
3195       if test "x$ac_old_val" != "x$ac_new_val"; then
3196         # differences in whitespace do not lead to failure.
3197         ac_old_val_w=`echo x $ac_old_val`
3198         ac_new_val_w=`echo x $ac_new_val`
3199         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3200           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3202           ac_cache_corrupted=:
3203         else
3204           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3206           eval $ac_var=\$ac_old_val
3207         fi
3208         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3209 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3210         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3211 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3212       fi;;
3213   esac
3214   # Pass precious variables to config.status.
3215   if test "$ac_new_set" = set; then
3216     case $ac_new_val in
3217     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3218     *) ac_arg=$ac_var=$ac_new_val ;;
3219     esac
3220     case " $ac_configure_args " in
3221       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3222       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3223     esac
3224   fi
3225 done
3226 if $ac_cache_corrupted; then
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3231   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3232 fi
3233 ## -------------------- ##
3234 ## Main body of script. ##
3235 ## -------------------- ##
3236 
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 
3243 
3244 
3245 ac_aux_dir=
3246 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3247   if test -f "$ac_dir/install-sh"; then
3248     ac_aux_dir=$ac_dir
3249     ac_install_sh="$ac_aux_dir/install-sh -c"
3250     break
3251   elif test -f "$ac_dir/install.sh"; then
3252     ac_aux_dir=$ac_dir
3253     ac_install_sh="$ac_aux_dir/install.sh -c"
3254     break
3255   elif test -f "$ac_dir/shtool"; then
3256     ac_aux_dir=$ac_dir
3257     ac_install_sh="$ac_aux_dir/shtool install -c"
3258     break
3259   fi
3260 done
3261 if test -z "$ac_aux_dir"; then
3262   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5
3263 fi
3264 
3265 # These three variables are undocumented and unsupported,
3266 # and are intended to be withdrawn in a future Autoconf release.
3267 # They can cause serious problems if a builder's source tree is in a directory
3268 # whose full name contains unusual characters.
3269 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3270 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3271 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3272 
3273 
3274 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3275 
3276 #
3277 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3278 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3279 #
3280 # This code is free software; you can redistribute it and/or modify it
3281 # under the terms of the GNU General Public License version 2 only, as
3282 # published by the Free Software Foundation.  Oracle designates this
3283 # particular file as subject to the "Classpath" exception as provided
3284 # by Oracle in the LICENSE file that accompanied this code.
3285 #
3286 # This code is distributed in the hope that it will be useful, but WITHOUT
3287 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3288 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3289 # version 2 for more details (a copy is included in the LICENSE file that
3290 # accompanied this code).
3291 #
3292 # You should have received a copy of the GNU General Public License version
3293 # 2 along with this work; if not, write to the Free Software Foundation,
3294 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3295 #
3296 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3297 # or visit www.oracle.com if you need additional information or have any
3298 # questions.
3299 #
3300 
3301 #
3302 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3303 #
3304 # This program is free software; you can redistribute it and/or modify
3305 # it under the terms of the GNU General Public License as published by
3306 # the Free Software Foundation; either version 2 of the License, or
3307 # (at your option) any later version.
3308 #
3309 # This program is distributed in the hope that it will be useful, but
3310 # WITHOUT ANY WARRANTY; without even the implied warranty of
3311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3312 # General Public License for more details.
3313 #
3314 # You should have received a copy of the GNU General Public License
3315 # along with this program; if not, write to the Free Software
3316 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3317 #
3318 # As a special exception to the GNU General Public License, if you
3319 # distribute this file as part of a program that contains a
3320 # configuration script generated by Autoconf, you may include it under
3321 # the same distribution terms that you use for the rest of that program.
3322 
3323 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3324 # ----------------------------------
3325 # PKG_PROG_PKG_CONFIG
3326 
3327 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3328 #
3329 # Check to see whether a particular set of modules exists.  Similar
3330 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3331 #
3332 #
3333 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3334 # this or PKG_CHECK_MODULES is called, or make sure to call
3335 # PKG_CHECK_EXISTS manually
3336 # --------------------------------------------------------------
3337 
3338 
3339 
3340 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3341 # ---------------------------------------------
3342 # _PKG_CONFIG
3343 
3344 # _PKG_SHORT_ERRORS_SUPPORTED
3345 # -----------------------------
3346 # _PKG_SHORT_ERRORS_SUPPORTED
3347 
3348 
3349 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3350 # [ACTION-IF-NOT-FOUND])
3351 #
3352 #
3353 # Note that if there is a possibility the first call to
3354 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3355 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3356 #
3357 #
3358 # --------------------------------------------------------------
3359 # PKG_CHECK_MODULES
3360 
3361 
3362 # Include these first...
3363 #
3364 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3365 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3366 #
3367 # This code is free software; you can redistribute it and/or modify it
3368 # under the terms of the GNU General Public License version 2 only, as
3369 # published by the Free Software Foundation.  Oracle designates this
3370 # particular file as subject to the "Classpath" exception as provided
3371 # by Oracle in the LICENSE file that accompanied this code.
3372 #
3373 # This code is distributed in the hope that it will be useful, but WITHOUT
3374 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3375 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3376 # version 2 for more details (a copy is included in the LICENSE file that
3377 # accompanied this code).
3378 #
3379 # You should have received a copy of the GNU General Public License version
3380 # 2 along with this work; if not, write to the Free Software Foundation,
3381 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3382 #
3383 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3384 # or visit www.oracle.com if you need additional information or have any
3385 # questions.
3386 #
3387 
3388 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3389 # If so, then append $1 to $2 \
3390 # Also set JVM_ARG_OK to true/false depending on outcome.
3391 
3392 
3393 # Appends a string to a path variable, only adding the : when needed.
3394 
3395 
3396 # Prepends a string to a path variable, only adding the : when needed.
3397 
3398 
3399 # This will make sure the given variable points to a full and proper
3400 # path. This means:
3401 # 1) There will be no spaces in the path. On posix platforms,
3402 #    spaces in the path will result in an error. On Windows,
3403 #    the path will be rewritten using short-style to be space-free.
3404 # 2) The path will be absolute, and it will be in unix-style (on
3405 #     cygwin).
3406 # $1: The name of the variable to fix
3407 
3408 
3409 # This will make sure the given variable points to a executable
3410 # with a full and proper path. This means:
3411 # 1) There will be no spaces in the path. On posix platforms,
3412 #    spaces in the path will result in an error. On Windows,
3413 #    the path will be rewritten using short-style to be space-free.
3414 # 2) The path will be absolute, and it will be in unix-style (on
3415 #     cygwin).
3416 # Any arguments given to the executable is preserved.
3417 # If the input variable does not have a directory specification, then
3418 # it need to be in the PATH.
3419 # $1: The name of the variable to fix
3420 
3421 
3422 
3423 
3424 # Register a --with argument but mark it as deprecated
3425 # $1: The name of the with argument to deprecate, not including --with-
3426 
3427 
3428 # Register a --enable argument but mark it as deprecated
3429 # $1: The name of the with argument to deprecate, not including --enable-
3430 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3431 
3432 
3433 
3434 
3435 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3436 # $1: variable to check
3437 
3438 
3439 # Check that there are no unprocessed overridden variables left.
3440 # If so, they are an incorrect argument and we will exit with an error.
3441 
3442 
3443 # Setup a tool for the given variable. If correctly specified by the user,
3444 # use that value, otherwise search for the tool using the supplied code snippet.
3445 # $1: variable to set
3446 # $2: code snippet to call to look for the tool
3447 
3448 
3449 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3450 # $1: variable to set
3451 # $2: executable name (or list of names) to look for
3452 
3453 
3454 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3455 # $1: variable to set
3456 # $2: executable name (or list of names) to look for
3457 
3458 
3459 # Like BASIC_PATH_PROGS but fails if no tool was found.
3460 # $1: variable to set
3461 # $2: executable name (or list of names) to look for
3462 
3463 
3464 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3465 # $1: variable to set
3466 # $2: autoconf macro to call to look for the special tool
3467 
3468 
3469 # Setup the most fundamental tools that relies on not much else to set up,
3470 # but is used by much of the early bootstrap code.
3471 
3472 
3473 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3474 
3475 
3476 
3477 
3478 
3479 
3480 
3481 
3482 
3483 #%%% Simple tools %%%
3484 
3485 # Check if we have found a usable version of make
3486 # $1: the path to a potential make binary (or empty)
3487 # $2: the description on how we found this
3488 
3489 
3490 # Goes looking for a usable version of GNU make.
3491 
3492 
3493 
3494 
3495 
3496 
3497 # Check if build directory is on local disk. If not possible to determine,
3498 # we prefer to claim it's local.
3499 # Argument 1: directory to test
3500 # Argument 2: what to do if it is on local disk
3501 # Argument 3: what to do otherwise (remote disk or failure)
3502 
3503 
3504 # Check that source files have basic read permissions set. This might
3505 # not be the case in cygwin in certain conditions.
3506 
3507 
3508 
3509 
3510 #
3511 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3512 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3513 #
3514 # This code is free software; you can redistribute it and/or modify it
3515 # under the terms of the GNU General Public License version 2 only, as
3516 # published by the Free Software Foundation.  Oracle designates this
3517 # particular file as subject to the "Classpath" exception as provided
3518 # by Oracle in the LICENSE file that accompanied this code.
3519 #
3520 # This code is distributed in the hope that it will be useful, but WITHOUT
3521 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3522 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3523 # version 2 for more details (a copy is included in the LICENSE file that
3524 # accompanied this code).
3525 #
3526 # You should have received a copy of the GNU General Public License version
3527 # 2 along with this work; if not, write to the Free Software Foundation,
3528 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3529 #
3530 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3531 # or visit www.oracle.com if you need additional information or have any
3532 # questions.
3533 #
3534 
3535 
3536 
3537 
3538 
3539 # Helper function which possibly converts a path using DOS-style short mode.
3540 # If so, the updated path is stored in $new_path.
3541 # $1: The path to check
3542 
3543 
3544 # Helper function which possibly converts a path using DOS-style short mode.
3545 # If so, the updated path is stored in $new_path.
3546 # $1: The path to check
3547 
3548 
3549 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3550 # and could probably be heavily simplified. However, all changes in this
3551 # area tend to need lot of testing in different scenarios, and in lack of
3552 # proper unit testing, cleaning this up has not been deemed worth the effort
3553 # at the moment.
3554 
3555 
3556 
3557 
3558 
3559 
3560 
3561 
3562 
3563 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3564 
3565 
3566 
3567 
3568 #
3569 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3570 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3571 #
3572 # This code is free software; you can redistribute it and/or modify it
3573 # under the terms of the GNU General Public License version 2 only, as
3574 # published by the Free Software Foundation.  Oracle designates this
3575 # particular file as subject to the "Classpath" exception as provided
3576 # by Oracle in the LICENSE file that accompanied this code.
3577 #
3578 # This code is distributed in the hope that it will be useful, but WITHOUT
3579 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3580 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3581 # version 2 for more details (a copy is included in the LICENSE file that
3582 # accompanied this code).
3583 #
3584 # You should have received a copy of the GNU General Public License version
3585 # 2 along with this work; if not, write to the Free Software Foundation,
3586 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3587 #
3588 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3589 # or visit www.oracle.com if you need additional information or have any
3590 # questions.
3591 #
3592 
3593 
3594 
3595 
3596 
3597 
3598 
3599 
3600 
3601 
3602 
3603 # ... then the rest
3604 #
3605 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3606 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3607 #
3608 # This code is free software; you can redistribute it and/or modify it
3609 # under the terms of the GNU General Public License version 2 only, as
3610 # published by the Free Software Foundation.  Oracle designates this
3611 # particular file as subject to the "Classpath" exception as provided
3612 # by Oracle in the LICENSE file that accompanied this code.
3613 #
3614 # This code is distributed in the hope that it will be useful, but WITHOUT
3615 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3616 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3617 # version 2 for more details (a copy is included in the LICENSE file that
3618 # accompanied this code).
3619 #
3620 # You should have received a copy of the GNU General Public License version
3621 # 2 along with this work; if not, write to the Free Software Foundation,
3622 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3623 #
3624 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3625 # or visit www.oracle.com if you need additional information or have any
3626 # questions.
3627 #
3628 
3629 ########################################################################
3630 # This file handles detection of the Boot JDK. The Boot JDK detection
3631 # process has been developed as a response to solve a complex real-world
3632 # problem. Initially, it was simple, but it has grown as platform after
3633 # platform, idiosyncracy after idiosyncracy has been supported.
3634 #
3635 # The basic idea is this:
3636 # 1) You need an acceptable *) JDK to use as a Boot JDK
3637 # 2) There are several ways to locate a JDK, that are mostly platform
3638 #    dependent **)
3639 # 3) You can have multiple JDKs installed
3640 # 4) If possible, configure should try to dig out an acceptable JDK
3641 #    automatically, without having to resort to command-line options
3642 #
3643 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3644 #     javac) and not a JRE, etc.
3645 #
3646 # **) On Windows we typically use a well-known path.
3647 #     On MacOSX we typically use the tool java_home.
3648 #     On Linux we typically find javac in the $PATH, and then follow a
3649 #     chain of symlinks that often ends up in a real JDK.
3650 #
3651 # This leads to the code where we check in different ways to locate a
3652 # JDK, and if one is found, check if it is acceptable. If not, we print
3653 # our reasons for rejecting it (useful when debugging non-working
3654 # configure situations) and continue checking the next one.
3655 ########################################################################
3656 
3657 # Execute the check given as argument, and verify the result
3658 # If the Boot JDK was previously found, do nothing
3659 # $1 A command line (typically autoconf macro) to execute
3660 
3661 
3662 # Test: Is bootjdk explicitely set by command line arguments?
3663 
3664 
3665 # Test: Is bootjdk available from builddeps?
3666 
3667 
3668 # Test: Is $JAVA_HOME set?
3669 
3670 
3671 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3672 
3673 
3674 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3675 # $1: Argument to the java_home binary (optional)
3676 
3677 
3678 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3679 
3680 
3681 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3682 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3683 # $1 = Path to directory containing jdk installations.
3684 # $2 = String to append to the found JDK directory to get the proper JDK home
3685 
3686 
3687 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3688 # environmental variable as base for where to look.
3689 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3690 
3691 
3692 # Test: Is there a JDK installed in default, well-known locations?
3693 
3694 
3695 # Check that a command-line tool in the Boot JDK is correct
3696 # $1 = name of variable to assign
3697 # $2 = name of binary
3698 
3699 
3700 ###############################################################################
3701 #
3702 # We need a Boot JDK to bootstrap the build.
3703 #
3704 
3705 
3706 
3707 
3708 
3709 #
3710 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3711 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3712 #
3713 # This code is free software; you can redistribute it and/or modify it
3714 # under the terms of the GNU General Public License version 2 only, as
3715 # published by the Free Software Foundation.  Oracle designates this
3716 # particular file as subject to the "Classpath" exception as provided
3717 # by Oracle in the LICENSE file that accompanied this code.
3718 #
3719 # This code is distributed in the hope that it will be useful, but WITHOUT
3720 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3721 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3722 # version 2 for more details (a copy is included in the LICENSE file that
3723 # accompanied this code).
3724 #
3725 # You should have received a copy of the GNU General Public License version
3726 # 2 along with this work; if not, write to the Free Software Foundation,
3727 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3728 #
3729 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3730 # or visit www.oracle.com if you need additional information or have any
3731 # questions.
3732 #
3733 
3734 
3735 
3736 
3737 
3738 
3739 
3740 
3741 
3742 
3743 
3744 
3745 
3746 
3747 
3748 
3749 
3750 
3751 
3752 
3753 #
3754 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3755 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3756 #
3757 # This code is free software; you can redistribute it and/or modify it
3758 # under the terms of the GNU General Public License version 2 only, as
3759 # published by the Free Software Foundation.  Oracle designates this
3760 # particular file as subject to the "Classpath" exception as provided
3761 # by Oracle in the LICENSE file that accompanied this code.
3762 #
3763 # This code is distributed in the hope that it will be useful, but WITHOUT
3764 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3765 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3766 # version 2 for more details (a copy is included in the LICENSE file that
3767 # accompanied this code).
3768 #
3769 # You should have received a copy of the GNU General Public License version
3770 # 2 along with this work; if not, write to the Free Software Foundation,
3771 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3772 #
3773 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3774 # or visit www.oracle.com if you need additional information or have any
3775 # questions.
3776 #
3777 
3778 
3779 
3780 
3781 
3782 # Documentation on common flags used for solstudio in HIGHEST.
3783 #
3784 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3785 #          done with care, there are some assumptions below that need to
3786 #          be understood about the use of pointers, and IEEE behavior.
3787 #
3788 # -fns: Use non-standard floating point mode (not IEEE 754)
3789 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3790 # -fsingle: Use single precision floating point with 'float'
3791 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3792 #   (Source with excessing pointer casting and data access with mixed
3793 #    pointer types are not recommended)
3794 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3795 #   (If you expect perfect errno behavior, do not use this)
3796 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3797 # -xrestrict: Pointer parameters to functions do not overlap
3798 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3799 #    If you pass in multiple pointers to the same data, do not use this)
3800 # -xlibmil: Inline some library routines
3801 #   (If you expect perfect errno behavior, do not use this)
3802 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3803 #   (If you expect perfect errno behavior, do not use this)
3804 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3805 
3806     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3807     # Bug?
3808     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3809     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3810     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3811     #fi
3812 
3813 
3814 
3815 
3816 
3817 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3818 #                                   [RUN-IF-FALSE])
3819 # ------------------------------------------------------------
3820 # Check that the c and c++ compilers support an argument
3821 
3822 
3823 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3824 #                                    [RUN-IF-FALSE])
3825 # ------------------------------------------------------------
3826 # Check that the linker support an argument
3827 
3828 
3829 
3830 
3831 #
3832 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3833 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3834 #
3835 # This code is free software; you can redistribute it and/or modify it
3836 # under the terms of the GNU General Public License version 2 only, as
3837 # published by the Free Software Foundation.  Oracle designates this
3838 # particular file as subject to the "Classpath" exception as provided
3839 # by Oracle in the LICENSE file that accompanied this code.
3840 #
3841 # This code is distributed in the hope that it will be useful, but WITHOUT
3842 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3843 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3844 # version 2 for more details (a copy is included in the LICENSE file that
3845 # accompanied this code).
3846 #
3847 # You should have received a copy of the GNU General Public License version
3848 # 2 along with this work; if not, write to the Free Software Foundation,
3849 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3850 #
3851 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3852 # or visit www.oracle.com if you need additional information or have any
3853 # questions.
3854 #
3855 
3856 
3857 
3858 
3859 
3860 cygwin_help() {
3861   case $1 in
3862     unzip)
3863       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3864       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3865       ;;
3866     zip)
3867       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3868       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3869       ;;
3870     make)
3871       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3872       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3873       ;;
3874     freetype)
3875       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3876         HELP_MSG="To install freetype, run:
3877 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3878 chmod +x /tmp/freetype-setup.exe
3879 /tmp/freetype-setup.exe
3880 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3881 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3882       else
3883         HELP_MSG="You need to build a 64-bit version of freetype.
3884 This is not readily available.
3885 You can find source code and build instructions on
3886 http://www.freetype.org/
3887 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3888       fi
3889       ;;
3890   esac
3891 }
3892 
3893 msys_help() {
3894   PKGHANDLER_COMMAND=""
3895 }
3896 
3897 apt_help() {
3898   case $1 in
3899     devkit)
3900       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3901     openjdk)
3902       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3903     alsa)
3904       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3905     cups)
3906       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3907     freetype)
3908       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3909     pulse)
3910       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3911     x11)
3912       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3913     ccache)
3914       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3915   esac
3916 }
3917 
3918 yum_help() {
3919   case $1 in
3920     devkit)
3921       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3922     openjdk)
3923       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3924     alsa)
3925       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3926     cups)
3927       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3928     freetype)
3929       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3930     pulse)
3931       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3932     x11)
3933       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3934     ccache)
3935       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3936   esac
3937 }
3938 
3939 port_help() {
3940   PKGHANDLER_COMMAND=""
3941 }
3942 
3943 pkgutil_help() {
3944   PKGHANDLER_COMMAND=""
3945 }
3946 
3947 pkgadd_help() {
3948   PKGHANDLER_COMMAND=""
3949 }
3950 
3951 # This function will check if we're called from the "configure" wrapper while
3952 # printing --help. If so, we will print out additional information that can
3953 # only be extracted within the autoconf script, and then exit. This must be
3954 # called at the very beginning in configure.ac.
3955 
3956 
3957 
3958 
3959 #
3960 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3961 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3962 #
3963 # This code is free software; you can redistribute it and/or modify it
3964 # under the terms of the GNU General Public License version 2 only, as
3965 # published by the Free Software Foundation.  Oracle designates this
3966 # particular file as subject to the "Classpath" exception as provided
3967 # by Oracle in the LICENSE file that accompanied this code.
3968 #
3969 # This code is distributed in the hope that it will be useful, but WITHOUT
3970 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3971 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3972 # version 2 for more details (a copy is included in the LICENSE file that
3973 # accompanied this code).
3974 #
3975 # You should have received a copy of the GNU General Public License version
3976 # 2 along with this work; if not, write to the Free Software Foundation,
3977 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3978 #
3979 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3980 # or visit www.oracle.com if you need additional information or have any
3981 # questions.
3982 #
3983 
3984 
3985 
3986 
3987 
3988 
3989 
3990 
3991 
3992 
3993 ###############################################################################
3994 #
3995 # Should we build only OpenJDK even if closed sources are present?
3996 #
3997 
3998 
3999 
4000 
4001 ###############################################################################
4002 #
4003 # Setup version numbers
4004 #
4005 
4006 
4007 
4008 
4009 
4010 
4011 #
4012 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4013 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4014 #
4015 # This code is free software; you can redistribute it and/or modify it
4016 # under the terms of the GNU General Public License version 2 only, as
4017 # published by the Free Software Foundation.  Oracle designates this
4018 # particular file as subject to the "Classpath" exception as provided
4019 # by Oracle in the LICENSE file that accompanied this code.
4020 #
4021 # This code is distributed in the hope that it will be useful, but WITHOUT
4022 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4023 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4024 # version 2 for more details (a copy is included in the LICENSE file that
4025 # accompanied this code).
4026 #
4027 # You should have received a copy of the GNU General Public License version
4028 # 2 along with this work; if not, write to the Free Software Foundation,
4029 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4030 #
4031 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4032 # or visit www.oracle.com if you need additional information or have any
4033 # questions.
4034 #
4035 
4036 
4037 
4038 
4039 
4040 
4041 
4042 
4043 
4044 
4045 
4046 
4047 
4048 
4049 
4050 
4051 
4052 
4053 
4054 #
4055 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4056 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4057 #
4058 # This code is free software; you can redistribute it and/or modify it
4059 # under the terms of the GNU General Public License version 2 only, as
4060 # published by the Free Software Foundation.  Oracle designates this
4061 # particular file as subject to the "Classpath" exception as provided
4062 # by Oracle in the LICENSE file that accompanied this code.
4063 #
4064 # This code is distributed in the hope that it will be useful, but WITHOUT
4065 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4066 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4067 # version 2 for more details (a copy is included in the LICENSE file that
4068 # accompanied this code).
4069 #
4070 # You should have received a copy of the GNU General Public License version
4071 # 2 along with this work; if not, write to the Free Software Foundation,
4072 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4073 #
4074 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4075 # or visit www.oracle.com if you need additional information or have any
4076 # questions.
4077 #
4078 
4079 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4080 # Converts autoconf style CPU name to OpenJDK style, into
4081 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4082 
4083 
4084 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4085 # Converts autoconf style OS name to OpenJDK style, into
4086 # VAR_OS and VAR_OS_API.
4087 
4088 
4089 # Expects $host_os $host_cpu $build_os and $build_cpu
4090 # and $with_target_bits to have been setup!
4091 #
4092 # Translate the standard triplet(quadruplet) definition
4093 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4094 # OPENJDK_BUILD_OS, etc.
4095 
4096 
4097 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4098 # accordingly. Must be done after setting up build and target system, but before
4099 # doing anything else with these values.
4100 
4101 
4102 # Setup the legacy variables, for controlling the old makefiles.
4103 #
4104 
4105 
4106 
4107 
4108 #%%% Build and target systems %%%
4109 
4110 
4111 
4112 
4113 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4114 # Add -mX to various FLAGS variables.
4115 
4116 
4117 
4118 
4119 
4120 
4121 #
4122 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4123 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4124 #
4125 # This code is free software; you can redistribute it and/or modify it
4126 # under the terms of the GNU General Public License version 2 only, as
4127 # published by the Free Software Foundation.  Oracle designates this
4128 # particular file as subject to the "Classpath" exception as provided
4129 # by Oracle in the LICENSE file that accompanied this code.
4130 #
4131 # This code is distributed in the hope that it will be useful, but WITHOUT
4132 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4133 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4134 # version 2 for more details (a copy is included in the LICENSE file that
4135 # accompanied this code).
4136 #
4137 # You should have received a copy of the GNU General Public License version
4138 # 2 along with this work; if not, write to the Free Software Foundation,
4139 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4140 #
4141 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4142 # or visit www.oracle.com if you need additional information or have any
4143 # questions.
4144 #
4145 
4146 
4147 
4148 
4149 
4150 
4151 
4152 
4153 #
4154 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4155 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4156 #
4157 # This code is free software; you can redistribute it and/or modify it
4158 # under the terms of the GNU General Public License version 2 only, as
4159 # published by the Free Software Foundation.  Oracle designates this
4160 # particular file as subject to the "Classpath" exception as provided
4161 # by Oracle in the LICENSE file that accompanied this code.
4162 #
4163 # This code is distributed in the hope that it will be useful, but WITHOUT
4164 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4165 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4166 # version 2 for more details (a copy is included in the LICENSE file that
4167 # accompanied this code).
4168 #
4169 # You should have received a copy of the GNU General Public License version
4170 # 2 along with this work; if not, write to the Free Software Foundation,
4171 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4172 #
4173 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4174 # or visit www.oracle.com if you need additional information or have any
4175 # questions.
4176 #
4177 
4178 ########################################################################
4179 # This file is responsible for detecting, verifying and setting up the
4180 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4181 # proper paths to the binaries, but it will not setup any flags.
4182 #
4183 # The binaries used is determined by the toolchain type, which is the family of
4184 # compilers and related tools that are used.
4185 ########################################################################
4186 
4187 
4188 # All valid toolchains, regardless of platform (used by help.m4)
4189 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4190 
4191 # These toolchains are valid on different platforms
4192 VALID_TOOLCHAINS_linux="gcc clang"
4193 VALID_TOOLCHAINS_solaris="solstudio"
4194 VALID_TOOLCHAINS_macosx="gcc clang"
4195 VALID_TOOLCHAINS_aix="xlc"
4196 VALID_TOOLCHAINS_windows="microsoft"
4197 
4198 # Toolchain descriptions
4199 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4200 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4201 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4202 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4203 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4204 
4205 # Setup a number of variables describing how native output files are
4206 # named on this platform/toolchain.
4207 
4208 
4209 # Determine which toolchain type to use, and make sure it is valid for this
4210 # platform. Setup various information about the selected toolchain.
4211 
4212 
4213 # Before we start detecting the toolchain executables, we might need some
4214 # special setup, e.g. additional paths etc.
4215 
4216 
4217 # Restore path, etc
4218 
4219 
4220 # Check if a compiler is of the toolchain type we expect, and save the version
4221 # information from it. If the compiler does not match the expected type,
4222 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4223 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4224 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4225 #
4226 # $1 = compiler to test (CC or CXX)
4227 # $2 = human readable name of compiler (C or C++)
4228 
4229 
4230 # Try to locate the given C or C++ compiler in the path, or otherwise.
4231 #
4232 # $1 = compiler to test (CC or CXX)
4233 # $2 = human readable name of compiler (C or C++)
4234 # $3 = list of compiler names to search for
4235 
4236 
4237 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4238 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4239 # archiver (AR). Verify that the compilers are correct according to the
4240 # toolchain type.
4241 
4242 
4243 # Setup additional tools that is considered a part of the toolchain, but not the
4244 # core part. Many of these are highly platform-specific and do not exist,
4245 # and/or are not needed on all platforms.
4246 
4247 
4248 # Setup the build tools (i.e, the compiler and linker used to build programs
4249 # that should be run on the build platform, not the target platform, as a build
4250 # helper). Since the non-cross-compile case uses the normal, target compilers
4251 # for this, we can only do this after these have been setup.
4252 
4253 
4254 # Setup legacy variables that are still needed as alternative ways to refer to
4255 # parts of the toolchain.
4256 
4257 
4258 # Do some additional checks on the detected tools.
4259 
4260 
4261 # Setup the JTReg Regression Test Harness.
4262 
4263 
4264 #
4265 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4266 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4267 #
4268 # This code is free software; you can redistribute it and/or modify it
4269 # under the terms of the GNU General Public License version 2 only, as
4270 # published by the Free Software Foundation.  Oracle designates this
4271 # particular file as subject to the "Classpath" exception as provided
4272 # by Oracle in the LICENSE file that accompanied this code.
4273 #
4274 # This code is distributed in the hope that it will be useful, but WITHOUT
4275 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4276 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4277 # version 2 for more details (a copy is included in the LICENSE file that
4278 # accompanied this code).
4279 #
4280 # You should have received a copy of the GNU General Public License version
4281 # 2 along with this work; if not, write to the Free Software Foundation,
4282 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4283 #
4284 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4285 # or visit www.oracle.com if you need additional information or have any
4286 # questions.
4287 #
4288 
4289 
4290 
4291 
4292 
4293 
4294 
4295 # Check if the VS env variables were setup prior to running configure.
4296 # If not, then find vcvarsall.bat and run it automatically, and integrate
4297 # the set env variables into the spec file.
4298 
4299 
4300 
4301 
4302 
4303 
4304 
4305 
4306 
4307 
4308 # This line needs to be here, verbatim, after all includes and the dummy hook
4309 # definitions. It is replaced with custom functionality when building
4310 # custom sources.
4311 #CUSTOM_AUTOCONF_INCLUDE
4312 
4313 # Do not change or remove the following line, it is needed for consistency checks:
4314 DATE_WHEN_GENERATED=1403110135
4315 
4316 ###############################################################################
4317 #
4318 # Initialization / Boot-strapping
4319 #
4320 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4321 # thus it jumps back and forth, each time gaining something needed later on.
4322 #
4323 ###############################################################################
4324 
4325 # If we are requested to print additional help, do that and then exit.
4326 # This must be the very first call.
4327 
4328   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4329     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4330     $PRINTF "Which are valid to use depends on the build platform.\n"
4331     for toolchain in $VALID_TOOLCHAINS_all; do
4332       # Use indirect variable referencing
4333       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4334       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4335       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4336     done
4337 
4338     # And now exit directly
4339     exit 0
4340   fi
4341 
4342 
4343 # Basic initialization that must happen first of all in the normal process.
4344 
4345   # Save the original command line. This is passed to us by the wrapper configure script.
4346 
4347   DATE_WHEN_CONFIGURED=`LANG=C date`
4348 
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4350 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4352 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4353 
4354 
4355   # Start with tools that do not need have cross compilation support
4356   # and can be expected to be found in the default PATH. These tools are
4357   # used by configure. Nor are these tools expected to be found in the
4358   # devkit from the builddeps server either, since they are
4359   # needed to download the devkit.
4360 
4361   # First are all the simple required tools.
4362 
4363 
4364 
4365   # Publish this variable in the help.
4366 
4367 
4368   if test "x$BASENAME" = x; then
4369     # The variable is not set by user, try to locate tool using the code snippet
4370     for ac_prog in basename
4371 do
4372   # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if ${ac_cv_path_BASENAME+:} false; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379   case $BASENAME in
4380   [\\/]* | ?:[\\/]*)
4381   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4382   ;;
4383   *)
4384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389     for ac_exec_ext in '' $ac_executable_extensions; do
4390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396   done
4397 IFS=$as_save_IFS
4398 
4399   ;;
4400 esac
4401 fi
4402 BASENAME=$ac_cv_path_BASENAME
4403 if test -n "$BASENAME"; then
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4405 $as_echo "$BASENAME" >&6; }
4406 else
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4409 fi
4410 
4411 
4412   test -n "$BASENAME" && break
4413 done
4414 
4415   else
4416     # The variable is set, but is it from the command line or the environment?
4417 
4418     # Try to remove the string !BASENAME! from our list.
4419     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4420     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4421       # If it failed, the variable was not from the command line. Ignore it,
4422       # but warn the user (except for BASH, which is always set by the calling BASH).
4423       if test "xBASENAME" != xBASH; then
4424         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4425 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4426       fi
4427       # Try to locate tool using the code snippet
4428       for ac_prog in basename
4429 do
4430   # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy $ac_prog; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_path_BASENAME+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   case $BASENAME in
4438   [\\/]* | ?:[\\/]*)
4439   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4440   ;;
4441   *)
4442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447     for ac_exec_ext in '' $ac_executable_extensions; do
4448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454   done
4455 IFS=$as_save_IFS
4456 
4457   ;;
4458 esac
4459 fi
4460 BASENAME=$ac_cv_path_BASENAME
4461 if test -n "$BASENAME"; then
4462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4463 $as_echo "$BASENAME" >&6; }
4464 else
4465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468 
4469 
4470   test -n "$BASENAME" && break
4471 done
4472 
4473     else
4474       # If it succeeded, then it was overridden by the user. We will use it
4475       # for the tool.
4476 
4477       # First remove it from the list of overridden variables, so we can test
4478       # for unknown variables in the end.
4479       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4480 
4481       # Check if the provided tool contains a complete path.
4482       tool_specified="$BASENAME"
4483       tool_basename="${tool_specified##*/}"
4484       if test "x$tool_basename" = "x$tool_specified"; then
4485         # A command without a complete path is provided, search $PATH.
4486         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4487 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4488         # Extract the first word of "$tool_basename", so it can be a program name with args.
4489 set dummy $tool_basename; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_path_BASENAME+:} false; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   case $BASENAME in
4496   [\\/]* | ?:[\\/]*)
4497   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4498   ;;
4499   *)
4500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505     for ac_exec_ext in '' $ac_executable_extensions; do
4506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512   done
4513 IFS=$as_save_IFS
4514 
4515   ;;
4516 esac
4517 fi
4518 BASENAME=$ac_cv_path_BASENAME
4519 if test -n "$BASENAME"; then
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4521 $as_echo "$BASENAME" >&6; }
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526 
4527 
4528         if test "x$BASENAME" = x; then
4529           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4530         fi
4531       else
4532         # Otherwise we believe it is a complete path. Use it as it is.
4533         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4534 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4536 $as_echo_n "checking for BASENAME... " >&6; }
4537         if test ! -x "$tool_specified"; then
4538           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4539 $as_echo "not found" >&6; }
4540           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4541         fi
4542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4543 $as_echo "$tool_specified" >&6; }
4544       fi
4545     fi
4546   fi
4547 
4548 
4549 
4550   if test "x$BASENAME" = x; then
4551     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4552   fi
4553 
4554 
4555 
4556 
4557 
4558   # Publish this variable in the help.
4559 
4560 
4561   if test "x$BASH" = x; then
4562     # The variable is not set by user, try to locate tool using the code snippet
4563     for ac_prog in bash
4564 do
4565   # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_path_BASH+:} false; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   case $BASH in
4573   [\\/]* | ?:[\\/]*)
4574   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4575   ;;
4576   *)
4577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589   done
4590 IFS=$as_save_IFS
4591 
4592   ;;
4593 esac
4594 fi
4595 BASH=$ac_cv_path_BASH
4596 if test -n "$BASH"; then
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4598 $as_echo "$BASH" >&6; }
4599 else
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603 
4604 
4605   test -n "$BASH" && break
4606 done
4607 
4608   else
4609     # The variable is set, but is it from the command line or the environment?
4610 
4611     # Try to remove the string !BASH! from our list.
4612     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4613     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4614       # If it failed, the variable was not from the command line. Ignore it,
4615       # but warn the user (except for BASH, which is always set by the calling BASH).
4616       if test "xBASH" != xBASH; then
4617         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4618 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4619       fi
4620       # Try to locate tool using the code snippet
4621       for ac_prog in bash
4622 do
4623   # Extract the first word of "$ac_prog", so it can be a program name with args.
4624 set dummy $ac_prog; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if ${ac_cv_path_BASH+:} false; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   case $BASH in
4631   [\\/]* | ?:[\\/]*)
4632   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4633   ;;
4634   *)
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647   done
4648 IFS=$as_save_IFS
4649 
4650   ;;
4651 esac
4652 fi
4653 BASH=$ac_cv_path_BASH
4654 if test -n "$BASH"; then
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4656 $as_echo "$BASH" >&6; }
4657 else
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659 $as_echo "no" >&6; }
4660 fi
4661 
4662 
4663   test -n "$BASH" && break
4664 done
4665 
4666     else
4667       # If it succeeded, then it was overridden by the user. We will use it
4668       # for the tool.
4669 
4670       # First remove it from the list of overridden variables, so we can test
4671       # for unknown variables in the end.
4672       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4673 
4674       # Check if the provided tool contains a complete path.
4675       tool_specified="$BASH"
4676       tool_basename="${tool_specified##*/}"
4677       if test "x$tool_basename" = "x$tool_specified"; then
4678         # A command without a complete path is provided, search $PATH.
4679         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4680 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4681         # Extract the first word of "$tool_basename", so it can be a program name with args.
4682 set dummy $tool_basename; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if ${ac_cv_path_BASH+:} false; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   case $BASH in
4689   [\\/]* | ?:[\\/]*)
4690   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4691   ;;
4692   *)
4693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707 
4708   ;;
4709 esac
4710 fi
4711 BASH=$ac_cv_path_BASH
4712 if test -n "$BASH"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4714 $as_echo "$BASH" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719 
4720 
4721         if test "x$BASH" = x; then
4722           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4723         fi
4724       else
4725         # Otherwise we believe it is a complete path. Use it as it is.
4726         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4727 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4729 $as_echo_n "checking for BASH... " >&6; }
4730         if test ! -x "$tool_specified"; then
4731           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4732 $as_echo "not found" >&6; }
4733           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4734         fi
4735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4736 $as_echo "$tool_specified" >&6; }
4737       fi
4738     fi
4739   fi
4740 
4741 
4742 
4743   if test "x$BASH" = x; then
4744     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4745   fi
4746 
4747 
4748 
4749 
4750 
4751   # Publish this variable in the help.
4752 
4753 
4754   if test "x$CAT" = x; then
4755     # The variable is not set by user, try to locate tool using the code snippet
4756     for ac_prog in cat
4757 do
4758   # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_path_CAT+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   case $CAT in
4766   [\\/]* | ?:[\\/]*)
4767   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4768   ;;
4769   *)
4770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_exec_ext in '' $ac_executable_extensions; do
4776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782   done
4783 IFS=$as_save_IFS
4784 
4785   ;;
4786 esac
4787 fi
4788 CAT=$ac_cv_path_CAT
4789 if test -n "$CAT"; then
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4791 $as_echo "$CAT" >&6; }
4792 else
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796 
4797 
4798   test -n "$CAT" && break
4799 done
4800 
4801   else
4802     # The variable is set, but is it from the command line or the environment?
4803 
4804     # Try to remove the string !CAT! from our list.
4805     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4806     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4807       # If it failed, the variable was not from the command line. Ignore it,
4808       # but warn the user (except for BASH, which is always set by the calling BASH).
4809       if test "xCAT" != xBASH; then
4810         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4811 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4812       fi
4813       # Try to locate tool using the code snippet
4814       for ac_prog in cat
4815 do
4816   # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_path_CAT+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   case $CAT in
4824   [\\/]* | ?:[\\/]*)
4825   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4826   ;;
4827   *)
4828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840   done
4841 IFS=$as_save_IFS
4842 
4843   ;;
4844 esac
4845 fi
4846 CAT=$ac_cv_path_CAT
4847 if test -n "$CAT"; then
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4849 $as_echo "$CAT" >&6; }
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854 
4855 
4856   test -n "$CAT" && break
4857 done
4858 
4859     else
4860       # If it succeeded, then it was overridden by the user. We will use it
4861       # for the tool.
4862 
4863       # First remove it from the list of overridden variables, so we can test
4864       # for unknown variables in the end.
4865       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4866 
4867       # Check if the provided tool contains a complete path.
4868       tool_specified="$CAT"
4869       tool_basename="${tool_specified##*/}"
4870       if test "x$tool_basename" = "x$tool_specified"; then
4871         # A command without a complete path is provided, search $PATH.
4872         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4873 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4874         # Extract the first word of "$tool_basename", so it can be a program name with args.
4875 set dummy $tool_basename; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_path_CAT+:} false; then :
4879   $as_echo_n "(cached) " >&6
4880 else
4881   case $CAT in
4882   [\\/]* | ?:[\\/]*)
4883   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4884   ;;
4885   *)
4886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891     for ac_exec_ext in '' $ac_executable_extensions; do
4892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898   done
4899 IFS=$as_save_IFS
4900 
4901   ;;
4902 esac
4903 fi
4904 CAT=$ac_cv_path_CAT
4905 if test -n "$CAT"; then
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4907 $as_echo "$CAT" >&6; }
4908 else
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912 
4913 
4914         if test "x$CAT" = x; then
4915           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4916         fi
4917       else
4918         # Otherwise we believe it is a complete path. Use it as it is.
4919         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4920 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4922 $as_echo_n "checking for CAT... " >&6; }
4923         if test ! -x "$tool_specified"; then
4924           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4925 $as_echo "not found" >&6; }
4926           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4927         fi
4928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4929 $as_echo "$tool_specified" >&6; }
4930       fi
4931     fi
4932   fi
4933 
4934 
4935 
4936   if test "x$CAT" = x; then
4937     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4938   fi
4939 
4940 
4941 
4942 
4943 
4944   # Publish this variable in the help.
4945 
4946 
4947   if test "x$CHMOD" = x; then
4948     # The variable is not set by user, try to locate tool using the code snippet
4949     for ac_prog in chmod
4950 do
4951   # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_path_CHMOD+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   case $CHMOD in
4959   [\\/]* | ?:[\\/]*)
4960   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4961   ;;
4962   *)
4963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975   done
4976 IFS=$as_save_IFS
4977 
4978   ;;
4979 esac
4980 fi
4981 CHMOD=$ac_cv_path_CHMOD
4982 if test -n "$CHMOD"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4984 $as_echo "$CHMOD" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989 
4990 
4991   test -n "$CHMOD" && break
4992 done
4993 
4994   else
4995     # The variable is set, but is it from the command line or the environment?
4996 
4997     # Try to remove the string !CHMOD! from our list.
4998     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4999     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5000       # If it failed, the variable was not from the command line. Ignore it,
5001       # but warn the user (except for BASH, which is always set by the calling BASH).
5002       if test "xCHMOD" != xBASH; then
5003         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5004 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5005       fi
5006       # Try to locate tool using the code snippet
5007       for ac_prog in chmod
5008 do
5009   # Extract the first word of "$ac_prog", so it can be a program name with args.
5010 set dummy $ac_prog; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_path_CHMOD+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   case $CHMOD in
5017   [\\/]* | ?:[\\/]*)
5018   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026     for ac_exec_ext in '' $ac_executable_extensions; do
5027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033   done
5034 IFS=$as_save_IFS
5035 
5036   ;;
5037 esac
5038 fi
5039 CHMOD=$ac_cv_path_CHMOD
5040 if test -n "$CHMOD"; then
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5042 $as_echo "$CHMOD" >&6; }
5043 else
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047 
5048 
5049   test -n "$CHMOD" && break
5050 done
5051 
5052     else
5053       # If it succeeded, then it was overridden by the user. We will use it
5054       # for the tool.
5055 
5056       # First remove it from the list of overridden variables, so we can test
5057       # for unknown variables in the end.
5058       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5059 
5060       # Check if the provided tool contains a complete path.
5061       tool_specified="$CHMOD"
5062       tool_basename="${tool_specified##*/}"
5063       if test "x$tool_basename" = "x$tool_specified"; then
5064         # A command without a complete path is provided, search $PATH.
5065         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5066 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5067         # Extract the first word of "$tool_basename", so it can be a program name with args.
5068 set dummy $tool_basename; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_path_CHMOD+:} false; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   case $CHMOD in
5075   [\\/]* | ?:[\\/]*)
5076   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5077   ;;
5078   *)
5079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084     for ac_exec_ext in '' $ac_executable_extensions; do
5085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5086     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088     break 2
5089   fi
5090 done
5091   done
5092 IFS=$as_save_IFS
5093 
5094   ;;
5095 esac
5096 fi
5097 CHMOD=$ac_cv_path_CHMOD
5098 if test -n "$CHMOD"; then
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5100 $as_echo "$CHMOD" >&6; }
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105 
5106 
5107         if test "x$CHMOD" = x; then
5108           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5109         fi
5110       else
5111         # Otherwise we believe it is a complete path. Use it as it is.
5112         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5113 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5115 $as_echo_n "checking for CHMOD... " >&6; }
5116         if test ! -x "$tool_specified"; then
5117           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5118 $as_echo "not found" >&6; }
5119           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5120         fi
5121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5122 $as_echo "$tool_specified" >&6; }
5123       fi
5124     fi
5125   fi
5126 
5127 
5128 
5129   if test "x$CHMOD" = x; then
5130     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5131   fi
5132 
5133 
5134 
5135 
5136 
5137   # Publish this variable in the help.
5138 
5139 
5140   if test "x$CMP" = x; then
5141     # The variable is not set by user, try to locate tool using the code snippet
5142     for ac_prog in cmp
5143 do
5144   # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_path_CMP+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   case $CMP in
5152   [\\/]* | ?:[\\/]*)
5153   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5154   ;;
5155   *)
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170 
5171   ;;
5172 esac
5173 fi
5174 CMP=$ac_cv_path_CMP
5175 if test -n "$CMP"; then
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5177 $as_echo "$CMP" >&6; }
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182 
5183 
5184   test -n "$CMP" && break
5185 done
5186 
5187   else
5188     # The variable is set, but is it from the command line or the environment?
5189 
5190     # Try to remove the string !CMP! from our list.
5191     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5192     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5193       # If it failed, the variable was not from the command line. Ignore it,
5194       # but warn the user (except for BASH, which is always set by the calling BASH).
5195       if test "xCMP" != xBASH; then
5196         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5197 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5198       fi
5199       # Try to locate tool using the code snippet
5200       for ac_prog in cmp
5201 do
5202   # Extract the first word of "$ac_prog", so it can be a program name with args.
5203 set dummy $ac_prog; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_path_CMP+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   case $CMP in
5210   [\\/]* | ?:[\\/]*)
5211   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5212   ;;
5213   *)
5214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219     for ac_exec_ext in '' $ac_executable_extensions; do
5220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226   done
5227 IFS=$as_save_IFS
5228 
5229   ;;
5230 esac
5231 fi
5232 CMP=$ac_cv_path_CMP
5233 if test -n "$CMP"; then
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5235 $as_echo "$CMP" >&6; }
5236 else
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240 
5241 
5242   test -n "$CMP" && break
5243 done
5244 
5245     else
5246       # If it succeeded, then it was overridden by the user. We will use it
5247       # for the tool.
5248 
5249       # First remove it from the list of overridden variables, so we can test
5250       # for unknown variables in the end.
5251       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5252 
5253       # Check if the provided tool contains a complete path.
5254       tool_specified="$CMP"
5255       tool_basename="${tool_specified##*/}"
5256       if test "x$tool_basename" = "x$tool_specified"; then
5257         # A command without a complete path is provided, search $PATH.
5258         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5259 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5260         # Extract the first word of "$tool_basename", so it can be a program name with args.
5261 set dummy $tool_basename; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_path_CMP+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   case $CMP in
5268   [\\/]* | ?:[\\/]*)
5269   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5270   ;;
5271   *)
5272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277     for ac_exec_ext in '' $ac_executable_extensions; do
5278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284   done
5285 IFS=$as_save_IFS
5286 
5287   ;;
5288 esac
5289 fi
5290 CMP=$ac_cv_path_CMP
5291 if test -n "$CMP"; then
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5293 $as_echo "$CMP" >&6; }
5294 else
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298 
5299 
5300         if test "x$CMP" = x; then
5301           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5302         fi
5303       else
5304         # Otherwise we believe it is a complete path. Use it as it is.
5305         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5306 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5308 $as_echo_n "checking for CMP... " >&6; }
5309         if test ! -x "$tool_specified"; then
5310           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5311 $as_echo "not found" >&6; }
5312           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5313         fi
5314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5315 $as_echo "$tool_specified" >&6; }
5316       fi
5317     fi
5318   fi
5319 
5320 
5321 
5322   if test "x$CMP" = x; then
5323     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5324   fi
5325 
5326 
5327 
5328 
5329 
5330   # Publish this variable in the help.
5331 
5332 
5333   if test "x$COMM" = x; then
5334     # The variable is not set by user, try to locate tool using the code snippet
5335     for ac_prog in comm
5336 do
5337   # Extract the first word of "$ac_prog", so it can be a program name with args.
5338 set dummy $ac_prog; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_path_COMM+:} false; then :
5342   $as_echo_n "(cached) " >&6
5343 else
5344   case $COMM in
5345   [\\/]* | ?:[\\/]*)
5346   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5347   ;;
5348   *)
5349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354     for ac_exec_ext in '' $ac_executable_extensions; do
5355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361   done
5362 IFS=$as_save_IFS
5363 
5364   ;;
5365 esac
5366 fi
5367 COMM=$ac_cv_path_COMM
5368 if test -n "$COMM"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5370 $as_echo "$COMM" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375 
5376 
5377   test -n "$COMM" && break
5378 done
5379 
5380   else
5381     # The variable is set, but is it from the command line or the environment?
5382 
5383     # Try to remove the string !COMM! from our list.
5384     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5385     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5386       # If it failed, the variable was not from the command line. Ignore it,
5387       # but warn the user (except for BASH, which is always set by the calling BASH).
5388       if test "xCOMM" != xBASH; then
5389         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5390 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5391       fi
5392       # Try to locate tool using the code snippet
5393       for ac_prog in comm
5394 do
5395   # Extract the first word of "$ac_prog", so it can be a program name with args.
5396 set dummy $ac_prog; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if ${ac_cv_path_COMM+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   case $COMM in
5403   [\\/]* | ?:[\\/]*)
5404   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5405   ;;
5406   *)
5407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410   IFS=$as_save_IFS
5411   test -z "$as_dir" && as_dir=.
5412     for ac_exec_ext in '' $ac_executable_extensions; do
5413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416     break 2
5417   fi
5418 done
5419   done
5420 IFS=$as_save_IFS
5421 
5422   ;;
5423 esac
5424 fi
5425 COMM=$ac_cv_path_COMM
5426 if test -n "$COMM"; then
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5428 $as_echo "$COMM" >&6; }
5429 else
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433 
5434 
5435   test -n "$COMM" && break
5436 done
5437 
5438     else
5439       # If it succeeded, then it was overridden by the user. We will use it
5440       # for the tool.
5441 
5442       # First remove it from the list of overridden variables, so we can test
5443       # for unknown variables in the end.
5444       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5445 
5446       # Check if the provided tool contains a complete path.
5447       tool_specified="$COMM"
5448       tool_basename="${tool_specified##*/}"
5449       if test "x$tool_basename" = "x$tool_specified"; then
5450         # A command without a complete path is provided, search $PATH.
5451         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5452 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5453         # Extract the first word of "$tool_basename", so it can be a program name with args.
5454 set dummy $tool_basename; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_path_COMM+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   case $COMM in
5461   [\\/]* | ?:[\\/]*)
5462   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5463   ;;
5464   *)
5465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468   IFS=$as_save_IFS
5469   test -z "$as_dir" && as_dir=.
5470     for ac_exec_ext in '' $ac_executable_extensions; do
5471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474     break 2
5475   fi
5476 done
5477   done
5478 IFS=$as_save_IFS
5479 
5480   ;;
5481 esac
5482 fi
5483 COMM=$ac_cv_path_COMM
5484 if test -n "$COMM"; then
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5486 $as_echo "$COMM" >&6; }
5487 else
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491 
5492 
5493         if test "x$COMM" = x; then
5494           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5495         fi
5496       else
5497         # Otherwise we believe it is a complete path. Use it as it is.
5498         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5499 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5501 $as_echo_n "checking for COMM... " >&6; }
5502         if test ! -x "$tool_specified"; then
5503           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5504 $as_echo "not found" >&6; }
5505           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5506         fi
5507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5508 $as_echo "$tool_specified" >&6; }
5509       fi
5510     fi
5511   fi
5512 
5513 
5514 
5515   if test "x$COMM" = x; then
5516     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5517   fi
5518 
5519 
5520 
5521 
5522 
5523   # Publish this variable in the help.
5524 
5525 
5526   if test "x$CP" = x; then
5527     # The variable is not set by user, try to locate tool using the code snippet
5528     for ac_prog in cp
5529 do
5530   # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_path_CP+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   case $CP in
5538   [\\/]* | ?:[\\/]*)
5539   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5540   ;;
5541   *)
5542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done
5555 IFS=$as_save_IFS
5556 
5557   ;;
5558 esac
5559 fi
5560 CP=$ac_cv_path_CP
5561 if test -n "$CP"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5563 $as_echo "$CP" >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568 
5569 
5570   test -n "$CP" && break
5571 done
5572 
5573   else
5574     # The variable is set, but is it from the command line or the environment?
5575 
5576     # Try to remove the string !CP! from our list.
5577     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5578     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5579       # If it failed, the variable was not from the command line. Ignore it,
5580       # but warn the user (except for BASH, which is always set by the calling BASH).
5581       if test "xCP" != xBASH; then
5582         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5583 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5584       fi
5585       # Try to locate tool using the code snippet
5586       for ac_prog in cp
5587 do
5588   # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy $ac_prog; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_path_CP+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   case $CP in
5596   [\\/]* | ?:[\\/]*)
5597   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5598   ;;
5599   *)
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605     for ac_exec_ext in '' $ac_executable_extensions; do
5606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612   done
5613 IFS=$as_save_IFS
5614 
5615   ;;
5616 esac
5617 fi
5618 CP=$ac_cv_path_CP
5619 if test -n "$CP"; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5621 $as_echo "$CP" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626 
5627 
5628   test -n "$CP" && break
5629 done
5630 
5631     else
5632       # If it succeeded, then it was overridden by the user. We will use it
5633       # for the tool.
5634 
5635       # First remove it from the list of overridden variables, so we can test
5636       # for unknown variables in the end.
5637       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5638 
5639       # Check if the provided tool contains a complete path.
5640       tool_specified="$CP"
5641       tool_basename="${tool_specified##*/}"
5642       if test "x$tool_basename" = "x$tool_specified"; then
5643         # A command without a complete path is provided, search $PATH.
5644         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5645 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5646         # Extract the first word of "$tool_basename", so it can be a program name with args.
5647 set dummy $tool_basename; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_path_CP+:} false; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   case $CP in
5654   [\\/]* | ?:[\\/]*)
5655   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5656   ;;
5657   *)
5658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661   IFS=$as_save_IFS
5662   test -z "$as_dir" && as_dir=.
5663     for ac_exec_ext in '' $ac_executable_extensions; do
5664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667     break 2
5668   fi
5669 done
5670   done
5671 IFS=$as_save_IFS
5672 
5673   ;;
5674 esac
5675 fi
5676 CP=$ac_cv_path_CP
5677 if test -n "$CP"; then
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5679 $as_echo "$CP" >&6; }
5680 else
5681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5684 
5685 
5686         if test "x$CP" = x; then
5687           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5688         fi
5689       else
5690         # Otherwise we believe it is a complete path. Use it as it is.
5691         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5692 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5694 $as_echo_n "checking for CP... " >&6; }
5695         if test ! -x "$tool_specified"; then
5696           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5697 $as_echo "not found" >&6; }
5698           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5699         fi
5700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5701 $as_echo "$tool_specified" >&6; }
5702       fi
5703     fi
5704   fi
5705 
5706 
5707 
5708   if test "x$CP" = x; then
5709     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5710   fi
5711 
5712 
5713 
5714 
5715 
5716   # Publish this variable in the help.
5717 
5718 
5719   if test "x$CPIO" = x; then
5720     # The variable is not set by user, try to locate tool using the code snippet
5721     for ac_prog in cpio
5722 do
5723   # Extract the first word of "$ac_prog", so it can be a program name with args.
5724 set dummy $ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_CPIO+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   case $CPIO in
5731   [\\/]* | ?:[\\/]*)
5732   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5733   ;;
5734   *)
5735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749 
5750   ;;
5751 esac
5752 fi
5753 CPIO=$ac_cv_path_CPIO
5754 if test -n "$CPIO"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5756 $as_echo "$CPIO" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761 
5762 
5763   test -n "$CPIO" && break
5764 done
5765 
5766   else
5767     # The variable is set, but is it from the command line or the environment?
5768 
5769     # Try to remove the string !CPIO! from our list.
5770     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5771     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5772       # If it failed, the variable was not from the command line. Ignore it,
5773       # but warn the user (except for BASH, which is always set by the calling BASH).
5774       if test "xCPIO" != xBASH; then
5775         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5776 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5777       fi
5778       # Try to locate tool using the code snippet
5779       for ac_prog in cpio
5780 do
5781   # Extract the first word of "$ac_prog", so it can be a program name with args.
5782 set dummy $ac_prog; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_path_CPIO+:} false; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   case $CPIO in
5789   [\\/]* | ?:[\\/]*)
5790   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5791   ;;
5792   *)
5793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805   done
5806 IFS=$as_save_IFS
5807 
5808   ;;
5809 esac
5810 fi
5811 CPIO=$ac_cv_path_CPIO
5812 if test -n "$CPIO"; then
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5814 $as_echo "$CPIO" >&6; }
5815 else
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 fi
5819 
5820 
5821   test -n "$CPIO" && break
5822 done
5823 
5824     else
5825       # If it succeeded, then it was overridden by the user. We will use it
5826       # for the tool.
5827 
5828       # First remove it from the list of overridden variables, so we can test
5829       # for unknown variables in the end.
5830       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5831 
5832       # Check if the provided tool contains a complete path.
5833       tool_specified="$CPIO"
5834       tool_basename="${tool_specified##*/}"
5835       if test "x$tool_basename" = "x$tool_specified"; then
5836         # A command without a complete path is provided, search $PATH.
5837         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5838 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5839         # Extract the first word of "$tool_basename", so it can be a program name with args.
5840 set dummy $tool_basename; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_path_CPIO+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   case $CPIO in
5847   [\\/]* | ?:[\\/]*)
5848   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5849   ;;
5850   *)
5851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856     for ac_exec_ext in '' $ac_executable_extensions; do
5857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863   done
5864 IFS=$as_save_IFS
5865 
5866   ;;
5867 esac
5868 fi
5869 CPIO=$ac_cv_path_CPIO
5870 if test -n "$CPIO"; then
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5872 $as_echo "$CPIO" >&6; }
5873 else
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5876 fi
5877 
5878 
5879         if test "x$CPIO" = x; then
5880           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5881         fi
5882       else
5883         # Otherwise we believe it is a complete path. Use it as it is.
5884         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5885 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5886         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5887 $as_echo_n "checking for CPIO... " >&6; }
5888         if test ! -x "$tool_specified"; then
5889           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5890 $as_echo "not found" >&6; }
5891           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5892         fi
5893         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5894 $as_echo "$tool_specified" >&6; }
5895       fi
5896     fi
5897   fi
5898 
5899 
5900 
5901   if test "x$CPIO" = x; then
5902     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5903   fi
5904 
5905 
5906 
5907 
5908 
5909   # Publish this variable in the help.
5910 
5911 
5912   if test "x$CUT" = x; then
5913     # The variable is not set by user, try to locate tool using the code snippet
5914     for ac_prog in cut
5915 do
5916   # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy $ac_prog; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_path_CUT+:} false; then :
5921   $as_echo_n "(cached) " >&6
5922 else
5923   case $CUT in
5924   [\\/]* | ?:[\\/]*)
5925   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5926   ;;
5927   *)
5928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933     for ac_exec_ext in '' $ac_executable_extensions; do
5934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940   done
5941 IFS=$as_save_IFS
5942 
5943   ;;
5944 esac
5945 fi
5946 CUT=$ac_cv_path_CUT
5947 if test -n "$CUT"; then
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5949 $as_echo "$CUT" >&6; }
5950 else
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953 fi
5954 
5955 
5956   test -n "$CUT" && break
5957 done
5958 
5959   else
5960     # The variable is set, but is it from the command line or the environment?
5961 
5962     # Try to remove the string !CUT! from our list.
5963     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5964     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5965       # If it failed, the variable was not from the command line. Ignore it,
5966       # but warn the user (except for BASH, which is always set by the calling BASH).
5967       if test "xCUT" != xBASH; then
5968         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5969 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5970       fi
5971       # Try to locate tool using the code snippet
5972       for ac_prog in cut
5973 do
5974   # Extract the first word of "$ac_prog", so it can be a program name with args.
5975 set dummy $ac_prog; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_path_CUT+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   case $CUT in
5982   [\\/]* | ?:[\\/]*)
5983   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5984   ;;
5985   *)
5986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991     for ac_exec_ext in '' $ac_executable_extensions; do
5992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995     break 2
5996   fi
5997 done
5998   done
5999 IFS=$as_save_IFS
6000 
6001   ;;
6002 esac
6003 fi
6004 CUT=$ac_cv_path_CUT
6005 if test -n "$CUT"; then
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6007 $as_echo "$CUT" >&6; }
6008 else
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012 
6013 
6014   test -n "$CUT" && break
6015 done
6016 
6017     else
6018       # If it succeeded, then it was overridden by the user. We will use it
6019       # for the tool.
6020 
6021       # First remove it from the list of overridden variables, so we can test
6022       # for unknown variables in the end.
6023       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6024 
6025       # Check if the provided tool contains a complete path.
6026       tool_specified="$CUT"
6027       tool_basename="${tool_specified##*/}"
6028       if test "x$tool_basename" = "x$tool_specified"; then
6029         # A command without a complete path is provided, search $PATH.
6030         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6031 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6032         # Extract the first word of "$tool_basename", so it can be a program name with args.
6033 set dummy $tool_basename; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_path_CUT+:} false; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039   case $CUT in
6040   [\\/]* | ?:[\\/]*)
6041   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6042   ;;
6043   *)
6044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049     for ac_exec_ext in '' $ac_executable_extensions; do
6050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053     break 2
6054   fi
6055 done
6056   done
6057 IFS=$as_save_IFS
6058 
6059   ;;
6060 esac
6061 fi
6062 CUT=$ac_cv_path_CUT
6063 if test -n "$CUT"; then
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6065 $as_echo "$CUT" >&6; }
6066 else
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6069 fi
6070 
6071 
6072         if test "x$CUT" = x; then
6073           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6074         fi
6075       else
6076         # Otherwise we believe it is a complete path. Use it as it is.
6077         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6078 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6079         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6080 $as_echo_n "checking for CUT... " >&6; }
6081         if test ! -x "$tool_specified"; then
6082           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6083 $as_echo "not found" >&6; }
6084           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6085         fi
6086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6087 $as_echo "$tool_specified" >&6; }
6088       fi
6089     fi
6090   fi
6091 
6092 
6093 
6094   if test "x$CUT" = x; then
6095     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6096   fi
6097 
6098 
6099 
6100 
6101 
6102   # Publish this variable in the help.
6103 
6104 
6105   if test "x$DATE" = x; then
6106     # The variable is not set by user, try to locate tool using the code snippet
6107     for ac_prog in date
6108 do
6109   # Extract the first word of "$ac_prog", so it can be a program name with args.
6110 set dummy $ac_prog; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_path_DATE+:} false; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   case $DATE in
6117   [\\/]* | ?:[\\/]*)
6118   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6119   ;;
6120   *)
6121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126     for ac_exec_ext in '' $ac_executable_extensions; do
6127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133   done
6134 IFS=$as_save_IFS
6135 
6136   ;;
6137 esac
6138 fi
6139 DATE=$ac_cv_path_DATE
6140 if test -n "$DATE"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6142 $as_echo "$DATE" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147 
6148 
6149   test -n "$DATE" && break
6150 done
6151 
6152   else
6153     # The variable is set, but is it from the command line or the environment?
6154 
6155     # Try to remove the string !DATE! from our list.
6156     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6157     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6158       # If it failed, the variable was not from the command line. Ignore it,
6159       # but warn the user (except for BASH, which is always set by the calling BASH).
6160       if test "xDATE" != xBASH; then
6161         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6162 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6163       fi
6164       # Try to locate tool using the code snippet
6165       for ac_prog in date
6166 do
6167   # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_path_DATE+:} false; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   case $DATE in
6175   [\\/]* | ?:[\\/]*)
6176   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6177   ;;
6178   *)
6179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184     for ac_exec_ext in '' $ac_executable_extensions; do
6185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191   done
6192 IFS=$as_save_IFS
6193 
6194   ;;
6195 esac
6196 fi
6197 DATE=$ac_cv_path_DATE
6198 if test -n "$DATE"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6200 $as_echo "$DATE" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205 
6206 
6207   test -n "$DATE" && break
6208 done
6209 
6210     else
6211       # If it succeeded, then it was overridden by the user. We will use it
6212       # for the tool.
6213 
6214       # First remove it from the list of overridden variables, so we can test
6215       # for unknown variables in the end.
6216       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6217 
6218       # Check if the provided tool contains a complete path.
6219       tool_specified="$DATE"
6220       tool_basename="${tool_specified##*/}"
6221       if test "x$tool_basename" = "x$tool_specified"; then
6222         # A command without a complete path is provided, search $PATH.
6223         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6224 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6225         # Extract the first word of "$tool_basename", so it can be a program name with args.
6226 set dummy $tool_basename; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_path_DATE+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   case $DATE in
6233   [\\/]* | ?:[\\/]*)
6234   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6235   ;;
6236   *)
6237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242     for ac_exec_ext in '' $ac_executable_extensions; do
6243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249   done
6250 IFS=$as_save_IFS
6251 
6252   ;;
6253 esac
6254 fi
6255 DATE=$ac_cv_path_DATE
6256 if test -n "$DATE"; then
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6258 $as_echo "$DATE" >&6; }
6259 else
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263 
6264 
6265         if test "x$DATE" = x; then
6266           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6267         fi
6268       else
6269         # Otherwise we believe it is a complete path. Use it as it is.
6270         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6271 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6272         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6273 $as_echo_n "checking for DATE... " >&6; }
6274         if test ! -x "$tool_specified"; then
6275           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6276 $as_echo "not found" >&6; }
6277           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6278         fi
6279         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6280 $as_echo "$tool_specified" >&6; }
6281       fi
6282     fi
6283   fi
6284 
6285 
6286 
6287   if test "x$DATE" = x; then
6288     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6289   fi
6290 
6291 
6292 
6293 
6294 
6295   # Publish this variable in the help.
6296 
6297 
6298   if test "x$DIFF" = x; then
6299     # The variable is not set by user, try to locate tool using the code snippet
6300     for ac_prog in gdiff diff
6301 do
6302   # Extract the first word of "$ac_prog", so it can be a program name with args.
6303 set dummy $ac_prog; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_path_DIFF+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   case $DIFF in
6310   [\\/]* | ?:[\\/]*)
6311   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6312   ;;
6313   *)
6314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328 
6329   ;;
6330 esac
6331 fi
6332 DIFF=$ac_cv_path_DIFF
6333 if test -n "$DIFF"; then
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6335 $as_echo "$DIFF" >&6; }
6336 else
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340 
6341 
6342   test -n "$DIFF" && break
6343 done
6344 
6345   else
6346     # The variable is set, but is it from the command line or the environment?
6347 
6348     # Try to remove the string !DIFF! from our list.
6349     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6350     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6351       # If it failed, the variable was not from the command line. Ignore it,
6352       # but warn the user (except for BASH, which is always set by the calling BASH).
6353       if test "xDIFF" != xBASH; then
6354         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6355 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6356       fi
6357       # Try to locate tool using the code snippet
6358       for ac_prog in gdiff diff
6359 do
6360   # Extract the first word of "$ac_prog", so it can be a program name with args.
6361 set dummy $ac_prog; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_path_DIFF+:} false; then :
6365   $as_echo_n "(cached) " >&6
6366 else
6367   case $DIFF in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386 
6387   ;;
6388 esac
6389 fi
6390 DIFF=$ac_cv_path_DIFF
6391 if test -n "$DIFF"; then
6392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6393 $as_echo "$DIFF" >&6; }
6394 else
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6397 fi
6398 
6399 
6400   test -n "$DIFF" && break
6401 done
6402 
6403     else
6404       # If it succeeded, then it was overridden by the user. We will use it
6405       # for the tool.
6406 
6407       # First remove it from the list of overridden variables, so we can test
6408       # for unknown variables in the end.
6409       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6410 
6411       # Check if the provided tool contains a complete path.
6412       tool_specified="$DIFF"
6413       tool_basename="${tool_specified##*/}"
6414       if test "x$tool_basename" = "x$tool_specified"; then
6415         # A command without a complete path is provided, search $PATH.
6416         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6417 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6418         # Extract the first word of "$tool_basename", so it can be a program name with args.
6419 set dummy $tool_basename; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_path_DIFF+:} false; then :
6423   $as_echo_n "(cached) " >&6
6424 else
6425   case $DIFF in
6426   [\\/]* | ?:[\\/]*)
6427   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6428   ;;
6429   *)
6430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435     for ac_exec_ext in '' $ac_executable_extensions; do
6436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442   done
6443 IFS=$as_save_IFS
6444 
6445   ;;
6446 esac
6447 fi
6448 DIFF=$ac_cv_path_DIFF
6449 if test -n "$DIFF"; then
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6451 $as_echo "$DIFF" >&6; }
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456 
6457 
6458         if test "x$DIFF" = x; then
6459           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6460         fi
6461       else
6462         # Otherwise we believe it is a complete path. Use it as it is.
6463         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6464 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6466 $as_echo_n "checking for DIFF... " >&6; }
6467         if test ! -x "$tool_specified"; then
6468           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6469 $as_echo "not found" >&6; }
6470           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6471         fi
6472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6473 $as_echo "$tool_specified" >&6; }
6474       fi
6475     fi
6476   fi
6477 
6478 
6479 
6480   if test "x$DIFF" = x; then
6481     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6482   fi
6483 
6484 
6485 
6486 
6487 
6488   # Publish this variable in the help.
6489 
6490 
6491   if test "x$DIRNAME" = x; then
6492     # The variable is not set by user, try to locate tool using the code snippet
6493     for ac_prog in dirname
6494 do
6495   # Extract the first word of "$ac_prog", so it can be a program name with args.
6496 set dummy $ac_prog; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_path_DIRNAME+:} false; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   case $DIRNAME in
6503   [\\/]* | ?:[\\/]*)
6504   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6505   ;;
6506   *)
6507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510   IFS=$as_save_IFS
6511   test -z "$as_dir" && as_dir=.
6512     for ac_exec_ext in '' $ac_executable_extensions; do
6513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519   done
6520 IFS=$as_save_IFS
6521 
6522   ;;
6523 esac
6524 fi
6525 DIRNAME=$ac_cv_path_DIRNAME
6526 if test -n "$DIRNAME"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6528 $as_echo "$DIRNAME" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533 
6534 
6535   test -n "$DIRNAME" && break
6536 done
6537 
6538   else
6539     # The variable is set, but is it from the command line or the environment?
6540 
6541     # Try to remove the string !DIRNAME! from our list.
6542     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6543     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6544       # If it failed, the variable was not from the command line. Ignore it,
6545       # but warn the user (except for BASH, which is always set by the calling BASH).
6546       if test "xDIRNAME" != xBASH; then
6547         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6548 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6549       fi
6550       # Try to locate tool using the code snippet
6551       for ac_prog in dirname
6552 do
6553   # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_path_DIRNAME+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   case $DIRNAME in
6561   [\\/]* | ?:[\\/]*)
6562   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6563   ;;
6564   *)
6565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577   done
6578 IFS=$as_save_IFS
6579 
6580   ;;
6581 esac
6582 fi
6583 DIRNAME=$ac_cv_path_DIRNAME
6584 if test -n "$DIRNAME"; then
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6586 $as_echo "$DIRNAME" >&6; }
6587 else
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591 
6592 
6593   test -n "$DIRNAME" && break
6594 done
6595 
6596     else
6597       # If it succeeded, then it was overridden by the user. We will use it
6598       # for the tool.
6599 
6600       # First remove it from the list of overridden variables, so we can test
6601       # for unknown variables in the end.
6602       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6603 
6604       # Check if the provided tool contains a complete path.
6605       tool_specified="$DIRNAME"
6606       tool_basename="${tool_specified##*/}"
6607       if test "x$tool_basename" = "x$tool_specified"; then
6608         # A command without a complete path is provided, search $PATH.
6609         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6610 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6611         # Extract the first word of "$tool_basename", so it can be a program name with args.
6612 set dummy $tool_basename; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_path_DIRNAME+:} false; then :
6616   $as_echo_n "(cached) " >&6
6617 else
6618   case $DIRNAME in
6619   [\\/]* | ?:[\\/]*)
6620   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6621   ;;
6622   *)
6623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628     for ac_exec_ext in '' $ac_executable_extensions; do
6629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635   done
6636 IFS=$as_save_IFS
6637 
6638   ;;
6639 esac
6640 fi
6641 DIRNAME=$ac_cv_path_DIRNAME
6642 if test -n "$DIRNAME"; then
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6644 $as_echo "$DIRNAME" >&6; }
6645 else
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649 
6650 
6651         if test "x$DIRNAME" = x; then
6652           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6653         fi
6654       else
6655         # Otherwise we believe it is a complete path. Use it as it is.
6656         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6657 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6659 $as_echo_n "checking for DIRNAME... " >&6; }
6660         if test ! -x "$tool_specified"; then
6661           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6662 $as_echo "not found" >&6; }
6663           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6664         fi
6665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6666 $as_echo "$tool_specified" >&6; }
6667       fi
6668     fi
6669   fi
6670 
6671 
6672 
6673   if test "x$DIRNAME" = x; then
6674     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6675   fi
6676 
6677 
6678 
6679 
6680 
6681   # Publish this variable in the help.
6682 
6683 
6684   if test "x$ECHO" = x; then
6685     # The variable is not set by user, try to locate tool using the code snippet
6686     for ac_prog in echo
6687 do
6688   # Extract the first word of "$ac_prog", so it can be a program name with args.
6689 set dummy $ac_prog; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_path_ECHO+:} false; then :
6693   $as_echo_n "(cached) " >&6
6694 else
6695   case $ECHO in
6696   [\\/]* | ?:[\\/]*)
6697   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6698   ;;
6699   *)
6700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705     for ac_exec_ext in '' $ac_executable_extensions; do
6706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712   done
6713 IFS=$as_save_IFS
6714 
6715   ;;
6716 esac
6717 fi
6718 ECHO=$ac_cv_path_ECHO
6719 if test -n "$ECHO"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6721 $as_echo "$ECHO" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726 
6727 
6728   test -n "$ECHO" && break
6729 done
6730 
6731   else
6732     # The variable is set, but is it from the command line or the environment?
6733 
6734     # Try to remove the string !ECHO! from our list.
6735     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6736     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6737       # If it failed, the variable was not from the command line. Ignore it,
6738       # but warn the user (except for BASH, which is always set by the calling BASH).
6739       if test "xECHO" != xBASH; then
6740         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6741 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6742       fi
6743       # Try to locate tool using the code snippet
6744       for ac_prog in echo
6745 do
6746   # Extract the first word of "$ac_prog", so it can be a program name with args.
6747 set dummy $ac_prog; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_path_ECHO+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   case $ECHO in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763     for ac_exec_ext in '' $ac_executable_extensions; do
6764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770   done
6771 IFS=$as_save_IFS
6772 
6773   ;;
6774 esac
6775 fi
6776 ECHO=$ac_cv_path_ECHO
6777 if test -n "$ECHO"; then
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6779 $as_echo "$ECHO" >&6; }
6780 else
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784 
6785 
6786   test -n "$ECHO" && break
6787 done
6788 
6789     else
6790       # If it succeeded, then it was overridden by the user. We will use it
6791       # for the tool.
6792 
6793       # First remove it from the list of overridden variables, so we can test
6794       # for unknown variables in the end.
6795       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6796 
6797       # Check if the provided tool contains a complete path.
6798       tool_specified="$ECHO"
6799       tool_basename="${tool_specified##*/}"
6800       if test "x$tool_basename" = "x$tool_specified"; then
6801         # A command without a complete path is provided, search $PATH.
6802         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6803 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6804         # Extract the first word of "$tool_basename", so it can be a program name with args.
6805 set dummy $tool_basename; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if ${ac_cv_path_ECHO+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   case $ECHO in
6812   [\\/]* | ?:[\\/]*)
6813   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6814   ;;
6815   *)
6816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821     for ac_exec_ext in '' $ac_executable_extensions; do
6822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828   done
6829 IFS=$as_save_IFS
6830 
6831   ;;
6832 esac
6833 fi
6834 ECHO=$ac_cv_path_ECHO
6835 if test -n "$ECHO"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6837 $as_echo "$ECHO" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842 
6843 
6844         if test "x$ECHO" = x; then
6845           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6846         fi
6847       else
6848         # Otherwise we believe it is a complete path. Use it as it is.
6849         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6850 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6851         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6852 $as_echo_n "checking for ECHO... " >&6; }
6853         if test ! -x "$tool_specified"; then
6854           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6855 $as_echo "not found" >&6; }
6856           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6857         fi
6858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6859 $as_echo "$tool_specified" >&6; }
6860       fi
6861     fi
6862   fi
6863 
6864 
6865 
6866   if test "x$ECHO" = x; then
6867     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6868   fi
6869 
6870 
6871 
6872 
6873 
6874   # Publish this variable in the help.
6875 
6876 
6877   if test "x$EXPR" = x; then
6878     # The variable is not set by user, try to locate tool using the code snippet
6879     for ac_prog in expr
6880 do
6881   # Extract the first word of "$ac_prog", so it can be a program name with args.
6882 set dummy $ac_prog; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_path_EXPR+:} false; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888   case $EXPR in
6889   [\\/]* | ?:[\\/]*)
6890   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6891   ;;
6892   *)
6893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907 
6908   ;;
6909 esac
6910 fi
6911 EXPR=$ac_cv_path_EXPR
6912 if test -n "$EXPR"; then
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6914 $as_echo "$EXPR" >&6; }
6915 else
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919 
6920 
6921   test -n "$EXPR" && break
6922 done
6923 
6924   else
6925     # The variable is set, but is it from the command line or the environment?
6926 
6927     # Try to remove the string !EXPR! from our list.
6928     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6929     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6930       # If it failed, the variable was not from the command line. Ignore it,
6931       # but warn the user (except for BASH, which is always set by the calling BASH).
6932       if test "xEXPR" != xBASH; then
6933         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6934 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6935       fi
6936       # Try to locate tool using the code snippet
6937       for ac_prog in expr
6938 do
6939   # Extract the first word of "$ac_prog", so it can be a program name with args.
6940 set dummy $ac_prog; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_path_EXPR+:} false; then :
6944   $as_echo_n "(cached) " >&6
6945 else
6946   case $EXPR in
6947   [\\/]* | ?:[\\/]*)
6948   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6949   ;;
6950   *)
6951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956     for ac_exec_ext in '' $ac_executable_extensions; do
6957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960     break 2
6961   fi
6962 done
6963   done
6964 IFS=$as_save_IFS
6965 
6966   ;;
6967 esac
6968 fi
6969 EXPR=$ac_cv_path_EXPR
6970 if test -n "$EXPR"; then
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6972 $as_echo "$EXPR" >&6; }
6973 else
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977 
6978 
6979   test -n "$EXPR" && break
6980 done
6981 
6982     else
6983       # If it succeeded, then it was overridden by the user. We will use it
6984       # for the tool.
6985 
6986       # First remove it from the list of overridden variables, so we can test
6987       # for unknown variables in the end.
6988       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6989 
6990       # Check if the provided tool contains a complete path.
6991       tool_specified="$EXPR"
6992       tool_basename="${tool_specified##*/}"
6993       if test "x$tool_basename" = "x$tool_specified"; then
6994         # A command without a complete path is provided, search $PATH.
6995         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6996 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6997         # Extract the first word of "$tool_basename", so it can be a program name with args.
6998 set dummy $tool_basename; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_path_EXPR+:} false; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   case $EXPR in
7005   [\\/]* | ?:[\\/]*)
7006   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7007   ;;
7008   *)
7009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012   IFS=$as_save_IFS
7013   test -z "$as_dir" && as_dir=.
7014     for ac_exec_ext in '' $ac_executable_extensions; do
7015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018     break 2
7019   fi
7020 done
7021   done
7022 IFS=$as_save_IFS
7023 
7024   ;;
7025 esac
7026 fi
7027 EXPR=$ac_cv_path_EXPR
7028 if test -n "$EXPR"; then
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7030 $as_echo "$EXPR" >&6; }
7031 else
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034 fi
7035 
7036 
7037         if test "x$EXPR" = x; then
7038           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7039         fi
7040       else
7041         # Otherwise we believe it is a complete path. Use it as it is.
7042         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7043 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7045 $as_echo_n "checking for EXPR... " >&6; }
7046         if test ! -x "$tool_specified"; then
7047           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7048 $as_echo "not found" >&6; }
7049           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7050         fi
7051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7052 $as_echo "$tool_specified" >&6; }
7053       fi
7054     fi
7055   fi
7056 
7057 
7058 
7059   if test "x$EXPR" = x; then
7060     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7061   fi
7062 
7063 
7064 
7065 
7066 
7067   # Publish this variable in the help.
7068 
7069 
7070   if test "x$FILE" = x; then
7071     # The variable is not set by user, try to locate tool using the code snippet
7072     for ac_prog in file
7073 do
7074   # Extract the first word of "$ac_prog", so it can be a program name with args.
7075 set dummy $ac_prog; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_path_FILE+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   case $FILE in
7082   [\\/]* | ?:[\\/]*)
7083   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7084   ;;
7085   *)
7086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091     for ac_exec_ext in '' $ac_executable_extensions; do
7092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098   done
7099 IFS=$as_save_IFS
7100 
7101   ;;
7102 esac
7103 fi
7104 FILE=$ac_cv_path_FILE
7105 if test -n "$FILE"; then
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7107 $as_echo "$FILE" >&6; }
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112 
7113 
7114   test -n "$FILE" && break
7115 done
7116 
7117   else
7118     # The variable is set, but is it from the command line or the environment?
7119 
7120     # Try to remove the string !FILE! from our list.
7121     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7122     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7123       # If it failed, the variable was not from the command line. Ignore it,
7124       # but warn the user (except for BASH, which is always set by the calling BASH).
7125       if test "xFILE" != xBASH; then
7126         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7127 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7128       fi
7129       # Try to locate tool using the code snippet
7130       for ac_prog in file
7131 do
7132   # Extract the first word of "$ac_prog", so it can be a program name with args.
7133 set dummy $ac_prog; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_path_FILE+:} false; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   case $FILE in
7140   [\\/]* | ?:[\\/]*)
7141   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7142   ;;
7143   *)
7144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149     for ac_exec_ext in '' $ac_executable_extensions; do
7150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156   done
7157 IFS=$as_save_IFS
7158 
7159   ;;
7160 esac
7161 fi
7162 FILE=$ac_cv_path_FILE
7163 if test -n "$FILE"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7165 $as_echo "$FILE" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170 
7171 
7172   test -n "$FILE" && break
7173 done
7174 
7175     else
7176       # If it succeeded, then it was overridden by the user. We will use it
7177       # for the tool.
7178 
7179       # First remove it from the list of overridden variables, so we can test
7180       # for unknown variables in the end.
7181       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7182 
7183       # Check if the provided tool contains a complete path.
7184       tool_specified="$FILE"
7185       tool_basename="${tool_specified##*/}"
7186       if test "x$tool_basename" = "x$tool_specified"; then
7187         # A command without a complete path is provided, search $PATH.
7188         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7189 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7190         # Extract the first word of "$tool_basename", so it can be a program name with args.
7191 set dummy $tool_basename; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_path_FILE+:} false; then :
7195   $as_echo_n "(cached) " >&6
7196 else
7197   case $FILE in
7198   [\\/]* | ?:[\\/]*)
7199   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7200   ;;
7201   *)
7202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207     for ac_exec_ext in '' $ac_executable_extensions; do
7208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214   done
7215 IFS=$as_save_IFS
7216 
7217   ;;
7218 esac
7219 fi
7220 FILE=$ac_cv_path_FILE
7221 if test -n "$FILE"; then
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7223 $as_echo "$FILE" >&6; }
7224 else
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7227 fi
7228 
7229 
7230         if test "x$FILE" = x; then
7231           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7232         fi
7233       else
7234         # Otherwise we believe it is a complete path. Use it as it is.
7235         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7236 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7238 $as_echo_n "checking for FILE... " >&6; }
7239         if test ! -x "$tool_specified"; then
7240           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7241 $as_echo "not found" >&6; }
7242           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7243         fi
7244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7245 $as_echo "$tool_specified" >&6; }
7246       fi
7247     fi
7248   fi
7249 
7250 
7251 
7252   if test "x$FILE" = x; then
7253     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7254   fi
7255 
7256 
7257 
7258 
7259 
7260   # Publish this variable in the help.
7261 
7262 
7263   if test "x$FIND" = x; then
7264     # The variable is not set by user, try to locate tool using the code snippet
7265     for ac_prog in find
7266 do
7267   # Extract the first word of "$ac_prog", so it can be a program name with args.
7268 set dummy $ac_prog; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_path_FIND+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   case $FIND in
7275   [\\/]* | ?:[\\/]*)
7276   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7277   ;;
7278   *)
7279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284     for ac_exec_ext in '' $ac_executable_extensions; do
7285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291   done
7292 IFS=$as_save_IFS
7293 
7294   ;;
7295 esac
7296 fi
7297 FIND=$ac_cv_path_FIND
7298 if test -n "$FIND"; then
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7300 $as_echo "$FIND" >&6; }
7301 else
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305 
7306 
7307   test -n "$FIND" && break
7308 done
7309 
7310   else
7311     # The variable is set, but is it from the command line or the environment?
7312 
7313     # Try to remove the string !FIND! from our list.
7314     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7315     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7316       # If it failed, the variable was not from the command line. Ignore it,
7317       # but warn the user (except for BASH, which is always set by the calling BASH).
7318       if test "xFIND" != xBASH; then
7319         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7320 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7321       fi
7322       # Try to locate tool using the code snippet
7323       for ac_prog in find
7324 do
7325   # Extract the first word of "$ac_prog", so it can be a program name with args.
7326 set dummy $ac_prog; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_path_FIND+:} false; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   case $FIND in
7333   [\\/]* | ?:[\\/]*)
7334   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7335   ;;
7336   *)
7337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351 
7352   ;;
7353 esac
7354 fi
7355 FIND=$ac_cv_path_FIND
7356 if test -n "$FIND"; then
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7358 $as_echo "$FIND" >&6; }
7359 else
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363 
7364 
7365   test -n "$FIND" && break
7366 done
7367 
7368     else
7369       # If it succeeded, then it was overridden by the user. We will use it
7370       # for the tool.
7371 
7372       # First remove it from the list of overridden variables, so we can test
7373       # for unknown variables in the end.
7374       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7375 
7376       # Check if the provided tool contains a complete path.
7377       tool_specified="$FIND"
7378       tool_basename="${tool_specified##*/}"
7379       if test "x$tool_basename" = "x$tool_specified"; then
7380         # A command without a complete path is provided, search $PATH.
7381         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7382 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7383         # Extract the first word of "$tool_basename", so it can be a program name with args.
7384 set dummy $tool_basename; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_path_FIND+:} false; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   case $FIND in
7391   [\\/]* | ?:[\\/]*)
7392   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7393   ;;
7394   *)
7395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400     for ac_exec_ext in '' $ac_executable_extensions; do
7401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407   done
7408 IFS=$as_save_IFS
7409 
7410   ;;
7411 esac
7412 fi
7413 FIND=$ac_cv_path_FIND
7414 if test -n "$FIND"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7416 $as_echo "$FIND" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421 
7422 
7423         if test "x$FIND" = x; then
7424           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7425         fi
7426       else
7427         # Otherwise we believe it is a complete path. Use it as it is.
7428         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7429 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7430         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7431 $as_echo_n "checking for FIND... " >&6; }
7432         if test ! -x "$tool_specified"; then
7433           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7434 $as_echo "not found" >&6; }
7435           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7436         fi
7437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7438 $as_echo "$tool_specified" >&6; }
7439       fi
7440     fi
7441   fi
7442 
7443 
7444 
7445   if test "x$FIND" = x; then
7446     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7447   fi
7448 
7449 
7450 
7451 
7452 
7453   # Publish this variable in the help.
7454 
7455 
7456   if test "x$HEAD" = x; then
7457     # The variable is not set by user, try to locate tool using the code snippet
7458     for ac_prog in head
7459 do
7460   # Extract the first word of "$ac_prog", so it can be a program name with args.
7461 set dummy $ac_prog; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_path_HEAD+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   case $HEAD in
7468   [\\/]* | ?:[\\/]*)
7469   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7470   ;;
7471   *)
7472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477     for ac_exec_ext in '' $ac_executable_extensions; do
7478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484   done
7485 IFS=$as_save_IFS
7486 
7487   ;;
7488 esac
7489 fi
7490 HEAD=$ac_cv_path_HEAD
7491 if test -n "$HEAD"; then
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7493 $as_echo "$HEAD" >&6; }
7494 else
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498 
7499 
7500   test -n "$HEAD" && break
7501 done
7502 
7503   else
7504     # The variable is set, but is it from the command line or the environment?
7505 
7506     # Try to remove the string !HEAD! from our list.
7507     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7508     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7509       # If it failed, the variable was not from the command line. Ignore it,
7510       # but warn the user (except for BASH, which is always set by the calling BASH).
7511       if test "xHEAD" != xBASH; then
7512         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7513 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7514       fi
7515       # Try to locate tool using the code snippet
7516       for ac_prog in head
7517 do
7518   # Extract the first word of "$ac_prog", so it can be a program name with args.
7519 set dummy $ac_prog; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_path_HEAD+:} false; then :
7523   $as_echo_n "(cached) " >&6
7524 else
7525   case $HEAD in
7526   [\\/]* | ?:[\\/]*)
7527   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7528   ;;
7529   *)
7530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533   IFS=$as_save_IFS
7534   test -z "$as_dir" && as_dir=.
7535     for ac_exec_ext in '' $ac_executable_extensions; do
7536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539     break 2
7540   fi
7541 done
7542   done
7543 IFS=$as_save_IFS
7544 
7545   ;;
7546 esac
7547 fi
7548 HEAD=$ac_cv_path_HEAD
7549 if test -n "$HEAD"; then
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7551 $as_echo "$HEAD" >&6; }
7552 else
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556 
7557 
7558   test -n "$HEAD" && break
7559 done
7560 
7561     else
7562       # If it succeeded, then it was overridden by the user. We will use it
7563       # for the tool.
7564 
7565       # First remove it from the list of overridden variables, so we can test
7566       # for unknown variables in the end.
7567       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7568 
7569       # Check if the provided tool contains a complete path.
7570       tool_specified="$HEAD"
7571       tool_basename="${tool_specified##*/}"
7572       if test "x$tool_basename" = "x$tool_specified"; then
7573         # A command without a complete path is provided, search $PATH.
7574         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7575 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7576         # Extract the first word of "$tool_basename", so it can be a program name with args.
7577 set dummy $tool_basename; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_path_HEAD+:} false; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   case $HEAD in
7584   [\\/]* | ?:[\\/]*)
7585   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7586   ;;
7587   *)
7588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602 
7603   ;;
7604 esac
7605 fi
7606 HEAD=$ac_cv_path_HEAD
7607 if test -n "$HEAD"; then
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7609 $as_echo "$HEAD" >&6; }
7610 else
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 fi
7614 
7615 
7616         if test "x$HEAD" = x; then
7617           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7618         fi
7619       else
7620         # Otherwise we believe it is a complete path. Use it as it is.
7621         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7622 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7623         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7624 $as_echo_n "checking for HEAD... " >&6; }
7625         if test ! -x "$tool_specified"; then
7626           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7627 $as_echo "not found" >&6; }
7628           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7629         fi
7630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7631 $as_echo "$tool_specified" >&6; }
7632       fi
7633     fi
7634   fi
7635 
7636 
7637 
7638   if test "x$HEAD" = x; then
7639     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7640   fi
7641 
7642 
7643 
7644 
7645 
7646   # Publish this variable in the help.
7647 
7648 
7649   if test "x$LN" = x; then
7650     # The variable is not set by user, try to locate tool using the code snippet
7651     for ac_prog in ln
7652 do
7653   # Extract the first word of "$ac_prog", so it can be a program name with args.
7654 set dummy $ac_prog; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_path_LN+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   case $LN in
7661   [\\/]* | ?:[\\/]*)
7662   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7663   ;;
7664   *)
7665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670     for ac_exec_ext in '' $ac_executable_extensions; do
7671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677   done
7678 IFS=$as_save_IFS
7679 
7680   ;;
7681 esac
7682 fi
7683 LN=$ac_cv_path_LN
7684 if test -n "$LN"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7686 $as_echo "$LN" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691 
7692 
7693   test -n "$LN" && break
7694 done
7695 
7696   else
7697     # The variable is set, but is it from the command line or the environment?
7698 
7699     # Try to remove the string !LN! from our list.
7700     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7701     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7702       # If it failed, the variable was not from the command line. Ignore it,
7703       # but warn the user (except for BASH, which is always set by the calling BASH).
7704       if test "xLN" != xBASH; then
7705         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7706 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7707       fi
7708       # Try to locate tool using the code snippet
7709       for ac_prog in ln
7710 do
7711   # Extract the first word of "$ac_prog", so it can be a program name with args.
7712 set dummy $ac_prog; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_path_LN+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   case $LN in
7719   [\\/]* | ?:[\\/]*)
7720   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7721   ;;
7722   *)
7723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728     for ac_exec_ext in '' $ac_executable_extensions; do
7729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735   done
7736 IFS=$as_save_IFS
7737 
7738   ;;
7739 esac
7740 fi
7741 LN=$ac_cv_path_LN
7742 if test -n "$LN"; then
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7744 $as_echo "$LN" >&6; }
7745 else
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749 
7750 
7751   test -n "$LN" && break
7752 done
7753 
7754     else
7755       # If it succeeded, then it was overridden by the user. We will use it
7756       # for the tool.
7757 
7758       # First remove it from the list of overridden variables, so we can test
7759       # for unknown variables in the end.
7760       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7761 
7762       # Check if the provided tool contains a complete path.
7763       tool_specified="$LN"
7764       tool_basename="${tool_specified##*/}"
7765       if test "x$tool_basename" = "x$tool_specified"; then
7766         # A command without a complete path is provided, search $PATH.
7767         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7768 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7769         # Extract the first word of "$tool_basename", so it can be a program name with args.
7770 set dummy $tool_basename; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_path_LN+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   case $LN in
7777   [\\/]* | ?:[\\/]*)
7778   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7779   ;;
7780   *)
7781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784   IFS=$as_save_IFS
7785   test -z "$as_dir" && as_dir=.
7786     for ac_exec_ext in '' $ac_executable_extensions; do
7787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790     break 2
7791   fi
7792 done
7793   done
7794 IFS=$as_save_IFS
7795 
7796   ;;
7797 esac
7798 fi
7799 LN=$ac_cv_path_LN
7800 if test -n "$LN"; then
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7802 $as_echo "$LN" >&6; }
7803 else
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807 
7808 
7809         if test "x$LN" = x; then
7810           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7811         fi
7812       else
7813         # Otherwise we believe it is a complete path. Use it as it is.
7814         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7815 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7817 $as_echo_n "checking for LN... " >&6; }
7818         if test ! -x "$tool_specified"; then
7819           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7820 $as_echo "not found" >&6; }
7821           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7822         fi
7823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7824 $as_echo "$tool_specified" >&6; }
7825       fi
7826     fi
7827   fi
7828 
7829 
7830 
7831   if test "x$LN" = x; then
7832     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7833   fi
7834 
7835 
7836 
7837 
7838 
7839   # Publish this variable in the help.
7840 
7841 
7842   if test "x$LS" = x; then
7843     # The variable is not set by user, try to locate tool using the code snippet
7844     for ac_prog in ls
7845 do
7846   # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_path_LS+:} false; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   case $LS in
7854   [\\/]* | ?:[\\/]*)
7855   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7856   ;;
7857   *)
7858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863     for ac_exec_ext in '' $ac_executable_extensions; do
7864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870   done
7871 IFS=$as_save_IFS
7872 
7873   ;;
7874 esac
7875 fi
7876 LS=$ac_cv_path_LS
7877 if test -n "$LS"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7879 $as_echo "$LS" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884 
7885 
7886   test -n "$LS" && break
7887 done
7888 
7889   else
7890     # The variable is set, but is it from the command line or the environment?
7891 
7892     # Try to remove the string !LS! from our list.
7893     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7894     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7895       # If it failed, the variable was not from the command line. Ignore it,
7896       # but warn the user (except for BASH, which is always set by the calling BASH).
7897       if test "xLS" != xBASH; then
7898         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7899 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7900       fi
7901       # Try to locate tool using the code snippet
7902       for ac_prog in ls
7903 do
7904   # Extract the first word of "$ac_prog", so it can be a program name with args.
7905 set dummy $ac_prog; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if ${ac_cv_path_LS+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   case $LS in
7912   [\\/]* | ?:[\\/]*)
7913   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7914   ;;
7915   *)
7916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930 
7931   ;;
7932 esac
7933 fi
7934 LS=$ac_cv_path_LS
7935 if test -n "$LS"; then
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7937 $as_echo "$LS" >&6; }
7938 else
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7941 fi
7942 
7943 
7944   test -n "$LS" && break
7945 done
7946 
7947     else
7948       # If it succeeded, then it was overridden by the user. We will use it
7949       # for the tool.
7950 
7951       # First remove it from the list of overridden variables, so we can test
7952       # for unknown variables in the end.
7953       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7954 
7955       # Check if the provided tool contains a complete path.
7956       tool_specified="$LS"
7957       tool_basename="${tool_specified##*/}"
7958       if test "x$tool_basename" = "x$tool_specified"; then
7959         # A command without a complete path is provided, search $PATH.
7960         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7961 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7962         # Extract the first word of "$tool_basename", so it can be a program name with args.
7963 set dummy $tool_basename; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if ${ac_cv_path_LS+:} false; then :
7967   $as_echo_n "(cached) " >&6
7968 else
7969   case $LS in
7970   [\\/]* | ?:[\\/]*)
7971   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7972   ;;
7973   *)
7974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977   IFS=$as_save_IFS
7978   test -z "$as_dir" && as_dir=.
7979     for ac_exec_ext in '' $ac_executable_extensions; do
7980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983     break 2
7984   fi
7985 done
7986   done
7987 IFS=$as_save_IFS
7988 
7989   ;;
7990 esac
7991 fi
7992 LS=$ac_cv_path_LS
7993 if test -n "$LS"; then
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7995 $as_echo "$LS" >&6; }
7996 else
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
7999 fi
8000 
8001 
8002         if test "x$LS" = x; then
8003           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8004         fi
8005       else
8006         # Otherwise we believe it is a complete path. Use it as it is.
8007         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8008 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8010 $as_echo_n "checking for LS... " >&6; }
8011         if test ! -x "$tool_specified"; then
8012           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8013 $as_echo "not found" >&6; }
8014           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8015         fi
8016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8017 $as_echo "$tool_specified" >&6; }
8018       fi
8019     fi
8020   fi
8021 
8022 
8023 
8024   if test "x$LS" = x; then
8025     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8026   fi
8027 
8028 
8029 
8030 
8031 
8032   # Publish this variable in the help.
8033 
8034 
8035   if test "x$MKDIR" = x; then
8036     # The variable is not set by user, try to locate tool using the code snippet
8037     for ac_prog in mkdir
8038 do
8039   # Extract the first word of "$ac_prog", so it can be a program name with args.
8040 set dummy $ac_prog; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if ${ac_cv_path_MKDIR+:} false; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   case $MKDIR in
8047   [\\/]* | ?:[\\/]*)
8048   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8049   ;;
8050   *)
8051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054   IFS=$as_save_IFS
8055   test -z "$as_dir" && as_dir=.
8056     for ac_exec_ext in '' $ac_executable_extensions; do
8057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060     break 2
8061   fi
8062 done
8063   done
8064 IFS=$as_save_IFS
8065 
8066   ;;
8067 esac
8068 fi
8069 MKDIR=$ac_cv_path_MKDIR
8070 if test -n "$MKDIR"; then
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8072 $as_echo "$MKDIR" >&6; }
8073 else
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8076 fi
8077 
8078 
8079   test -n "$MKDIR" && break
8080 done
8081 
8082   else
8083     # The variable is set, but is it from the command line or the environment?
8084 
8085     # Try to remove the string !MKDIR! from our list.
8086     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8087     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8088       # If it failed, the variable was not from the command line. Ignore it,
8089       # but warn the user (except for BASH, which is always set by the calling BASH).
8090       if test "xMKDIR" != xBASH; then
8091         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8092 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8093       fi
8094       # Try to locate tool using the code snippet
8095       for ac_prog in mkdir
8096 do
8097   # Extract the first word of "$ac_prog", so it can be a program name with args.
8098 set dummy $ac_prog; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_path_MKDIR+:} false; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   case $MKDIR in
8105   [\\/]* | ?:[\\/]*)
8106   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8107   ;;
8108   *)
8109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114     for ac_exec_ext in '' $ac_executable_extensions; do
8115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121   done
8122 IFS=$as_save_IFS
8123 
8124   ;;
8125 esac
8126 fi
8127 MKDIR=$ac_cv_path_MKDIR
8128 if test -n "$MKDIR"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8130 $as_echo "$MKDIR" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135 
8136 
8137   test -n "$MKDIR" && break
8138 done
8139 
8140     else
8141       # If it succeeded, then it was overridden by the user. We will use it
8142       # for the tool.
8143 
8144       # First remove it from the list of overridden variables, so we can test
8145       # for unknown variables in the end.
8146       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8147 
8148       # Check if the provided tool contains a complete path.
8149       tool_specified="$MKDIR"
8150       tool_basename="${tool_specified##*/}"
8151       if test "x$tool_basename" = "x$tool_specified"; then
8152         # A command without a complete path is provided, search $PATH.
8153         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8154 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8155         # Extract the first word of "$tool_basename", so it can be a program name with args.
8156 set dummy $tool_basename; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_path_MKDIR+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   case $MKDIR in
8163   [\\/]* | ?:[\\/]*)
8164   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8165   ;;
8166   *)
8167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170   IFS=$as_save_IFS
8171   test -z "$as_dir" && as_dir=.
8172     for ac_exec_ext in '' $ac_executable_extensions; do
8173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176     break 2
8177   fi
8178 done
8179   done
8180 IFS=$as_save_IFS
8181 
8182   ;;
8183 esac
8184 fi
8185 MKDIR=$ac_cv_path_MKDIR
8186 if test -n "$MKDIR"; then
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8188 $as_echo "$MKDIR" >&6; }
8189 else
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192 fi
8193 
8194 
8195         if test "x$MKDIR" = x; then
8196           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8197         fi
8198       else
8199         # Otherwise we believe it is a complete path. Use it as it is.
8200         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8201 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8203 $as_echo_n "checking for MKDIR... " >&6; }
8204         if test ! -x "$tool_specified"; then
8205           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8206 $as_echo "not found" >&6; }
8207           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8208         fi
8209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8210 $as_echo "$tool_specified" >&6; }
8211       fi
8212     fi
8213   fi
8214 
8215 
8216 
8217   if test "x$MKDIR" = x; then
8218     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8219   fi
8220 
8221 
8222 
8223 
8224 
8225   # Publish this variable in the help.
8226 
8227 
8228   if test "x$MKTEMP" = x; then
8229     # The variable is not set by user, try to locate tool using the code snippet
8230     for ac_prog in mktemp
8231 do
8232   # Extract the first word of "$ac_prog", so it can be a program name with args.
8233 set dummy $ac_prog; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_path_MKTEMP+:} false; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   case $MKTEMP in
8240   [\\/]* | ?:[\\/]*)
8241   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8242   ;;
8243   *)
8244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247   IFS=$as_save_IFS
8248   test -z "$as_dir" && as_dir=.
8249     for ac_exec_ext in '' $ac_executable_extensions; do
8250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253     break 2
8254   fi
8255 done
8256   done
8257 IFS=$as_save_IFS
8258 
8259   ;;
8260 esac
8261 fi
8262 MKTEMP=$ac_cv_path_MKTEMP
8263 if test -n "$MKTEMP"; then
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8265 $as_echo "$MKTEMP" >&6; }
8266 else
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270 
8271 
8272   test -n "$MKTEMP" && break
8273 done
8274 
8275   else
8276     # The variable is set, but is it from the command line or the environment?
8277 
8278     # Try to remove the string !MKTEMP! from our list.
8279     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8280     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8281       # If it failed, the variable was not from the command line. Ignore it,
8282       # but warn the user (except for BASH, which is always set by the calling BASH).
8283       if test "xMKTEMP" != xBASH; then
8284         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8285 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8286       fi
8287       # Try to locate tool using the code snippet
8288       for ac_prog in mktemp
8289 do
8290   # Extract the first word of "$ac_prog", so it can be a program name with args.
8291 set dummy $ac_prog; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if ${ac_cv_path_MKTEMP+:} false; then :
8295   $as_echo_n "(cached) " >&6
8296 else
8297   case $MKTEMP in
8298   [\\/]* | ?:[\\/]*)
8299   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8300   ;;
8301   *)
8302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305   IFS=$as_save_IFS
8306   test -z "$as_dir" && as_dir=.
8307     for ac_exec_ext in '' $ac_executable_extensions; do
8308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311     break 2
8312   fi
8313 done
8314   done
8315 IFS=$as_save_IFS
8316 
8317   ;;
8318 esac
8319 fi
8320 MKTEMP=$ac_cv_path_MKTEMP
8321 if test -n "$MKTEMP"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8323 $as_echo "$MKTEMP" >&6; }
8324 else
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328 
8329 
8330   test -n "$MKTEMP" && break
8331 done
8332 
8333     else
8334       # If it succeeded, then it was overridden by the user. We will use it
8335       # for the tool.
8336 
8337       # First remove it from the list of overridden variables, so we can test
8338       # for unknown variables in the end.
8339       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8340 
8341       # Check if the provided tool contains a complete path.
8342       tool_specified="$MKTEMP"
8343       tool_basename="${tool_specified##*/}"
8344       if test "x$tool_basename" = "x$tool_specified"; then
8345         # A command without a complete path is provided, search $PATH.
8346         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8347 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8348         # Extract the first word of "$tool_basename", so it can be a program name with args.
8349 set dummy $tool_basename; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_path_MKTEMP+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355   case $MKTEMP in
8356   [\\/]* | ?:[\\/]*)
8357   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8358   ;;
8359   *)
8360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365     for ac_exec_ext in '' $ac_executable_extensions; do
8366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372   done
8373 IFS=$as_save_IFS
8374 
8375   ;;
8376 esac
8377 fi
8378 MKTEMP=$ac_cv_path_MKTEMP
8379 if test -n "$MKTEMP"; then
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8381 $as_echo "$MKTEMP" >&6; }
8382 else
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386 
8387 
8388         if test "x$MKTEMP" = x; then
8389           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8390         fi
8391       else
8392         # Otherwise we believe it is a complete path. Use it as it is.
8393         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8394 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8395         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8396 $as_echo_n "checking for MKTEMP... " >&6; }
8397         if test ! -x "$tool_specified"; then
8398           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8399 $as_echo "not found" >&6; }
8400           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8401         fi
8402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8403 $as_echo "$tool_specified" >&6; }
8404       fi
8405     fi
8406   fi
8407 
8408 
8409 
8410   if test "x$MKTEMP" = x; then
8411     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8412   fi
8413 
8414 
8415 
8416 
8417 
8418   # Publish this variable in the help.
8419 
8420 
8421   if test "x$MV" = x; then
8422     # The variable is not set by user, try to locate tool using the code snippet
8423     for ac_prog in mv
8424 do
8425   # Extract the first word of "$ac_prog", so it can be a program name with args.
8426 set dummy $ac_prog; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_path_MV+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   case $MV in
8433   [\\/]* | ?:[\\/]*)
8434   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8435   ;;
8436   *)
8437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   test -z "$as_dir" && as_dir=.
8442     for ac_exec_ext in '' $ac_executable_extensions; do
8443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446     break 2
8447   fi
8448 done
8449   done
8450 IFS=$as_save_IFS
8451 
8452   ;;
8453 esac
8454 fi
8455 MV=$ac_cv_path_MV
8456 if test -n "$MV"; then
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8458 $as_echo "$MV" >&6; }
8459 else
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463 
8464 
8465   test -n "$MV" && break
8466 done
8467 
8468   else
8469     # The variable is set, but is it from the command line or the environment?
8470 
8471     # Try to remove the string !MV! from our list.
8472     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8473     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8474       # If it failed, the variable was not from the command line. Ignore it,
8475       # but warn the user (except for BASH, which is always set by the calling BASH).
8476       if test "xMV" != xBASH; then
8477         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8478 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8479       fi
8480       # Try to locate tool using the code snippet
8481       for ac_prog in mv
8482 do
8483   # Extract the first word of "$ac_prog", so it can be a program name with args.
8484 set dummy $ac_prog; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_path_MV+:} false; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   case $MV in
8491   [\\/]* | ?:[\\/]*)
8492   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8493   ;;
8494   *)
8495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498   IFS=$as_save_IFS
8499   test -z "$as_dir" && as_dir=.
8500     for ac_exec_ext in '' $ac_executable_extensions; do
8501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504     break 2
8505   fi
8506 done
8507   done
8508 IFS=$as_save_IFS
8509 
8510   ;;
8511 esac
8512 fi
8513 MV=$ac_cv_path_MV
8514 if test -n "$MV"; then
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8516 $as_echo "$MV" >&6; }
8517 else
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521 
8522 
8523   test -n "$MV" && break
8524 done
8525 
8526     else
8527       # If it succeeded, then it was overridden by the user. We will use it
8528       # for the tool.
8529 
8530       # First remove it from the list of overridden variables, so we can test
8531       # for unknown variables in the end.
8532       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8533 
8534       # Check if the provided tool contains a complete path.
8535       tool_specified="$MV"
8536       tool_basename="${tool_specified##*/}"
8537       if test "x$tool_basename" = "x$tool_specified"; then
8538         # A command without a complete path is provided, search $PATH.
8539         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8540 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8541         # Extract the first word of "$tool_basename", so it can be a program name with args.
8542 set dummy $tool_basename; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if ${ac_cv_path_MV+:} false; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   case $MV in
8549   [\\/]* | ?:[\\/]*)
8550   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8551   ;;
8552   *)
8553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in $PATH
8555 do
8556   IFS=$as_save_IFS
8557   test -z "$as_dir" && as_dir=.
8558     for ac_exec_ext in '' $ac_executable_extensions; do
8559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8560     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562     break 2
8563   fi
8564 done
8565   done
8566 IFS=$as_save_IFS
8567 
8568   ;;
8569 esac
8570 fi
8571 MV=$ac_cv_path_MV
8572 if test -n "$MV"; then
8573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8574 $as_echo "$MV" >&6; }
8575 else
8576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 fi
8579 
8580 
8581         if test "x$MV" = x; then
8582           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8583         fi
8584       else
8585         # Otherwise we believe it is a complete path. Use it as it is.
8586         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8587 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8589 $as_echo_n "checking for MV... " >&6; }
8590         if test ! -x "$tool_specified"; then
8591           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8592 $as_echo "not found" >&6; }
8593           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8594         fi
8595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8596 $as_echo "$tool_specified" >&6; }
8597       fi
8598     fi
8599   fi
8600 
8601 
8602 
8603   if test "x$MV" = x; then
8604     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8605   fi
8606 
8607 
8608 
8609 
8610 
8611   # Publish this variable in the help.
8612 
8613 
8614   if test "x$NAWK" = x; then
8615     # The variable is not set by user, try to locate tool using the code snippet
8616     for ac_prog in nawk gawk awk
8617 do
8618   # Extract the first word of "$ac_prog", so it can be a program name with args.
8619 set dummy $ac_prog; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_path_NAWK+:} false; then :
8623   $as_echo_n "(cached) " >&6
8624 else
8625   case $NAWK in
8626   [\\/]* | ?:[\\/]*)
8627   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8628   ;;
8629   *)
8630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633   IFS=$as_save_IFS
8634   test -z "$as_dir" && as_dir=.
8635     for ac_exec_ext in '' $ac_executable_extensions; do
8636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642   done
8643 IFS=$as_save_IFS
8644 
8645   ;;
8646 esac
8647 fi
8648 NAWK=$ac_cv_path_NAWK
8649 if test -n "$NAWK"; then
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8651 $as_echo "$NAWK" >&6; }
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656 
8657 
8658   test -n "$NAWK" && break
8659 done
8660 
8661   else
8662     # The variable is set, but is it from the command line or the environment?
8663 
8664     # Try to remove the string !NAWK! from our list.
8665     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8666     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8667       # If it failed, the variable was not from the command line. Ignore it,
8668       # but warn the user (except for BASH, which is always set by the calling BASH).
8669       if test "xNAWK" != xBASH; then
8670         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8671 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8672       fi
8673       # Try to locate tool using the code snippet
8674       for ac_prog in nawk gawk awk
8675 do
8676   # Extract the first word of "$ac_prog", so it can be a program name with args.
8677 set dummy $ac_prog; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_path_NAWK+:} false; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   case $NAWK in
8684   [\\/]* | ?:[\\/]*)
8685   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8686   ;;
8687   *)
8688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8690 do
8691   IFS=$as_save_IFS
8692   test -z "$as_dir" && as_dir=.
8693     for ac_exec_ext in '' $ac_executable_extensions; do
8694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697     break 2
8698   fi
8699 done
8700   done
8701 IFS=$as_save_IFS
8702 
8703   ;;
8704 esac
8705 fi
8706 NAWK=$ac_cv_path_NAWK
8707 if test -n "$NAWK"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8709 $as_echo "$NAWK" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714 
8715 
8716   test -n "$NAWK" && break
8717 done
8718 
8719     else
8720       # If it succeeded, then it was overridden by the user. We will use it
8721       # for the tool.
8722 
8723       # First remove it from the list of overridden variables, so we can test
8724       # for unknown variables in the end.
8725       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8726 
8727       # Check if the provided tool contains a complete path.
8728       tool_specified="$NAWK"
8729       tool_basename="${tool_specified##*/}"
8730       if test "x$tool_basename" = "x$tool_specified"; then
8731         # A command without a complete path is provided, search $PATH.
8732         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8733 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8734         # Extract the first word of "$tool_basename", so it can be a program name with args.
8735 set dummy $tool_basename; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if ${ac_cv_path_NAWK+:} false; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741   case $NAWK in
8742   [\\/]* | ?:[\\/]*)
8743   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8744   ;;
8745   *)
8746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8748 do
8749   IFS=$as_save_IFS
8750   test -z "$as_dir" && as_dir=.
8751     for ac_exec_ext in '' $ac_executable_extensions; do
8752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755     break 2
8756   fi
8757 done
8758   done
8759 IFS=$as_save_IFS
8760 
8761   ;;
8762 esac
8763 fi
8764 NAWK=$ac_cv_path_NAWK
8765 if test -n "$NAWK"; then
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8767 $as_echo "$NAWK" >&6; }
8768 else
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772 
8773 
8774         if test "x$NAWK" = x; then
8775           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8776         fi
8777       else
8778         # Otherwise we believe it is a complete path. Use it as it is.
8779         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8780 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8782 $as_echo_n "checking for NAWK... " >&6; }
8783         if test ! -x "$tool_specified"; then
8784           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8785 $as_echo "not found" >&6; }
8786           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8787         fi
8788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8789 $as_echo "$tool_specified" >&6; }
8790       fi
8791     fi
8792   fi
8793 
8794 
8795 
8796   if test "x$NAWK" = x; then
8797     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8798   fi
8799 
8800 
8801 
8802 
8803 
8804   # Publish this variable in the help.
8805 
8806 
8807   if test "x$PRINTF" = x; then
8808     # The variable is not set by user, try to locate tool using the code snippet
8809     for ac_prog in printf
8810 do
8811   # Extract the first word of "$ac_prog", so it can be a program name with args.
8812 set dummy $ac_prog; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if ${ac_cv_path_PRINTF+:} false; then :
8816   $as_echo_n "(cached) " >&6
8817 else
8818   case $PRINTF in
8819   [\\/]* | ?:[\\/]*)
8820   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8821   ;;
8822   *)
8823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826   IFS=$as_save_IFS
8827   test -z "$as_dir" && as_dir=.
8828     for ac_exec_ext in '' $ac_executable_extensions; do
8829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832     break 2
8833   fi
8834 done
8835   done
8836 IFS=$as_save_IFS
8837 
8838   ;;
8839 esac
8840 fi
8841 PRINTF=$ac_cv_path_PRINTF
8842 if test -n "$PRINTF"; then
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8844 $as_echo "$PRINTF" >&6; }
8845 else
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849 
8850 
8851   test -n "$PRINTF" && break
8852 done
8853 
8854   else
8855     # The variable is set, but is it from the command line or the environment?
8856 
8857     # Try to remove the string !PRINTF! from our list.
8858     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8859     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8860       # If it failed, the variable was not from the command line. Ignore it,
8861       # but warn the user (except for BASH, which is always set by the calling BASH).
8862       if test "xPRINTF" != xBASH; then
8863         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8864 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8865       fi
8866       # Try to locate tool using the code snippet
8867       for ac_prog in printf
8868 do
8869   # Extract the first word of "$ac_prog", so it can be a program name with args.
8870 set dummy $ac_prog; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if ${ac_cv_path_PRINTF+:} false; then :
8874   $as_echo_n "(cached) " >&6
8875 else
8876   case $PRINTF in
8877   [\\/]* | ?:[\\/]*)
8878   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8879   ;;
8880   *)
8881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884   IFS=$as_save_IFS
8885   test -z "$as_dir" && as_dir=.
8886     for ac_exec_ext in '' $ac_executable_extensions; do
8887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890     break 2
8891   fi
8892 done
8893   done
8894 IFS=$as_save_IFS
8895 
8896   ;;
8897 esac
8898 fi
8899 PRINTF=$ac_cv_path_PRINTF
8900 if test -n "$PRINTF"; then
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8902 $as_echo "$PRINTF" >&6; }
8903 else
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907 
8908 
8909   test -n "$PRINTF" && break
8910 done
8911 
8912     else
8913       # If it succeeded, then it was overridden by the user. We will use it
8914       # for the tool.
8915 
8916       # First remove it from the list of overridden variables, so we can test
8917       # for unknown variables in the end.
8918       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8919 
8920       # Check if the provided tool contains a complete path.
8921       tool_specified="$PRINTF"
8922       tool_basename="${tool_specified##*/}"
8923       if test "x$tool_basename" = "x$tool_specified"; then
8924         # A command without a complete path is provided, search $PATH.
8925         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8926 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8927         # Extract the first word of "$tool_basename", so it can be a program name with args.
8928 set dummy $tool_basename; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if ${ac_cv_path_PRINTF+:} false; then :
8932   $as_echo_n "(cached) " >&6
8933 else
8934   case $PRINTF in
8935   [\\/]* | ?:[\\/]*)
8936   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8937   ;;
8938   *)
8939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $PATH
8941 do
8942   IFS=$as_save_IFS
8943   test -z "$as_dir" && as_dir=.
8944     for ac_exec_ext in '' $ac_executable_extensions; do
8945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8946     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8948     break 2
8949   fi
8950 done
8951   done
8952 IFS=$as_save_IFS
8953 
8954   ;;
8955 esac
8956 fi
8957 PRINTF=$ac_cv_path_PRINTF
8958 if test -n "$PRINTF"; then
8959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8960 $as_echo "$PRINTF" >&6; }
8961 else
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8964 fi
8965 
8966 
8967         if test "x$PRINTF" = x; then
8968           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8969         fi
8970       else
8971         # Otherwise we believe it is a complete path. Use it as it is.
8972         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8973 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8975 $as_echo_n "checking for PRINTF... " >&6; }
8976         if test ! -x "$tool_specified"; then
8977           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8978 $as_echo "not found" >&6; }
8979           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8980         fi
8981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8982 $as_echo "$tool_specified" >&6; }
8983       fi
8984     fi
8985   fi
8986 
8987 
8988 
8989   if test "x$PRINTF" = x; then
8990     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8991   fi
8992 
8993 
8994 
8995 
8996 
8997   # Publish this variable in the help.
8998 
8999 
9000   if test "x$RM" = x; then
9001     # The variable is not set by user, try to locate tool using the code snippet
9002     for ac_prog in rm
9003 do
9004   # Extract the first word of "$ac_prog", so it can be a program name with args.
9005 set dummy $ac_prog; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if ${ac_cv_path_RM+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   case $RM in
9012   [\\/]* | ?:[\\/]*)
9013   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9014   ;;
9015   *)
9016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9018 do
9019   IFS=$as_save_IFS
9020   test -z "$as_dir" && as_dir=.
9021     for ac_exec_ext in '' $ac_executable_extensions; do
9022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025     break 2
9026   fi
9027 done
9028   done
9029 IFS=$as_save_IFS
9030 
9031   ;;
9032 esac
9033 fi
9034 RM=$ac_cv_path_RM
9035 if test -n "$RM"; then
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9037 $as_echo "$RM" >&6; }
9038 else
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042 
9043 
9044   test -n "$RM" && break
9045 done
9046 
9047   else
9048     # The variable is set, but is it from the command line or the environment?
9049 
9050     # Try to remove the string !RM! from our list.
9051     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9052     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9053       # If it failed, the variable was not from the command line. Ignore it,
9054       # but warn the user (except for BASH, which is always set by the calling BASH).
9055       if test "xRM" != xBASH; then
9056         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9057 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9058       fi
9059       # Try to locate tool using the code snippet
9060       for ac_prog in rm
9061 do
9062   # Extract the first word of "$ac_prog", so it can be a program name with args.
9063 set dummy $ac_prog; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if ${ac_cv_path_RM+:} false; then :
9067   $as_echo_n "(cached) " >&6
9068 else
9069   case $RM in
9070   [\\/]* | ?:[\\/]*)
9071   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9072   ;;
9073   *)
9074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9076 do
9077   IFS=$as_save_IFS
9078   test -z "$as_dir" && as_dir=.
9079     for ac_exec_ext in '' $ac_executable_extensions; do
9080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9081     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083     break 2
9084   fi
9085 done
9086   done
9087 IFS=$as_save_IFS
9088 
9089   ;;
9090 esac
9091 fi
9092 RM=$ac_cv_path_RM
9093 if test -n "$RM"; then
9094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9095 $as_echo "$RM" >&6; }
9096 else
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098 $as_echo "no" >&6; }
9099 fi
9100 
9101 
9102   test -n "$RM" && break
9103 done
9104 
9105     else
9106       # If it succeeded, then it was overridden by the user. We will use it
9107       # for the tool.
9108 
9109       # First remove it from the list of overridden variables, so we can test
9110       # for unknown variables in the end.
9111       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9112 
9113       # Check if the provided tool contains a complete path.
9114       tool_specified="$RM"
9115       tool_basename="${tool_specified##*/}"
9116       if test "x$tool_basename" = "x$tool_specified"; then
9117         # A command without a complete path is provided, search $PATH.
9118         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9119 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9120         # Extract the first word of "$tool_basename", so it can be a program name with args.
9121 set dummy $tool_basename; ac_word=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if ${ac_cv_path_RM+:} false; then :
9125   $as_echo_n "(cached) " >&6
9126 else
9127   case $RM in
9128   [\\/]* | ?:[\\/]*)
9129   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9130   ;;
9131   *)
9132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9134 do
9135   IFS=$as_save_IFS
9136   test -z "$as_dir" && as_dir=.
9137     for ac_exec_ext in '' $ac_executable_extensions; do
9138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141     break 2
9142   fi
9143 done
9144   done
9145 IFS=$as_save_IFS
9146 
9147   ;;
9148 esac
9149 fi
9150 RM=$ac_cv_path_RM
9151 if test -n "$RM"; then
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9153 $as_echo "$RM" >&6; }
9154 else
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9157 fi
9158 
9159 
9160         if test "x$RM" = x; then
9161           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9162         fi
9163       else
9164         # Otherwise we believe it is a complete path. Use it as it is.
9165         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9166 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9168 $as_echo_n "checking for RM... " >&6; }
9169         if test ! -x "$tool_specified"; then
9170           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9171 $as_echo "not found" >&6; }
9172           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9173         fi
9174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9175 $as_echo "$tool_specified" >&6; }
9176       fi
9177     fi
9178   fi
9179 
9180 
9181 
9182   if test "x$RM" = x; then
9183     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9184   fi
9185 
9186 
9187 
9188 
9189 
9190   # Publish this variable in the help.
9191 
9192 
9193   if test "x$SH" = x; then
9194     # The variable is not set by user, try to locate tool using the code snippet
9195     for ac_prog in sh
9196 do
9197   # Extract the first word of "$ac_prog", so it can be a program name with args.
9198 set dummy $ac_prog; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if ${ac_cv_path_SH+:} false; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   case $SH in
9205   [\\/]* | ?:[\\/]*)
9206   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9207   ;;
9208   *)
9209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212   IFS=$as_save_IFS
9213   test -z "$as_dir" && as_dir=.
9214     for ac_exec_ext in '' $ac_executable_extensions; do
9215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218     break 2
9219   fi
9220 done
9221   done
9222 IFS=$as_save_IFS
9223 
9224   ;;
9225 esac
9226 fi
9227 SH=$ac_cv_path_SH
9228 if test -n "$SH"; then
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9230 $as_echo "$SH" >&6; }
9231 else
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9234 fi
9235 
9236 
9237   test -n "$SH" && break
9238 done
9239 
9240   else
9241     # The variable is set, but is it from the command line or the environment?
9242 
9243     # Try to remove the string !SH! from our list.
9244     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9245     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9246       # If it failed, the variable was not from the command line. Ignore it,
9247       # but warn the user (except for BASH, which is always set by the calling BASH).
9248       if test "xSH" != xBASH; then
9249         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9250 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9251       fi
9252       # Try to locate tool using the code snippet
9253       for ac_prog in sh
9254 do
9255   # Extract the first word of "$ac_prog", so it can be a program name with args.
9256 set dummy $ac_prog; ac_word=$2
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if ${ac_cv_path_SH+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   case $SH in
9263   [\\/]* | ?:[\\/]*)
9264   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9265   ;;
9266   *)
9267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9269 do
9270   IFS=$as_save_IFS
9271   test -z "$as_dir" && as_dir=.
9272     for ac_exec_ext in '' $ac_executable_extensions; do
9273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9274     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276     break 2
9277   fi
9278 done
9279   done
9280 IFS=$as_save_IFS
9281 
9282   ;;
9283 esac
9284 fi
9285 SH=$ac_cv_path_SH
9286 if test -n "$SH"; then
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9288 $as_echo "$SH" >&6; }
9289 else
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9292 fi
9293 
9294 
9295   test -n "$SH" && break
9296 done
9297 
9298     else
9299       # If it succeeded, then it was overridden by the user. We will use it
9300       # for the tool.
9301 
9302       # First remove it from the list of overridden variables, so we can test
9303       # for unknown variables in the end.
9304       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9305 
9306       # Check if the provided tool contains a complete path.
9307       tool_specified="$SH"
9308       tool_basename="${tool_specified##*/}"
9309       if test "x$tool_basename" = "x$tool_specified"; then
9310         # A command without a complete path is provided, search $PATH.
9311         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9312 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9313         # Extract the first word of "$tool_basename", so it can be a program name with args.
9314 set dummy $tool_basename; ac_word=$2
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316 $as_echo_n "checking for $ac_word... " >&6; }
9317 if ${ac_cv_path_SH+:} false; then :
9318   $as_echo_n "(cached) " >&6
9319 else
9320   case $SH in
9321   [\\/]* | ?:[\\/]*)
9322   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9323   ;;
9324   *)
9325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9327 do
9328   IFS=$as_save_IFS
9329   test -z "$as_dir" && as_dir=.
9330     for ac_exec_ext in '' $ac_executable_extensions; do
9331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334     break 2
9335   fi
9336 done
9337   done
9338 IFS=$as_save_IFS
9339 
9340   ;;
9341 esac
9342 fi
9343 SH=$ac_cv_path_SH
9344 if test -n "$SH"; then
9345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9346 $as_echo "$SH" >&6; }
9347 else
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9350 fi
9351 
9352 
9353         if test "x$SH" = x; then
9354           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9355         fi
9356       else
9357         # Otherwise we believe it is a complete path. Use it as it is.
9358         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9359 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9361 $as_echo_n "checking for SH... " >&6; }
9362         if test ! -x "$tool_specified"; then
9363           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9364 $as_echo "not found" >&6; }
9365           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9366         fi
9367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9368 $as_echo "$tool_specified" >&6; }
9369       fi
9370     fi
9371   fi
9372 
9373 
9374 
9375   if test "x$SH" = x; then
9376     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9377   fi
9378 
9379 
9380 
9381 
9382 
9383   # Publish this variable in the help.
9384 
9385 
9386   if test "x$SORT" = x; then
9387     # The variable is not set by user, try to locate tool using the code snippet
9388     for ac_prog in sort
9389 do
9390   # Extract the first word of "$ac_prog", so it can be a program name with args.
9391 set dummy $ac_prog; ac_word=$2
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if ${ac_cv_path_SORT+:} false; then :
9395   $as_echo_n "(cached) " >&6
9396 else
9397   case $SORT in
9398   [\\/]* | ?:[\\/]*)
9399   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9400   ;;
9401   *)
9402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 for as_dir in $PATH
9404 do
9405   IFS=$as_save_IFS
9406   test -z "$as_dir" && as_dir=.
9407     for ac_exec_ext in '' $ac_executable_extensions; do
9408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9409     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9411     break 2
9412   fi
9413 done
9414   done
9415 IFS=$as_save_IFS
9416 
9417   ;;
9418 esac
9419 fi
9420 SORT=$ac_cv_path_SORT
9421 if test -n "$SORT"; then
9422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9423 $as_echo "$SORT" >&6; }
9424 else
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9427 fi
9428 
9429 
9430   test -n "$SORT" && break
9431 done
9432 
9433   else
9434     # The variable is set, but is it from the command line or the environment?
9435 
9436     # Try to remove the string !SORT! from our list.
9437     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9438     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9439       # If it failed, the variable was not from the command line. Ignore it,
9440       # but warn the user (except for BASH, which is always set by the calling BASH).
9441       if test "xSORT" != xBASH; then
9442         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9443 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9444       fi
9445       # Try to locate tool using the code snippet
9446       for ac_prog in sort
9447 do
9448   # Extract the first word of "$ac_prog", so it can be a program name with args.
9449 set dummy $ac_prog; ac_word=$2
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9451 $as_echo_n "checking for $ac_word... " >&6; }
9452 if ${ac_cv_path_SORT+:} false; then :
9453   $as_echo_n "(cached) " >&6
9454 else
9455   case $SORT in
9456   [\\/]* | ?:[\\/]*)
9457   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9458   ;;
9459   *)
9460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9462 do
9463   IFS=$as_save_IFS
9464   test -z "$as_dir" && as_dir=.
9465     for ac_exec_ext in '' $ac_executable_extensions; do
9466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469     break 2
9470   fi
9471 done
9472   done
9473 IFS=$as_save_IFS
9474 
9475   ;;
9476 esac
9477 fi
9478 SORT=$ac_cv_path_SORT
9479 if test -n "$SORT"; then
9480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9481 $as_echo "$SORT" >&6; }
9482 else
9483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 fi
9486 
9487 
9488   test -n "$SORT" && break
9489 done
9490 
9491     else
9492       # If it succeeded, then it was overridden by the user. We will use it
9493       # for the tool.
9494 
9495       # First remove it from the list of overridden variables, so we can test
9496       # for unknown variables in the end.
9497       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9498 
9499       # Check if the provided tool contains a complete path.
9500       tool_specified="$SORT"
9501       tool_basename="${tool_specified##*/}"
9502       if test "x$tool_basename" = "x$tool_specified"; then
9503         # A command without a complete path is provided, search $PATH.
9504         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9505 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9506         # Extract the first word of "$tool_basename", so it can be a program name with args.
9507 set dummy $tool_basename; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if ${ac_cv_path_SORT+:} false; then :
9511   $as_echo_n "(cached) " >&6
9512 else
9513   case $SORT in
9514   [\\/]* | ?:[\\/]*)
9515   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9516   ;;
9517   *)
9518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9520 do
9521   IFS=$as_save_IFS
9522   test -z "$as_dir" && as_dir=.
9523     for ac_exec_ext in '' $ac_executable_extensions; do
9524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527     break 2
9528   fi
9529 done
9530   done
9531 IFS=$as_save_IFS
9532 
9533   ;;
9534 esac
9535 fi
9536 SORT=$ac_cv_path_SORT
9537 if test -n "$SORT"; then
9538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9539 $as_echo "$SORT" >&6; }
9540 else
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9543 fi
9544 
9545 
9546         if test "x$SORT" = x; then
9547           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9548         fi
9549       else
9550         # Otherwise we believe it is a complete path. Use it as it is.
9551         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9552 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9553         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9554 $as_echo_n "checking for SORT... " >&6; }
9555         if test ! -x "$tool_specified"; then
9556           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9557 $as_echo "not found" >&6; }
9558           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9559         fi
9560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9561 $as_echo "$tool_specified" >&6; }
9562       fi
9563     fi
9564   fi
9565 
9566 
9567 
9568   if test "x$SORT" = x; then
9569     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9570   fi
9571 
9572 
9573 
9574 
9575 
9576   # Publish this variable in the help.
9577 
9578 
9579   if test "x$TAIL" = x; then
9580     # The variable is not set by user, try to locate tool using the code snippet
9581     for ac_prog in tail
9582 do
9583   # Extract the first word of "$ac_prog", so it can be a program name with args.
9584 set dummy $ac_prog; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_path_TAIL+:} false; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   case $TAIL in
9591   [\\/]* | ?:[\\/]*)
9592   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9593   ;;
9594   *)
9595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9597 do
9598   IFS=$as_save_IFS
9599   test -z "$as_dir" && as_dir=.
9600     for ac_exec_ext in '' $ac_executable_extensions; do
9601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604     break 2
9605   fi
9606 done
9607   done
9608 IFS=$as_save_IFS
9609 
9610   ;;
9611 esac
9612 fi
9613 TAIL=$ac_cv_path_TAIL
9614 if test -n "$TAIL"; then
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9616 $as_echo "$TAIL" >&6; }
9617 else
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 fi
9621 
9622 
9623   test -n "$TAIL" && break
9624 done
9625 
9626   else
9627     # The variable is set, but is it from the command line or the environment?
9628 
9629     # Try to remove the string !TAIL! from our list.
9630     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9631     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9632       # If it failed, the variable was not from the command line. Ignore it,
9633       # but warn the user (except for BASH, which is always set by the calling BASH).
9634       if test "xTAIL" != xBASH; then
9635         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9636 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9637       fi
9638       # Try to locate tool using the code snippet
9639       for ac_prog in tail
9640 do
9641   # Extract the first word of "$ac_prog", so it can be a program name with args.
9642 set dummy $ac_prog; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if ${ac_cv_path_TAIL+:} false; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   case $TAIL in
9649   [\\/]* | ?:[\\/]*)
9650   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9651   ;;
9652   *)
9653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656   IFS=$as_save_IFS
9657   test -z "$as_dir" && as_dir=.
9658     for ac_exec_ext in '' $ac_executable_extensions; do
9659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662     break 2
9663   fi
9664 done
9665   done
9666 IFS=$as_save_IFS
9667 
9668   ;;
9669 esac
9670 fi
9671 TAIL=$ac_cv_path_TAIL
9672 if test -n "$TAIL"; then
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9674 $as_echo "$TAIL" >&6; }
9675 else
9676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9678 fi
9679 
9680 
9681   test -n "$TAIL" && break
9682 done
9683 
9684     else
9685       # If it succeeded, then it was overridden by the user. We will use it
9686       # for the tool.
9687 
9688       # First remove it from the list of overridden variables, so we can test
9689       # for unknown variables in the end.
9690       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9691 
9692       # Check if the provided tool contains a complete path.
9693       tool_specified="$TAIL"
9694       tool_basename="${tool_specified##*/}"
9695       if test "x$tool_basename" = "x$tool_specified"; then
9696         # A command without a complete path is provided, search $PATH.
9697         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9698 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9699         # Extract the first word of "$tool_basename", so it can be a program name with args.
9700 set dummy $tool_basename; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if ${ac_cv_path_TAIL+:} false; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706   case $TAIL in
9707   [\\/]* | ?:[\\/]*)
9708   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9709   ;;
9710   *)
9711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 for as_dir in $PATH
9713 do
9714   IFS=$as_save_IFS
9715   test -z "$as_dir" && as_dir=.
9716     for ac_exec_ext in '' $ac_executable_extensions; do
9717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9718     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9720     break 2
9721   fi
9722 done
9723   done
9724 IFS=$as_save_IFS
9725 
9726   ;;
9727 esac
9728 fi
9729 TAIL=$ac_cv_path_TAIL
9730 if test -n "$TAIL"; then
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9732 $as_echo "$TAIL" >&6; }
9733 else
9734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9736 fi
9737 
9738 
9739         if test "x$TAIL" = x; then
9740           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9741         fi
9742       else
9743         # Otherwise we believe it is a complete path. Use it as it is.
9744         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9745 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9746         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9747 $as_echo_n "checking for TAIL... " >&6; }
9748         if test ! -x "$tool_specified"; then
9749           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9750 $as_echo "not found" >&6; }
9751           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9752         fi
9753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9754 $as_echo "$tool_specified" >&6; }
9755       fi
9756     fi
9757   fi
9758 
9759 
9760 
9761   if test "x$TAIL" = x; then
9762     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9763   fi
9764 
9765 
9766 
9767 
9768 
9769   # Publish this variable in the help.
9770 
9771 
9772   if test "x$TAR" = x; then
9773     # The variable is not set by user, try to locate tool using the code snippet
9774     for ac_prog in tar
9775 do
9776   # Extract the first word of "$ac_prog", so it can be a program name with args.
9777 set dummy $ac_prog; ac_word=$2
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779 $as_echo_n "checking for $ac_word... " >&6; }
9780 if ${ac_cv_path_TAR+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   case $TAR in
9784   [\\/]* | ?:[\\/]*)
9785   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9786   ;;
9787   *)
9788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9790 do
9791   IFS=$as_save_IFS
9792   test -z "$as_dir" && as_dir=.
9793     for ac_exec_ext in '' $ac_executable_extensions; do
9794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797     break 2
9798   fi
9799 done
9800   done
9801 IFS=$as_save_IFS
9802 
9803   ;;
9804 esac
9805 fi
9806 TAR=$ac_cv_path_TAR
9807 if test -n "$TAR"; then
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9809 $as_echo "$TAR" >&6; }
9810 else
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814 
9815 
9816   test -n "$TAR" && break
9817 done
9818 
9819   else
9820     # The variable is set, but is it from the command line or the environment?
9821 
9822     # Try to remove the string !TAR! from our list.
9823     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9824     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9825       # If it failed, the variable was not from the command line. Ignore it,
9826       # but warn the user (except for BASH, which is always set by the calling BASH).
9827       if test "xTAR" != xBASH; then
9828         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9829 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9830       fi
9831       # Try to locate tool using the code snippet
9832       for ac_prog in tar
9833 do
9834   # Extract the first word of "$ac_prog", so it can be a program name with args.
9835 set dummy $ac_prog; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_path_TAR+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   case $TAR in
9842   [\\/]* | ?:[\\/]*)
9843   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9844   ;;
9845   *)
9846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9848 do
9849   IFS=$as_save_IFS
9850   test -z "$as_dir" && as_dir=.
9851     for ac_exec_ext in '' $ac_executable_extensions; do
9852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9853     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855     break 2
9856   fi
9857 done
9858   done
9859 IFS=$as_save_IFS
9860 
9861   ;;
9862 esac
9863 fi
9864 TAR=$ac_cv_path_TAR
9865 if test -n "$TAR"; then
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9867 $as_echo "$TAR" >&6; }
9868 else
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872 
9873 
9874   test -n "$TAR" && break
9875 done
9876 
9877     else
9878       # If it succeeded, then it was overridden by the user. We will use it
9879       # for the tool.
9880 
9881       # First remove it from the list of overridden variables, so we can test
9882       # for unknown variables in the end.
9883       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9884 
9885       # Check if the provided tool contains a complete path.
9886       tool_specified="$TAR"
9887       tool_basename="${tool_specified##*/}"
9888       if test "x$tool_basename" = "x$tool_specified"; then
9889         # A command without a complete path is provided, search $PATH.
9890         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9891 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9892         # Extract the first word of "$tool_basename", so it can be a program name with args.
9893 set dummy $tool_basename; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if ${ac_cv_path_TAR+:} false; then :
9897   $as_echo_n "(cached) " >&6
9898 else
9899   case $TAR in
9900   [\\/]* | ?:[\\/]*)
9901   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9902   ;;
9903   *)
9904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9906 do
9907   IFS=$as_save_IFS
9908   test -z "$as_dir" && as_dir=.
9909     for ac_exec_ext in '' $ac_executable_extensions; do
9910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9911     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913     break 2
9914   fi
9915 done
9916   done
9917 IFS=$as_save_IFS
9918 
9919   ;;
9920 esac
9921 fi
9922 TAR=$ac_cv_path_TAR
9923 if test -n "$TAR"; then
9924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9925 $as_echo "$TAR" >&6; }
9926 else
9927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9929 fi
9930 
9931 
9932         if test "x$TAR" = x; then
9933           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9934         fi
9935       else
9936         # Otherwise we believe it is a complete path. Use it as it is.
9937         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9938 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9939         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9940 $as_echo_n "checking for TAR... " >&6; }
9941         if test ! -x "$tool_specified"; then
9942           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9943 $as_echo "not found" >&6; }
9944           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9945         fi
9946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9947 $as_echo "$tool_specified" >&6; }
9948       fi
9949     fi
9950   fi
9951 
9952 
9953 
9954   if test "x$TAR" = x; then
9955     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9956   fi
9957 
9958 
9959 
9960 
9961 
9962   # Publish this variable in the help.
9963 
9964 
9965   if test "x$TEE" = x; then
9966     # The variable is not set by user, try to locate tool using the code snippet
9967     for ac_prog in tee
9968 do
9969   # Extract the first word of "$ac_prog", so it can be a program name with args.
9970 set dummy $ac_prog; ac_word=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if ${ac_cv_path_TEE+:} false; then :
9974   $as_echo_n "(cached) " >&6
9975 else
9976   case $TEE in
9977   [\\/]* | ?:[\\/]*)
9978   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9979   ;;
9980   *)
9981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9983 do
9984   IFS=$as_save_IFS
9985   test -z "$as_dir" && as_dir=.
9986     for ac_exec_ext in '' $ac_executable_extensions; do
9987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9988     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990     break 2
9991   fi
9992 done
9993   done
9994 IFS=$as_save_IFS
9995 
9996   ;;
9997 esac
9998 fi
9999 TEE=$ac_cv_path_TEE
10000 if test -n "$TEE"; then
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10002 $as_echo "$TEE" >&6; }
10003 else
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10006 fi
10007 
10008 
10009   test -n "$TEE" && break
10010 done
10011 
10012   else
10013     # The variable is set, but is it from the command line or the environment?
10014 
10015     # Try to remove the string !TEE! from our list.
10016     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10017     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10018       # If it failed, the variable was not from the command line. Ignore it,
10019       # but warn the user (except for BASH, which is always set by the calling BASH).
10020       if test "xTEE" != xBASH; then
10021         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10022 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10023       fi
10024       # Try to locate tool using the code snippet
10025       for ac_prog in tee
10026 do
10027   # Extract the first word of "$ac_prog", so it can be a program name with args.
10028 set dummy $ac_prog; ac_word=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 $as_echo_n "checking for $ac_word... " >&6; }
10031 if ${ac_cv_path_TEE+:} false; then :
10032   $as_echo_n "(cached) " >&6
10033 else
10034   case $TEE in
10035   [\\/]* | ?:[\\/]*)
10036   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10037   ;;
10038   *)
10039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10041 do
10042   IFS=$as_save_IFS
10043   test -z "$as_dir" && as_dir=.
10044     for ac_exec_ext in '' $ac_executable_extensions; do
10045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10046     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10048     break 2
10049   fi
10050 done
10051   done
10052 IFS=$as_save_IFS
10053 
10054   ;;
10055 esac
10056 fi
10057 TEE=$ac_cv_path_TEE
10058 if test -n "$TEE"; then
10059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10060 $as_echo "$TEE" >&6; }
10061 else
10062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063 $as_echo "no" >&6; }
10064 fi
10065 
10066 
10067   test -n "$TEE" && break
10068 done
10069 
10070     else
10071       # If it succeeded, then it was overridden by the user. We will use it
10072       # for the tool.
10073 
10074       # First remove it from the list of overridden variables, so we can test
10075       # for unknown variables in the end.
10076       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10077 
10078       # Check if the provided tool contains a complete path.
10079       tool_specified="$TEE"
10080       tool_basename="${tool_specified##*/}"
10081       if test "x$tool_basename" = "x$tool_specified"; then
10082         # A command without a complete path is provided, search $PATH.
10083         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10084 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10085         # Extract the first word of "$tool_basename", so it can be a program name with args.
10086 set dummy $tool_basename; ac_word=$2
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088 $as_echo_n "checking for $ac_word... " >&6; }
10089 if ${ac_cv_path_TEE+:} false; then :
10090   $as_echo_n "(cached) " >&6
10091 else
10092   case $TEE in
10093   [\\/]* | ?:[\\/]*)
10094   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10095   ;;
10096   *)
10097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10099 do
10100   IFS=$as_save_IFS
10101   test -z "$as_dir" && as_dir=.
10102     for ac_exec_ext in '' $ac_executable_extensions; do
10103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106     break 2
10107   fi
10108 done
10109   done
10110 IFS=$as_save_IFS
10111 
10112   ;;
10113 esac
10114 fi
10115 TEE=$ac_cv_path_TEE
10116 if test -n "$TEE"; then
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10118 $as_echo "$TEE" >&6; }
10119 else
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10122 fi
10123 
10124 
10125         if test "x$TEE" = x; then
10126           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10127         fi
10128       else
10129         # Otherwise we believe it is a complete path. Use it as it is.
10130         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10131 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10133 $as_echo_n "checking for TEE... " >&6; }
10134         if test ! -x "$tool_specified"; then
10135           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10136 $as_echo "not found" >&6; }
10137           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10138         fi
10139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10140 $as_echo "$tool_specified" >&6; }
10141       fi
10142     fi
10143   fi
10144 
10145 
10146 
10147   if test "x$TEE" = x; then
10148     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10149   fi
10150 
10151 
10152 
10153 
10154 
10155   # Publish this variable in the help.
10156 
10157 
10158   if test "x$TOUCH" = x; then
10159     # The variable is not set by user, try to locate tool using the code snippet
10160     for ac_prog in touch
10161 do
10162   # Extract the first word of "$ac_prog", so it can be a program name with args.
10163 set dummy $ac_prog; ac_word=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if ${ac_cv_path_TOUCH+:} false; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   case $TOUCH in
10170   [\\/]* | ?:[\\/]*)
10171   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10172   ;;
10173   *)
10174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10176 do
10177   IFS=$as_save_IFS
10178   test -z "$as_dir" && as_dir=.
10179     for ac_exec_ext in '' $ac_executable_extensions; do
10180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183     break 2
10184   fi
10185 done
10186   done
10187 IFS=$as_save_IFS
10188 
10189   ;;
10190 esac
10191 fi
10192 TOUCH=$ac_cv_path_TOUCH
10193 if test -n "$TOUCH"; then
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10195 $as_echo "$TOUCH" >&6; }
10196 else
10197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10199 fi
10200 
10201 
10202   test -n "$TOUCH" && break
10203 done
10204 
10205   else
10206     # The variable is set, but is it from the command line or the environment?
10207 
10208     # Try to remove the string !TOUCH! from our list.
10209     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10210     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10211       # If it failed, the variable was not from the command line. Ignore it,
10212       # but warn the user (except for BASH, which is always set by the calling BASH).
10213       if test "xTOUCH" != xBASH; then
10214         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10215 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10216       fi
10217       # Try to locate tool using the code snippet
10218       for ac_prog in touch
10219 do
10220   # Extract the first word of "$ac_prog", so it can be a program name with args.
10221 set dummy $ac_prog; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_path_TOUCH+:} false; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   case $TOUCH in
10228   [\\/]* | ?:[\\/]*)
10229   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10230   ;;
10231   *)
10232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in $PATH
10234 do
10235   IFS=$as_save_IFS
10236   test -z "$as_dir" && as_dir=.
10237     for ac_exec_ext in '' $ac_executable_extensions; do
10238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241     break 2
10242   fi
10243 done
10244   done
10245 IFS=$as_save_IFS
10246 
10247   ;;
10248 esac
10249 fi
10250 TOUCH=$ac_cv_path_TOUCH
10251 if test -n "$TOUCH"; then
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10253 $as_echo "$TOUCH" >&6; }
10254 else
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258 
10259 
10260   test -n "$TOUCH" && break
10261 done
10262 
10263     else
10264       # If it succeeded, then it was overridden by the user. We will use it
10265       # for the tool.
10266 
10267       # First remove it from the list of overridden variables, so we can test
10268       # for unknown variables in the end.
10269       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10270 
10271       # Check if the provided tool contains a complete path.
10272       tool_specified="$TOUCH"
10273       tool_basename="${tool_specified##*/}"
10274       if test "x$tool_basename" = "x$tool_specified"; then
10275         # A command without a complete path is provided, search $PATH.
10276         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10277 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10278         # Extract the first word of "$tool_basename", so it can be a program name with args.
10279 set dummy $tool_basename; ac_word=$2
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if ${ac_cv_path_TOUCH+:} false; then :
10283   $as_echo_n "(cached) " >&6
10284 else
10285   case $TOUCH in
10286   [\\/]* | ?:[\\/]*)
10287   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10288   ;;
10289   *)
10290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in $PATH
10292 do
10293   IFS=$as_save_IFS
10294   test -z "$as_dir" && as_dir=.
10295     for ac_exec_ext in '' $ac_executable_extensions; do
10296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10297     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10299     break 2
10300   fi
10301 done
10302   done
10303 IFS=$as_save_IFS
10304 
10305   ;;
10306 esac
10307 fi
10308 TOUCH=$ac_cv_path_TOUCH
10309 if test -n "$TOUCH"; then
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10311 $as_echo "$TOUCH" >&6; }
10312 else
10313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10315 fi
10316 
10317 
10318         if test "x$TOUCH" = x; then
10319           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10320         fi
10321       else
10322         # Otherwise we believe it is a complete path. Use it as it is.
10323         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10324 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10326 $as_echo_n "checking for TOUCH... " >&6; }
10327         if test ! -x "$tool_specified"; then
10328           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10329 $as_echo "not found" >&6; }
10330           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10331         fi
10332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10333 $as_echo "$tool_specified" >&6; }
10334       fi
10335     fi
10336   fi
10337 
10338 
10339 
10340   if test "x$TOUCH" = x; then
10341     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10342   fi
10343 
10344 
10345 
10346 
10347 
10348   # Publish this variable in the help.
10349 
10350 
10351   if test "x$TR" = x; then
10352     # The variable is not set by user, try to locate tool using the code snippet
10353     for ac_prog in tr
10354 do
10355   # Extract the first word of "$ac_prog", so it can be a program name with args.
10356 set dummy $ac_prog; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if ${ac_cv_path_TR+:} false; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362   case $TR in
10363   [\\/]* | ?:[\\/]*)
10364   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10365   ;;
10366   *)
10367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10369 do
10370   IFS=$as_save_IFS
10371   test -z "$as_dir" && as_dir=.
10372     for ac_exec_ext in '' $ac_executable_extensions; do
10373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376     break 2
10377   fi
10378 done
10379   done
10380 IFS=$as_save_IFS
10381 
10382   ;;
10383 esac
10384 fi
10385 TR=$ac_cv_path_TR
10386 if test -n "$TR"; then
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10388 $as_echo "$TR" >&6; }
10389 else
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392 fi
10393 
10394 
10395   test -n "$TR" && break
10396 done
10397 
10398   else
10399     # The variable is set, but is it from the command line or the environment?
10400 
10401     # Try to remove the string !TR! from our list.
10402     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10403     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10404       # If it failed, the variable was not from the command line. Ignore it,
10405       # but warn the user (except for BASH, which is always set by the calling BASH).
10406       if test "xTR" != xBASH; then
10407         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10408 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10409       fi
10410       # Try to locate tool using the code snippet
10411       for ac_prog in tr
10412 do
10413   # Extract the first word of "$ac_prog", so it can be a program name with args.
10414 set dummy $ac_prog; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if ${ac_cv_path_TR+:} false; then :
10418   $as_echo_n "(cached) " >&6
10419 else
10420   case $TR in
10421   [\\/]* | ?:[\\/]*)
10422   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10423   ;;
10424   *)
10425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10427 do
10428   IFS=$as_save_IFS
10429   test -z "$as_dir" && as_dir=.
10430     for ac_exec_ext in '' $ac_executable_extensions; do
10431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434     break 2
10435   fi
10436 done
10437   done
10438 IFS=$as_save_IFS
10439 
10440   ;;
10441 esac
10442 fi
10443 TR=$ac_cv_path_TR
10444 if test -n "$TR"; then
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10446 $as_echo "$TR" >&6; }
10447 else
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 fi
10451 
10452 
10453   test -n "$TR" && break
10454 done
10455 
10456     else
10457       # If it succeeded, then it was overridden by the user. We will use it
10458       # for the tool.
10459 
10460       # First remove it from the list of overridden variables, so we can test
10461       # for unknown variables in the end.
10462       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10463 
10464       # Check if the provided tool contains a complete path.
10465       tool_specified="$TR"
10466       tool_basename="${tool_specified##*/}"
10467       if test "x$tool_basename" = "x$tool_specified"; then
10468         # A command without a complete path is provided, search $PATH.
10469         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10470 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10471         # Extract the first word of "$tool_basename", so it can be a program name with args.
10472 set dummy $tool_basename; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if ${ac_cv_path_TR+:} false; then :
10476   $as_echo_n "(cached) " >&6
10477 else
10478   case $TR in
10479   [\\/]* | ?:[\\/]*)
10480   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10481   ;;
10482   *)
10483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10485 do
10486   IFS=$as_save_IFS
10487   test -z "$as_dir" && as_dir=.
10488     for ac_exec_ext in '' $ac_executable_extensions; do
10489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492     break 2
10493   fi
10494 done
10495   done
10496 IFS=$as_save_IFS
10497 
10498   ;;
10499 esac
10500 fi
10501 TR=$ac_cv_path_TR
10502 if test -n "$TR"; then
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10504 $as_echo "$TR" >&6; }
10505 else
10506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10508 fi
10509 
10510 
10511         if test "x$TR" = x; then
10512           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10513         fi
10514       else
10515         # Otherwise we believe it is a complete path. Use it as it is.
10516         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10517 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10518         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10519 $as_echo_n "checking for TR... " >&6; }
10520         if test ! -x "$tool_specified"; then
10521           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10522 $as_echo "not found" >&6; }
10523           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10524         fi
10525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10526 $as_echo "$tool_specified" >&6; }
10527       fi
10528     fi
10529   fi
10530 
10531 
10532 
10533   if test "x$TR" = x; then
10534     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10535   fi
10536 
10537 
10538 
10539 
10540 
10541   # Publish this variable in the help.
10542 
10543 
10544   if test "x$UNAME" = x; then
10545     # The variable is not set by user, try to locate tool using the code snippet
10546     for ac_prog in uname
10547 do
10548   # Extract the first word of "$ac_prog", so it can be a program name with args.
10549 set dummy $ac_prog; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if ${ac_cv_path_UNAME+:} false; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   case $UNAME in
10556   [\\/]* | ?:[\\/]*)
10557   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10558   ;;
10559   *)
10560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563   IFS=$as_save_IFS
10564   test -z "$as_dir" && as_dir=.
10565     for ac_exec_ext in '' $ac_executable_extensions; do
10566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569     break 2
10570   fi
10571 done
10572   done
10573 IFS=$as_save_IFS
10574 
10575   ;;
10576 esac
10577 fi
10578 UNAME=$ac_cv_path_UNAME
10579 if test -n "$UNAME"; then
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10581 $as_echo "$UNAME" >&6; }
10582 else
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 fi
10586 
10587 
10588   test -n "$UNAME" && break
10589 done
10590 
10591   else
10592     # The variable is set, but is it from the command line or the environment?
10593 
10594     # Try to remove the string !UNAME! from our list.
10595     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10596     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10597       # If it failed, the variable was not from the command line. Ignore it,
10598       # but warn the user (except for BASH, which is always set by the calling BASH).
10599       if test "xUNAME" != xBASH; then
10600         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10601 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10602       fi
10603       # Try to locate tool using the code snippet
10604       for ac_prog in uname
10605 do
10606   # Extract the first word of "$ac_prog", so it can be a program name with args.
10607 set dummy $ac_prog; ac_word=$2
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609 $as_echo_n "checking for $ac_word... " >&6; }
10610 if ${ac_cv_path_UNAME+:} false; then :
10611   $as_echo_n "(cached) " >&6
10612 else
10613   case $UNAME in
10614   [\\/]* | ?:[\\/]*)
10615   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10616   ;;
10617   *)
10618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10620 do
10621   IFS=$as_save_IFS
10622   test -z "$as_dir" && as_dir=.
10623     for ac_exec_ext in '' $ac_executable_extensions; do
10624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627     break 2
10628   fi
10629 done
10630   done
10631 IFS=$as_save_IFS
10632 
10633   ;;
10634 esac
10635 fi
10636 UNAME=$ac_cv_path_UNAME
10637 if test -n "$UNAME"; then
10638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10639 $as_echo "$UNAME" >&6; }
10640 else
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10643 fi
10644 
10645 
10646   test -n "$UNAME" && break
10647 done
10648 
10649     else
10650       # If it succeeded, then it was overridden by the user. We will use it
10651       # for the tool.
10652 
10653       # First remove it from the list of overridden variables, so we can test
10654       # for unknown variables in the end.
10655       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10656 
10657       # Check if the provided tool contains a complete path.
10658       tool_specified="$UNAME"
10659       tool_basename="${tool_specified##*/}"
10660       if test "x$tool_basename" = "x$tool_specified"; then
10661         # A command without a complete path is provided, search $PATH.
10662         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10663 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10664         # Extract the first word of "$tool_basename", so it can be a program name with args.
10665 set dummy $tool_basename; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_path_UNAME+:} false; then :
10669   $as_echo_n "(cached) " >&6
10670 else
10671   case $UNAME in
10672   [\\/]* | ?:[\\/]*)
10673   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10674   ;;
10675   *)
10676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10678 do
10679   IFS=$as_save_IFS
10680   test -z "$as_dir" && as_dir=.
10681     for ac_exec_ext in '' $ac_executable_extensions; do
10682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10683     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10685     break 2
10686   fi
10687 done
10688   done
10689 IFS=$as_save_IFS
10690 
10691   ;;
10692 esac
10693 fi
10694 UNAME=$ac_cv_path_UNAME
10695 if test -n "$UNAME"; then
10696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10697 $as_echo "$UNAME" >&6; }
10698 else
10699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10701 fi
10702 
10703 
10704         if test "x$UNAME" = x; then
10705           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10706         fi
10707       else
10708         # Otherwise we believe it is a complete path. Use it as it is.
10709         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10710 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10712 $as_echo_n "checking for UNAME... " >&6; }
10713         if test ! -x "$tool_specified"; then
10714           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10715 $as_echo "not found" >&6; }
10716           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10717         fi
10718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10719 $as_echo "$tool_specified" >&6; }
10720       fi
10721     fi
10722   fi
10723 
10724 
10725 
10726   if test "x$UNAME" = x; then
10727     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10728   fi
10729 
10730 
10731 
10732 
10733 
10734   # Publish this variable in the help.
10735 
10736 
10737   if test "x$UNIQ" = x; then
10738     # The variable is not set by user, try to locate tool using the code snippet
10739     for ac_prog in uniq
10740 do
10741   # Extract the first word of "$ac_prog", so it can be a program name with args.
10742 set dummy $ac_prog; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_path_UNIQ+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   case $UNIQ in
10749   [\\/]* | ?:[\\/]*)
10750   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10751   ;;
10752   *)
10753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10755 do
10756   IFS=$as_save_IFS
10757   test -z "$as_dir" && as_dir=.
10758     for ac_exec_ext in '' $ac_executable_extensions; do
10759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10760     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762     break 2
10763   fi
10764 done
10765   done
10766 IFS=$as_save_IFS
10767 
10768   ;;
10769 esac
10770 fi
10771 UNIQ=$ac_cv_path_UNIQ
10772 if test -n "$UNIQ"; then
10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10774 $as_echo "$UNIQ" >&6; }
10775 else
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779 
10780 
10781   test -n "$UNIQ" && break
10782 done
10783 
10784   else
10785     # The variable is set, but is it from the command line or the environment?
10786 
10787     # Try to remove the string !UNIQ! from our list.
10788     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10789     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10790       # If it failed, the variable was not from the command line. Ignore it,
10791       # but warn the user (except for BASH, which is always set by the calling BASH).
10792       if test "xUNIQ" != xBASH; then
10793         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10794 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10795       fi
10796       # Try to locate tool using the code snippet
10797       for ac_prog in uniq
10798 do
10799   # Extract the first word of "$ac_prog", so it can be a program name with args.
10800 set dummy $ac_prog; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if ${ac_cv_path_UNIQ+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   case $UNIQ in
10807   [\\/]* | ?:[\\/]*)
10808   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10809   ;;
10810   *)
10811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10813 do
10814   IFS=$as_save_IFS
10815   test -z "$as_dir" && as_dir=.
10816     for ac_exec_ext in '' $ac_executable_extensions; do
10817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820     break 2
10821   fi
10822 done
10823   done
10824 IFS=$as_save_IFS
10825 
10826   ;;
10827 esac
10828 fi
10829 UNIQ=$ac_cv_path_UNIQ
10830 if test -n "$UNIQ"; then
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10832 $as_echo "$UNIQ" >&6; }
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10836 fi
10837 
10838 
10839   test -n "$UNIQ" && break
10840 done
10841 
10842     else
10843       # If it succeeded, then it was overridden by the user. We will use it
10844       # for the tool.
10845 
10846       # First remove it from the list of overridden variables, so we can test
10847       # for unknown variables in the end.
10848       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10849 
10850       # Check if the provided tool contains a complete path.
10851       tool_specified="$UNIQ"
10852       tool_basename="${tool_specified##*/}"
10853       if test "x$tool_basename" = "x$tool_specified"; then
10854         # A command without a complete path is provided, search $PATH.
10855         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10856 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10857         # Extract the first word of "$tool_basename", so it can be a program name with args.
10858 set dummy $tool_basename; ac_word=$2
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860 $as_echo_n "checking for $ac_word... " >&6; }
10861 if ${ac_cv_path_UNIQ+:} false; then :
10862   $as_echo_n "(cached) " >&6
10863 else
10864   case $UNIQ in
10865   [\\/]* | ?:[\\/]*)
10866   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10867   ;;
10868   *)
10869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10871 do
10872   IFS=$as_save_IFS
10873   test -z "$as_dir" && as_dir=.
10874     for ac_exec_ext in '' $ac_executable_extensions; do
10875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10878     break 2
10879   fi
10880 done
10881   done
10882 IFS=$as_save_IFS
10883 
10884   ;;
10885 esac
10886 fi
10887 UNIQ=$ac_cv_path_UNIQ
10888 if test -n "$UNIQ"; then
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10890 $as_echo "$UNIQ" >&6; }
10891 else
10892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10894 fi
10895 
10896 
10897         if test "x$UNIQ" = x; then
10898           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10899         fi
10900       else
10901         # Otherwise we believe it is a complete path. Use it as it is.
10902         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10903 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10905 $as_echo_n "checking for UNIQ... " >&6; }
10906         if test ! -x "$tool_specified"; then
10907           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10908 $as_echo "not found" >&6; }
10909           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10910         fi
10911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10912 $as_echo "$tool_specified" >&6; }
10913       fi
10914     fi
10915   fi
10916 
10917 
10918 
10919   if test "x$UNIQ" = x; then
10920     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10921   fi
10922 
10923 
10924 
10925 
10926 
10927   # Publish this variable in the help.
10928 
10929 
10930   if test "x$WC" = x; then
10931     # The variable is not set by user, try to locate tool using the code snippet
10932     for ac_prog in wc
10933 do
10934   # Extract the first word of "$ac_prog", so it can be a program name with args.
10935 set dummy $ac_prog; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if ${ac_cv_path_WC+:} false; then :
10939   $as_echo_n "(cached) " >&6
10940 else
10941   case $WC in
10942   [\\/]* | ?:[\\/]*)
10943   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10944   ;;
10945   *)
10946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949   IFS=$as_save_IFS
10950   test -z "$as_dir" && as_dir=.
10951     for ac_exec_ext in '' $ac_executable_extensions; do
10952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955     break 2
10956   fi
10957 done
10958   done
10959 IFS=$as_save_IFS
10960 
10961   ;;
10962 esac
10963 fi
10964 WC=$ac_cv_path_WC
10965 if test -n "$WC"; then
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10967 $as_echo "$WC" >&6; }
10968 else
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971 fi
10972 
10973 
10974   test -n "$WC" && break
10975 done
10976 
10977   else
10978     # The variable is set, but is it from the command line or the environment?
10979 
10980     # Try to remove the string !WC! from our list.
10981     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10982     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10983       # If it failed, the variable was not from the command line. Ignore it,
10984       # but warn the user (except for BASH, which is always set by the calling BASH).
10985       if test "xWC" != xBASH; then
10986         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10987 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10988       fi
10989       # Try to locate tool using the code snippet
10990       for ac_prog in wc
10991 do
10992   # Extract the first word of "$ac_prog", so it can be a program name with args.
10993 set dummy $ac_prog; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if ${ac_cv_path_WC+:} false; then :
10997   $as_echo_n "(cached) " >&6
10998 else
10999   case $WC in
11000   [\\/]* | ?:[\\/]*)
11001   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11002   ;;
11003   *)
11004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11006 do
11007   IFS=$as_save_IFS
11008   test -z "$as_dir" && as_dir=.
11009     for ac_exec_ext in '' $ac_executable_extensions; do
11010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013     break 2
11014   fi
11015 done
11016   done
11017 IFS=$as_save_IFS
11018 
11019   ;;
11020 esac
11021 fi
11022 WC=$ac_cv_path_WC
11023 if test -n "$WC"; then
11024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11025 $as_echo "$WC" >&6; }
11026 else
11027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11029 fi
11030 
11031 
11032   test -n "$WC" && break
11033 done
11034 
11035     else
11036       # If it succeeded, then it was overridden by the user. We will use it
11037       # for the tool.
11038 
11039       # First remove it from the list of overridden variables, so we can test
11040       # for unknown variables in the end.
11041       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11042 
11043       # Check if the provided tool contains a complete path.
11044       tool_specified="$WC"
11045       tool_basename="${tool_specified##*/}"
11046       if test "x$tool_basename" = "x$tool_specified"; then
11047         # A command without a complete path is provided, search $PATH.
11048         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11049 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11050         # Extract the first word of "$tool_basename", so it can be a program name with args.
11051 set dummy $tool_basename; ac_word=$2
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053 $as_echo_n "checking for $ac_word... " >&6; }
11054 if ${ac_cv_path_WC+:} false; then :
11055   $as_echo_n "(cached) " >&6
11056 else
11057   case $WC in
11058   [\\/]* | ?:[\\/]*)
11059   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11060   ;;
11061   *)
11062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11064 do
11065   IFS=$as_save_IFS
11066   test -z "$as_dir" && as_dir=.
11067     for ac_exec_ext in '' $ac_executable_extensions; do
11068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071     break 2
11072   fi
11073 done
11074   done
11075 IFS=$as_save_IFS
11076 
11077   ;;
11078 esac
11079 fi
11080 WC=$ac_cv_path_WC
11081 if test -n "$WC"; then
11082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11083 $as_echo "$WC" >&6; }
11084 else
11085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11087 fi
11088 
11089 
11090         if test "x$WC" = x; then
11091           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11092         fi
11093       else
11094         # Otherwise we believe it is a complete path. Use it as it is.
11095         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11096 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11098 $as_echo_n "checking for WC... " >&6; }
11099         if test ! -x "$tool_specified"; then
11100           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11101 $as_echo "not found" >&6; }
11102           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11103         fi
11104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11105 $as_echo "$tool_specified" >&6; }
11106       fi
11107     fi
11108   fi
11109 
11110 
11111 
11112   if test "x$WC" = x; then
11113     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11114   fi
11115 
11116 
11117 
11118 
11119 
11120   # Publish this variable in the help.
11121 
11122 
11123   if test "x$WHICH" = x; then
11124     # The variable is not set by user, try to locate tool using the code snippet
11125     for ac_prog in which
11126 do
11127   # Extract the first word of "$ac_prog", so it can be a program name with args.
11128 set dummy $ac_prog; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if ${ac_cv_path_WHICH+:} false; then :
11132   $as_echo_n "(cached) " >&6
11133 else
11134   case $WHICH in
11135   [\\/]* | ?:[\\/]*)
11136   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11137   ;;
11138   *)
11139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11141 do
11142   IFS=$as_save_IFS
11143   test -z "$as_dir" && as_dir=.
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148     break 2
11149   fi
11150 done
11151   done
11152 IFS=$as_save_IFS
11153 
11154   ;;
11155 esac
11156 fi
11157 WHICH=$ac_cv_path_WHICH
11158 if test -n "$WHICH"; then
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11160 $as_echo "$WHICH" >&6; }
11161 else
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11164 fi
11165 
11166 
11167   test -n "$WHICH" && break
11168 done
11169 
11170   else
11171     # The variable is set, but is it from the command line or the environment?
11172 
11173     # Try to remove the string !WHICH! from our list.
11174     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11175     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11176       # If it failed, the variable was not from the command line. Ignore it,
11177       # but warn the user (except for BASH, which is always set by the calling BASH).
11178       if test "xWHICH" != xBASH; then
11179         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11180 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11181       fi
11182       # Try to locate tool using the code snippet
11183       for ac_prog in which
11184 do
11185   # Extract the first word of "$ac_prog", so it can be a program name with args.
11186 set dummy $ac_prog; ac_word=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if ${ac_cv_path_WHICH+:} false; then :
11190   $as_echo_n "(cached) " >&6
11191 else
11192   case $WHICH in
11193   [\\/]* | ?:[\\/]*)
11194   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11195   ;;
11196   *)
11197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11199 do
11200   IFS=$as_save_IFS
11201   test -z "$as_dir" && as_dir=.
11202     for ac_exec_ext in '' $ac_executable_extensions; do
11203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206     break 2
11207   fi
11208 done
11209   done
11210 IFS=$as_save_IFS
11211 
11212   ;;
11213 esac
11214 fi
11215 WHICH=$ac_cv_path_WHICH
11216 if test -n "$WHICH"; then
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11218 $as_echo "$WHICH" >&6; }
11219 else
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11222 fi
11223 
11224 
11225   test -n "$WHICH" && break
11226 done
11227 
11228     else
11229       # If it succeeded, then it was overridden by the user. We will use it
11230       # for the tool.
11231 
11232       # First remove it from the list of overridden variables, so we can test
11233       # for unknown variables in the end.
11234       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11235 
11236       # Check if the provided tool contains a complete path.
11237       tool_specified="$WHICH"
11238       tool_basename="${tool_specified##*/}"
11239       if test "x$tool_basename" = "x$tool_specified"; then
11240         # A command without a complete path is provided, search $PATH.
11241         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11242 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11243         # Extract the first word of "$tool_basename", so it can be a program name with args.
11244 set dummy $tool_basename; ac_word=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if ${ac_cv_path_WHICH+:} false; then :
11248   $as_echo_n "(cached) " >&6
11249 else
11250   case $WHICH in
11251   [\\/]* | ?:[\\/]*)
11252   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11253   ;;
11254   *)
11255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258   IFS=$as_save_IFS
11259   test -z "$as_dir" && as_dir=.
11260     for ac_exec_ext in '' $ac_executable_extensions; do
11261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264     break 2
11265   fi
11266 done
11267   done
11268 IFS=$as_save_IFS
11269 
11270   ;;
11271 esac
11272 fi
11273 WHICH=$ac_cv_path_WHICH
11274 if test -n "$WHICH"; then
11275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11276 $as_echo "$WHICH" >&6; }
11277 else
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281 
11282 
11283         if test "x$WHICH" = x; then
11284           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11285         fi
11286       else
11287         # Otherwise we believe it is a complete path. Use it as it is.
11288         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11289 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11291 $as_echo_n "checking for WHICH... " >&6; }
11292         if test ! -x "$tool_specified"; then
11293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11294 $as_echo "not found" >&6; }
11295           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11296         fi
11297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11298 $as_echo "$tool_specified" >&6; }
11299       fi
11300     fi
11301   fi
11302 
11303 
11304 
11305   if test "x$WHICH" = x; then
11306     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11307   fi
11308 
11309 
11310 
11311 
11312 
11313   # Publish this variable in the help.
11314 
11315 
11316   if test "x$XARGS" = x; then
11317     # The variable is not set by user, try to locate tool using the code snippet
11318     for ac_prog in xargs
11319 do
11320   # Extract the first word of "$ac_prog", so it can be a program name with args.
11321 set dummy $ac_prog; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if ${ac_cv_path_XARGS+:} false; then :
11325   $as_echo_n "(cached) " >&6
11326 else
11327   case $XARGS in
11328   [\\/]* | ?:[\\/]*)
11329   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11330   ;;
11331   *)
11332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11334 do
11335   IFS=$as_save_IFS
11336   test -z "$as_dir" && as_dir=.
11337     for ac_exec_ext in '' $ac_executable_extensions; do
11338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11339     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341     break 2
11342   fi
11343 done
11344   done
11345 IFS=$as_save_IFS
11346 
11347   ;;
11348 esac
11349 fi
11350 XARGS=$ac_cv_path_XARGS
11351 if test -n "$XARGS"; then
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11353 $as_echo "$XARGS" >&6; }
11354 else
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11357 fi
11358 
11359 
11360   test -n "$XARGS" && break
11361 done
11362 
11363   else
11364     # The variable is set, but is it from the command line or the environment?
11365 
11366     # Try to remove the string !XARGS! from our list.
11367     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11368     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11369       # If it failed, the variable was not from the command line. Ignore it,
11370       # but warn the user (except for BASH, which is always set by the calling BASH).
11371       if test "xXARGS" != xBASH; then
11372         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11373 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11374       fi
11375       # Try to locate tool using the code snippet
11376       for ac_prog in xargs
11377 do
11378   # Extract the first word of "$ac_prog", so it can be a program name with args.
11379 set dummy $ac_prog; ac_word=$2
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11381 $as_echo_n "checking for $ac_word... " >&6; }
11382 if ${ac_cv_path_XARGS+:} false; then :
11383   $as_echo_n "(cached) " >&6
11384 else
11385   case $XARGS in
11386   [\\/]* | ?:[\\/]*)
11387   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11388   ;;
11389   *)
11390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11392 do
11393   IFS=$as_save_IFS
11394   test -z "$as_dir" && as_dir=.
11395     for ac_exec_ext in '' $ac_executable_extensions; do
11396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11399     break 2
11400   fi
11401 done
11402   done
11403 IFS=$as_save_IFS
11404 
11405   ;;
11406 esac
11407 fi
11408 XARGS=$ac_cv_path_XARGS
11409 if test -n "$XARGS"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11411 $as_echo "$XARGS" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416 
11417 
11418   test -n "$XARGS" && break
11419 done
11420 
11421     else
11422       # If it succeeded, then it was overridden by the user. We will use it
11423       # for the tool.
11424 
11425       # First remove it from the list of overridden variables, so we can test
11426       # for unknown variables in the end.
11427       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11428 
11429       # Check if the provided tool contains a complete path.
11430       tool_specified="$XARGS"
11431       tool_basename="${tool_specified##*/}"
11432       if test "x$tool_basename" = "x$tool_specified"; then
11433         # A command without a complete path is provided, search $PATH.
11434         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11435 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11436         # Extract the first word of "$tool_basename", so it can be a program name with args.
11437 set dummy $tool_basename; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_XARGS+:} false; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   case $XARGS in
11444   [\\/]* | ?:[\\/]*)
11445   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11446   ;;
11447   *)
11448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451   IFS=$as_save_IFS
11452   test -z "$as_dir" && as_dir=.
11453     for ac_exec_ext in '' $ac_executable_extensions; do
11454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457     break 2
11458   fi
11459 done
11460   done
11461 IFS=$as_save_IFS
11462 
11463   ;;
11464 esac
11465 fi
11466 XARGS=$ac_cv_path_XARGS
11467 if test -n "$XARGS"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11469 $as_echo "$XARGS" >&6; }
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474 
11475 
11476         if test "x$XARGS" = x; then
11477           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11478         fi
11479       else
11480         # Otherwise we believe it is a complete path. Use it as it is.
11481         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11482 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11484 $as_echo_n "checking for XARGS... " >&6; }
11485         if test ! -x "$tool_specified"; then
11486           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11487 $as_echo "not found" >&6; }
11488           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11489         fi
11490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11491 $as_echo "$tool_specified" >&6; }
11492       fi
11493     fi
11494   fi
11495 
11496 
11497 
11498   if test "x$XARGS" = x; then
11499     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11500   fi
11501 
11502 
11503 
11504   # Then required tools that require some special treatment.
11505 
11506 
11507   # Publish this variable in the help.
11508 
11509 
11510   if test "x$AWK" = x; then
11511     # The variable is not set by user, try to locate tool using the code snippet
11512     for ac_prog in gawk mawk nawk awk
11513 do
11514   # Extract the first word of "$ac_prog", so it can be a program name with args.
11515 set dummy $ac_prog; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_prog_AWK+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   if test -n "$AWK"; then
11522   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11523 else
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527   IFS=$as_save_IFS
11528   test -z "$as_dir" && as_dir=.
11529     for ac_exec_ext in '' $ac_executable_extensions; do
11530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531     ac_cv_prog_AWK="$ac_prog"
11532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533     break 2
11534   fi
11535 done
11536   done
11537 IFS=$as_save_IFS
11538 
11539 fi
11540 fi
11541 AWK=$ac_cv_prog_AWK
11542 if test -n "$AWK"; then
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11544 $as_echo "$AWK" >&6; }
11545 else
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11548 fi
11549 
11550 
11551   test -n "$AWK" && break
11552 done
11553 
11554   else
11555     # The variable is set, but is it from the command line or the environment?
11556 
11557     # Try to remove the string !AWK! from our list.
11558     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11559     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11560       # If it failed, the variable was not from the command line. Ignore it,
11561       # but warn the user (except for BASH, which is always set by the calling BASH).
11562       if test "xAWK" != xBASH; then
11563         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11564 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11565       fi
11566       # Try to locate tool using the code snippet
11567       for ac_prog in gawk mawk nawk awk
11568 do
11569   # Extract the first word of "$ac_prog", so it can be a program name with args.
11570 set dummy $ac_prog; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if ${ac_cv_prog_AWK+:} false; then :
11574   $as_echo_n "(cached) " >&6
11575 else
11576   if test -n "$AWK"; then
11577   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582   IFS=$as_save_IFS
11583   test -z "$as_dir" && as_dir=.
11584     for ac_exec_ext in '' $ac_executable_extensions; do
11585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586     ac_cv_prog_AWK="$ac_prog"
11587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588     break 2
11589   fi
11590 done
11591   done
11592 IFS=$as_save_IFS
11593 
11594 fi
11595 fi
11596 AWK=$ac_cv_prog_AWK
11597 if test -n "$AWK"; then
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11599 $as_echo "$AWK" >&6; }
11600 else
11601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604 
11605 
11606   test -n "$AWK" && break
11607 done
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="$AWK"
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 AWK=$tool_basename" >&5
11623 $as_echo "$as_me: Will search for user supplied tool AWK=$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_AWK+:} false; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   case $AWK in
11632   [\\/]* | ?:[\\/]*)
11633   ac_cv_path_AWK="$AWK" # 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_AWK="$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 AWK=$ac_cv_path_AWK
11655 if test -n "$AWK"; then
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11657 $as_echo "$AWK" >&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$AWK" = 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 AWK=$tool_specified" >&5
11670 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11672 $as_echo_n "checking for AWK... " >&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 AWK=$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$AWK" = x; then
11686     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11687   fi
11688 
11689 
11690 
11691 
11692   # Publish this variable in the help.
11693 
11694 
11695   if test "x$GREP" = 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 grep that handles long lines and -e" >&5
11698 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11699 if ${ac_cv_path_GREP+:} false; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   if test -z "$GREP"; then
11703   ac_path_GREP_found=false
11704   # Loop through the user's path and test for each of PROGNAME-LIST
11705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11707 do
11708   IFS=$as_save_IFS
11709   test -z "$as_dir" && as_dir=.
11710     for ac_prog in grep ggrep; do
11711     for ac_exec_ext in '' $ac_executable_extensions; do
11712       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11713       as_fn_executable_p "$ac_path_GREP" || continue
11714 # Check for GNU ac_path_GREP and select it if it is found.
11715   # Check for GNU $ac_path_GREP
11716 case `"$ac_path_GREP" --version 2>&1` in
11717 *GNU*)
11718   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11719 *)
11720   ac_count=0
11721   $as_echo_n 0123456789 >"conftest.in"
11722   while :
11723   do
11724     cat "conftest.in" "conftest.in" >"conftest.tmp"
11725     mv "conftest.tmp" "conftest.in"
11726     cp "conftest.in" "conftest.nl"
11727     $as_echo 'GREP' >> "conftest.nl"
11728     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11729     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11730     as_fn_arith $ac_count + 1 && ac_count=$as_val
11731     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11732       # Best one so far, save it but keep looking for a better one
11733       ac_cv_path_GREP="$ac_path_GREP"
11734       ac_path_GREP_max=$ac_count
11735     fi
11736     # 10*(2^10) chars as input seems more than enough
11737     test $ac_count -gt 10 && break
11738   done
11739   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11740 esac
11741 
11742       $ac_path_GREP_found && break 3
11743     done
11744   done
11745   done
11746 IFS=$as_save_IFS
11747   if test -z "$ac_cv_path_GREP"; then
11748     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11749   fi
11750 else
11751   ac_cv_path_GREP=$GREP
11752 fi
11753 
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11756 $as_echo "$ac_cv_path_GREP" >&6; }
11757  GREP="$ac_cv_path_GREP"
11758 
11759 
11760   else
11761     # The variable is set, but is it from the command line or the environment?
11762 
11763     # Try to remove the string !GREP! from our list.
11764     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11765     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11766       # If it failed, the variable was not from the command line. Ignore it,
11767       # but warn the user (except for BASH, which is always set by the calling BASH).
11768       if test "xGREP" != xBASH; then
11769         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11770 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11771       fi
11772       # Try to locate tool using the code snippet
11773       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11774 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11775 if ${ac_cv_path_GREP+:} false; then :
11776   $as_echo_n "(cached) " >&6
11777 else
11778   if test -z "$GREP"; then
11779   ac_path_GREP_found=false
11780   # Loop through the user's path and test for each of PROGNAME-LIST
11781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11783 do
11784   IFS=$as_save_IFS
11785   test -z "$as_dir" && as_dir=.
11786     for ac_prog in grep ggrep; do
11787     for ac_exec_ext in '' $ac_executable_extensions; do
11788       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11789       as_fn_executable_p "$ac_path_GREP" || continue
11790 # Check for GNU ac_path_GREP and select it if it is found.
11791   # Check for GNU $ac_path_GREP
11792 case `"$ac_path_GREP" --version 2>&1` in
11793 *GNU*)
11794   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11795 *)
11796   ac_count=0
11797   $as_echo_n 0123456789 >"conftest.in"
11798   while :
11799   do
11800     cat "conftest.in" "conftest.in" >"conftest.tmp"
11801     mv "conftest.tmp" "conftest.in"
11802     cp "conftest.in" "conftest.nl"
11803     $as_echo 'GREP' >> "conftest.nl"
11804     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11805     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11806     as_fn_arith $ac_count + 1 && ac_count=$as_val
11807     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11808       # Best one so far, save it but keep looking for a better one
11809       ac_cv_path_GREP="$ac_path_GREP"
11810       ac_path_GREP_max=$ac_count
11811     fi
11812     # 10*(2^10) chars as input seems more than enough
11813     test $ac_count -gt 10 && break
11814   done
11815   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11816 esac
11817 
11818       $ac_path_GREP_found && break 3
11819     done
11820   done
11821   done
11822 IFS=$as_save_IFS
11823   if test -z "$ac_cv_path_GREP"; then
11824     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11825   fi
11826 else
11827   ac_cv_path_GREP=$GREP
11828 fi
11829 
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11832 $as_echo "$ac_cv_path_GREP" >&6; }
11833  GREP="$ac_cv_path_GREP"
11834 
11835 
11836     else
11837       # If it succeeded, then it was overridden by the user. We will use it
11838       # for the tool.
11839 
11840       # First remove it from the list of overridden variables, so we can test
11841       # for unknown variables in the end.
11842       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11843 
11844       # Check if the provided tool contains a complete path.
11845       tool_specified="$GREP"
11846       tool_basename="${tool_specified##*/}"
11847       if test "x$tool_basename" = "x$tool_specified"; then
11848         # A command without a complete path is provided, search $PATH.
11849         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11850 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11851         # Extract the first word of "$tool_basename", so it can be a program name with args.
11852 set dummy $tool_basename; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_path_GREP+:} false; then :
11856   $as_echo_n "(cached) " >&6
11857 else
11858   case $GREP in
11859   [\\/]* | ?:[\\/]*)
11860   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11861   ;;
11862   *)
11863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11865 do
11866   IFS=$as_save_IFS
11867   test -z "$as_dir" && as_dir=.
11868     for ac_exec_ext in '' $ac_executable_extensions; do
11869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872     break 2
11873   fi
11874 done
11875   done
11876 IFS=$as_save_IFS
11877 
11878   ;;
11879 esac
11880 fi
11881 GREP=$ac_cv_path_GREP
11882 if test -n "$GREP"; then
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11884 $as_echo "$GREP" >&6; }
11885 else
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889 
11890 
11891         if test "x$GREP" = x; then
11892           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11893         fi
11894       else
11895         # Otherwise we believe it is a complete path. Use it as it is.
11896         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11897 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11898         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11899 $as_echo_n "checking for GREP... " >&6; }
11900         if test ! -x "$tool_specified"; then
11901           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11902 $as_echo "not found" >&6; }
11903           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11904         fi
11905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11906 $as_echo "$tool_specified" >&6; }
11907       fi
11908     fi
11909   fi
11910 
11911 
11912   if test "x$GREP" = x; then
11913     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11914   fi
11915 
11916 
11917 
11918 
11919   # Publish this variable in the help.
11920 
11921 
11922   if test "x$EGREP" = x; then
11923     # The variable is not set by user, try to locate tool using the code snippet
11924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11925 $as_echo_n "checking for egrep... " >&6; }
11926 if ${ac_cv_path_EGREP+:} false; then :
11927   $as_echo_n "(cached) " >&6
11928 else
11929   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11930    then ac_cv_path_EGREP="$GREP -E"
11931    else
11932      if test -z "$EGREP"; then
11933   ac_path_EGREP_found=false
11934   # Loop through the user's path and test for each of PROGNAME-LIST
11935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11937 do
11938   IFS=$as_save_IFS
11939   test -z "$as_dir" && as_dir=.
11940     for ac_prog in egrep; do
11941     for ac_exec_ext in '' $ac_executable_extensions; do
11942       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11943       as_fn_executable_p "$ac_path_EGREP" || continue
11944 # Check for GNU ac_path_EGREP and select it if it is found.
11945   # Check for GNU $ac_path_EGREP
11946 case `"$ac_path_EGREP" --version 2>&1` in
11947 *GNU*)
11948   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11949 *)
11950   ac_count=0
11951   $as_echo_n 0123456789 >"conftest.in"
11952   while :
11953   do
11954     cat "conftest.in" "conftest.in" >"conftest.tmp"
11955     mv "conftest.tmp" "conftest.in"
11956     cp "conftest.in" "conftest.nl"
11957     $as_echo 'EGREP' >> "conftest.nl"
11958     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11959     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11960     as_fn_arith $ac_count + 1 && ac_count=$as_val
11961     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11962       # Best one so far, save it but keep looking for a better one
11963       ac_cv_path_EGREP="$ac_path_EGREP"
11964       ac_path_EGREP_max=$ac_count
11965     fi
11966     # 10*(2^10) chars as input seems more than enough
11967     test $ac_count -gt 10 && break
11968   done
11969   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11970 esac
11971 
11972       $ac_path_EGREP_found && break 3
11973     done
11974   done
11975   done
11976 IFS=$as_save_IFS
11977   if test -z "$ac_cv_path_EGREP"; then
11978     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11979   fi
11980 else
11981   ac_cv_path_EGREP=$EGREP
11982 fi
11983 
11984    fi
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11987 $as_echo "$ac_cv_path_EGREP" >&6; }
11988  EGREP="$ac_cv_path_EGREP"
11989 
11990 
11991   else
11992     # The variable is set, but is it from the command line or the environment?
11993 
11994     # Try to remove the string !EGREP! from our list.
11995     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11996     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11997       # If it failed, the variable was not from the command line. Ignore it,
11998       # but warn the user (except for BASH, which is always set by the calling BASH).
11999       if test "xEGREP" != xBASH; then
12000         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12001 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12002       fi
12003       # Try to locate tool using the code snippet
12004       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12005 $as_echo_n "checking for egrep... " >&6; }
12006 if ${ac_cv_path_EGREP+:} false; then :
12007   $as_echo_n "(cached) " >&6
12008 else
12009   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12010    then ac_cv_path_EGREP="$GREP -E"
12011    else
12012      if test -z "$EGREP"; then
12013   ac_path_EGREP_found=false
12014   # Loop through the user's path and test for each of PROGNAME-LIST
12015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12017 do
12018   IFS=$as_save_IFS
12019   test -z "$as_dir" && as_dir=.
12020     for ac_prog in egrep; do
12021     for ac_exec_ext in '' $ac_executable_extensions; do
12022       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12023       as_fn_executable_p "$ac_path_EGREP" || continue
12024 # Check for GNU ac_path_EGREP and select it if it is found.
12025   # Check for GNU $ac_path_EGREP
12026 case `"$ac_path_EGREP" --version 2>&1` in
12027 *GNU*)
12028   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12029 *)
12030   ac_count=0
12031   $as_echo_n 0123456789 >"conftest.in"
12032   while :
12033   do
12034     cat "conftest.in" "conftest.in" >"conftest.tmp"
12035     mv "conftest.tmp" "conftest.in"
12036     cp "conftest.in" "conftest.nl"
12037     $as_echo 'EGREP' >> "conftest.nl"
12038     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12039     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12040     as_fn_arith $ac_count + 1 && ac_count=$as_val
12041     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12042       # Best one so far, save it but keep looking for a better one
12043       ac_cv_path_EGREP="$ac_path_EGREP"
12044       ac_path_EGREP_max=$ac_count
12045     fi
12046     # 10*(2^10) chars as input seems more than enough
12047     test $ac_count -gt 10 && break
12048   done
12049   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12050 esac
12051 
12052       $ac_path_EGREP_found && break 3
12053     done
12054   done
12055   done
12056 IFS=$as_save_IFS
12057   if test -z "$ac_cv_path_EGREP"; then
12058     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12059   fi
12060 else
12061   ac_cv_path_EGREP=$EGREP
12062 fi
12063 
12064    fi
12065 fi
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12067 $as_echo "$ac_cv_path_EGREP" >&6; }
12068  EGREP="$ac_cv_path_EGREP"
12069 
12070 
12071     else
12072       # If it succeeded, then it was overridden by the user. We will use it
12073       # for the tool.
12074 
12075       # First remove it from the list of overridden variables, so we can test
12076       # for unknown variables in the end.
12077       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12078 
12079       # Check if the provided tool contains a complete path.
12080       tool_specified="$EGREP"
12081       tool_basename="${tool_specified##*/}"
12082       if test "x$tool_basename" = "x$tool_specified"; then
12083         # A command without a complete path is provided, search $PATH.
12084         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12085 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12086         # Extract the first word of "$tool_basename", so it can be a program name with args.
12087 set dummy $tool_basename; ac_word=$2
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089 $as_echo_n "checking for $ac_word... " >&6; }
12090 if ${ac_cv_path_EGREP+:} false; then :
12091   $as_echo_n "(cached) " >&6
12092 else
12093   case $EGREP in
12094   [\\/]* | ?:[\\/]*)
12095   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12096   ;;
12097   *)
12098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101   IFS=$as_save_IFS
12102   test -z "$as_dir" && as_dir=.
12103     for ac_exec_ext in '' $ac_executable_extensions; do
12104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107     break 2
12108   fi
12109 done
12110   done
12111 IFS=$as_save_IFS
12112 
12113   ;;
12114 esac
12115 fi
12116 EGREP=$ac_cv_path_EGREP
12117 if test -n "$EGREP"; then
12118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12119 $as_echo "$EGREP" >&6; }
12120 else
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12123 fi
12124 
12125 
12126         if test "x$EGREP" = x; then
12127           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12128         fi
12129       else
12130         # Otherwise we believe it is a complete path. Use it as it is.
12131         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12132 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12134 $as_echo_n "checking for EGREP... " >&6; }
12135         if test ! -x "$tool_specified"; then
12136           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12137 $as_echo "not found" >&6; }
12138           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12139         fi
12140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12141 $as_echo "$tool_specified" >&6; }
12142       fi
12143     fi
12144   fi
12145 
12146 
12147   if test "x$EGREP" = x; then
12148     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12149   fi
12150 
12151 
12152 
12153 
12154   # Publish this variable in the help.
12155 
12156 
12157   if test "x$FGREP" = x; then
12158     # The variable is not set by user, try to locate tool using the code snippet
12159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12160 $as_echo_n "checking for fgrep... " >&6; }
12161 if ${ac_cv_path_FGREP+:} false; then :
12162   $as_echo_n "(cached) " >&6
12163 else
12164   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12165    then ac_cv_path_FGREP="$GREP -F"
12166    else
12167      if test -z "$FGREP"; then
12168   ac_path_FGREP_found=false
12169   # Loop through the user's path and test for each of PROGNAME-LIST
12170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12172 do
12173   IFS=$as_save_IFS
12174   test -z "$as_dir" && as_dir=.
12175     for ac_prog in fgrep; do
12176     for ac_exec_ext in '' $ac_executable_extensions; do
12177       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12178       as_fn_executable_p "$ac_path_FGREP" || continue
12179 # Check for GNU ac_path_FGREP and select it if it is found.
12180   # Check for GNU $ac_path_FGREP
12181 case `"$ac_path_FGREP" --version 2>&1` in
12182 *GNU*)
12183   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12184 *)
12185   ac_count=0
12186   $as_echo_n 0123456789 >"conftest.in"
12187   while :
12188   do
12189     cat "conftest.in" "conftest.in" >"conftest.tmp"
12190     mv "conftest.tmp" "conftest.in"
12191     cp "conftest.in" "conftest.nl"
12192     $as_echo 'FGREP' >> "conftest.nl"
12193     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12195     as_fn_arith $ac_count + 1 && ac_count=$as_val
12196     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12197       # Best one so far, save it but keep looking for a better one
12198       ac_cv_path_FGREP="$ac_path_FGREP"
12199       ac_path_FGREP_max=$ac_count
12200     fi
12201     # 10*(2^10) chars as input seems more than enough
12202     test $ac_count -gt 10 && break
12203   done
12204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12205 esac
12206 
12207       $ac_path_FGREP_found && break 3
12208     done
12209   done
12210   done
12211 IFS=$as_save_IFS
12212   if test -z "$ac_cv_path_FGREP"; then
12213     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12214   fi
12215 else
12216   ac_cv_path_FGREP=$FGREP
12217 fi
12218 
12219    fi
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12222 $as_echo "$ac_cv_path_FGREP" >&6; }
12223  FGREP="$ac_cv_path_FGREP"
12224 
12225 
12226   else
12227     # The variable is set, but is it from the command line or the environment?
12228 
12229     # Try to remove the string !FGREP! from our list.
12230     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12231     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12232       # If it failed, the variable was not from the command line. Ignore it,
12233       # but warn the user (except for BASH, which is always set by the calling BASH).
12234       if test "xFGREP" != xBASH; then
12235         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12236 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12237       fi
12238       # Try to locate tool using the code snippet
12239       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12240 $as_echo_n "checking for fgrep... " >&6; }
12241 if ${ac_cv_path_FGREP+:} false; then :
12242   $as_echo_n "(cached) " >&6
12243 else
12244   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12245    then ac_cv_path_FGREP="$GREP -F"
12246    else
12247      if test -z "$FGREP"; then
12248   ac_path_FGREP_found=false
12249   # Loop through the user's path and test for each of PROGNAME-LIST
12250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12252 do
12253   IFS=$as_save_IFS
12254   test -z "$as_dir" && as_dir=.
12255     for ac_prog in fgrep; do
12256     for ac_exec_ext in '' $ac_executable_extensions; do
12257       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12258       as_fn_executable_p "$ac_path_FGREP" || continue
12259 # Check for GNU ac_path_FGREP and select it if it is found.
12260   # Check for GNU $ac_path_FGREP
12261 case `"$ac_path_FGREP" --version 2>&1` in
12262 *GNU*)
12263   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12264 *)
12265   ac_count=0
12266   $as_echo_n 0123456789 >"conftest.in"
12267   while :
12268   do
12269     cat "conftest.in" "conftest.in" >"conftest.tmp"
12270     mv "conftest.tmp" "conftest.in"
12271     cp "conftest.in" "conftest.nl"
12272     $as_echo 'FGREP' >> "conftest.nl"
12273     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12274     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12275     as_fn_arith $ac_count + 1 && ac_count=$as_val
12276     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12277       # Best one so far, save it but keep looking for a better one
12278       ac_cv_path_FGREP="$ac_path_FGREP"
12279       ac_path_FGREP_max=$ac_count
12280     fi
12281     # 10*(2^10) chars as input seems more than enough
12282     test $ac_count -gt 10 && break
12283   done
12284   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12285 esac
12286 
12287       $ac_path_FGREP_found && break 3
12288     done
12289   done
12290   done
12291 IFS=$as_save_IFS
12292   if test -z "$ac_cv_path_FGREP"; then
12293     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12294   fi
12295 else
12296   ac_cv_path_FGREP=$FGREP
12297 fi
12298 
12299    fi
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12302 $as_echo "$ac_cv_path_FGREP" >&6; }
12303  FGREP="$ac_cv_path_FGREP"
12304 
12305 
12306     else
12307       # If it succeeded, then it was overridden by the user. We will use it
12308       # for the tool.
12309 
12310       # First remove it from the list of overridden variables, so we can test
12311       # for unknown variables in the end.
12312       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12313 
12314       # Check if the provided tool contains a complete path.
12315       tool_specified="$FGREP"
12316       tool_basename="${tool_specified##*/}"
12317       if test "x$tool_basename" = "x$tool_specified"; then
12318         # A command without a complete path is provided, search $PATH.
12319         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12320 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12321         # Extract the first word of "$tool_basename", so it can be a program name with args.
12322 set dummy $tool_basename; ac_word=$2
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if ${ac_cv_path_FGREP+:} false; then :
12326   $as_echo_n "(cached) " >&6
12327 else
12328   case $FGREP in
12329   [\\/]* | ?:[\\/]*)
12330   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12331   ;;
12332   *)
12333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12335 do
12336   IFS=$as_save_IFS
12337   test -z "$as_dir" && as_dir=.
12338     for ac_exec_ext in '' $ac_executable_extensions; do
12339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12340     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342     break 2
12343   fi
12344 done
12345   done
12346 IFS=$as_save_IFS
12347 
12348   ;;
12349 esac
12350 fi
12351 FGREP=$ac_cv_path_FGREP
12352 if test -n "$FGREP"; then
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12354 $as_echo "$FGREP" >&6; }
12355 else
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359 
12360 
12361         if test "x$FGREP" = x; then
12362           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12363         fi
12364       else
12365         # Otherwise we believe it is a complete path. Use it as it is.
12366         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12367 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12368         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12369 $as_echo_n "checking for FGREP... " >&6; }
12370         if test ! -x "$tool_specified"; then
12371           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12372 $as_echo "not found" >&6; }
12373           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12374         fi
12375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12376 $as_echo "$tool_specified" >&6; }
12377       fi
12378     fi
12379   fi
12380 
12381 
12382   if test "x$FGREP" = x; then
12383     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12384   fi
12385 
12386 
12387 
12388 
12389   # Publish this variable in the help.
12390 
12391 
12392   if test "x$SED" = x; then
12393     # The variable is not set by user, try to locate tool using the code snippet
12394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12395 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12396 if ${ac_cv_path_SED+:} false; then :
12397   $as_echo_n "(cached) " >&6
12398 else
12399             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12400      for ac_i in 1 2 3 4 5 6 7; do
12401        ac_script="$ac_script$as_nl$ac_script"
12402      done
12403      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12404      { ac_script=; unset ac_script;}
12405      if test -z "$SED"; then
12406   ac_path_SED_found=false
12407   # Loop through the user's path and test for each of PROGNAME-LIST
12408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12410 do
12411   IFS=$as_save_IFS
12412   test -z "$as_dir" && as_dir=.
12413     for ac_prog in sed gsed; do
12414     for ac_exec_ext in '' $ac_executable_extensions; do
12415       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12416       as_fn_executable_p "$ac_path_SED" || continue
12417 # Check for GNU ac_path_SED and select it if it is found.
12418   # Check for GNU $ac_path_SED
12419 case `"$ac_path_SED" --version 2>&1` in
12420 *GNU*)
12421   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12422 *)
12423   ac_count=0
12424   $as_echo_n 0123456789 >"conftest.in"
12425   while :
12426   do
12427     cat "conftest.in" "conftest.in" >"conftest.tmp"
12428     mv "conftest.tmp" "conftest.in"
12429     cp "conftest.in" "conftest.nl"
12430     $as_echo '' >> "conftest.nl"
12431     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12432     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12433     as_fn_arith $ac_count + 1 && ac_count=$as_val
12434     if test $ac_count -gt ${ac_path_SED_max-0}; then
12435       # Best one so far, save it but keep looking for a better one
12436       ac_cv_path_SED="$ac_path_SED"
12437       ac_path_SED_max=$ac_count
12438     fi
12439     # 10*(2^10) chars as input seems more than enough
12440     test $ac_count -gt 10 && break
12441   done
12442   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12443 esac
12444 
12445       $ac_path_SED_found && break 3
12446     done
12447   done
12448   done
12449 IFS=$as_save_IFS
12450   if test -z "$ac_cv_path_SED"; then
12451     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12452   fi
12453 else
12454   ac_cv_path_SED=$SED
12455 fi
12456 
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12459 $as_echo "$ac_cv_path_SED" >&6; }
12460  SED="$ac_cv_path_SED"
12461   rm -f conftest.sed
12462 
12463   else
12464     # The variable is set, but is it from the command line or the environment?
12465 
12466     # Try to remove the string !SED! from our list.
12467     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12468     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12469       # If it failed, the variable was not from the command line. Ignore it,
12470       # but warn the user (except for BASH, which is always set by the calling BASH).
12471       if test "xSED" != xBASH; then
12472         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12473 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12474       fi
12475       # Try to locate tool using the code snippet
12476       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12477 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12478 if ${ac_cv_path_SED+:} false; then :
12479   $as_echo_n "(cached) " >&6
12480 else
12481             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12482      for ac_i in 1 2 3 4 5 6 7; do
12483        ac_script="$ac_script$as_nl$ac_script"
12484      done
12485      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12486      { ac_script=; unset ac_script;}
12487      if test -z "$SED"; then
12488   ac_path_SED_found=false
12489   # Loop through the user's path and test for each of PROGNAME-LIST
12490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12492 do
12493   IFS=$as_save_IFS
12494   test -z "$as_dir" && as_dir=.
12495     for ac_prog in sed gsed; do
12496     for ac_exec_ext in '' $ac_executable_extensions; do
12497       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12498       as_fn_executable_p "$ac_path_SED" || continue
12499 # Check for GNU ac_path_SED and select it if it is found.
12500   # Check for GNU $ac_path_SED
12501 case `"$ac_path_SED" --version 2>&1` in
12502 *GNU*)
12503   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12504 *)
12505   ac_count=0
12506   $as_echo_n 0123456789 >"conftest.in"
12507   while :
12508   do
12509     cat "conftest.in" "conftest.in" >"conftest.tmp"
12510     mv "conftest.tmp" "conftest.in"
12511     cp "conftest.in" "conftest.nl"
12512     $as_echo '' >> "conftest.nl"
12513     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12514     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12515     as_fn_arith $ac_count + 1 && ac_count=$as_val
12516     if test $ac_count -gt ${ac_path_SED_max-0}; then
12517       # Best one so far, save it but keep looking for a better one
12518       ac_cv_path_SED="$ac_path_SED"
12519       ac_path_SED_max=$ac_count
12520     fi
12521     # 10*(2^10) chars as input seems more than enough
12522     test $ac_count -gt 10 && break
12523   done
12524   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12525 esac
12526 
12527       $ac_path_SED_found && break 3
12528     done
12529   done
12530   done
12531 IFS=$as_save_IFS
12532   if test -z "$ac_cv_path_SED"; then
12533     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12534   fi
12535 else
12536   ac_cv_path_SED=$SED
12537 fi
12538 
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12541 $as_echo "$ac_cv_path_SED" >&6; }
12542  SED="$ac_cv_path_SED"
12543   rm -f conftest.sed
12544 
12545     else
12546       # If it succeeded, then it was overridden by the user. We will use it
12547       # for the tool.
12548 
12549       # First remove it from the list of overridden variables, so we can test
12550       # for unknown variables in the end.
12551       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12552 
12553       # Check if the provided tool contains a complete path.
12554       tool_specified="$SED"
12555       tool_basename="${tool_specified##*/}"
12556       if test "x$tool_basename" = "x$tool_specified"; then
12557         # A command without a complete path is provided, search $PATH.
12558         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12559 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12560         # Extract the first word of "$tool_basename", so it can be a program name with args.
12561 set dummy $tool_basename; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if ${ac_cv_path_SED+:} false; then :
12565   $as_echo_n "(cached) " >&6
12566 else
12567   case $SED in
12568   [\\/]* | ?:[\\/]*)
12569   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12570   ;;
12571   *)
12572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12574 do
12575   IFS=$as_save_IFS
12576   test -z "$as_dir" && as_dir=.
12577     for ac_exec_ext in '' $ac_executable_extensions; do
12578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581     break 2
12582   fi
12583 done
12584   done
12585 IFS=$as_save_IFS
12586 
12587   ;;
12588 esac
12589 fi
12590 SED=$ac_cv_path_SED
12591 if test -n "$SED"; then
12592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12593 $as_echo "$SED" >&6; }
12594 else
12595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12597 fi
12598 
12599 
12600         if test "x$SED" = x; then
12601           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12602         fi
12603       else
12604         # Otherwise we believe it is a complete path. Use it as it is.
12605         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12606 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12607         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12608 $as_echo_n "checking for SED... " >&6; }
12609         if test ! -x "$tool_specified"; then
12610           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12611 $as_echo "not found" >&6; }
12612           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12613         fi
12614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12615 $as_echo "$tool_specified" >&6; }
12616       fi
12617     fi
12618   fi
12619 
12620 
12621   if test "x$SED" = x; then
12622     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12623   fi
12624 
12625 
12626 
12627   # Always force rm.
12628   RM="$RM -f"
12629 
12630   # pwd behaves differently on various platforms and some don't support the -L flag.
12631   # Always use the bash builtin pwd to get uniform behavior.
12632   THEPWDCMD=pwd
12633 
12634   # These are not required on all platforms
12635 
12636 
12637   # Publish this variable in the help.
12638 
12639 
12640   if test "x$CYGPATH" = x; then
12641     # The variable is not set by user, try to locate tool using the code snippet
12642     for ac_prog in cygpath
12643 do
12644   # Extract the first word of "$ac_prog", so it can be a program name with args.
12645 set dummy $ac_prog; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if ${ac_cv_path_CYGPATH+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   case $CYGPATH in
12652   [\\/]* | ?:[\\/]*)
12653   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12654   ;;
12655   *)
12656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12658 do
12659   IFS=$as_save_IFS
12660   test -z "$as_dir" && as_dir=.
12661     for ac_exec_ext in '' $ac_executable_extensions; do
12662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665     break 2
12666   fi
12667 done
12668   done
12669 IFS=$as_save_IFS
12670 
12671   ;;
12672 esac
12673 fi
12674 CYGPATH=$ac_cv_path_CYGPATH
12675 if test -n "$CYGPATH"; then
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12677 $as_echo "$CYGPATH" >&6; }
12678 else
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681 fi
12682 
12683 
12684   test -n "$CYGPATH" && break
12685 done
12686 
12687   else
12688     # The variable is set, but is it from the command line or the environment?
12689 
12690     # Try to remove the string !CYGPATH! from our list.
12691     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12692     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12693       # If it failed, the variable was not from the command line. Ignore it,
12694       # but warn the user (except for BASH, which is always set by the calling BASH).
12695       if test "xCYGPATH" != xBASH; then
12696         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12697 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12698       fi
12699       # Try to locate tool using the code snippet
12700       for ac_prog in cygpath
12701 do
12702   # Extract the first word of "$ac_prog", so it can be a program name with args.
12703 set dummy $ac_prog; ac_word=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if ${ac_cv_path_CYGPATH+:} false; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709   case $CYGPATH in
12710   [\\/]* | ?:[\\/]*)
12711   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12712   ;;
12713   *)
12714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12716 do
12717   IFS=$as_save_IFS
12718   test -z "$as_dir" && as_dir=.
12719     for ac_exec_ext in '' $ac_executable_extensions; do
12720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12721     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723     break 2
12724   fi
12725 done
12726   done
12727 IFS=$as_save_IFS
12728 
12729   ;;
12730 esac
12731 fi
12732 CYGPATH=$ac_cv_path_CYGPATH
12733 if test -n "$CYGPATH"; then
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12735 $as_echo "$CYGPATH" >&6; }
12736 else
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12739 fi
12740 
12741 
12742   test -n "$CYGPATH" && break
12743 done
12744 
12745     else
12746       # If it succeeded, then it was overridden by the user. We will use it
12747       # for the tool.
12748 
12749       # First remove it from the list of overridden variables, so we can test
12750       # for unknown variables in the end.
12751       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12752 
12753       # Check if the provided tool contains a complete path.
12754       tool_specified="$CYGPATH"
12755       tool_basename="${tool_specified##*/}"
12756       if test "x$tool_basename" = "x$tool_specified"; then
12757         # A command without a complete path is provided, search $PATH.
12758         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12759 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12760         # Extract the first word of "$tool_basename", so it can be a program name with args.
12761 set dummy $tool_basename; ac_word=$2
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if ${ac_cv_path_CYGPATH+:} false; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   case $CYGPATH in
12768   [\\/]* | ?:[\\/]*)
12769   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12770   ;;
12771   *)
12772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12774 do
12775   IFS=$as_save_IFS
12776   test -z "$as_dir" && as_dir=.
12777     for ac_exec_ext in '' $ac_executable_extensions; do
12778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12779     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12781     break 2
12782   fi
12783 done
12784   done
12785 IFS=$as_save_IFS
12786 
12787   ;;
12788 esac
12789 fi
12790 CYGPATH=$ac_cv_path_CYGPATH
12791 if test -n "$CYGPATH"; then
12792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12793 $as_echo "$CYGPATH" >&6; }
12794 else
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 fi
12798 
12799 
12800         if test "x$CYGPATH" = x; then
12801           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12802         fi
12803       else
12804         # Otherwise we believe it is a complete path. Use it as it is.
12805         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12806 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12808 $as_echo_n "checking for CYGPATH... " >&6; }
12809         if test ! -x "$tool_specified"; then
12810           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12811 $as_echo "not found" >&6; }
12812           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12813         fi
12814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12815 $as_echo "$tool_specified" >&6; }
12816       fi
12817     fi
12818   fi
12819 
12820 
12821 
12822 
12823   # Publish this variable in the help.
12824 
12825 
12826   if test "x$READLINK" = x; then
12827     # The variable is not set by user, try to locate tool using the code snippet
12828     for ac_prog in greadlink readlink
12829 do
12830   # Extract the first word of "$ac_prog", so it can be a program name with args.
12831 set dummy $ac_prog; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_path_READLINK+:} false; then :
12835   $as_echo_n "(cached) " >&6
12836 else
12837   case $READLINK in
12838   [\\/]* | ?:[\\/]*)
12839   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12840   ;;
12841   *)
12842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854   done
12855 IFS=$as_save_IFS
12856 
12857   ;;
12858 esac
12859 fi
12860 READLINK=$ac_cv_path_READLINK
12861 if test -n "$READLINK"; then
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12863 $as_echo "$READLINK" >&6; }
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868 
12869 
12870   test -n "$READLINK" && break
12871 done
12872 
12873   else
12874     # The variable is set, but is it from the command line or the environment?
12875 
12876     # Try to remove the string !READLINK! from our list.
12877     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12878     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12879       # If it failed, the variable was not from the command line. Ignore it,
12880       # but warn the user (except for BASH, which is always set by the calling BASH).
12881       if test "xREADLINK" != xBASH; then
12882         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12883 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12884       fi
12885       # Try to locate tool using the code snippet
12886       for ac_prog in greadlink readlink
12887 do
12888   # Extract the first word of "$ac_prog", so it can be a program name with args.
12889 set dummy $ac_prog; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if ${ac_cv_path_READLINK+:} false; then :
12893   $as_echo_n "(cached) " >&6
12894 else
12895   case $READLINK in
12896   [\\/]* | ?:[\\/]*)
12897   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12898   ;;
12899   *)
12900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12902 do
12903   IFS=$as_save_IFS
12904   test -z "$as_dir" && as_dir=.
12905     for ac_exec_ext in '' $ac_executable_extensions; do
12906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909     break 2
12910   fi
12911 done
12912   done
12913 IFS=$as_save_IFS
12914 
12915   ;;
12916 esac
12917 fi
12918 READLINK=$ac_cv_path_READLINK
12919 if test -n "$READLINK"; then
12920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12921 $as_echo "$READLINK" >&6; }
12922 else
12923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12925 fi
12926 
12927 
12928   test -n "$READLINK" && break
12929 done
12930 
12931     else
12932       # If it succeeded, then it was overridden by the user. We will use it
12933       # for the tool.
12934 
12935       # First remove it from the list of overridden variables, so we can test
12936       # for unknown variables in the end.
12937       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12938 
12939       # Check if the provided tool contains a complete path.
12940       tool_specified="$READLINK"
12941       tool_basename="${tool_specified##*/}"
12942       if test "x$tool_basename" = "x$tool_specified"; then
12943         # A command without a complete path is provided, search $PATH.
12944         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12945 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12946         # Extract the first word of "$tool_basename", so it can be a program name with args.
12947 set dummy $tool_basename; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if ${ac_cv_path_READLINK+:} false; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953   case $READLINK in
12954   [\\/]* | ?:[\\/]*)
12955   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12956   ;;
12957   *)
12958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 for as_dir in $PATH
12960 do
12961   IFS=$as_save_IFS
12962   test -z "$as_dir" && as_dir=.
12963     for ac_exec_ext in '' $ac_executable_extensions; do
12964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12965     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12967     break 2
12968   fi
12969 done
12970   done
12971 IFS=$as_save_IFS
12972 
12973   ;;
12974 esac
12975 fi
12976 READLINK=$ac_cv_path_READLINK
12977 if test -n "$READLINK"; then
12978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12979 $as_echo "$READLINK" >&6; }
12980 else
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12983 fi
12984 
12985 
12986         if test "x$READLINK" = x; then
12987           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12988         fi
12989       else
12990         # Otherwise we believe it is a complete path. Use it as it is.
12991         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12992 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12993         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12994 $as_echo_n "checking for READLINK... " >&6; }
12995         if test ! -x "$tool_specified"; then
12996           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12997 $as_echo "not found" >&6; }
12998           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12999         fi
13000         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13001 $as_echo "$tool_specified" >&6; }
13002       fi
13003     fi
13004   fi
13005 
13006 
13007 
13008 
13009   # Publish this variable in the help.
13010 
13011 
13012   if test "x$DF" = x; then
13013     # The variable is not set by user, try to locate tool using the code snippet
13014     for ac_prog in df
13015 do
13016   # Extract the first word of "$ac_prog", so it can be a program name with args.
13017 set dummy $ac_prog; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if ${ac_cv_path_DF+:} false; then :
13021   $as_echo_n "(cached) " >&6
13022 else
13023   case $DF in
13024   [\\/]* | ?:[\\/]*)
13025   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13026   ;;
13027   *)
13028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13030 do
13031   IFS=$as_save_IFS
13032   test -z "$as_dir" && as_dir=.
13033     for ac_exec_ext in '' $ac_executable_extensions; do
13034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13035     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13037     break 2
13038   fi
13039 done
13040   done
13041 IFS=$as_save_IFS
13042 
13043   ;;
13044 esac
13045 fi
13046 DF=$ac_cv_path_DF
13047 if test -n "$DF"; then
13048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13049 $as_echo "$DF" >&6; }
13050 else
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 fi
13054 
13055 
13056   test -n "$DF" && break
13057 done
13058 
13059   else
13060     # The variable is set, but is it from the command line or the environment?
13061 
13062     # Try to remove the string !DF! from our list.
13063     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13064     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13065       # If it failed, the variable was not from the command line. Ignore it,
13066       # but warn the user (except for BASH, which is always set by the calling BASH).
13067       if test "xDF" != xBASH; then
13068         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13069 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13070       fi
13071       # Try to locate tool using the code snippet
13072       for ac_prog in df
13073 do
13074   # Extract the first word of "$ac_prog", so it can be a program name with args.
13075 set dummy $ac_prog; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_path_DF+:} false; then :
13079   $as_echo_n "(cached) " >&6
13080 else
13081   case $DF in
13082   [\\/]* | ?:[\\/]*)
13083   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13084   ;;
13085   *)
13086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091     for ac_exec_ext in '' $ac_executable_extensions; do
13092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095     break 2
13096   fi
13097 done
13098   done
13099 IFS=$as_save_IFS
13100 
13101   ;;
13102 esac
13103 fi
13104 DF=$ac_cv_path_DF
13105 if test -n "$DF"; then
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13107 $as_echo "$DF" >&6; }
13108 else
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112 
13113 
13114   test -n "$DF" && break
13115 done
13116 
13117     else
13118       # If it succeeded, then it was overridden by the user. We will use it
13119       # for the tool.
13120 
13121       # First remove it from the list of overridden variables, so we can test
13122       # for unknown variables in the end.
13123       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13124 
13125       # Check if the provided tool contains a complete path.
13126       tool_specified="$DF"
13127       tool_basename="${tool_specified##*/}"
13128       if test "x$tool_basename" = "x$tool_specified"; then
13129         # A command without a complete path is provided, search $PATH.
13130         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13131 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13132         # Extract the first word of "$tool_basename", so it can be a program name with args.
13133 set dummy $tool_basename; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if ${ac_cv_path_DF+:} false; then :
13137   $as_echo_n "(cached) " >&6
13138 else
13139   case $DF in
13140   [\\/]* | ?:[\\/]*)
13141   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13142   ;;
13143   *)
13144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147   IFS=$as_save_IFS
13148   test -z "$as_dir" && as_dir=.
13149     for ac_exec_ext in '' $ac_executable_extensions; do
13150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13151     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153     break 2
13154   fi
13155 done
13156   done
13157 IFS=$as_save_IFS
13158 
13159   ;;
13160 esac
13161 fi
13162 DF=$ac_cv_path_DF
13163 if test -n "$DF"; then
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13165 $as_echo "$DF" >&6; }
13166 else
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169 fi
13170 
13171 
13172         if test "x$DF" = x; then
13173           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13174         fi
13175       else
13176         # Otherwise we believe it is a complete path. Use it as it is.
13177         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13178 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13180 $as_echo_n "checking for DF... " >&6; }
13181         if test ! -x "$tool_specified"; then
13182           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13183 $as_echo "not found" >&6; }
13184           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13185         fi
13186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13187 $as_echo "$tool_specified" >&6; }
13188       fi
13189     fi
13190   fi
13191 
13192 
13193 
13194 
13195   # Publish this variable in the help.
13196 
13197 
13198   if test "x$SETFILE" = x; then
13199     # The variable is not set by user, try to locate tool using the code snippet
13200     for ac_prog in SetFile
13201 do
13202   # Extract the first word of "$ac_prog", so it can be a program name with args.
13203 set dummy $ac_prog; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_SETFILE+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209   case $SETFILE in
13210   [\\/]* | ?:[\\/]*)
13211   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13212   ;;
13213   *)
13214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217   IFS=$as_save_IFS
13218   test -z "$as_dir" && as_dir=.
13219     for ac_exec_ext in '' $ac_executable_extensions; do
13220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223     break 2
13224   fi
13225 done
13226   done
13227 IFS=$as_save_IFS
13228 
13229   ;;
13230 esac
13231 fi
13232 SETFILE=$ac_cv_path_SETFILE
13233 if test -n "$SETFILE"; then
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13235 $as_echo "$SETFILE" >&6; }
13236 else
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240 
13241 
13242   test -n "$SETFILE" && break
13243 done
13244 
13245   else
13246     # The variable is set, but is it from the command line or the environment?
13247 
13248     # Try to remove the string !SETFILE! from our list.
13249     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13250     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13251       # If it failed, the variable was not from the command line. Ignore it,
13252       # but warn the user (except for BASH, which is always set by the calling BASH).
13253       if test "xSETFILE" != xBASH; then
13254         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13255 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13256       fi
13257       # Try to locate tool using the code snippet
13258       for ac_prog in SetFile
13259 do
13260   # Extract the first word of "$ac_prog", so it can be a program name with args.
13261 set dummy $ac_prog; ac_word=$2
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263 $as_echo_n "checking for $ac_word... " >&6; }
13264 if ${ac_cv_path_SETFILE+:} false; then :
13265   $as_echo_n "(cached) " >&6
13266 else
13267   case $SETFILE in
13268   [\\/]* | ?:[\\/]*)
13269   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13270   ;;
13271   *)
13272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275   IFS=$as_save_IFS
13276   test -z "$as_dir" && as_dir=.
13277     for ac_exec_ext in '' $ac_executable_extensions; do
13278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13279     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281     break 2
13282   fi
13283 done
13284   done
13285 IFS=$as_save_IFS
13286 
13287   ;;
13288 esac
13289 fi
13290 SETFILE=$ac_cv_path_SETFILE
13291 if test -n "$SETFILE"; then
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13293 $as_echo "$SETFILE" >&6; }
13294 else
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298 
13299 
13300   test -n "$SETFILE" && break
13301 done
13302 
13303     else
13304       # If it succeeded, then it was overridden by the user. We will use it
13305       # for the tool.
13306 
13307       # First remove it from the list of overridden variables, so we can test
13308       # for unknown variables in the end.
13309       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13310 
13311       # Check if the provided tool contains a complete path.
13312       tool_specified="$SETFILE"
13313       tool_basename="${tool_specified##*/}"
13314       if test "x$tool_basename" = "x$tool_specified"; then
13315         # A command without a complete path is provided, search $PATH.
13316         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13317 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13318         # Extract the first word of "$tool_basename", so it can be a program name with args.
13319 set dummy $tool_basename; ac_word=$2
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321 $as_echo_n "checking for $ac_word... " >&6; }
13322 if ${ac_cv_path_SETFILE+:} false; then :
13323   $as_echo_n "(cached) " >&6
13324 else
13325   case $SETFILE in
13326   [\\/]* | ?:[\\/]*)
13327   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13328   ;;
13329   *)
13330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13332 do
13333   IFS=$as_save_IFS
13334   test -z "$as_dir" && as_dir=.
13335     for ac_exec_ext in '' $ac_executable_extensions; do
13336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13337     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13339     break 2
13340   fi
13341 done
13342   done
13343 IFS=$as_save_IFS
13344 
13345   ;;
13346 esac
13347 fi
13348 SETFILE=$ac_cv_path_SETFILE
13349 if test -n "$SETFILE"; then
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13351 $as_echo "$SETFILE" >&6; }
13352 else
13353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13355 fi
13356 
13357 
13358         if test "x$SETFILE" = x; then
13359           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13360         fi
13361       else
13362         # Otherwise we believe it is a complete path. Use it as it is.
13363         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13364 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13365         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13366 $as_echo_n "checking for SETFILE... " >&6; }
13367         if test ! -x "$tool_specified"; then
13368           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13369 $as_echo "not found" >&6; }
13370           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13371         fi
13372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13373 $as_echo "$tool_specified" >&6; }
13374       fi
13375     fi
13376   fi
13377 
13378 
13379 
13380 
13381 # Now we can determine OpenJDK build and target platforms. This is required to
13382 # have early on.
13383 # Make sure we can run config.sub.
13384 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13385   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13386 
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13388 $as_echo_n "checking build system type... " >&6; }
13389 if ${ac_cv_build+:} false; then :
13390   $as_echo_n "(cached) " >&6
13391 else
13392   ac_build_alias=$build_alias
13393 test "x$ac_build_alias" = x &&
13394   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13395 test "x$ac_build_alias" = x &&
13396   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13397 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13398   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13399 
13400 fi
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13402 $as_echo "$ac_cv_build" >&6; }
13403 case $ac_cv_build in
13404 *-*-*) ;;
13405 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13406 esac
13407 build=$ac_cv_build
13408 ac_save_IFS=$IFS; IFS='-'
13409 set x $ac_cv_build
13410 shift
13411 build_cpu=$1
13412 build_vendor=$2
13413 shift; shift
13414 # Remember, the first character of IFS is used to create $*,
13415 # except with old shells:
13416 build_os=$*
13417 IFS=$ac_save_IFS
13418 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13419 
13420 
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13422 $as_echo_n "checking host system type... " >&6; }
13423 if ${ac_cv_host+:} false; then :
13424   $as_echo_n "(cached) " >&6
13425 else
13426   if test "x$host_alias" = x; then
13427   ac_cv_host=$ac_cv_build
13428 else
13429   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13430     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13431 fi
13432 
13433 fi
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13435 $as_echo "$ac_cv_host" >&6; }
13436 case $ac_cv_host in
13437 *-*-*) ;;
13438 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13439 esac
13440 host=$ac_cv_host
13441 ac_save_IFS=$IFS; IFS='-'
13442 set x $ac_cv_host
13443 shift
13444 host_cpu=$1
13445 host_vendor=$2
13446 shift; shift
13447 # Remember, the first character of IFS is used to create $*,
13448 # except with old shells:
13449 host_os=$*
13450 IFS=$ac_save_IFS
13451 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13452 
13453 
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13455 $as_echo_n "checking target system type... " >&6; }
13456 if ${ac_cv_target+:} false; then :
13457   $as_echo_n "(cached) " >&6
13458 else
13459   if test "x$target_alias" = x; then
13460   ac_cv_target=$ac_cv_host
13461 else
13462   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13463     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13464 fi
13465 
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13468 $as_echo "$ac_cv_target" >&6; }
13469 case $ac_cv_target in
13470 *-*-*) ;;
13471 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13472 esac
13473 target=$ac_cv_target
13474 ac_save_IFS=$IFS; IFS='-'
13475 set x $ac_cv_target
13476 shift
13477 target_cpu=$1
13478 target_vendor=$2
13479 shift; shift
13480 # Remember, the first character of IFS is used to create $*,
13481 # except with old shells:
13482 target_os=$*
13483 IFS=$ac_save_IFS
13484 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13485 
13486 
13487 # The aliases save the names the user supplied, while $host etc.
13488 # will get canonicalized.
13489 test -n "$target_alias" &&
13490   test "$program_prefix$program_suffix$program_transform_name" = \
13491     NONENONEs,x,x, &&
13492   program_prefix=${target_alias}-
13493 
13494   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13495   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13496   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13497   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13498   # to use the configure naming style.
13499 
13500 
13501 
13502 
13503 
13504   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13505   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13506   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13507   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13508   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13509   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13510 
13511 
13512 
13513   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13514 
13515   case "$build_os" in
13516     *linux*)
13517       VAR_OS=linux
13518       VAR_OS_API=posix
13519       VAR_OS_ENV=linux
13520       ;;
13521     *solaris*)
13522       VAR_OS=solaris
13523       VAR_OS_API=posix
13524       VAR_OS_ENV=solaris
13525       ;;
13526     *darwin*)
13527       VAR_OS=macosx
13528       VAR_OS_API=posix
13529       VAR_OS_ENV=macosx
13530       ;;
13531     *bsd*)
13532       VAR_OS=bsd
13533       VAR_OS_API=posix
13534       VAR_OS_ENV=bsd
13535       ;;
13536     *cygwin*)
13537       VAR_OS=windows
13538       VAR_OS_API=winapi
13539       VAR_OS_ENV=windows.cygwin
13540       ;;
13541     *mingw*)
13542       VAR_OS=windows
13543       VAR_OS_API=winapi
13544       VAR_OS_ENV=windows.msys
13545       ;;
13546     *aix*)
13547       VAR_OS=aix
13548       VAR_OS_API=posix
13549       VAR_OS_ENV=aix
13550       ;;
13551     *)
13552       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13553       ;;
13554   esac
13555 
13556 
13557   # First argument is the cpu name from the trip/quad
13558   case "$build_cpu" in
13559     x86_64)
13560       VAR_CPU=x86_64
13561       VAR_CPU_ARCH=x86
13562       VAR_CPU_BITS=64
13563       VAR_CPU_ENDIAN=little
13564       ;;
13565     i?86)
13566       VAR_CPU=x86
13567       VAR_CPU_ARCH=x86
13568       VAR_CPU_BITS=32
13569       VAR_CPU_ENDIAN=little
13570       ;;
13571     arm*)
13572       VAR_CPU=arm
13573       VAR_CPU_ARCH=arm
13574       VAR_CPU_BITS=32
13575       VAR_CPU_ENDIAN=little
13576       ;;
13577     powerpc)
13578       VAR_CPU=ppc
13579       VAR_CPU_ARCH=ppc
13580       VAR_CPU_BITS=32
13581       VAR_CPU_ENDIAN=big
13582       ;;
13583     powerpc64)
13584       VAR_CPU=ppc64
13585       VAR_CPU_ARCH=ppc
13586       VAR_CPU_BITS=64
13587       VAR_CPU_ENDIAN=big
13588       ;;
13589     powerpc64le)
13590       VAR_CPU=ppc64
13591       VAR_CPU_ARCH=ppc
13592       VAR_CPU_BITS=64
13593       VAR_CPU_ENDIAN=little
13594       ;;
13595     s390)
13596       VAR_CPU=s390
13597       VAR_CPU_ARCH=s390
13598       VAR_CPU_BITS=32
13599       VAR_CPU_ENDIAN=big
13600       ;;
13601     s390x)
13602       VAR_CPU=s390x
13603       VAR_CPU_ARCH=s390
13604       VAR_CPU_BITS=64
13605       VAR_CPU_ENDIAN=big
13606       ;;
13607     sparc)
13608       VAR_CPU=sparc
13609       VAR_CPU_ARCH=sparc
13610       VAR_CPU_BITS=32
13611       VAR_CPU_ENDIAN=big
13612       ;;
13613     sparcv9)
13614       VAR_CPU=sparcv9
13615       VAR_CPU_ARCH=sparc
13616       VAR_CPU_BITS=64
13617       VAR_CPU_ENDIAN=big
13618       ;;
13619     *)
13620       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13621       ;;
13622   esac
13623 
13624   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13625   OPENJDK_BUILD_OS="$VAR_OS"
13626   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13627   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13628   OPENJDK_BUILD_CPU="$VAR_CPU"
13629   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13630   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13631   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13632 
13633 
13634 
13635 
13636 
13637 
13638 
13639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13640 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13642 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13643 
13644   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13645 
13646   case "$host_os" in
13647     *linux*)
13648       VAR_OS=linux
13649       VAR_OS_API=posix
13650       VAR_OS_ENV=linux
13651       ;;
13652     *solaris*)
13653       VAR_OS=solaris
13654       VAR_OS_API=posix
13655       VAR_OS_ENV=solaris
13656       ;;
13657     *darwin*)
13658       VAR_OS=macosx
13659       VAR_OS_API=posix
13660       VAR_OS_ENV=macosx
13661       ;;
13662     *bsd*)
13663       VAR_OS=bsd
13664       VAR_OS_API=posix
13665       VAR_OS_ENV=bsd
13666       ;;
13667     *cygwin*)
13668       VAR_OS=windows
13669       VAR_OS_API=winapi
13670       VAR_OS_ENV=windows.cygwin
13671       ;;
13672     *mingw*)
13673       VAR_OS=windows
13674       VAR_OS_API=winapi
13675       VAR_OS_ENV=windows.msys
13676       ;;
13677     *aix*)
13678       VAR_OS=aix
13679       VAR_OS_API=posix
13680       VAR_OS_ENV=aix
13681       ;;
13682     *)
13683       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13684       ;;
13685   esac
13686 
13687 
13688   # First argument is the cpu name from the trip/quad
13689   case "$host_cpu" in
13690     x86_64)
13691       VAR_CPU=x86_64
13692       VAR_CPU_ARCH=x86
13693       VAR_CPU_BITS=64
13694       VAR_CPU_ENDIAN=little
13695       ;;
13696     i?86)
13697       VAR_CPU=x86
13698       VAR_CPU_ARCH=x86
13699       VAR_CPU_BITS=32
13700       VAR_CPU_ENDIAN=little
13701       ;;
13702     arm*)
13703       VAR_CPU=arm
13704       VAR_CPU_ARCH=arm
13705       VAR_CPU_BITS=32
13706       VAR_CPU_ENDIAN=little
13707       ;;
13708     powerpc)
13709       VAR_CPU=ppc
13710       VAR_CPU_ARCH=ppc
13711       VAR_CPU_BITS=32
13712       VAR_CPU_ENDIAN=big
13713       ;;
13714     powerpc64)
13715       VAR_CPU=ppc64
13716       VAR_CPU_ARCH=ppc
13717       VAR_CPU_BITS=64
13718       VAR_CPU_ENDIAN=big
13719       ;;
13720     powerpc64le)
13721       VAR_CPU=ppc64
13722       VAR_CPU_ARCH=ppc
13723       VAR_CPU_BITS=64
13724       VAR_CPU_ENDIAN=little
13725       ;;
13726     s390)
13727       VAR_CPU=s390
13728       VAR_CPU_ARCH=s390
13729       VAR_CPU_BITS=32
13730       VAR_CPU_ENDIAN=big
13731       ;;
13732     s390x)
13733       VAR_CPU=s390x
13734       VAR_CPU_ARCH=s390
13735       VAR_CPU_BITS=64
13736       VAR_CPU_ENDIAN=big
13737       ;;
13738     sparc)
13739       VAR_CPU=sparc
13740       VAR_CPU_ARCH=sparc
13741       VAR_CPU_BITS=32
13742       VAR_CPU_ENDIAN=big
13743       ;;
13744     sparcv9)
13745       VAR_CPU=sparcv9
13746       VAR_CPU_ARCH=sparc
13747       VAR_CPU_BITS=64
13748       VAR_CPU_ENDIAN=big
13749       ;;
13750     *)
13751       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13752       ;;
13753   esac
13754 
13755   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13756   OPENJDK_TARGET_OS="$VAR_OS"
13757   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13758   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13759   OPENJDK_TARGET_CPU="$VAR_CPU"
13760   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13761   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13762   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13763 
13764 
13765 
13766 
13767 
13768 
13769 
13770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13771 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13773 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13774 
13775 
13776 
13777 # Check whether --with-target-bits was given.
13778 if test "${with_target_bits+set}" = set; then :
13779   withval=$with_target_bits;
13780 fi
13781 
13782 
13783   # We have three types of compiles:
13784   # native  == normal compilation, target system == build system
13785   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13786   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13787   #
13788   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13789     # We're doing a proper cross-compilation
13790     COMPILE_TYPE="cross"
13791   else
13792     COMPILE_TYPE="native"
13793   fi
13794 
13795   if test "x$with_target_bits" != x; then
13796     if test "x$COMPILE_TYPE" = "xcross"; then
13797       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13798     fi
13799 
13800     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13801       # A reduced build is requested
13802       COMPILE_TYPE="reduced"
13803       OPENJDK_TARGET_CPU_BITS=32
13804       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13805         OPENJDK_TARGET_CPU=x86
13806       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13807         OPENJDK_TARGET_CPU=sparc
13808       else
13809         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13810       fi
13811     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13812       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
13813     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13814       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13815 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13816     else
13817       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13818     fi
13819   fi
13820 
13821 
13822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13823 $as_echo_n "checking compilation type... " >&6; }
13824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13825 $as_echo "$COMPILE_TYPE" >&6; }
13826 
13827 
13828   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13829     REQUIRED_OS_NAME=SunOS
13830     REQUIRED_OS_VERSION=5.10
13831   fi
13832   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13833     REQUIRED_OS_NAME=Linux
13834     REQUIRED_OS_VERSION=2.6
13835   fi
13836   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13837     REQUIRED_OS_NAME=Windows
13838     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13839       REQUIRED_OS_VERSION=5.2
13840     else
13841       REQUIRED_OS_VERSION=5.1
13842     fi
13843   fi
13844   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13845     REQUIRED_OS_NAME=Darwin
13846     REQUIRED_OS_VERSION=11.2
13847   fi
13848 
13849 
13850 
13851 
13852 
13853   # Also store the legacy naming of the cpu.
13854   # Ie i586 and amd64 instead of x86 and x86_64
13855   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13856   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13857     OPENJDK_TARGET_CPU_LEGACY="i586"
13858   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13859     # On all platforms except MacOSX replace x86_64 with amd64.
13860     OPENJDK_TARGET_CPU_LEGACY="amd64"
13861   fi
13862 
13863 
13864   # And the second legacy naming of the cpu.
13865   # Ie i386 and amd64 instead of x86 and x86_64.
13866   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13867   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13868     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13869   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13870     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13871   fi
13872 
13873 
13874   # This is the name of the cpu (but using i386 and amd64 instead of
13875   # x86 and x86_64, respectively), preceeded by a /, to be used when
13876   # locating libraries. On macosx, it's empty, though.
13877   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13878   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13879     OPENJDK_TARGET_CPU_LIBDIR=""
13880   fi
13881 
13882 
13883   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13884   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13885   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13886   OPENJDK_TARGET_CPU_ISADIR=""
13887   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13888     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13889       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13890     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13891       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13892     fi
13893   fi
13894 
13895 
13896   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13897   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13898   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13899     # On linux only, we replace x86 with i386.
13900     OPENJDK_TARGET_CPU_OSARCH="i386"
13901   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13902     # On all platforms except macosx, we replace x86_64 with amd64.
13903     OPENJDK_TARGET_CPU_OSARCH="amd64"
13904   fi
13905 
13906 
13907   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13908   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13909     OPENJDK_TARGET_CPU_JLI="i386"
13910   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13911     # On all platforms except macosx, we replace x86_64 with amd64.
13912     OPENJDK_TARGET_CPU_JLI="amd64"
13913   fi
13914   # Now setup the -D flags for building libjli.
13915   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13916   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13917     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13918       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13919     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13920       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13921     fi
13922   fi
13923 
13924 
13925   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13926   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13927     OPENJDK_TARGET_OS_API_DIR="solaris"
13928   fi
13929   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13930     OPENJDK_TARGET_OS_API_DIR="windows"
13931   fi
13932 
13933 
13934   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13935       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13936   else
13937       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13938   fi
13939 
13940 
13941   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13942     A_LP64="LP64:="
13943     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13944     # unpack200.exe
13945     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13946       ADD_LP64="-D_LP64=1"
13947     fi
13948   fi
13949   LP64=$A_LP64
13950 
13951 
13952   if test "x$COMPILE_TYPE" = "xcross"; then
13953     # FIXME: ... or should this include reduced builds..?
13954     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13955   else
13956     DEFINE_CROSS_COMPILE_ARCH=""
13957   fi
13958 
13959 
13960   # ZERO_ARCHDEF is used to enable architecture-specific code
13961   case "${OPENJDK_TARGET_CPU}" in
13962     ppc*)    ZERO_ARCHDEF=PPC   ;;
13963     s390*)   ZERO_ARCHDEF=S390  ;;
13964     sparc*)  ZERO_ARCHDEF=SPARC ;;
13965     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13966     x86)     ZERO_ARCHDEF=IA32  ;;
13967     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13968   esac
13969 
13970 
13971 
13972 
13973 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13974 
13975   # Save the current directory this script was started from
13976   CURDIR="$PWD"
13977 
13978   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13979     PATH_SEP=";"
13980 
13981   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13982   if test $SRC_ROOT_LENGTH -gt 100; then
13983     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13984   fi
13985 
13986   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13988 $as_echo_n "checking cygwin release... " >&6; }
13989     CYGWIN_VERSION=`$UNAME -r`
13990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13991 $as_echo "$CYGWIN_VERSION" >&6; }
13992     WINDOWS_ENV_VENDOR='cygwin'
13993     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13994 
13995     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13996     if test "x$CYGWIN_VERSION_OK" = x; then
13997       { $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
13998 $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;}
13999       as_fn_error $? "Cannot continue" "$LINENO" 5
14000     fi
14001     if test "x$CYGPATH" = x; then
14002       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14003     fi
14004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14005 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14006     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14007     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
14008     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14009     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14011 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14012     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14013     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14014     if test "x$test_cygdrive_prefix" = x; then
14015       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14016     fi
14017   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14019 $as_echo_n "checking msys release... " >&6; }
14020     MSYS_VERSION=`$UNAME -r`
14021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14022 $as_echo "$MSYS_VERSION" >&6; }
14023 
14024     WINDOWS_ENV_VENDOR='msys'
14025     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14026 
14027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14028 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14029     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14030     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14031 
14032   windows_path="$MSYS_ROOT_PATH"
14033   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14034     unix_path=`$CYGPATH -u "$windows_path"`
14035     MSYS_ROOT_PATH="$unix_path"
14036   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14037     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14038     MSYS_ROOT_PATH="$unix_path"
14039   fi
14040 
14041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14042 $as_echo "$MSYS_ROOT_PATH" >&6; }
14043     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14044   else
14045     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14046   fi
14047 
14048   # Test if windows or unix (cygwin/msys) find is first in path.
14049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14050 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14051   FIND_BINARY_OUTPUT=`find --version 2>&1`
14052   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14054 $as_echo "unix style" >&6; }
14055   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14057 $as_echo "Windows" >&6; }
14058     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14059 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14060     { $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
14061 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14062     as_fn_error $? "Cannot continue" "$LINENO" 5
14063   else
14064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14065 $as_echo "unknown" >&6; }
14066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14067 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14068   fi
14069 
14070   else
14071     PATH_SEP=":"
14072   fi
14073 
14074 
14075   # We get the top-level directory from the supporting wrappers.
14076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14077 $as_echo_n "checking for top-level directory... " >&6; }
14078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14079 $as_echo "$TOPDIR" >&6; }
14080 
14081 
14082   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14083 
14084   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14085 
14086   # Input might be given as Windows format, start by converting to
14087   # unix format.
14088   path="$CURDIR"
14089   new_path=`$CYGPATH -u "$path"`
14090 
14091   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14092   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14093   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14094   # "foo.exe" is OK but "foo" is an error.
14095   #
14096   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14097   # It is also a way to make sure we got the proper file name for the real test later on.
14098   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14099   if test "x$test_shortpath" = x; then
14100     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14101 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14102     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14103   fi
14104 
14105   # Call helper function which possibly converts this using DOS-style short mode.
14106   # If so, the updated path is stored in $new_path.
14107 
14108   input_path="$new_path"
14109   # Check if we need to convert this using DOS-style short mode. If the path
14110   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14111   # take no chances and rewrite it.
14112   # Note: m4 eats our [], so we need to use [ and ] instead.
14113   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14114   if test "x$has_forbidden_chars" != x; then
14115     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14116     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14117     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14118     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14119       # Going to short mode and back again did indeed matter. Since short mode is
14120       # case insensitive, let's make it lowercase to improve readability.
14121       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14122       # Now convert it back to Unix-stile (cygpath)
14123       input_path=`$CYGPATH -u "$shortmode_path"`
14124       new_path="$input_path"
14125     fi
14126   fi
14127 
14128   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14129   if test "x$test_cygdrive_prefix" = x; then
14130     # As a simple fix, exclude /usr/bin since it's not a real path.
14131     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14132       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14133       # a path prefixed by /cygdrive for fixpath to work.
14134       new_path="$CYGWIN_ROOT_PATH$input_path"
14135     fi
14136   fi
14137 
14138 
14139   if test "x$path" != "x$new_path"; then
14140     CURDIR="$new_path"
14141     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14142 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14143   fi
14144 
14145   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14146 
14147   path="$CURDIR"
14148   has_colon=`$ECHO $path | $GREP ^.:`
14149   new_path="$path"
14150   if test "x$has_colon" = x; then
14151     # Not in mixed or Windows style, start by that.
14152     new_path=`cmd //c echo $path`
14153   fi
14154 
14155 
14156   input_path="$new_path"
14157   # Check if we need to convert this using DOS-style short mode. If the path
14158   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14159   # take no chances and rewrite it.
14160   # Note: m4 eats our [], so we need to use [ and ] instead.
14161   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14162   if test "x$has_forbidden_chars" != x; then
14163     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14164     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14165   fi
14166 
14167 
14168   windows_path="$new_path"
14169   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14170     unix_path=`$CYGPATH -u "$windows_path"`
14171     new_path="$unix_path"
14172   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14173     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14174     new_path="$unix_path"
14175   fi
14176 
14177   if test "x$path" != "x$new_path"; then
14178     CURDIR="$new_path"
14179     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14180 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14181   fi
14182 
14183   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14184   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14185 
14186   else
14187     # We're on a posix platform. Hooray! :)
14188     path="$CURDIR"
14189     has_space=`$ECHO "$path" | $GREP " "`
14190     if test "x$has_space" != x; then
14191       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14192 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14193       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14194     fi
14195 
14196     # Use eval to expand a potential ~
14197     eval path="$path"
14198     if test ! -f "$path" && test ! -d "$path"; then
14199       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14200     fi
14201 
14202     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14203   fi
14204 
14205 
14206   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14207 
14208   # Input might be given as Windows format, start by converting to
14209   # unix format.
14210   path="$TOPDIR"
14211   new_path=`$CYGPATH -u "$path"`
14212 
14213   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14214   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14215   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14216   # "foo.exe" is OK but "foo" is an error.
14217   #
14218   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14219   # It is also a way to make sure we got the proper file name for the real test later on.
14220   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14221   if test "x$test_shortpath" = x; then
14222     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14223 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14224     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14225   fi
14226 
14227   # Call helper function which possibly converts this using DOS-style short mode.
14228   # If so, the updated path is stored in $new_path.
14229 
14230   input_path="$new_path"
14231   # Check if we need to convert this using DOS-style short mode. If the path
14232   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14233   # take no chances and rewrite it.
14234   # Note: m4 eats our [], so we need to use [ and ] instead.
14235   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14236   if test "x$has_forbidden_chars" != x; then
14237     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14238     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14239     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14240     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14241       # Going to short mode and back again did indeed matter. Since short mode is
14242       # case insensitive, let's make it lowercase to improve readability.
14243       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14244       # Now convert it back to Unix-stile (cygpath)
14245       input_path=`$CYGPATH -u "$shortmode_path"`
14246       new_path="$input_path"
14247     fi
14248   fi
14249 
14250   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14251   if test "x$test_cygdrive_prefix" = x; then
14252     # As a simple fix, exclude /usr/bin since it's not a real path.
14253     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14254       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14255       # a path prefixed by /cygdrive for fixpath to work.
14256       new_path="$CYGWIN_ROOT_PATH$input_path"
14257     fi
14258   fi
14259 
14260 
14261   if test "x$path" != "x$new_path"; then
14262     TOPDIR="$new_path"
14263     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14264 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14265   fi
14266 
14267   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14268 
14269   path="$TOPDIR"
14270   has_colon=`$ECHO $path | $GREP ^.:`
14271   new_path="$path"
14272   if test "x$has_colon" = x; then
14273     # Not in mixed or Windows style, start by that.
14274     new_path=`cmd //c echo $path`
14275   fi
14276 
14277 
14278   input_path="$new_path"
14279   # Check if we need to convert this using DOS-style short mode. If the path
14280   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14281   # take no chances and rewrite it.
14282   # Note: m4 eats our [], so we need to use [ and ] instead.
14283   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14284   if test "x$has_forbidden_chars" != x; then
14285     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14286     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14287   fi
14288 
14289 
14290   windows_path="$new_path"
14291   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14292     unix_path=`$CYGPATH -u "$windows_path"`
14293     new_path="$unix_path"
14294   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14295     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14296     new_path="$unix_path"
14297   fi
14298 
14299   if test "x$path" != "x$new_path"; then
14300     TOPDIR="$new_path"
14301     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14302 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14303   fi
14304 
14305   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14306   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14307 
14308   else
14309     # We're on a posix platform. Hooray! :)
14310     path="$TOPDIR"
14311     has_space=`$ECHO "$path" | $GREP " "`
14312     if test "x$has_space" != x; then
14313       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14314 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14315       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14316     fi
14317 
14318     # Use eval to expand a potential ~
14319     eval path="$path"
14320     if test ! -f "$path" && test ! -d "$path"; then
14321       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14322     fi
14323 
14324     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14325   fi
14326 
14327   # SRC_ROOT is a traditional alias for TOPDIR.
14328   SRC_ROOT=$TOPDIR
14329 
14330   # Locate the directory of this script.
14331   AUTOCONF_DIR=$TOPDIR/common/autoconf
14332 
14333 
14334   # Setup default logging of stdout and stderr to build.log in the output root.
14335   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14336   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14337   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14338 
14339 
14340 
14341 
14342 
14343 # Check if it's a pure open build or if custom sources are to be used.
14344 
14345   # Check whether --enable-openjdk-only was given.
14346 if test "${enable_openjdk_only+set}" = set; then :
14347   enableval=$enable_openjdk_only;
14348 else
14349   enable_openjdk_only="no"
14350 fi
14351 
14352 
14353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14354 $as_echo_n "checking for presence of closed sources... " >&6; }
14355   if test -d "$SRC_ROOT/jdk/src/closed"; then
14356     CLOSED_SOURCE_PRESENT=yes
14357   else
14358     CLOSED_SOURCE_PRESENT=no
14359   fi
14360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14361 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14362 
14363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14364 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14365   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14367 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14368 
14369   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14370     OPENJDK=true
14371     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14372       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14373 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14374     fi
14375   else
14376     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14377       OPENJDK=true
14378     else
14379       OPENJDK=false
14380     fi
14381   fi
14382 
14383   if test "x$OPENJDK" = "xtrue"; then
14384     SET_OPENJDK="OPENJDK=true"
14385   fi
14386 
14387 
14388 
14389   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14390   # the IncludeCustomExtension macro.
14391 
14392 
14393 # Check whether --with-custom-make-dir was given.
14394 if test "${with_custom_make_dir+set}" = set; then :
14395   withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
14396 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14397 fi
14398 
14399 
14400 
14401 
14402 # These are needed to be able to create a configuration name (and thus the output directory)
14403 
14404   ###############################################################################
14405   #
14406   # Check which variant of the JDK that we want to build.
14407   # Currently we have:
14408   #    normal:   standard edition
14409   # but the custom make system may add other variants
14410   #
14411   # Effectively the JDK variant gives a name to a specific set of
14412   # modules to compile into the JDK. In the future, these modules
14413   # might even be Jigsaw modules.
14414   #
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14416 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14417 
14418 # Check whether --with-jdk-variant was given.
14419 if test "${with_jdk_variant+set}" = set; then :
14420   withval=$with_jdk_variant;
14421 fi
14422 
14423 
14424   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14425     JDK_VARIANT="normal"
14426   else
14427     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14428   fi
14429 
14430 
14431 
14432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14433 $as_echo "$JDK_VARIANT" >&6; }
14434 
14435 
14436 ###############################################################################
14437 #
14438 # Check which interpreter of the JVM we want to build.
14439 # Currently we have:
14440 #    template: Template interpreter (the default)
14441 #    cpp     : C++ interpreter
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14443 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14444 
14445 # Check whether --with-jvm-interpreter was given.
14446 if test "${with_jvm_interpreter+set}" = set; then :
14447   withval=$with_jvm_interpreter;
14448 fi
14449 
14450 
14451 if test "x$with_jvm_interpreter" = x; then
14452      with_jvm_interpreter="template"
14453 fi
14454 
14455 JVM_INTERPRETER="$with_jvm_interpreter"
14456 
14457 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14458    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14459 fi
14460 
14461 
14462 
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14464 $as_echo "$with_jvm_interpreter" >&6; }
14465 
14466 
14467 
14468   ###############################################################################
14469   #
14470   # Check which variants of the JVM that we want to build.
14471   # Currently we have:
14472   #    server: normal interpreter and a tiered C1/C2 compiler
14473   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14474   #    minimal1: reduced form of client with optional VM services and features stripped out
14475   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14476   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14477   #    zero: no machine code interpreter, no compiler
14478   #    zeroshark: zero interpreter and shark/llvm compiler backend
14479 #    core: interpreter only, no compiler (only works on some platforms)
14480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14481 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14482 
14483 # Check whether --with-jvm-variants was given.
14484 if test "${with_jvm_variants+set}" = set; then :
14485   withval=$with_jvm_variants;
14486 fi
14487 
14488 
14489   if test "x$with_jvm_variants" = x; then
14490     with_jvm_variants="server"
14491   fi
14492 
14493   JVM_VARIANTS=",$with_jvm_variants,"
14494   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,//'`
14495 
14496   if test "x$TEST_VARIANTS" != "x,"; then
14497      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14498   fi
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14500 $as_echo "$with_jvm_variants" >&6; }
14501 
14502   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14503   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14504   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14505   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14506   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14507   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14508   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14509 
14510   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14511     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14512       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14513     fi
14514   fi
14515   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14516     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14517       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14518     fi
14519   fi
14520   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14521     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14522       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14523     fi
14524   fi
14525 
14526   # Replace the commas with AND for use in the build directory name.
14527   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14528   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/'`
14529   if test "x$COUNT_VARIANTS" != "x,1"; then
14530     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14531   else
14532     BUILDING_MULTIPLE_JVM_VARIANTS=no
14533   fi
14534 
14535 
14536 
14537 
14538 
14539 
14540 
14541 
14542 
14543 
14544   INCLUDE_SA=true
14545   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14546     INCLUDE_SA=false
14547   fi
14548   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14549     INCLUDE_SA=false
14550   fi
14551   if test "x$VAR_CPU" = xppc64 ; then
14552     INCLUDE_SA=false
14553   fi
14554 
14555 
14556   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14557     MACOSX_UNIVERSAL="true"
14558   fi
14559 
14560 
14561 
14562 
14563   ###############################################################################
14564   #
14565   # Set the debug level
14566   #    release: no debug information, all optimizations, no asserts.
14567   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
14568   #    fastdebug: debug information (-g), all optimizations, all asserts
14569   #    slowdebug: debug information (-g), no optimizations, all asserts
14570   #
14571   DEBUG_LEVEL="release"
14572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14573 $as_echo_n "checking which debug level to use... " >&6; }
14574   # Check whether --enable-debug was given.
14575 if test "${enable_debug+set}" = set; then :
14576   enableval=$enable_debug;
14577         ENABLE_DEBUG="${enableval}"
14578         DEBUG_LEVEL="fastdebug"
14579 
14580 else
14581   ENABLE_DEBUG="no"
14582 fi
14583 
14584 
14585 
14586 # Check whether --with-debug-level was given.
14587 if test "${with_debug_level+set}" = set; then :
14588   withval=$with_debug_level;
14589         DEBUG_LEVEL="${withval}"
14590         if test "x$ENABLE_DEBUG" = xyes; then
14591           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14592         fi
14593 
14594 fi
14595 
14596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14597 $as_echo "$DEBUG_LEVEL" >&6; }
14598 
14599   if test "x$DEBUG_LEVEL" != xrelease && \
14600       test "x$DEBUG_LEVEL" != xoptimized && \
14601       test "x$DEBUG_LEVEL" != xfastdebug && \
14602       test "x$DEBUG_LEVEL" != xslowdebug; then
14603     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14604   fi
14605 
14606 
14607   ###############################################################################
14608   #
14609   # Setup legacy vars/targets and new vars to deal with different debug levels.
14610   #
14611 
14612   case $DEBUG_LEVEL in
14613     release )
14614       VARIANT="OPT"
14615       FASTDEBUG="false"
14616       DEBUG_CLASSFILES="false"
14617       BUILD_VARIANT_RELEASE=""
14618       HOTSPOT_DEBUG_LEVEL="product"
14619       HOTSPOT_EXPORT="product"
14620       ;;
14621     fastdebug )
14622       VARIANT="DBG"
14623       FASTDEBUG="true"
14624       DEBUG_CLASSFILES="true"
14625       BUILD_VARIANT_RELEASE="-fastdebug"
14626       HOTSPOT_DEBUG_LEVEL="fastdebug"
14627       HOTSPOT_EXPORT="fastdebug"
14628       ;;
14629     slowdebug )
14630       VARIANT="DBG"
14631       FASTDEBUG="false"
14632       DEBUG_CLASSFILES="true"
14633       BUILD_VARIANT_RELEASE="-debug"
14634       HOTSPOT_DEBUG_LEVEL="jvmg"
14635       HOTSPOT_EXPORT="debug"
14636       ;;
14637     optimized )
14638       VARIANT="OPT"
14639       FASTDEBUG="false"
14640       DEBUG_CLASSFILES="false"
14641       BUILD_VARIANT_RELEASE="-optimized"
14642       HOTSPOT_DEBUG_LEVEL="optimized"
14643       HOTSPOT_EXPORT="optimized"
14644       ;;
14645   esac
14646 
14647   # The debug level 'optimized' is a little special because it is currently only
14648   # applicable to the HotSpot build where it means to build a completely
14649   # optimized version of the VM without any debugging code (like for the
14650   # 'release' debug level which is called 'product' in the HotSpot build) but
14651   # with the exception that it can contain additional code which is otherwise
14652   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
14653   # test new and/or experimental features which are not intended for customer
14654   # shipment. Because these new features need to be tested and benchmarked in
14655   # real world scenarios, we want to build the containing JDK at the 'release'
14656   # debug level.
14657   if test "x$DEBUG_LEVEL" = xoptimized; then
14658     DEBUG_LEVEL="release"
14659   fi
14660 
14661   #####
14662   # Generate the legacy makefile targets for hotspot.
14663   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14664   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14665   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14666   # But until then ...
14667   HOTSPOT_TARGET=""
14668 
14669   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14670     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14671   fi
14672 
14673   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14674     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14675   fi
14676 
14677   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14678     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14679   fi
14680 
14681   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14682     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14683   fi
14684 
14685   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14686     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14687   fi
14688 
14689   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14690     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14691   fi
14692 
14693   if test "x$JVM_VARIANT_CORE" = xtrue; then
14694     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14695   fi
14696 
14697   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14698 
14699   # On Macosx universal binaries are produced, but they only contain
14700   # 64 bit intel. This invalidates control of which jvms are built
14701   # from configure, but only server is valid anyway. Fix this
14702   # when hotspot makefiles are rewritten.
14703   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14704     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14705   fi
14706 
14707   #####
14708 
14709 
14710 
14711 
14712 
14713 
14714 
14715 
14716 # With basic setup done, call the custom early hook.
14717 
14718 
14719 # Check if we have devkits, extra paths or sysroot set.
14720 
14721 
14722 # Check whether --with-devkit was given.
14723 if test "${with_devkit+set}" = set; then :
14724   withval=$with_devkit;
14725 
14726   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14727 
14728   # Input might be given as Windows format, start by converting to
14729   # unix format.
14730   path="$with_devkit"
14731   new_path=`$CYGPATH -u "$path"`
14732 
14733   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14734   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14735   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14736   # "foo.exe" is OK but "foo" is an error.
14737   #
14738   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14739   # It is also a way to make sure we got the proper file name for the real test later on.
14740   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14741   if test "x$test_shortpath" = x; then
14742     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14743 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14744     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14745   fi
14746 
14747   # Call helper function which possibly converts this using DOS-style short mode.
14748   # If so, the updated path is stored in $new_path.
14749 
14750   input_path="$new_path"
14751   # Check if we need to convert this using DOS-style short mode. If the path
14752   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14753   # take no chances and rewrite it.
14754   # Note: m4 eats our [], so we need to use [ and ] instead.
14755   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14756   if test "x$has_forbidden_chars" != x; then
14757     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14758     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14759     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14760     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14761       # Going to short mode and back again did indeed matter. Since short mode is
14762       # case insensitive, let's make it lowercase to improve readability.
14763       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14764       # Now convert it back to Unix-stile (cygpath)
14765       input_path=`$CYGPATH -u "$shortmode_path"`
14766       new_path="$input_path"
14767     fi
14768   fi
14769 
14770   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14771   if test "x$test_cygdrive_prefix" = x; then
14772     # As a simple fix, exclude /usr/bin since it's not a real path.
14773     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14774       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14775       # a path prefixed by /cygdrive for fixpath to work.
14776       new_path="$CYGWIN_ROOT_PATH$input_path"
14777     fi
14778   fi
14779 
14780 
14781   if test "x$path" != "x$new_path"; then
14782     with_devkit="$new_path"
14783     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14784 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14785   fi
14786 
14787   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14788 
14789   path="$with_devkit"
14790   has_colon=`$ECHO $path | $GREP ^.:`
14791   new_path="$path"
14792   if test "x$has_colon" = x; then
14793     # Not in mixed or Windows style, start by that.
14794     new_path=`cmd //c echo $path`
14795   fi
14796 
14797 
14798   input_path="$new_path"
14799   # Check if we need to convert this using DOS-style short mode. If the path
14800   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14801   # take no chances and rewrite it.
14802   # Note: m4 eats our [], so we need to use [ and ] instead.
14803   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14804   if test "x$has_forbidden_chars" != x; then
14805     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14806     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14807   fi
14808 
14809 
14810   windows_path="$new_path"
14811   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14812     unix_path=`$CYGPATH -u "$windows_path"`
14813     new_path="$unix_path"
14814   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14815     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14816     new_path="$unix_path"
14817   fi
14818 
14819   if test "x$path" != "x$new_path"; then
14820     with_devkit="$new_path"
14821     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14822 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14823   fi
14824 
14825   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14826   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14827 
14828   else
14829     # We're on a posix platform. Hooray! :)
14830     path="$with_devkit"
14831     has_space=`$ECHO "$path" | $GREP " "`
14832     if test "x$has_space" != x; then
14833       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14834 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14835       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14836     fi
14837 
14838     # Use eval to expand a potential ~
14839     eval path="$path"
14840     if test ! -f "$path" && test ! -d "$path"; then
14841       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14842     fi
14843 
14844     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14845   fi
14846 
14847         DEVKIT_ROOT="$with_devkit"
14848         # Check for a meta data info file in the root of the devkit
14849         if test -f "$DEVKIT_ROOT/devkit.info"; then
14850           # This potentially sets the following:
14851           # DEVKIT_NAME: A descriptive name of the devkit
14852           # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path
14853           # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path
14854           # DEVKIT_SYSROOT: Corresponds to --with-sysroot
14855           . $DEVKIT_ROOT/devkit.info
14856         fi
14857 
14858         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14859 $as_echo_n "checking for devkit... " >&6; }
14860         if test "x$DEVKIT_NAME" != x; then
14861           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14862 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14863         else
14864           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14865 $as_echo "$DEVKIT_ROOT" >&6; }
14866         fi
14867 
14868         if test "x$DEVKIT_EXTRA_PATH" != x; then
14869 
14870   if test "x$DEVKIT_EXTRA_PATH" != x; then
14871     if test "x$EXTRA_PATH" = x; then
14872       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14873     else
14874       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14875     fi
14876   fi
14877 
14878         fi
14879 
14880         # Fallback default of just /bin if DEVKIT_PATH is not defined
14881         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14882           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14883         fi
14884 
14885   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14886     if test "x$TOOLCHAIN_PATH" = x; then
14887       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14888     else
14889       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14890     fi
14891   fi
14892 
14893 
14894         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14895         # places for backwards compatiblity.
14896         if test "x$DEVKIT_SYSROOT" != x; then
14897           SYSROOT="$DEVKIT_SYSROOT"
14898         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
14899           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
14900         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
14901           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
14902         fi
14903 
14904 
14905 fi
14906 
14907 
14908   # You can force the sysroot if the sysroot encoded into the compiler tools
14909   # is not correct.
14910 
14911 # Check whether --with-sys-root was given.
14912 if test "${with_sys_root+set}" = set; then :
14913   withval=$with_sys_root; SYSROOT=$with_sys_root
14914 
14915 fi
14916 
14917 
14918 
14919 # Check whether --with-sysroot was given.
14920 if test "${with_sysroot+set}" = set; then :
14921   withval=$with_sysroot; SYSROOT=$with_sysroot
14922 
14923 fi
14924 
14925 
14926 
14927 # Check whether --with-tools-dir was given.
14928 if test "${with_tools_dir+set}" = set; then :
14929   withval=$with_tools_dir;
14930   if test "x$with_tools_dir" != x; then
14931     if test "x$TOOLCHAIN_PATH" = x; then
14932       TOOLCHAIN_PATH="$with_tools_dir"
14933     else
14934       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
14935     fi
14936   fi
14937 
14938 
14939 fi
14940 
14941 
14942 
14943 # Check whether --with-toolchain-path was given.
14944 if test "${with_toolchain_path+set}" = set; then :
14945   withval=$with_toolchain_path;
14946   if test "x$with_toolchain_path" != x; then
14947     if test "x$TOOLCHAIN_PATH" = x; then
14948       TOOLCHAIN_PATH="$with_toolchain_path"
14949     else
14950       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
14951     fi
14952   fi
14953 
14954 
14955 fi
14956 
14957 
14958 
14959 # Check whether --with-extra-path was given.
14960 if test "${with_extra_path+set}" = set; then :
14961   withval=$with_extra_path;
14962   if test "x$with_extra_path" != x; then
14963     if test "x$EXTRA_PATH" = x; then
14964       EXTRA_PATH="$with_extra_path"
14965     else
14966       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
14967     fi
14968   fi
14969 
14970 
14971 fi
14972 
14973 
14974   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
14975     # detect if Xcode is installed by running xcodebuild -version
14976     # if no Xcode installed, xcodebuild exits with 1
14977     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
14978     if /usr/bin/xcodebuild -version >/dev/null 2>&1; then
14979       # We need to use xcodebuild in the toolchain dir provided by the user, this will
14980       # fall back on the stub binary in /usr/bin/xcodebuild
14981       # Extract the first word of "xcodebuild", so it can be a program name with args.
14982 set dummy xcodebuild; ac_word=$2
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14984 $as_echo_n "checking for $ac_word... " >&6; }
14985 if ${ac_cv_path_XCODEBUILD+:} false; then :
14986   $as_echo_n "(cached) " >&6
14987 else
14988   case $XCODEBUILD in
14989   [\\/]* | ?:[\\/]*)
14990   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
14991   ;;
14992   *)
14993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994 for as_dir in $TOOLCHAIN_PATH
14995 do
14996   IFS=$as_save_IFS
14997   test -z "$as_dir" && as_dir=.
14998     for ac_exec_ext in '' $ac_executable_extensions; do
14999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15000     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
15001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15002     break 2
15003   fi
15004 done
15005   done
15006 IFS=$as_save_IFS
15007 
15008   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
15009   ;;
15010 esac
15011 fi
15012 XCODEBUILD=$ac_cv_path_XCODEBUILD
15013 if test -n "$XCODEBUILD"; then
15014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
15015 $as_echo "$XCODEBUILD" >&6; }
15016 else
15017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15018 $as_echo "no" >&6; }
15019 fi
15020 
15021 
15022     else
15023       # this should result in SYSROOT being empty, unless --with-sysroot is provided
15024       # when only the command line tools are installed there are no SDKs, so headers
15025       # are copied into the system frameworks
15026       XCODEBUILD=
15027 
15028     fi
15029 
15030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
15031 $as_echo_n "checking for sdk name... " >&6; }
15032 
15033 # Check whether --with-sdk-name was given.
15034 if test "${with_sdk_name+set}" = set; then :
15035   withval=$with_sdk_name; SDKNAME=$with_sdk_name
15036 
15037 fi
15038 
15039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
15040 $as_echo "$SDKNAME" >&6; }
15041 
15042     # if toolchain path is specified then don't rely on system headers, they may not compile
15043     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
15044     test -z "$TOOLCHAIN_PATH" && \
15045       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
15046 
15047     if test -z "$SYSROOT"; then
15048       if test -n "$XCODEBUILD"; then
15049         # if we don't have system headers, use default SDK name (last resort)
15050         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
15051           SDKNAME=${SDKNAME:-macosx}
15052         fi
15053 
15054         if test -n "$SDKNAME"; then
15055           # Call xcodebuild to determine SYSROOT
15056           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
15057         fi
15058       else
15059         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
15060           as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5
15061         fi
15062       fi
15063     else
15064       # warn user if --with-sdk-name was also set
15065       if test -n "$with_sdk_name"; then
15066         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
15067 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
15068       fi
15069     fi
15070 
15071     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
15072       # If no system framework headers, then SYSROOT must be set, or we won't build
15073       as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5
15074     fi
15075 
15076     # Perform a basic sanity test
15077     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
15078       if test -z "$SYSROOT"; then
15079         as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5
15080       else
15081         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
15082       fi
15083     fi
15084 
15085     # set SDKROOT too, Xcode tools will pick it up
15086     SDKROOT=$SYSROOT
15087 
15088   fi
15089 
15090   # Prepend the extra path to the global path
15091 
15092   if test "x$EXTRA_PATH" != x; then
15093     if test "x$PATH" = x; then
15094       PATH="$EXTRA_PATH"
15095     else
15096       PATH="$EXTRA_PATH:$PATH"
15097     fi
15098   fi
15099 
15100 
15101   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15102     # Add extra search paths on solaris for utilities like ar and as etc...
15103     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15104   fi
15105 
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15107 $as_echo_n "checking for sysroot... " >&6; }
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15109 $as_echo "$SYSROOT" >&6; }
15110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15111 $as_echo_n "checking for toolchain path... " >&6; }
15112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15113 $as_echo "$TOOLCHAIN_PATH" >&6; }
15114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15115 $as_echo_n "checking for extra path... " >&6; }
15116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15117 $as_echo "$EXTRA_PATH" >&6; }
15118 
15119 
15120 # To properly create a configuration name, we need to have the OpenJDK target
15121 # and options (variants and debug level) parsed.
15122 
15123 
15124 
15125 # Check whether --with-conf-name was given.
15126 if test "${with_conf_name+set}" = set; then :
15127   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15128 fi
15129 
15130 
15131   # Test from where we are running configure, in or outside of src root.
15132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15133 $as_echo_n "checking where to store configuration... " >&6; }
15134   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15135       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15136       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15137     # We are running configure from the src root.
15138     # Create a default ./build/target-variant-debuglevel output root.
15139     if test "x${CONF_NAME}" = x; then
15140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15141 $as_echo "in default location" >&6; }
15142       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15143     else
15144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15145 $as_echo "in build directory with custom name" >&6; }
15146     fi
15147     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15148     $MKDIR -p "$OUTPUT_ROOT"
15149     if test ! -d "$OUTPUT_ROOT"; then
15150       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15151     fi
15152   else
15153     # We are running configure from outside of the src dir.
15154     # Then use the current directory as output dir!
15155     # If configuration is situated in normal build directory, just use the build
15156     # directory name as configuration name, otherwise use the complete path.
15157     if test "x${CONF_NAME}" = x; then
15158       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15159     fi
15160     OUTPUT_ROOT="$CURDIR"
15161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15162 $as_echo "in current directory" >&6; }
15163 
15164     # WARNING: This might be a bad thing to do. You need to be sure you want to
15165     # have a configuration in this directory. Do some sanity checks!
15166 
15167     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15168       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15169       # other files
15170       files_present=`$LS $OUTPUT_ROOT`
15171       # Configure has already touched config.log and confdefs.h in the current dir when this check
15172       # is performed.
15173       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
15174       | $TR -d '\n'`
15175       if test "x$filtered_files" != x; then
15176         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15177 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15178         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15179 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15180         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15181 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15182         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15183 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15184         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15185 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15186         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15187 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15188         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15189 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15190         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15191       fi
15192     fi
15193   fi
15194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15195 $as_echo_n "checking what configuration name to use... " >&6; }
15196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15197 $as_echo "$CONF_NAME" >&6; }
15198 
15199 
15200   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15201 
15202   # Input might be given as Windows format, start by converting to
15203   # unix format.
15204   path="$OUTPUT_ROOT"
15205   new_path=`$CYGPATH -u "$path"`
15206 
15207   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15208   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15209   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15210   # "foo.exe" is OK but "foo" is an error.
15211   #
15212   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15213   # It is also a way to make sure we got the proper file name for the real test later on.
15214   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15215   if test "x$test_shortpath" = x; then
15216     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15217 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15218     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15219   fi
15220 
15221   # Call helper function which possibly converts this using DOS-style short mode.
15222   # If so, the updated path is stored in $new_path.
15223 
15224   input_path="$new_path"
15225   # Check if we need to convert this using DOS-style short mode. If the path
15226   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15227   # take no chances and rewrite it.
15228   # Note: m4 eats our [], so we need to use [ and ] instead.
15229   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15230   if test "x$has_forbidden_chars" != x; then
15231     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15232     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15233     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15234     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15235       # Going to short mode and back again did indeed matter. Since short mode is
15236       # case insensitive, let's make it lowercase to improve readability.
15237       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15238       # Now convert it back to Unix-stile (cygpath)
15239       input_path=`$CYGPATH -u "$shortmode_path"`
15240       new_path="$input_path"
15241     fi
15242   fi
15243 
15244   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15245   if test "x$test_cygdrive_prefix" = x; then
15246     # As a simple fix, exclude /usr/bin since it's not a real path.
15247     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15248       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15249       # a path prefixed by /cygdrive for fixpath to work.
15250       new_path="$CYGWIN_ROOT_PATH$input_path"
15251     fi
15252   fi
15253 
15254 
15255   if test "x$path" != "x$new_path"; then
15256     OUTPUT_ROOT="$new_path"
15257     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15258 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15259   fi
15260 
15261   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15262 
15263   path="$OUTPUT_ROOT"
15264   has_colon=`$ECHO $path | $GREP ^.:`
15265   new_path="$path"
15266   if test "x$has_colon" = x; then
15267     # Not in mixed or Windows style, start by that.
15268     new_path=`cmd //c echo $path`
15269   fi
15270 
15271 
15272   input_path="$new_path"
15273   # Check if we need to convert this using DOS-style short mode. If the path
15274   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15275   # take no chances and rewrite it.
15276   # Note: m4 eats our [], so we need to use [ and ] instead.
15277   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15278   if test "x$has_forbidden_chars" != x; then
15279     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15280     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15281   fi
15282 
15283 
15284   windows_path="$new_path"
15285   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15286     unix_path=`$CYGPATH -u "$windows_path"`
15287     new_path="$unix_path"
15288   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15289     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15290     new_path="$unix_path"
15291   fi
15292 
15293   if test "x$path" != "x$new_path"; then
15294     OUTPUT_ROOT="$new_path"
15295     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15296 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15297   fi
15298 
15299   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15300   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15301 
15302   else
15303     # We're on a posix platform. Hooray! :)
15304     path="$OUTPUT_ROOT"
15305     has_space=`$ECHO "$path" | $GREP " "`
15306     if test "x$has_space" != x; then
15307       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15308 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15309       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15310     fi
15311 
15312     # Use eval to expand a potential ~
15313     eval path="$path"
15314     if test ! -f "$path" && test ! -d "$path"; then
15315       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15316     fi
15317 
15318     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15319   fi
15320 
15321 
15322   SPEC=$OUTPUT_ROOT/spec.gmk
15323 
15324   CONF_NAME=$CONF_NAME
15325 
15326   OUTPUT_ROOT=$OUTPUT_ROOT
15327 
15328 
15329   # Most of the probed defines are put into config.h
15330   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15331 
15332   # The spec.gmk file contains all variables for the make system.
15333   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15334 
15335   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15336   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15337 
15338   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15339   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15340 
15341   # The compare.sh is used to compare the build output to other builds.
15342   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15343 
15344   # Spec.sh is currently used by compare-objects.sh
15345   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15346 
15347   # The generated Makefile knows where the spec.gmk is and where the source is.
15348   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15349   # which will look for generated configurations
15350   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15351 
15352 
15353 
15354 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15355 
15356   for ac_prog in apt-get yum port pkgutil pkgadd
15357 do
15358   # Extract the first word of "$ac_prog", so it can be a program name with args.
15359 set dummy $ac_prog; ac_word=$2
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15361 $as_echo_n "checking for $ac_word... " >&6; }
15362 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15363   $as_echo_n "(cached) " >&6
15364 else
15365   if test -n "$PKGHANDLER"; then
15366   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15367 else
15368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369 for as_dir in $PATH
15370 do
15371   IFS=$as_save_IFS
15372   test -z "$as_dir" && as_dir=.
15373     for ac_exec_ext in '' $ac_executable_extensions; do
15374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15375     ac_cv_prog_PKGHANDLER="$ac_prog"
15376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15377     break 2
15378   fi
15379 done
15380   done
15381 IFS=$as_save_IFS
15382 
15383 fi
15384 fi
15385 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15386 if test -n "$PKGHANDLER"; then
15387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15388 $as_echo "$PKGHANDLER" >&6; }
15389 else
15390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15391 $as_echo "no" >&6; }
15392 fi
15393 
15394 
15395   test -n "$PKGHANDLER" && break
15396 done
15397 
15398 
15399 
15400 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15401 
15402 
15403   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15404   if test "x$MAKE" != x; then
15405     # User has supplied a make, test it.
15406     if test ! -f "$MAKE"; then
15407       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15408     fi
15409 
15410   MAKE_CANDIDATE=""$MAKE""
15411   DESCRIPTION="user supplied MAKE=$MAKE"
15412   if test "x$MAKE_CANDIDATE" != x; then
15413     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15414 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15415     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15416     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15417     if test "x$IS_GNU_MAKE" = x; then
15418       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15419 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15420     else
15421       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15422       if test "x$IS_MODERN_MAKE" = x; then
15423         { $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
15424 $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;}
15425       else
15426         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15427           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15428             MAKE_EXPECTED_ENV='cygwin'
15429           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15430             MAKE_EXPECTED_ENV='msys'
15431           else
15432             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15433           fi
15434           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15435           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15436         else
15437           # Not relevant for non-Windows
15438           IS_MAKE_CORRECT_ENV=true
15439         fi
15440         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15441           { $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
15442 $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;}
15443         else
15444           FOUND_MAKE=$MAKE_CANDIDATE
15445 
15446   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15447 
15448   # First separate the path from the arguments. This will split at the first
15449   # space.
15450   complete="$FOUND_MAKE"
15451   path="${complete%% *}"
15452   tmp="$complete EOL"
15453   arguments="${tmp#* }"
15454 
15455   # Input might be given as Windows format, start by converting to
15456   # unix format.
15457   new_path=`$CYGPATH -u "$path"`
15458 
15459   # Now try to locate executable using which
15460   new_path=`$WHICH "$new_path" 2> /dev/null`
15461   # bat and cmd files are not always considered executable in cygwin causing which
15462   # to not find them
15463   if test "x$new_path" = x \
15464       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15465       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15466     new_path=`$CYGPATH -u "$path"`
15467   fi
15468   if test "x$new_path" = x; then
15469     # Oops. Which didn't find the executable.
15470     # The splitting of arguments from the executable at a space might have been incorrect,
15471     # since paths with space are more likely in Windows. Give it another try with the whole
15472     # argument.
15473     path="$complete"
15474     arguments="EOL"
15475     new_path=`$CYGPATH -u "$path"`
15476     new_path=`$WHICH "$new_path" 2> /dev/null`
15477     # bat and cmd files are not always considered executable in cygwin causing which
15478     # to not find them
15479     if test "x$new_path" = x \
15480         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15481         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15482       new_path=`$CYGPATH -u "$path"`
15483     fi
15484     if test "x$new_path" = x; then
15485       # It's still not found. Now this is an unrecoverable error.
15486       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15487 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15488       has_space=`$ECHO "$complete" | $GREP " "`
15489       if test "x$has_space" != x; then
15490         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15491 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15492       fi
15493       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15494     fi
15495   fi
15496 
15497   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15498   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15499   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15500   # "foo.exe" is OK but "foo" is an error.
15501   #
15502   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15503   # It is also a way to make sure we got the proper file name for the real test later on.
15504   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15505   if test "x$test_shortpath" = x; then
15506     # Short path failed, file does not exist as specified.
15507     # Try adding .exe or .cmd
15508     if test -f "${new_path}.exe"; then
15509       input_to_shortpath="${new_path}.exe"
15510     elif test -f "${new_path}.cmd"; then
15511       input_to_shortpath="${new_path}.cmd"
15512     else
15513       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15514 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15515       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15516 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15517       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15518     fi
15519   else
15520     input_to_shortpath="$new_path"
15521   fi
15522 
15523   # Call helper function which possibly converts this using DOS-style short mode.
15524   # If so, the updated path is stored in $new_path.
15525   new_path="$input_to_shortpath"
15526 
15527   input_path="$input_to_shortpath"
15528   # Check if we need to convert this using DOS-style short mode. If the path
15529   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15530   # take no chances and rewrite it.
15531   # Note: m4 eats our [], so we need to use [ and ] instead.
15532   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15533   if test "x$has_forbidden_chars" != x; then
15534     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15535     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15536     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15537     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15538       # Going to short mode and back again did indeed matter. Since short mode is
15539       # case insensitive, let's make it lowercase to improve readability.
15540       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15541       # Now convert it back to Unix-stile (cygpath)
15542       input_path=`$CYGPATH -u "$shortmode_path"`
15543       new_path="$input_path"
15544     fi
15545   fi
15546 
15547   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15548   if test "x$test_cygdrive_prefix" = x; then
15549     # As a simple fix, exclude /usr/bin since it's not a real path.
15550     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15551       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15552       # a path prefixed by /cygdrive for fixpath to work.
15553       new_path="$CYGWIN_ROOT_PATH$input_path"
15554     fi
15555   fi
15556 
15557   # remove trailing .exe if any
15558   new_path="${new_path/%.exe/}"
15559 
15560   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15561 
15562   # First separate the path from the arguments. This will split at the first
15563   # space.
15564   complete="$FOUND_MAKE"
15565   path="${complete%% *}"
15566   tmp="$complete EOL"
15567   arguments="${tmp#* }"
15568 
15569   # Input might be given as Windows format, start by converting to
15570   # unix format.
15571   new_path="$path"
15572 
15573   windows_path="$new_path"
15574   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15575     unix_path=`$CYGPATH -u "$windows_path"`
15576     new_path="$unix_path"
15577   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15578     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15579     new_path="$unix_path"
15580   fi
15581 
15582 
15583   # Now try to locate executable using which
15584   new_path=`$WHICH "$new_path" 2> /dev/null`
15585 
15586   if test "x$new_path" = x; then
15587     # Oops. Which didn't find the executable.
15588     # The splitting of arguments from the executable at a space might have been incorrect,
15589     # since paths with space are more likely in Windows. Give it another try with the whole
15590     # argument.
15591     path="$complete"
15592     arguments="EOL"
15593     new_path="$path"
15594 
15595   windows_path="$new_path"
15596   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15597     unix_path=`$CYGPATH -u "$windows_path"`
15598     new_path="$unix_path"
15599   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15600     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15601     new_path="$unix_path"
15602   fi
15603 
15604 
15605     new_path=`$WHICH "$new_path" 2> /dev/null`
15606 
15607     if test "x$new_path" = x; then
15608       # It's still not found. Now this is an unrecoverable error.
15609       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15610 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15611       has_space=`$ECHO "$complete" | $GREP " "`
15612       if test "x$has_space" != x; then
15613         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15614 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15615       fi
15616       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15617     fi
15618   fi
15619 
15620   # Now new_path has a complete unix path to the binary
15621   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15622     # Keep paths in /bin as-is, but remove trailing .exe if any
15623     new_path="${new_path/%.exe/}"
15624     # Do not save /bin paths to all_fixpath_prefixes!
15625   else
15626     # Not in mixed or Windows style, start by that.
15627     new_path=`cmd //c echo $new_path`
15628 
15629   input_path="$new_path"
15630   # Check if we need to convert this using DOS-style short mode. If the path
15631   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15632   # take no chances and rewrite it.
15633   # Note: m4 eats our [], so we need to use [ and ] instead.
15634   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15635   if test "x$has_forbidden_chars" != x; then
15636     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15637     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15638   fi
15639 
15640     # Output is in $new_path
15641 
15642   windows_path="$new_path"
15643   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15644     unix_path=`$CYGPATH -u "$windows_path"`
15645     new_path="$unix_path"
15646   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15647     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15648     new_path="$unix_path"
15649   fi
15650 
15651     # remove trailing .exe if any
15652     new_path="${new_path/%.exe/}"
15653 
15654     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15655     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15656   fi
15657 
15658   else
15659     # We're on a posix platform. Hooray! :)
15660     # First separate the path from the arguments. This will split at the first
15661     # space.
15662     complete="$FOUND_MAKE"
15663     path="${complete%% *}"
15664     tmp="$complete EOL"
15665     arguments="${tmp#* }"
15666 
15667     # Cannot rely on the command "which" here since it doesn't always work.
15668     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15669     if test -z "$is_absolute_path"; then
15670       # Path to executable is not absolute. Find it.
15671       IFS_save="$IFS"
15672       IFS=:
15673       for p in $PATH; do
15674         if test -f "$p/$path" && test -x "$p/$path"; then
15675           new_path="$p/$path"
15676           break
15677         fi
15678       done
15679       IFS="$IFS_save"
15680     else
15681       # This is an absolute path, we can use it without further modifications.
15682       new_path="$path"
15683     fi
15684 
15685     if test "x$new_path" = x; then
15686       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15687 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15688       has_space=`$ECHO "$complete" | $GREP " "`
15689       if test "x$has_space" != x; then
15690         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15691 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15692       fi
15693       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15694     fi
15695   fi
15696 
15697   # Now join together the path and the arguments once again
15698   if test "x$arguments" != xEOL; then
15699     new_complete="$new_path ${arguments% *}"
15700   else
15701     new_complete="$new_path"
15702   fi
15703 
15704   if test "x$complete" != "x$new_complete"; then
15705     FOUND_MAKE="$new_complete"
15706     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15707 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15708   fi
15709 
15710         fi
15711       fi
15712     fi
15713   fi
15714 
15715     if test "x$FOUND_MAKE" = x; then
15716       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15717     fi
15718   else
15719     # Try our hardest to locate a correct version of GNU make
15720     for ac_prog in gmake
15721 do
15722   # Extract the first word of "$ac_prog", so it can be a program name with args.
15723 set dummy $ac_prog; ac_word=$2
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15725 $as_echo_n "checking for $ac_word... " >&6; }
15726 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15727   $as_echo_n "(cached) " >&6
15728 else
15729   case $CHECK_GMAKE in
15730   [\\/]* | ?:[\\/]*)
15731   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15732   ;;
15733   *)
15734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15735 for as_dir in $PATH
15736 do
15737   IFS=$as_save_IFS
15738   test -z "$as_dir" && as_dir=.
15739     for ac_exec_ext in '' $ac_executable_extensions; do
15740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15741     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15743     break 2
15744   fi
15745 done
15746   done
15747 IFS=$as_save_IFS
15748 
15749   ;;
15750 esac
15751 fi
15752 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15753 if test -n "$CHECK_GMAKE"; then
15754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15755 $as_echo "$CHECK_GMAKE" >&6; }
15756 else
15757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758 $as_echo "no" >&6; }
15759 fi
15760 
15761 
15762   test -n "$CHECK_GMAKE" && break
15763 done
15764 
15765 
15766   MAKE_CANDIDATE=""$CHECK_GMAKE""
15767   DESCRIPTION="gmake in PATH"
15768   if test "x$MAKE_CANDIDATE" != x; then
15769     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15770 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15771     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15772     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15773     if test "x$IS_GNU_MAKE" = x; then
15774       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15775 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15776     else
15777       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15778       if test "x$IS_MODERN_MAKE" = x; then
15779         { $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
15780 $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;}
15781       else
15782         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15783           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15784             MAKE_EXPECTED_ENV='cygwin'
15785           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15786             MAKE_EXPECTED_ENV='msys'
15787           else
15788             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15789           fi
15790           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15791           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15792         else
15793           # Not relevant for non-Windows
15794           IS_MAKE_CORRECT_ENV=true
15795         fi
15796         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15797           { $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
15798 $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;}
15799         else
15800           FOUND_MAKE=$MAKE_CANDIDATE
15801 
15802   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15803 
15804   # First separate the path from the arguments. This will split at the first
15805   # space.
15806   complete="$FOUND_MAKE"
15807   path="${complete%% *}"
15808   tmp="$complete EOL"
15809   arguments="${tmp#* }"
15810 
15811   # Input might be given as Windows format, start by converting to
15812   # unix format.
15813   new_path=`$CYGPATH -u "$path"`
15814 
15815   # Now try to locate executable using which
15816   new_path=`$WHICH "$new_path" 2> /dev/null`
15817   # bat and cmd files are not always considered executable in cygwin causing which
15818   # to not find them
15819   if test "x$new_path" = x \
15820       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15821       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15822     new_path=`$CYGPATH -u "$path"`
15823   fi
15824   if test "x$new_path" = x; then
15825     # Oops. Which didn't find the executable.
15826     # The splitting of arguments from the executable at a space might have been incorrect,
15827     # since paths with space are more likely in Windows. Give it another try with the whole
15828     # argument.
15829     path="$complete"
15830     arguments="EOL"
15831     new_path=`$CYGPATH -u "$path"`
15832     new_path=`$WHICH "$new_path" 2> /dev/null`
15833     # bat and cmd files are not always considered executable in cygwin causing which
15834     # to not find them
15835     if test "x$new_path" = x \
15836         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15837         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15838       new_path=`$CYGPATH -u "$path"`
15839     fi
15840     if test "x$new_path" = x; then
15841       # It's still not found. Now this is an unrecoverable error.
15842       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15843 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15844       has_space=`$ECHO "$complete" | $GREP " "`
15845       if test "x$has_space" != x; then
15846         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15847 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15848       fi
15849       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15850     fi
15851   fi
15852 
15853   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15854   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15855   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15856   # "foo.exe" is OK but "foo" is an error.
15857   #
15858   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15859   # It is also a way to make sure we got the proper file name for the real test later on.
15860   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15861   if test "x$test_shortpath" = x; then
15862     # Short path failed, file does not exist as specified.
15863     # Try adding .exe or .cmd
15864     if test -f "${new_path}.exe"; then
15865       input_to_shortpath="${new_path}.exe"
15866     elif test -f "${new_path}.cmd"; then
15867       input_to_shortpath="${new_path}.cmd"
15868     else
15869       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15870 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15871       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15872 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15873       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15874     fi
15875   else
15876     input_to_shortpath="$new_path"
15877   fi
15878 
15879   # Call helper function which possibly converts this using DOS-style short mode.
15880   # If so, the updated path is stored in $new_path.
15881   new_path="$input_to_shortpath"
15882 
15883   input_path="$input_to_shortpath"
15884   # Check if we need to convert this using DOS-style short mode. If the path
15885   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15886   # take no chances and rewrite it.
15887   # Note: m4 eats our [], so we need to use [ and ] instead.
15888   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15889   if test "x$has_forbidden_chars" != x; then
15890     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15891     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15892     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15893     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15894       # Going to short mode and back again did indeed matter. Since short mode is
15895       # case insensitive, let's make it lowercase to improve readability.
15896       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15897       # Now convert it back to Unix-stile (cygpath)
15898       input_path=`$CYGPATH -u "$shortmode_path"`
15899       new_path="$input_path"
15900     fi
15901   fi
15902 
15903   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15904   if test "x$test_cygdrive_prefix" = x; then
15905     # As a simple fix, exclude /usr/bin since it's not a real path.
15906     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15907       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15908       # a path prefixed by /cygdrive for fixpath to work.
15909       new_path="$CYGWIN_ROOT_PATH$input_path"
15910     fi
15911   fi
15912 
15913   # remove trailing .exe if any
15914   new_path="${new_path/%.exe/}"
15915 
15916   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15917 
15918   # First separate the path from the arguments. This will split at the first
15919   # space.
15920   complete="$FOUND_MAKE"
15921   path="${complete%% *}"
15922   tmp="$complete EOL"
15923   arguments="${tmp#* }"
15924 
15925   # Input might be given as Windows format, start by converting to
15926   # unix format.
15927   new_path="$path"
15928 
15929   windows_path="$new_path"
15930   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15931     unix_path=`$CYGPATH -u "$windows_path"`
15932     new_path="$unix_path"
15933   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15934     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15935     new_path="$unix_path"
15936   fi
15937 
15938 
15939   # Now try to locate executable using which
15940   new_path=`$WHICH "$new_path" 2> /dev/null`
15941 
15942   if test "x$new_path" = x; then
15943     # Oops. Which didn't find the executable.
15944     # The splitting of arguments from the executable at a space might have been incorrect,
15945     # since paths with space are more likely in Windows. Give it another try with the whole
15946     # argument.
15947     path="$complete"
15948     arguments="EOL"
15949     new_path="$path"
15950 
15951   windows_path="$new_path"
15952   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15953     unix_path=`$CYGPATH -u "$windows_path"`
15954     new_path="$unix_path"
15955   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15956     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15957     new_path="$unix_path"
15958   fi
15959 
15960 
15961     new_path=`$WHICH "$new_path" 2> /dev/null`
15962 
15963     if test "x$new_path" = x; then
15964       # It's still not found. Now this is an unrecoverable error.
15965       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15966 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15967       has_space=`$ECHO "$complete" | $GREP " "`
15968       if test "x$has_space" != x; then
15969         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15970 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15971       fi
15972       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15973     fi
15974   fi
15975 
15976   # Now new_path has a complete unix path to the binary
15977   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15978     # Keep paths in /bin as-is, but remove trailing .exe if any
15979     new_path="${new_path/%.exe/}"
15980     # Do not save /bin paths to all_fixpath_prefixes!
15981   else
15982     # Not in mixed or Windows style, start by that.
15983     new_path=`cmd //c echo $new_path`
15984 
15985   input_path="$new_path"
15986   # Check if we need to convert this using DOS-style short mode. If the path
15987   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15988   # take no chances and rewrite it.
15989   # Note: m4 eats our [], so we need to use [ and ] instead.
15990   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15991   if test "x$has_forbidden_chars" != x; then
15992     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15993     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15994   fi
15995 
15996     # Output is in $new_path
15997 
15998   windows_path="$new_path"
15999   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16000     unix_path=`$CYGPATH -u "$windows_path"`
16001     new_path="$unix_path"
16002   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16003     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16004     new_path="$unix_path"
16005   fi
16006 
16007     # remove trailing .exe if any
16008     new_path="${new_path/%.exe/}"
16009 
16010     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16011     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16012   fi
16013 
16014   else
16015     # We're on a posix platform. Hooray! :)
16016     # First separate the path from the arguments. This will split at the first
16017     # space.
16018     complete="$FOUND_MAKE"
16019     path="${complete%% *}"
16020     tmp="$complete EOL"
16021     arguments="${tmp#* }"
16022 
16023     # Cannot rely on the command "which" here since it doesn't always work.
16024     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16025     if test -z "$is_absolute_path"; then
16026       # Path to executable is not absolute. Find it.
16027       IFS_save="$IFS"
16028       IFS=:
16029       for p in $PATH; do
16030         if test -f "$p/$path" && test -x "$p/$path"; then
16031           new_path="$p/$path"
16032           break
16033         fi
16034       done
16035       IFS="$IFS_save"
16036     else
16037       # This is an absolute path, we can use it without further modifications.
16038       new_path="$path"
16039     fi
16040 
16041     if test "x$new_path" = x; then
16042       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16043 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16044       has_space=`$ECHO "$complete" | $GREP " "`
16045       if test "x$has_space" != x; then
16046         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16047 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16048       fi
16049       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16050     fi
16051   fi
16052 
16053   # Now join together the path and the arguments once again
16054   if test "x$arguments" != xEOL; then
16055     new_complete="$new_path ${arguments% *}"
16056   else
16057     new_complete="$new_path"
16058   fi
16059 
16060   if test "x$complete" != "x$new_complete"; then
16061     FOUND_MAKE="$new_complete"
16062     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16063 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16064   fi
16065 
16066         fi
16067       fi
16068     fi
16069   fi
16070 
16071 
16072     if test "x$FOUND_MAKE" = x; then
16073       for ac_prog in make
16074 do
16075   # Extract the first word of "$ac_prog", so it can be a program name with args.
16076 set dummy $ac_prog; ac_word=$2
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16078 $as_echo_n "checking for $ac_word... " >&6; }
16079 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16080   $as_echo_n "(cached) " >&6
16081 else
16082   case $CHECK_MAKE in
16083   [\\/]* | ?:[\\/]*)
16084   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16085   ;;
16086   *)
16087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16088 for as_dir in $PATH
16089 do
16090   IFS=$as_save_IFS
16091   test -z "$as_dir" && as_dir=.
16092     for ac_exec_ext in '' $ac_executable_extensions; do
16093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16094     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16096     break 2
16097   fi
16098 done
16099   done
16100 IFS=$as_save_IFS
16101 
16102   ;;
16103 esac
16104 fi
16105 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16106 if test -n "$CHECK_MAKE"; then
16107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16108 $as_echo "$CHECK_MAKE" >&6; }
16109 else
16110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16112 fi
16113 
16114 
16115   test -n "$CHECK_MAKE" && break
16116 done
16117 
16118 
16119   MAKE_CANDIDATE=""$CHECK_MAKE""
16120   DESCRIPTION="make in PATH"
16121   if test "x$MAKE_CANDIDATE" != x; then
16122     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16123 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16124     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16125     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16126     if test "x$IS_GNU_MAKE" = x; then
16127       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16128 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16129     else
16130       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16131       if test "x$IS_MODERN_MAKE" = x; then
16132         { $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
16133 $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;}
16134       else
16135         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16136           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16137             MAKE_EXPECTED_ENV='cygwin'
16138           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16139             MAKE_EXPECTED_ENV='msys'
16140           else
16141             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16142           fi
16143           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16144           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16145         else
16146           # Not relevant for non-Windows
16147           IS_MAKE_CORRECT_ENV=true
16148         fi
16149         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16150           { $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
16151 $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;}
16152         else
16153           FOUND_MAKE=$MAKE_CANDIDATE
16154 
16155   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16156 
16157   # First separate the path from the arguments. This will split at the first
16158   # space.
16159   complete="$FOUND_MAKE"
16160   path="${complete%% *}"
16161   tmp="$complete EOL"
16162   arguments="${tmp#* }"
16163 
16164   # Input might be given as Windows format, start by converting to
16165   # unix format.
16166   new_path=`$CYGPATH -u "$path"`
16167 
16168   # Now try to locate executable using which
16169   new_path=`$WHICH "$new_path" 2> /dev/null`
16170   # bat and cmd files are not always considered executable in cygwin causing which
16171   # to not find them
16172   if test "x$new_path" = x \
16173       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16174       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16175     new_path=`$CYGPATH -u "$path"`
16176   fi
16177   if test "x$new_path" = x; then
16178     # Oops. Which didn't find the executable.
16179     # The splitting of arguments from the executable at a space might have been incorrect,
16180     # since paths with space are more likely in Windows. Give it another try with the whole
16181     # argument.
16182     path="$complete"
16183     arguments="EOL"
16184     new_path=`$CYGPATH -u "$path"`
16185     new_path=`$WHICH "$new_path" 2> /dev/null`
16186     # bat and cmd files are not always considered executable in cygwin causing which
16187     # to not find them
16188     if test "x$new_path" = x \
16189         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16190         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16191       new_path=`$CYGPATH -u "$path"`
16192     fi
16193     if test "x$new_path" = x; then
16194       # It's still not found. Now this is an unrecoverable error.
16195       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16196 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16197       has_space=`$ECHO "$complete" | $GREP " "`
16198       if test "x$has_space" != x; then
16199         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16200 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16201       fi
16202       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16203     fi
16204   fi
16205 
16206   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16207   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16208   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16209   # "foo.exe" is OK but "foo" is an error.
16210   #
16211   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16212   # It is also a way to make sure we got the proper file name for the real test later on.
16213   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16214   if test "x$test_shortpath" = x; then
16215     # Short path failed, file does not exist as specified.
16216     # Try adding .exe or .cmd
16217     if test -f "${new_path}.exe"; then
16218       input_to_shortpath="${new_path}.exe"
16219     elif test -f "${new_path}.cmd"; then
16220       input_to_shortpath="${new_path}.cmd"
16221     else
16222       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16223 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16224       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16225 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16226       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16227     fi
16228   else
16229     input_to_shortpath="$new_path"
16230   fi
16231 
16232   # Call helper function which possibly converts this using DOS-style short mode.
16233   # If so, the updated path is stored in $new_path.
16234   new_path="$input_to_shortpath"
16235 
16236   input_path="$input_to_shortpath"
16237   # Check if we need to convert this using DOS-style short mode. If the path
16238   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16239   # take no chances and rewrite it.
16240   # Note: m4 eats our [], so we need to use [ and ] instead.
16241   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16242   if test "x$has_forbidden_chars" != x; then
16243     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16244     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16245     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16246     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16247       # Going to short mode and back again did indeed matter. Since short mode is
16248       # case insensitive, let's make it lowercase to improve readability.
16249       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16250       # Now convert it back to Unix-stile (cygpath)
16251       input_path=`$CYGPATH -u "$shortmode_path"`
16252       new_path="$input_path"
16253     fi
16254   fi
16255 
16256   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16257   if test "x$test_cygdrive_prefix" = x; then
16258     # As a simple fix, exclude /usr/bin since it's not a real path.
16259     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16260       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16261       # a path prefixed by /cygdrive for fixpath to work.
16262       new_path="$CYGWIN_ROOT_PATH$input_path"
16263     fi
16264   fi
16265 
16266   # remove trailing .exe if any
16267   new_path="${new_path/%.exe/}"
16268 
16269   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16270 
16271   # First separate the path from the arguments. This will split at the first
16272   # space.
16273   complete="$FOUND_MAKE"
16274   path="${complete%% *}"
16275   tmp="$complete EOL"
16276   arguments="${tmp#* }"
16277 
16278   # Input might be given as Windows format, start by converting to
16279   # unix format.
16280   new_path="$path"
16281 
16282   windows_path="$new_path"
16283   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16284     unix_path=`$CYGPATH -u "$windows_path"`
16285     new_path="$unix_path"
16286   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16287     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16288     new_path="$unix_path"
16289   fi
16290 
16291 
16292   # Now try to locate executable using which
16293   new_path=`$WHICH "$new_path" 2> /dev/null`
16294 
16295   if test "x$new_path" = x; then
16296     # Oops. Which didn't find the executable.
16297     # The splitting of arguments from the executable at a space might have been incorrect,
16298     # since paths with space are more likely in Windows. Give it another try with the whole
16299     # argument.
16300     path="$complete"
16301     arguments="EOL"
16302     new_path="$path"
16303 
16304   windows_path="$new_path"
16305   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16306     unix_path=`$CYGPATH -u "$windows_path"`
16307     new_path="$unix_path"
16308   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16309     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16310     new_path="$unix_path"
16311   fi
16312 
16313 
16314     new_path=`$WHICH "$new_path" 2> /dev/null`
16315 
16316     if test "x$new_path" = x; then
16317       # It's still not found. Now this is an unrecoverable error.
16318       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16319 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16320       has_space=`$ECHO "$complete" | $GREP " "`
16321       if test "x$has_space" != x; then
16322         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16323 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16324       fi
16325       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16326     fi
16327   fi
16328 
16329   # Now new_path has a complete unix path to the binary
16330   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16331     # Keep paths in /bin as-is, but remove trailing .exe if any
16332     new_path="${new_path/%.exe/}"
16333     # Do not save /bin paths to all_fixpath_prefixes!
16334   else
16335     # Not in mixed or Windows style, start by that.
16336     new_path=`cmd //c echo $new_path`
16337 
16338   input_path="$new_path"
16339   # Check if we need to convert this using DOS-style short mode. If the path
16340   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16341   # take no chances and rewrite it.
16342   # Note: m4 eats our [], so we need to use [ and ] instead.
16343   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16344   if test "x$has_forbidden_chars" != x; then
16345     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16346     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16347   fi
16348 
16349     # Output is in $new_path
16350 
16351   windows_path="$new_path"
16352   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16353     unix_path=`$CYGPATH -u "$windows_path"`
16354     new_path="$unix_path"
16355   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16356     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16357     new_path="$unix_path"
16358   fi
16359 
16360     # remove trailing .exe if any
16361     new_path="${new_path/%.exe/}"
16362 
16363     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16364     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16365   fi
16366 
16367   else
16368     # We're on a posix platform. Hooray! :)
16369     # First separate the path from the arguments. This will split at the first
16370     # space.
16371     complete="$FOUND_MAKE"
16372     path="${complete%% *}"
16373     tmp="$complete EOL"
16374     arguments="${tmp#* }"
16375 
16376     # Cannot rely on the command "which" here since it doesn't always work.
16377     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16378     if test -z "$is_absolute_path"; then
16379       # Path to executable is not absolute. Find it.
16380       IFS_save="$IFS"
16381       IFS=:
16382       for p in $PATH; do
16383         if test -f "$p/$path" && test -x "$p/$path"; then
16384           new_path="$p/$path"
16385           break
16386         fi
16387       done
16388       IFS="$IFS_save"
16389     else
16390       # This is an absolute path, we can use it without further modifications.
16391       new_path="$path"
16392     fi
16393 
16394     if test "x$new_path" = x; then
16395       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16396 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16397       has_space=`$ECHO "$complete" | $GREP " "`
16398       if test "x$has_space" != x; then
16399         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16400 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16401       fi
16402       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16403     fi
16404   fi
16405 
16406   # Now join together the path and the arguments once again
16407   if test "x$arguments" != xEOL; then
16408     new_complete="$new_path ${arguments% *}"
16409   else
16410     new_complete="$new_path"
16411   fi
16412 
16413   if test "x$complete" != "x$new_complete"; then
16414     FOUND_MAKE="$new_complete"
16415     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16416 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16417   fi
16418 
16419         fi
16420       fi
16421     fi
16422   fi
16423 
16424     fi
16425 
16426     if test "x$FOUND_MAKE" = x; then
16427       if test "x$TOOLCHAIN_PATH" != x; then
16428         # We have a toolchain path, check that as well before giving up.
16429         OLD_PATH=$PATH
16430         PATH=$TOOLCHAIN_PATH:$PATH
16431         for ac_prog in gmake
16432 do
16433   # Extract the first word of "$ac_prog", so it can be a program name with args.
16434 set dummy $ac_prog; ac_word=$2
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16436 $as_echo_n "checking for $ac_word... " >&6; }
16437 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16438   $as_echo_n "(cached) " >&6
16439 else
16440   case $CHECK_TOOLSDIR_GMAKE in
16441   [\\/]* | ?:[\\/]*)
16442   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16443   ;;
16444   *)
16445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16446 for as_dir in $PATH
16447 do
16448   IFS=$as_save_IFS
16449   test -z "$as_dir" && as_dir=.
16450     for ac_exec_ext in '' $ac_executable_extensions; do
16451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16452     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16454     break 2
16455   fi
16456 done
16457   done
16458 IFS=$as_save_IFS
16459 
16460   ;;
16461 esac
16462 fi
16463 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16464 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16466 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16467 else
16468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469 $as_echo "no" >&6; }
16470 fi
16471 
16472 
16473   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16474 done
16475 
16476 
16477   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16478   DESCRIPTION="gmake in tools-dir"
16479   if test "x$MAKE_CANDIDATE" != x; then
16480     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16481 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16482     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16483     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16484     if test "x$IS_GNU_MAKE" = x; then
16485       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16486 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16487     else
16488       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16489       if test "x$IS_MODERN_MAKE" = x; then
16490         { $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
16491 $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;}
16492       else
16493         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16494           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16495             MAKE_EXPECTED_ENV='cygwin'
16496           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16497             MAKE_EXPECTED_ENV='msys'
16498           else
16499             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16500           fi
16501           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16502           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16503         else
16504           # Not relevant for non-Windows
16505           IS_MAKE_CORRECT_ENV=true
16506         fi
16507         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16508           { $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
16509 $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;}
16510         else
16511           FOUND_MAKE=$MAKE_CANDIDATE
16512 
16513   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16514 
16515   # First separate the path from the arguments. This will split at the first
16516   # space.
16517   complete="$FOUND_MAKE"
16518   path="${complete%% *}"
16519   tmp="$complete EOL"
16520   arguments="${tmp#* }"
16521 
16522   # Input might be given as Windows format, start by converting to
16523   # unix format.
16524   new_path=`$CYGPATH -u "$path"`
16525 
16526   # Now try to locate executable using which
16527   new_path=`$WHICH "$new_path" 2> /dev/null`
16528   # bat and cmd files are not always considered executable in cygwin causing which
16529   # to not find them
16530   if test "x$new_path" = x \
16531       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16532       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16533     new_path=`$CYGPATH -u "$path"`
16534   fi
16535   if test "x$new_path" = x; then
16536     # Oops. Which didn't find the executable.
16537     # The splitting of arguments from the executable at a space might have been incorrect,
16538     # since paths with space are more likely in Windows. Give it another try with the whole
16539     # argument.
16540     path="$complete"
16541     arguments="EOL"
16542     new_path=`$CYGPATH -u "$path"`
16543     new_path=`$WHICH "$new_path" 2> /dev/null`
16544     # bat and cmd files are not always considered executable in cygwin causing which
16545     # to not find them
16546     if test "x$new_path" = x \
16547         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16548         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16549       new_path=`$CYGPATH -u "$path"`
16550     fi
16551     if test "x$new_path" = x; then
16552       # It's still not found. Now this is an unrecoverable error.
16553       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16554 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16555       has_space=`$ECHO "$complete" | $GREP " "`
16556       if test "x$has_space" != x; then
16557         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16558 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16559       fi
16560       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16561     fi
16562   fi
16563 
16564   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16565   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16566   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16567   # "foo.exe" is OK but "foo" is an error.
16568   #
16569   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16570   # It is also a way to make sure we got the proper file name for the real test later on.
16571   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16572   if test "x$test_shortpath" = x; then
16573     # Short path failed, file does not exist as specified.
16574     # Try adding .exe or .cmd
16575     if test -f "${new_path}.exe"; then
16576       input_to_shortpath="${new_path}.exe"
16577     elif test -f "${new_path}.cmd"; then
16578       input_to_shortpath="${new_path}.cmd"
16579     else
16580       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16581 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16582       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16583 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16584       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16585     fi
16586   else
16587     input_to_shortpath="$new_path"
16588   fi
16589 
16590   # Call helper function which possibly converts this using DOS-style short mode.
16591   # If so, the updated path is stored in $new_path.
16592   new_path="$input_to_shortpath"
16593 
16594   input_path="$input_to_shortpath"
16595   # Check if we need to convert this using DOS-style short mode. If the path
16596   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16597   # take no chances and rewrite it.
16598   # Note: m4 eats our [], so we need to use [ and ] instead.
16599   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16600   if test "x$has_forbidden_chars" != x; then
16601     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16602     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16603     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16604     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16605       # Going to short mode and back again did indeed matter. Since short mode is
16606       # case insensitive, let's make it lowercase to improve readability.
16607       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16608       # Now convert it back to Unix-stile (cygpath)
16609       input_path=`$CYGPATH -u "$shortmode_path"`
16610       new_path="$input_path"
16611     fi
16612   fi
16613 
16614   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16615   if test "x$test_cygdrive_prefix" = x; then
16616     # As a simple fix, exclude /usr/bin since it's not a real path.
16617     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16618       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16619       # a path prefixed by /cygdrive for fixpath to work.
16620       new_path="$CYGWIN_ROOT_PATH$input_path"
16621     fi
16622   fi
16623 
16624   # remove trailing .exe if any
16625   new_path="${new_path/%.exe/}"
16626 
16627   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16628 
16629   # First separate the path from the arguments. This will split at the first
16630   # space.
16631   complete="$FOUND_MAKE"
16632   path="${complete%% *}"
16633   tmp="$complete EOL"
16634   arguments="${tmp#* }"
16635 
16636   # Input might be given as Windows format, start by converting to
16637   # unix format.
16638   new_path="$path"
16639 
16640   windows_path="$new_path"
16641   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16642     unix_path=`$CYGPATH -u "$windows_path"`
16643     new_path="$unix_path"
16644   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16645     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16646     new_path="$unix_path"
16647   fi
16648 
16649 
16650   # Now try to locate executable using which
16651   new_path=`$WHICH "$new_path" 2> /dev/null`
16652 
16653   if test "x$new_path" = x; then
16654     # Oops. Which didn't find the executable.
16655     # The splitting of arguments from the executable at a space might have been incorrect,
16656     # since paths with space are more likely in Windows. Give it another try with the whole
16657     # argument.
16658     path="$complete"
16659     arguments="EOL"
16660     new_path="$path"
16661 
16662   windows_path="$new_path"
16663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16664     unix_path=`$CYGPATH -u "$windows_path"`
16665     new_path="$unix_path"
16666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16667     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16668     new_path="$unix_path"
16669   fi
16670 
16671 
16672     new_path=`$WHICH "$new_path" 2> /dev/null`
16673 
16674     if test "x$new_path" = x; then
16675       # It's still not found. Now this is an unrecoverable error.
16676       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16677 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16678       has_space=`$ECHO "$complete" | $GREP " "`
16679       if test "x$has_space" != x; then
16680         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16681 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16682       fi
16683       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16684     fi
16685   fi
16686 
16687   # Now new_path has a complete unix path to the binary
16688   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16689     # Keep paths in /bin as-is, but remove trailing .exe if any
16690     new_path="${new_path/%.exe/}"
16691     # Do not save /bin paths to all_fixpath_prefixes!
16692   else
16693     # Not in mixed or Windows style, start by that.
16694     new_path=`cmd //c echo $new_path`
16695 
16696   input_path="$new_path"
16697   # Check if we need to convert this using DOS-style short mode. If the path
16698   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16699   # take no chances and rewrite it.
16700   # Note: m4 eats our [], so we need to use [ and ] instead.
16701   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16702   if test "x$has_forbidden_chars" != x; then
16703     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16704     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16705   fi
16706 
16707     # Output is in $new_path
16708 
16709   windows_path="$new_path"
16710   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16711     unix_path=`$CYGPATH -u "$windows_path"`
16712     new_path="$unix_path"
16713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16714     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16715     new_path="$unix_path"
16716   fi
16717 
16718     # remove trailing .exe if any
16719     new_path="${new_path/%.exe/}"
16720 
16721     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16722     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16723   fi
16724 
16725   else
16726     # We're on a posix platform. Hooray! :)
16727     # First separate the path from the arguments. This will split at the first
16728     # space.
16729     complete="$FOUND_MAKE"
16730     path="${complete%% *}"
16731     tmp="$complete EOL"
16732     arguments="${tmp#* }"
16733 
16734     # Cannot rely on the command "which" here since it doesn't always work.
16735     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16736     if test -z "$is_absolute_path"; then
16737       # Path to executable is not absolute. Find it.
16738       IFS_save="$IFS"
16739       IFS=:
16740       for p in $PATH; do
16741         if test -f "$p/$path" && test -x "$p/$path"; then
16742           new_path="$p/$path"
16743           break
16744         fi
16745       done
16746       IFS="$IFS_save"
16747     else
16748       # This is an absolute path, we can use it without further modifications.
16749       new_path="$path"
16750     fi
16751 
16752     if test "x$new_path" = x; then
16753       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16754 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16755       has_space=`$ECHO "$complete" | $GREP " "`
16756       if test "x$has_space" != x; then
16757         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16758 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16759       fi
16760       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16761     fi
16762   fi
16763 
16764   # Now join together the path and the arguments once again
16765   if test "x$arguments" != xEOL; then
16766     new_complete="$new_path ${arguments% *}"
16767   else
16768     new_complete="$new_path"
16769   fi
16770 
16771   if test "x$complete" != "x$new_complete"; then
16772     FOUND_MAKE="$new_complete"
16773     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16774 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16775   fi
16776 
16777         fi
16778       fi
16779     fi
16780   fi
16781 
16782         if test "x$FOUND_MAKE" = x; then
16783           for ac_prog in make
16784 do
16785   # Extract the first word of "$ac_prog", so it can be a program name with args.
16786 set dummy $ac_prog; ac_word=$2
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16788 $as_echo_n "checking for $ac_word... " >&6; }
16789 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16790   $as_echo_n "(cached) " >&6
16791 else
16792   case $CHECK_TOOLSDIR_MAKE in
16793   [\\/]* | ?:[\\/]*)
16794   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16795   ;;
16796   *)
16797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16798 for as_dir in $PATH
16799 do
16800   IFS=$as_save_IFS
16801   test -z "$as_dir" && as_dir=.
16802     for ac_exec_ext in '' $ac_executable_extensions; do
16803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16804     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16806     break 2
16807   fi
16808 done
16809   done
16810 IFS=$as_save_IFS
16811 
16812   ;;
16813 esac
16814 fi
16815 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16816 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16818 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16819 else
16820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 $as_echo "no" >&6; }
16822 fi
16823 
16824 
16825   test -n "$CHECK_TOOLSDIR_MAKE" && break
16826 done
16827 
16828 
16829   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16830   DESCRIPTION="make in tools-dir"
16831   if test "x$MAKE_CANDIDATE" != x; then
16832     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16833 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16834     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16835     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16836     if test "x$IS_GNU_MAKE" = x; then
16837       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16838 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16839     else
16840       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16841       if test "x$IS_MODERN_MAKE" = x; then
16842         { $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
16843 $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;}
16844       else
16845         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16846           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16847             MAKE_EXPECTED_ENV='cygwin'
16848           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16849             MAKE_EXPECTED_ENV='msys'
16850           else
16851             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16852           fi
16853           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16854           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16855         else
16856           # Not relevant for non-Windows
16857           IS_MAKE_CORRECT_ENV=true
16858         fi
16859         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16860           { $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
16861 $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;}
16862         else
16863           FOUND_MAKE=$MAKE_CANDIDATE
16864 
16865   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16866 
16867   # First separate the path from the arguments. This will split at the first
16868   # space.
16869   complete="$FOUND_MAKE"
16870   path="${complete%% *}"
16871   tmp="$complete EOL"
16872   arguments="${tmp#* }"
16873 
16874   # Input might be given as Windows format, start by converting to
16875   # unix format.
16876   new_path=`$CYGPATH -u "$path"`
16877 
16878   # Now try to locate executable using which
16879   new_path=`$WHICH "$new_path" 2> /dev/null`
16880   # bat and cmd files are not always considered executable in cygwin causing which
16881   # to not find them
16882   if test "x$new_path" = x \
16883       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16884       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16885     new_path=`$CYGPATH -u "$path"`
16886   fi
16887   if test "x$new_path" = x; then
16888     # Oops. Which didn't find the executable.
16889     # The splitting of arguments from the executable at a space might have been incorrect,
16890     # since paths with space are more likely in Windows. Give it another try with the whole
16891     # argument.
16892     path="$complete"
16893     arguments="EOL"
16894     new_path=`$CYGPATH -u "$path"`
16895     new_path=`$WHICH "$new_path" 2> /dev/null`
16896     # bat and cmd files are not always considered executable in cygwin causing which
16897     # to not find them
16898     if test "x$new_path" = x \
16899         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16900         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16901       new_path=`$CYGPATH -u "$path"`
16902     fi
16903     if test "x$new_path" = x; then
16904       # It's still not found. Now this is an unrecoverable error.
16905       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16906 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16907       has_space=`$ECHO "$complete" | $GREP " "`
16908       if test "x$has_space" != x; then
16909         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16910 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16911       fi
16912       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16913     fi
16914   fi
16915 
16916   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16917   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16918   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16919   # "foo.exe" is OK but "foo" is an error.
16920   #
16921   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16922   # It is also a way to make sure we got the proper file name for the real test later on.
16923   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16924   if test "x$test_shortpath" = x; then
16925     # Short path failed, file does not exist as specified.
16926     # Try adding .exe or .cmd
16927     if test -f "${new_path}.exe"; then
16928       input_to_shortpath="${new_path}.exe"
16929     elif test -f "${new_path}.cmd"; then
16930       input_to_shortpath="${new_path}.cmd"
16931     else
16932       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16933 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16934       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16935 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16936       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16937     fi
16938   else
16939     input_to_shortpath="$new_path"
16940   fi
16941 
16942   # Call helper function which possibly converts this using DOS-style short mode.
16943   # If so, the updated path is stored in $new_path.
16944   new_path="$input_to_shortpath"
16945 
16946   input_path="$input_to_shortpath"
16947   # Check if we need to convert this using DOS-style short mode. If the path
16948   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16949   # take no chances and rewrite it.
16950   # Note: m4 eats our [], so we need to use [ and ] instead.
16951   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16952   if test "x$has_forbidden_chars" != x; then
16953     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16954     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16955     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16956     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16957       # Going to short mode and back again did indeed matter. Since short mode is
16958       # case insensitive, let's make it lowercase to improve readability.
16959       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16960       # Now convert it back to Unix-stile (cygpath)
16961       input_path=`$CYGPATH -u "$shortmode_path"`
16962       new_path="$input_path"
16963     fi
16964   fi
16965 
16966   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16967   if test "x$test_cygdrive_prefix" = x; then
16968     # As a simple fix, exclude /usr/bin since it's not a real path.
16969     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16970       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16971       # a path prefixed by /cygdrive for fixpath to work.
16972       new_path="$CYGWIN_ROOT_PATH$input_path"
16973     fi
16974   fi
16975 
16976   # remove trailing .exe if any
16977   new_path="${new_path/%.exe/}"
16978 
16979   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16980 
16981   # First separate the path from the arguments. This will split at the first
16982   # space.
16983   complete="$FOUND_MAKE"
16984   path="${complete%% *}"
16985   tmp="$complete EOL"
16986   arguments="${tmp#* }"
16987 
16988   # Input might be given as Windows format, start by converting to
16989   # unix format.
16990   new_path="$path"
16991 
16992   windows_path="$new_path"
16993   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16994     unix_path=`$CYGPATH -u "$windows_path"`
16995     new_path="$unix_path"
16996   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16997     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16998     new_path="$unix_path"
16999   fi
17000 
17001 
17002   # Now try to locate executable using which
17003   new_path=`$WHICH "$new_path" 2> /dev/null`
17004 
17005   if test "x$new_path" = x; then
17006     # Oops. Which didn't find the executable.
17007     # The splitting of arguments from the executable at a space might have been incorrect,
17008     # since paths with space are more likely in Windows. Give it another try with the whole
17009     # argument.
17010     path="$complete"
17011     arguments="EOL"
17012     new_path="$path"
17013 
17014   windows_path="$new_path"
17015   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17016     unix_path=`$CYGPATH -u "$windows_path"`
17017     new_path="$unix_path"
17018   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17019     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17020     new_path="$unix_path"
17021   fi
17022 
17023 
17024     new_path=`$WHICH "$new_path" 2> /dev/null`
17025 
17026     if test "x$new_path" = x; then
17027       # It's still not found. Now this is an unrecoverable error.
17028       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17029 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17030       has_space=`$ECHO "$complete" | $GREP " "`
17031       if test "x$has_space" != x; then
17032         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17033 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17034       fi
17035       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17036     fi
17037   fi
17038 
17039   # Now new_path has a complete unix path to the binary
17040   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17041     # Keep paths in /bin as-is, but remove trailing .exe if any
17042     new_path="${new_path/%.exe/}"
17043     # Do not save /bin paths to all_fixpath_prefixes!
17044   else
17045     # Not in mixed or Windows style, start by that.
17046     new_path=`cmd //c echo $new_path`
17047 
17048   input_path="$new_path"
17049   # Check if we need to convert this using DOS-style short mode. If the path
17050   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17051   # take no chances and rewrite it.
17052   # Note: m4 eats our [], so we need to use [ and ] instead.
17053   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17054   if test "x$has_forbidden_chars" != x; then
17055     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17056     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17057   fi
17058 
17059     # Output is in $new_path
17060 
17061   windows_path="$new_path"
17062   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17063     unix_path=`$CYGPATH -u "$windows_path"`
17064     new_path="$unix_path"
17065   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17066     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17067     new_path="$unix_path"
17068   fi
17069 
17070     # remove trailing .exe if any
17071     new_path="${new_path/%.exe/}"
17072 
17073     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17074     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17075   fi
17076 
17077   else
17078     # We're on a posix platform. Hooray! :)
17079     # First separate the path from the arguments. This will split at the first
17080     # space.
17081     complete="$FOUND_MAKE"
17082     path="${complete%% *}"
17083     tmp="$complete EOL"
17084     arguments="${tmp#* }"
17085 
17086     # Cannot rely on the command "which" here since it doesn't always work.
17087     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17088     if test -z "$is_absolute_path"; then
17089       # Path to executable is not absolute. Find it.
17090       IFS_save="$IFS"
17091       IFS=:
17092       for p in $PATH; do
17093         if test -f "$p/$path" && test -x "$p/$path"; then
17094           new_path="$p/$path"
17095           break
17096         fi
17097       done
17098       IFS="$IFS_save"
17099     else
17100       # This is an absolute path, we can use it without further modifications.
17101       new_path="$path"
17102     fi
17103 
17104     if test "x$new_path" = x; then
17105       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17106 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17107       has_space=`$ECHO "$complete" | $GREP " "`
17108       if test "x$has_space" != x; then
17109         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17110 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17111       fi
17112       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17113     fi
17114   fi
17115 
17116   # Now join together the path and the arguments once again
17117   if test "x$arguments" != xEOL; then
17118     new_complete="$new_path ${arguments% *}"
17119   else
17120     new_complete="$new_path"
17121   fi
17122 
17123   if test "x$complete" != "x$new_complete"; then
17124     FOUND_MAKE="$new_complete"
17125     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17126 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17127   fi
17128 
17129         fi
17130       fi
17131     fi
17132   fi
17133 
17134         fi
17135         PATH=$OLD_PATH
17136       fi
17137     fi
17138 
17139     if test "x$FOUND_MAKE" = x; then
17140       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
17141     fi
17142   fi
17143 
17144   MAKE=$FOUND_MAKE
17145 
17146   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17147 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17148 
17149 
17150 
17151   # Test if find supports -delete
17152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17153 $as_echo_n "checking if find supports -delete... " >&6; }
17154   FIND_DELETE="-delete"
17155 
17156   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17157 
17158   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17159 
17160   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17161   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17162     # No, it does not.
17163     rm $DELETEDIR/TestIfFindSupportsDelete
17164     FIND_DELETE="-exec rm \{\} \+"
17165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17166 $as_echo "no" >&6; }
17167   else
17168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17169 $as_echo "yes" >&6; }
17170   fi
17171   rmdir $DELETEDIR
17172 
17173 
17174 
17175   # These tools might not be installed by default,
17176   # need hint on how to install them.
17177 
17178 
17179 
17180   # Publish this variable in the help.
17181 
17182 
17183   if test "x$UNZIP" = x; then
17184     # The variable is not set by user, try to locate tool using the code snippet
17185     for ac_prog in unzip
17186 do
17187   # Extract the first word of "$ac_prog", so it can be a program name with args.
17188 set dummy $ac_prog; ac_word=$2
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17190 $as_echo_n "checking for $ac_word... " >&6; }
17191 if ${ac_cv_path_UNZIP+:} false; then :
17192   $as_echo_n "(cached) " >&6
17193 else
17194   case $UNZIP in
17195   [\\/]* | ?:[\\/]*)
17196   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17197   ;;
17198   *)
17199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200 for as_dir in $PATH
17201 do
17202   IFS=$as_save_IFS
17203   test -z "$as_dir" && as_dir=.
17204     for ac_exec_ext in '' $ac_executable_extensions; do
17205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17206     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17208     break 2
17209   fi
17210 done
17211   done
17212 IFS=$as_save_IFS
17213 
17214   ;;
17215 esac
17216 fi
17217 UNZIP=$ac_cv_path_UNZIP
17218 if test -n "$UNZIP"; then
17219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17220 $as_echo "$UNZIP" >&6; }
17221 else
17222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17223 $as_echo "no" >&6; }
17224 fi
17225 
17226 
17227   test -n "$UNZIP" && break
17228 done
17229 
17230   else
17231     # The variable is set, but is it from the command line or the environment?
17232 
17233     # Try to remove the string !UNZIP! from our list.
17234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17236       # If it failed, the variable was not from the command line. Ignore it,
17237       # but warn the user (except for BASH, which is always set by the calling BASH).
17238       if test "xUNZIP" != xBASH; then
17239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17240 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17241       fi
17242       # Try to locate tool using the code snippet
17243       for ac_prog in unzip
17244 do
17245   # Extract the first word of "$ac_prog", so it can be a program name with args.
17246 set dummy $ac_prog; ac_word=$2
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 $as_echo_n "checking for $ac_word... " >&6; }
17249 if ${ac_cv_path_UNZIP+:} false; then :
17250   $as_echo_n "(cached) " >&6
17251 else
17252   case $UNZIP in
17253   [\\/]* | ?:[\\/]*)
17254   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17255   ;;
17256   *)
17257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17258 for as_dir in $PATH
17259 do
17260   IFS=$as_save_IFS
17261   test -z "$as_dir" && as_dir=.
17262     for ac_exec_ext in '' $ac_executable_extensions; do
17263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17264     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17266     break 2
17267   fi
17268 done
17269   done
17270 IFS=$as_save_IFS
17271 
17272   ;;
17273 esac
17274 fi
17275 UNZIP=$ac_cv_path_UNZIP
17276 if test -n "$UNZIP"; then
17277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17278 $as_echo "$UNZIP" >&6; }
17279 else
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17281 $as_echo "no" >&6; }
17282 fi
17283 
17284 
17285   test -n "$UNZIP" && break
17286 done
17287 
17288     else
17289       # If it succeeded, then it was overridden by the user. We will use it
17290       # for the tool.
17291 
17292       # First remove it from the list of overridden variables, so we can test
17293       # for unknown variables in the end.
17294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17295 
17296       # Check if the provided tool contains a complete path.
17297       tool_specified="$UNZIP"
17298       tool_basename="${tool_specified##*/}"
17299       if test "x$tool_basename" = "x$tool_specified"; then
17300         # A command without a complete path is provided, search $PATH.
17301         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17302 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17303         # Extract the first word of "$tool_basename", so it can be a program name with args.
17304 set dummy $tool_basename; ac_word=$2
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17306 $as_echo_n "checking for $ac_word... " >&6; }
17307 if ${ac_cv_path_UNZIP+:} false; then :
17308   $as_echo_n "(cached) " >&6
17309 else
17310   case $UNZIP in
17311   [\\/]* | ?:[\\/]*)
17312   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17313   ;;
17314   *)
17315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17316 for as_dir in $PATH
17317 do
17318   IFS=$as_save_IFS
17319   test -z "$as_dir" && as_dir=.
17320     for ac_exec_ext in '' $ac_executable_extensions; do
17321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17322     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17324     break 2
17325   fi
17326 done
17327   done
17328 IFS=$as_save_IFS
17329 
17330   ;;
17331 esac
17332 fi
17333 UNZIP=$ac_cv_path_UNZIP
17334 if test -n "$UNZIP"; then
17335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17336 $as_echo "$UNZIP" >&6; }
17337 else
17338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340 fi
17341 
17342 
17343         if test "x$UNZIP" = x; then
17344           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17345         fi
17346       else
17347         # Otherwise we believe it is a complete path. Use it as it is.
17348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17349 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17351 $as_echo_n "checking for UNZIP... " >&6; }
17352         if test ! -x "$tool_specified"; then
17353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17354 $as_echo "not found" >&6; }
17355           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17356         fi
17357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17358 $as_echo "$tool_specified" >&6; }
17359       fi
17360     fi
17361   fi
17362 
17363 
17364 
17365   if test "x$UNZIP" = x; then
17366     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17367   fi
17368 
17369 
17370 
17371 
17372 
17373   # Publish this variable in the help.
17374 
17375 
17376   if test "x$ZIP" = x; then
17377     # The variable is not set by user, try to locate tool using the code snippet
17378     for ac_prog in zip
17379 do
17380   # Extract the first word of "$ac_prog", so it can be a program name with args.
17381 set dummy $ac_prog; ac_word=$2
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17383 $as_echo_n "checking for $ac_word... " >&6; }
17384 if ${ac_cv_path_ZIP+:} false; then :
17385   $as_echo_n "(cached) " >&6
17386 else
17387   case $ZIP in
17388   [\\/]* | ?:[\\/]*)
17389   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17390   ;;
17391   *)
17392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17394 do
17395   IFS=$as_save_IFS
17396   test -z "$as_dir" && as_dir=.
17397     for ac_exec_ext in '' $ac_executable_extensions; do
17398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17399     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17401     break 2
17402   fi
17403 done
17404   done
17405 IFS=$as_save_IFS
17406 
17407   ;;
17408 esac
17409 fi
17410 ZIP=$ac_cv_path_ZIP
17411 if test -n "$ZIP"; then
17412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17413 $as_echo "$ZIP" >&6; }
17414 else
17415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416 $as_echo "no" >&6; }
17417 fi
17418 
17419 
17420   test -n "$ZIP" && break
17421 done
17422 
17423   else
17424     # The variable is set, but is it from the command line or the environment?
17425 
17426     # Try to remove the string !ZIP! from our list.
17427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17429       # If it failed, the variable was not from the command line. Ignore it,
17430       # but warn the user (except for BASH, which is always set by the calling BASH).
17431       if test "xZIP" != xBASH; then
17432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17433 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17434       fi
17435       # Try to locate tool using the code snippet
17436       for ac_prog in zip
17437 do
17438   # Extract the first word of "$ac_prog", so it can be a program name with args.
17439 set dummy $ac_prog; ac_word=$2
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17441 $as_echo_n "checking for $ac_word... " >&6; }
17442 if ${ac_cv_path_ZIP+:} false; then :
17443   $as_echo_n "(cached) " >&6
17444 else
17445   case $ZIP in
17446   [\\/]* | ?:[\\/]*)
17447   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17448   ;;
17449   *)
17450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17451 for as_dir in $PATH
17452 do
17453   IFS=$as_save_IFS
17454   test -z "$as_dir" && as_dir=.
17455     for ac_exec_ext in '' $ac_executable_extensions; do
17456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17457     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17459     break 2
17460   fi
17461 done
17462   done
17463 IFS=$as_save_IFS
17464 
17465   ;;
17466 esac
17467 fi
17468 ZIP=$ac_cv_path_ZIP
17469 if test -n "$ZIP"; then
17470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17471 $as_echo "$ZIP" >&6; }
17472 else
17473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474 $as_echo "no" >&6; }
17475 fi
17476 
17477 
17478   test -n "$ZIP" && break
17479 done
17480 
17481     else
17482       # If it succeeded, then it was overridden by the user. We will use it
17483       # for the tool.
17484 
17485       # First remove it from the list of overridden variables, so we can test
17486       # for unknown variables in the end.
17487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17488 
17489       # Check if the provided tool contains a complete path.
17490       tool_specified="$ZIP"
17491       tool_basename="${tool_specified##*/}"
17492       if test "x$tool_basename" = "x$tool_specified"; then
17493         # A command without a complete path is provided, search $PATH.
17494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17495 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17496         # Extract the first word of "$tool_basename", so it can be a program name with args.
17497 set dummy $tool_basename; ac_word=$2
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17499 $as_echo_n "checking for $ac_word... " >&6; }
17500 if ${ac_cv_path_ZIP+:} false; then :
17501   $as_echo_n "(cached) " >&6
17502 else
17503   case $ZIP in
17504   [\\/]* | ?:[\\/]*)
17505   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17506   ;;
17507   *)
17508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509 for as_dir in $PATH
17510 do
17511   IFS=$as_save_IFS
17512   test -z "$as_dir" && as_dir=.
17513     for ac_exec_ext in '' $ac_executable_extensions; do
17514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17515     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17517     break 2
17518   fi
17519 done
17520   done
17521 IFS=$as_save_IFS
17522 
17523   ;;
17524 esac
17525 fi
17526 ZIP=$ac_cv_path_ZIP
17527 if test -n "$ZIP"; then
17528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17529 $as_echo "$ZIP" >&6; }
17530 else
17531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17533 fi
17534 
17535 
17536         if test "x$ZIP" = x; then
17537           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17538         fi
17539       else
17540         # Otherwise we believe it is a complete path. Use it as it is.
17541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17542 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17544 $as_echo_n "checking for ZIP... " >&6; }
17545         if test ! -x "$tool_specified"; then
17546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17547 $as_echo "not found" >&6; }
17548           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17549         fi
17550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17551 $as_echo "$tool_specified" >&6; }
17552       fi
17553     fi
17554   fi
17555 
17556 
17557 
17558   if test "x$ZIP" = x; then
17559     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17560   fi
17561 
17562 
17563 
17564   # Non-required basic tools
17565 
17566 
17567 
17568   # Publish this variable in the help.
17569 
17570 
17571   if test "x$LDD" = x; then
17572     # The variable is not set by user, try to locate tool using the code snippet
17573     for ac_prog in ldd
17574 do
17575   # Extract the first word of "$ac_prog", so it can be a program name with args.
17576 set dummy $ac_prog; ac_word=$2
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17578 $as_echo_n "checking for $ac_word... " >&6; }
17579 if ${ac_cv_path_LDD+:} false; then :
17580   $as_echo_n "(cached) " >&6
17581 else
17582   case $LDD in
17583   [\\/]* | ?:[\\/]*)
17584   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17585   ;;
17586   *)
17587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 for as_dir in $PATH
17589 do
17590   IFS=$as_save_IFS
17591   test -z "$as_dir" && as_dir=.
17592     for ac_exec_ext in '' $ac_executable_extensions; do
17593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17594     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17596     break 2
17597   fi
17598 done
17599   done
17600 IFS=$as_save_IFS
17601 
17602   ;;
17603 esac
17604 fi
17605 LDD=$ac_cv_path_LDD
17606 if test -n "$LDD"; then
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17608 $as_echo "$LDD" >&6; }
17609 else
17610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17612 fi
17613 
17614 
17615   test -n "$LDD" && break
17616 done
17617 
17618   else
17619     # The variable is set, but is it from the command line or the environment?
17620 
17621     # Try to remove the string !LDD! from our list.
17622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17624       # If it failed, the variable was not from the command line. Ignore it,
17625       # but warn the user (except for BASH, which is always set by the calling BASH).
17626       if test "xLDD" != xBASH; then
17627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17628 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17629       fi
17630       # Try to locate tool using the code snippet
17631       for ac_prog in ldd
17632 do
17633   # Extract the first word of "$ac_prog", so it can be a program name with args.
17634 set dummy $ac_prog; ac_word=$2
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17636 $as_echo_n "checking for $ac_word... " >&6; }
17637 if ${ac_cv_path_LDD+:} false; then :
17638   $as_echo_n "(cached) " >&6
17639 else
17640   case $LDD in
17641   [\\/]* | ?:[\\/]*)
17642   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17643   ;;
17644   *)
17645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17646 for as_dir in $PATH
17647 do
17648   IFS=$as_save_IFS
17649   test -z "$as_dir" && as_dir=.
17650     for ac_exec_ext in '' $ac_executable_extensions; do
17651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17652     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17654     break 2
17655   fi
17656 done
17657   done
17658 IFS=$as_save_IFS
17659 
17660   ;;
17661 esac
17662 fi
17663 LDD=$ac_cv_path_LDD
17664 if test -n "$LDD"; then
17665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17666 $as_echo "$LDD" >&6; }
17667 else
17668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669 $as_echo "no" >&6; }
17670 fi
17671 
17672 
17673   test -n "$LDD" && break
17674 done
17675 
17676     else
17677       # If it succeeded, then it was overridden by the user. We will use it
17678       # for the tool.
17679 
17680       # First remove it from the list of overridden variables, so we can test
17681       # for unknown variables in the end.
17682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17683 
17684       # Check if the provided tool contains a complete path.
17685       tool_specified="$LDD"
17686       tool_basename="${tool_specified##*/}"
17687       if test "x$tool_basename" = "x$tool_specified"; then
17688         # A command without a complete path is provided, search $PATH.
17689         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17690 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17691         # Extract the first word of "$tool_basename", so it can be a program name with args.
17692 set dummy $tool_basename; ac_word=$2
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17694 $as_echo_n "checking for $ac_word... " >&6; }
17695 if ${ac_cv_path_LDD+:} false; then :
17696   $as_echo_n "(cached) " >&6
17697 else
17698   case $LDD in
17699   [\\/]* | ?:[\\/]*)
17700   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17701   ;;
17702   *)
17703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17704 for as_dir in $PATH
17705 do
17706   IFS=$as_save_IFS
17707   test -z "$as_dir" && as_dir=.
17708     for ac_exec_ext in '' $ac_executable_extensions; do
17709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17710     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17712     break 2
17713   fi
17714 done
17715   done
17716 IFS=$as_save_IFS
17717 
17718   ;;
17719 esac
17720 fi
17721 LDD=$ac_cv_path_LDD
17722 if test -n "$LDD"; then
17723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17724 $as_echo "$LDD" >&6; }
17725 else
17726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17727 $as_echo "no" >&6; }
17728 fi
17729 
17730 
17731         if test "x$LDD" = x; then
17732           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17733         fi
17734       else
17735         # Otherwise we believe it is a complete path. Use it as it is.
17736         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17737 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17739 $as_echo_n "checking for LDD... " >&6; }
17740         if test ! -x "$tool_specified"; then
17741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17742 $as_echo "not found" >&6; }
17743           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17744         fi
17745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17746 $as_echo "$tool_specified" >&6; }
17747       fi
17748     fi
17749   fi
17750 
17751 
17752   if test "x$LDD" = "x"; then
17753     # List shared lib dependencies is used for
17754     # debug output and checking for forbidden dependencies.
17755     # We can build without it.
17756     LDD="true"
17757   fi
17758 
17759 
17760   # Publish this variable in the help.
17761 
17762 
17763   if test "x$OTOOL" = x; then
17764     # The variable is not set by user, try to locate tool using the code snippet
17765     for ac_prog in otool
17766 do
17767   # Extract the first word of "$ac_prog", so it can be a program name with args.
17768 set dummy $ac_prog; ac_word=$2
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17770 $as_echo_n "checking for $ac_word... " >&6; }
17771 if ${ac_cv_path_OTOOL+:} false; then :
17772   $as_echo_n "(cached) " >&6
17773 else
17774   case $OTOOL in
17775   [\\/]* | ?:[\\/]*)
17776   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17777   ;;
17778   *)
17779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17780 for as_dir in $PATH
17781 do
17782   IFS=$as_save_IFS
17783   test -z "$as_dir" && as_dir=.
17784     for ac_exec_ext in '' $ac_executable_extensions; do
17785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17786     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17788     break 2
17789   fi
17790 done
17791   done
17792 IFS=$as_save_IFS
17793 
17794   ;;
17795 esac
17796 fi
17797 OTOOL=$ac_cv_path_OTOOL
17798 if test -n "$OTOOL"; then
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17800 $as_echo "$OTOOL" >&6; }
17801 else
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17804 fi
17805 
17806 
17807   test -n "$OTOOL" && break
17808 done
17809 
17810   else
17811     # The variable is set, but is it from the command line or the environment?
17812 
17813     # Try to remove the string !OTOOL! from our list.
17814     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17815     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17816       # If it failed, the variable was not from the command line. Ignore it,
17817       # but warn the user (except for BASH, which is always set by the calling BASH).
17818       if test "xOTOOL" != xBASH; then
17819         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17820 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17821       fi
17822       # Try to locate tool using the code snippet
17823       for ac_prog in otool
17824 do
17825   # Extract the first word of "$ac_prog", so it can be a program name with args.
17826 set dummy $ac_prog; ac_word=$2
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17828 $as_echo_n "checking for $ac_word... " >&6; }
17829 if ${ac_cv_path_OTOOL+:} false; then :
17830   $as_echo_n "(cached) " >&6
17831 else
17832   case $OTOOL in
17833   [\\/]* | ?:[\\/]*)
17834   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17835   ;;
17836   *)
17837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17838 for as_dir in $PATH
17839 do
17840   IFS=$as_save_IFS
17841   test -z "$as_dir" && as_dir=.
17842     for ac_exec_ext in '' $ac_executable_extensions; do
17843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17844     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17846     break 2
17847   fi
17848 done
17849   done
17850 IFS=$as_save_IFS
17851 
17852   ;;
17853 esac
17854 fi
17855 OTOOL=$ac_cv_path_OTOOL
17856 if test -n "$OTOOL"; then
17857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17858 $as_echo "$OTOOL" >&6; }
17859 else
17860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17861 $as_echo "no" >&6; }
17862 fi
17863 
17864 
17865   test -n "$OTOOL" && break
17866 done
17867 
17868     else
17869       # If it succeeded, then it was overridden by the user. We will use it
17870       # for the tool.
17871 
17872       # First remove it from the list of overridden variables, so we can test
17873       # for unknown variables in the end.
17874       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17875 
17876       # Check if the provided tool contains a complete path.
17877       tool_specified="$OTOOL"
17878       tool_basename="${tool_specified##*/}"
17879       if test "x$tool_basename" = "x$tool_specified"; then
17880         # A command without a complete path is provided, search $PATH.
17881         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17882 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17883         # Extract the first word of "$tool_basename", so it can be a program name with args.
17884 set dummy $tool_basename; ac_word=$2
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17886 $as_echo_n "checking for $ac_word... " >&6; }
17887 if ${ac_cv_path_OTOOL+:} false; then :
17888   $as_echo_n "(cached) " >&6
17889 else
17890   case $OTOOL in
17891   [\\/]* | ?:[\\/]*)
17892   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17893   ;;
17894   *)
17895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17896 for as_dir in $PATH
17897 do
17898   IFS=$as_save_IFS
17899   test -z "$as_dir" && as_dir=.
17900     for ac_exec_ext in '' $ac_executable_extensions; do
17901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17902     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17904     break 2
17905   fi
17906 done
17907   done
17908 IFS=$as_save_IFS
17909 
17910   ;;
17911 esac
17912 fi
17913 OTOOL=$ac_cv_path_OTOOL
17914 if test -n "$OTOOL"; then
17915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17916 $as_echo "$OTOOL" >&6; }
17917 else
17918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919 $as_echo "no" >&6; }
17920 fi
17921 
17922 
17923         if test "x$OTOOL" = x; then
17924           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17925         fi
17926       else
17927         # Otherwise we believe it is a complete path. Use it as it is.
17928         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17929 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17931 $as_echo_n "checking for OTOOL... " >&6; }
17932         if test ! -x "$tool_specified"; then
17933           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17934 $as_echo "not found" >&6; }
17935           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17936         fi
17937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17938 $as_echo "$tool_specified" >&6; }
17939       fi
17940     fi
17941   fi
17942 
17943 
17944   if test "x$OTOOL" = "x"; then
17945     OTOOL="true"
17946   fi
17947 
17948 
17949   # Publish this variable in the help.
17950 
17951 
17952   if test "x$READELF" = x; then
17953     # The variable is not set by user, try to locate tool using the code snippet
17954     for ac_prog in greadelf readelf
17955 do
17956   # Extract the first word of "$ac_prog", so it can be a program name with args.
17957 set dummy $ac_prog; ac_word=$2
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17959 $as_echo_n "checking for $ac_word... " >&6; }
17960 if ${ac_cv_path_READELF+:} false; then :
17961   $as_echo_n "(cached) " >&6
17962 else
17963   case $READELF in
17964   [\\/]* | ?:[\\/]*)
17965   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17966   ;;
17967   *)
17968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17969 for as_dir in $PATH
17970 do
17971   IFS=$as_save_IFS
17972   test -z "$as_dir" && as_dir=.
17973     for ac_exec_ext in '' $ac_executable_extensions; do
17974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17975     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17977     break 2
17978   fi
17979 done
17980   done
17981 IFS=$as_save_IFS
17982 
17983   ;;
17984 esac
17985 fi
17986 READELF=$ac_cv_path_READELF
17987 if test -n "$READELF"; then
17988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17989 $as_echo "$READELF" >&6; }
17990 else
17991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17992 $as_echo "no" >&6; }
17993 fi
17994 
17995 
17996   test -n "$READELF" && break
17997 done
17998 
17999   else
18000     # The variable is set, but is it from the command line or the environment?
18001 
18002     # Try to remove the string !READELF! from our list.
18003     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
18004     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18005       # If it failed, the variable was not from the command line. Ignore it,
18006       # but warn the user (except for BASH, which is always set by the calling BASH).
18007       if test "xREADELF" != xBASH; then
18008         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
18009 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
18010       fi
18011       # Try to locate tool using the code snippet
18012       for ac_prog in greadelf readelf
18013 do
18014   # Extract the first word of "$ac_prog", so it can be a program name with args.
18015 set dummy $ac_prog; ac_word=$2
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18017 $as_echo_n "checking for $ac_word... " >&6; }
18018 if ${ac_cv_path_READELF+:} false; then :
18019   $as_echo_n "(cached) " >&6
18020 else
18021   case $READELF in
18022   [\\/]* | ?:[\\/]*)
18023   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
18024   ;;
18025   *)
18026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18027 for as_dir in $PATH
18028 do
18029   IFS=$as_save_IFS
18030   test -z "$as_dir" && as_dir=.
18031     for ac_exec_ext in '' $ac_executable_extensions; do
18032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18033     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18035     break 2
18036   fi
18037 done
18038   done
18039 IFS=$as_save_IFS
18040 
18041   ;;
18042 esac
18043 fi
18044 READELF=$ac_cv_path_READELF
18045 if test -n "$READELF"; then
18046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18047 $as_echo "$READELF" >&6; }
18048 else
18049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18050 $as_echo "no" >&6; }
18051 fi
18052 
18053 
18054   test -n "$READELF" && break
18055 done
18056 
18057     else
18058       # If it succeeded, then it was overridden by the user. We will use it
18059       # for the tool.
18060 
18061       # First remove it from the list of overridden variables, so we can test
18062       # for unknown variables in the end.
18063       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18064 
18065       # Check if the provided tool contains a complete path.
18066       tool_specified="$READELF"
18067       tool_basename="${tool_specified##*/}"
18068       if test "x$tool_basename" = "x$tool_specified"; then
18069         # A command without a complete path is provided, search $PATH.
18070         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
18071 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
18072         # Extract the first word of "$tool_basename", so it can be a program name with args.
18073 set dummy $tool_basename; ac_word=$2
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18075 $as_echo_n "checking for $ac_word... " >&6; }
18076 if ${ac_cv_path_READELF+:} false; then :
18077   $as_echo_n "(cached) " >&6
18078 else
18079   case $READELF in
18080   [\\/]* | ?:[\\/]*)
18081   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
18082   ;;
18083   *)
18084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18085 for as_dir in $PATH
18086 do
18087   IFS=$as_save_IFS
18088   test -z "$as_dir" && as_dir=.
18089     for ac_exec_ext in '' $ac_executable_extensions; do
18090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18091     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18093     break 2
18094   fi
18095 done
18096   done
18097 IFS=$as_save_IFS
18098 
18099   ;;
18100 esac
18101 fi
18102 READELF=$ac_cv_path_READELF
18103 if test -n "$READELF"; then
18104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18105 $as_echo "$READELF" >&6; }
18106 else
18107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18108 $as_echo "no" >&6; }
18109 fi
18110 
18111 
18112         if test "x$READELF" = x; then
18113           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18114         fi
18115       else
18116         # Otherwise we believe it is a complete path. Use it as it is.
18117         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18118 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18120 $as_echo_n "checking for READELF... " >&6; }
18121         if test ! -x "$tool_specified"; then
18122           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18123 $as_echo "not found" >&6; }
18124           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18125         fi
18126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18127 $as_echo "$tool_specified" >&6; }
18128       fi
18129     fi
18130   fi
18131 
18132 
18133 
18134 
18135   # Publish this variable in the help.
18136 
18137 
18138   if test "x$HG" = x; then
18139     # The variable is not set by user, try to locate tool using the code snippet
18140     for ac_prog in hg
18141 do
18142   # Extract the first word of "$ac_prog", so it can be a program name with args.
18143 set dummy $ac_prog; ac_word=$2
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18145 $as_echo_n "checking for $ac_word... " >&6; }
18146 if ${ac_cv_path_HG+:} false; then :
18147   $as_echo_n "(cached) " >&6
18148 else
18149   case $HG in
18150   [\\/]* | ?:[\\/]*)
18151   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18152   ;;
18153   *)
18154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18155 for as_dir in $PATH
18156 do
18157   IFS=$as_save_IFS
18158   test -z "$as_dir" && as_dir=.
18159     for ac_exec_ext in '' $ac_executable_extensions; do
18160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18161     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18163     break 2
18164   fi
18165 done
18166   done
18167 IFS=$as_save_IFS
18168 
18169   ;;
18170 esac
18171 fi
18172 HG=$ac_cv_path_HG
18173 if test -n "$HG"; then
18174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18175 $as_echo "$HG" >&6; }
18176 else
18177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178 $as_echo "no" >&6; }
18179 fi
18180 
18181 
18182   test -n "$HG" && break
18183 done
18184 
18185   else
18186     # The variable is set, but is it from the command line or the environment?
18187 
18188     # Try to remove the string !HG! from our list.
18189     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18190     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18191       # If it failed, the variable was not from the command line. Ignore it,
18192       # but warn the user (except for BASH, which is always set by the calling BASH).
18193       if test "xHG" != xBASH; then
18194         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18195 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18196       fi
18197       # Try to locate tool using the code snippet
18198       for ac_prog in hg
18199 do
18200   # Extract the first word of "$ac_prog", so it can be a program name with args.
18201 set dummy $ac_prog; ac_word=$2
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18203 $as_echo_n "checking for $ac_word... " >&6; }
18204 if ${ac_cv_path_HG+:} false; then :
18205   $as_echo_n "(cached) " >&6
18206 else
18207   case $HG in
18208   [\\/]* | ?:[\\/]*)
18209   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18210   ;;
18211   *)
18212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18213 for as_dir in $PATH
18214 do
18215   IFS=$as_save_IFS
18216   test -z "$as_dir" && as_dir=.
18217     for ac_exec_ext in '' $ac_executable_extensions; do
18218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18219     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18221     break 2
18222   fi
18223 done
18224   done
18225 IFS=$as_save_IFS
18226 
18227   ;;
18228 esac
18229 fi
18230 HG=$ac_cv_path_HG
18231 if test -n "$HG"; then
18232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18233 $as_echo "$HG" >&6; }
18234 else
18235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18236 $as_echo "no" >&6; }
18237 fi
18238 
18239 
18240   test -n "$HG" && break
18241 done
18242 
18243     else
18244       # If it succeeded, then it was overridden by the user. We will use it
18245       # for the tool.
18246 
18247       # First remove it from the list of overridden variables, so we can test
18248       # for unknown variables in the end.
18249       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18250 
18251       # Check if the provided tool contains a complete path.
18252       tool_specified="$HG"
18253       tool_basename="${tool_specified##*/}"
18254       if test "x$tool_basename" = "x$tool_specified"; then
18255         # A command without a complete path is provided, search $PATH.
18256         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18257 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18258         # Extract the first word of "$tool_basename", so it can be a program name with args.
18259 set dummy $tool_basename; ac_word=$2
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18261 $as_echo_n "checking for $ac_word... " >&6; }
18262 if ${ac_cv_path_HG+:} false; then :
18263   $as_echo_n "(cached) " >&6
18264 else
18265   case $HG in
18266   [\\/]* | ?:[\\/]*)
18267   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18268   ;;
18269   *)
18270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in $PATH
18272 do
18273   IFS=$as_save_IFS
18274   test -z "$as_dir" && as_dir=.
18275     for ac_exec_ext in '' $ac_executable_extensions; do
18276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18277     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18279     break 2
18280   fi
18281 done
18282   done
18283 IFS=$as_save_IFS
18284 
18285   ;;
18286 esac
18287 fi
18288 HG=$ac_cv_path_HG
18289 if test -n "$HG"; then
18290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18291 $as_echo "$HG" >&6; }
18292 else
18293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18294 $as_echo "no" >&6; }
18295 fi
18296 
18297 
18298         if test "x$HG" = x; then
18299           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18300         fi
18301       else
18302         # Otherwise we believe it is a complete path. Use it as it is.
18303         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18304 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18306 $as_echo_n "checking for HG... " >&6; }
18307         if test ! -x "$tool_specified"; then
18308           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18309 $as_echo "not found" >&6; }
18310           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18311         fi
18312         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18313 $as_echo "$tool_specified" >&6; }
18314       fi
18315     fi
18316   fi
18317 
18318 
18319 
18320 
18321   # Publish this variable in the help.
18322 
18323 
18324   if test "x$STAT" = x; then
18325     # The variable is not set by user, try to locate tool using the code snippet
18326     for ac_prog in stat
18327 do
18328   # Extract the first word of "$ac_prog", so it can be a program name with args.
18329 set dummy $ac_prog; ac_word=$2
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18331 $as_echo_n "checking for $ac_word... " >&6; }
18332 if ${ac_cv_path_STAT+:} false; then :
18333   $as_echo_n "(cached) " >&6
18334 else
18335   case $STAT in
18336   [\\/]* | ?:[\\/]*)
18337   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18338   ;;
18339   *)
18340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18341 for as_dir in $PATH
18342 do
18343   IFS=$as_save_IFS
18344   test -z "$as_dir" && as_dir=.
18345     for ac_exec_ext in '' $ac_executable_extensions; do
18346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18347     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18349     break 2
18350   fi
18351 done
18352   done
18353 IFS=$as_save_IFS
18354 
18355   ;;
18356 esac
18357 fi
18358 STAT=$ac_cv_path_STAT
18359 if test -n "$STAT"; then
18360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18361 $as_echo "$STAT" >&6; }
18362 else
18363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18364 $as_echo "no" >&6; }
18365 fi
18366 
18367 
18368   test -n "$STAT" && break
18369 done
18370 
18371   else
18372     # The variable is set, but is it from the command line or the environment?
18373 
18374     # Try to remove the string !STAT! from our list.
18375     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18376     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18377       # If it failed, the variable was not from the command line. Ignore it,
18378       # but warn the user (except for BASH, which is always set by the calling BASH).
18379       if test "xSTAT" != xBASH; then
18380         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18381 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18382       fi
18383       # Try to locate tool using the code snippet
18384       for ac_prog in stat
18385 do
18386   # Extract the first word of "$ac_prog", so it can be a program name with args.
18387 set dummy $ac_prog; ac_word=$2
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18389 $as_echo_n "checking for $ac_word... " >&6; }
18390 if ${ac_cv_path_STAT+:} false; then :
18391   $as_echo_n "(cached) " >&6
18392 else
18393   case $STAT in
18394   [\\/]* | ?:[\\/]*)
18395   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18396   ;;
18397   *)
18398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18399 for as_dir in $PATH
18400 do
18401   IFS=$as_save_IFS
18402   test -z "$as_dir" && as_dir=.
18403     for ac_exec_ext in '' $ac_executable_extensions; do
18404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18405     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18407     break 2
18408   fi
18409 done
18410   done
18411 IFS=$as_save_IFS
18412 
18413   ;;
18414 esac
18415 fi
18416 STAT=$ac_cv_path_STAT
18417 if test -n "$STAT"; then
18418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18419 $as_echo "$STAT" >&6; }
18420 else
18421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18422 $as_echo "no" >&6; }
18423 fi
18424 
18425 
18426   test -n "$STAT" && break
18427 done
18428 
18429     else
18430       # If it succeeded, then it was overridden by the user. We will use it
18431       # for the tool.
18432 
18433       # First remove it from the list of overridden variables, so we can test
18434       # for unknown variables in the end.
18435       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18436 
18437       # Check if the provided tool contains a complete path.
18438       tool_specified="$STAT"
18439       tool_basename="${tool_specified##*/}"
18440       if test "x$tool_basename" = "x$tool_specified"; then
18441         # A command without a complete path is provided, search $PATH.
18442         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18443 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18444         # Extract the first word of "$tool_basename", so it can be a program name with args.
18445 set dummy $tool_basename; ac_word=$2
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18447 $as_echo_n "checking for $ac_word... " >&6; }
18448 if ${ac_cv_path_STAT+:} false; then :
18449   $as_echo_n "(cached) " >&6
18450 else
18451   case $STAT in
18452   [\\/]* | ?:[\\/]*)
18453   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18454   ;;
18455   *)
18456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18457 for as_dir in $PATH
18458 do
18459   IFS=$as_save_IFS
18460   test -z "$as_dir" && as_dir=.
18461     for ac_exec_ext in '' $ac_executable_extensions; do
18462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18463     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18465     break 2
18466   fi
18467 done
18468   done
18469 IFS=$as_save_IFS
18470 
18471   ;;
18472 esac
18473 fi
18474 STAT=$ac_cv_path_STAT
18475 if test -n "$STAT"; then
18476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18477 $as_echo "$STAT" >&6; }
18478 else
18479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18480 $as_echo "no" >&6; }
18481 fi
18482 
18483 
18484         if test "x$STAT" = x; then
18485           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18486         fi
18487       else
18488         # Otherwise we believe it is a complete path. Use it as it is.
18489         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18490 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18492 $as_echo_n "checking for STAT... " >&6; }
18493         if test ! -x "$tool_specified"; then
18494           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18495 $as_echo "not found" >&6; }
18496           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18497         fi
18498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18499 $as_echo "$tool_specified" >&6; }
18500       fi
18501     fi
18502   fi
18503 
18504 
18505 
18506 
18507   # Publish this variable in the help.
18508 
18509 
18510   if test "x$TIME" = x; then
18511     # The variable is not set by user, try to locate tool using the code snippet
18512     for ac_prog in time
18513 do
18514   # Extract the first word of "$ac_prog", so it can be a program name with args.
18515 set dummy $ac_prog; ac_word=$2
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18517 $as_echo_n "checking for $ac_word... " >&6; }
18518 if ${ac_cv_path_TIME+:} false; then :
18519   $as_echo_n "(cached) " >&6
18520 else
18521   case $TIME in
18522   [\\/]* | ?:[\\/]*)
18523   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18524   ;;
18525   *)
18526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18527 for as_dir in $PATH
18528 do
18529   IFS=$as_save_IFS
18530   test -z "$as_dir" && as_dir=.
18531     for ac_exec_ext in '' $ac_executable_extensions; do
18532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18533     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18535     break 2
18536   fi
18537 done
18538   done
18539 IFS=$as_save_IFS
18540 
18541   ;;
18542 esac
18543 fi
18544 TIME=$ac_cv_path_TIME
18545 if test -n "$TIME"; then
18546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18547 $as_echo "$TIME" >&6; }
18548 else
18549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18550 $as_echo "no" >&6; }
18551 fi
18552 
18553 
18554   test -n "$TIME" && break
18555 done
18556 
18557   else
18558     # The variable is set, but is it from the command line or the environment?
18559 
18560     # Try to remove the string !TIME! from our list.
18561     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18562     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18563       # If it failed, the variable was not from the command line. Ignore it,
18564       # but warn the user (except for BASH, which is always set by the calling BASH).
18565       if test "xTIME" != xBASH; then
18566         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18567 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18568       fi
18569       # Try to locate tool using the code snippet
18570       for ac_prog in time
18571 do
18572   # Extract the first word of "$ac_prog", so it can be a program name with args.
18573 set dummy $ac_prog; ac_word=$2
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18575 $as_echo_n "checking for $ac_word... " >&6; }
18576 if ${ac_cv_path_TIME+:} false; then :
18577   $as_echo_n "(cached) " >&6
18578 else
18579   case $TIME in
18580   [\\/]* | ?:[\\/]*)
18581   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18582   ;;
18583   *)
18584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585 for as_dir in $PATH
18586 do
18587   IFS=$as_save_IFS
18588   test -z "$as_dir" && as_dir=.
18589     for ac_exec_ext in '' $ac_executable_extensions; do
18590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18591     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18593     break 2
18594   fi
18595 done
18596   done
18597 IFS=$as_save_IFS
18598 
18599   ;;
18600 esac
18601 fi
18602 TIME=$ac_cv_path_TIME
18603 if test -n "$TIME"; then
18604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18605 $as_echo "$TIME" >&6; }
18606 else
18607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18608 $as_echo "no" >&6; }
18609 fi
18610 
18611 
18612   test -n "$TIME" && break
18613 done
18614 
18615     else
18616       # If it succeeded, then it was overridden by the user. We will use it
18617       # for the tool.
18618 
18619       # First remove it from the list of overridden variables, so we can test
18620       # for unknown variables in the end.
18621       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18622 
18623       # Check if the provided tool contains a complete path.
18624       tool_specified="$TIME"
18625       tool_basename="${tool_specified##*/}"
18626       if test "x$tool_basename" = "x$tool_specified"; then
18627         # A command without a complete path is provided, search $PATH.
18628         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18629 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18630         # Extract the first word of "$tool_basename", so it can be a program name with args.
18631 set dummy $tool_basename; ac_word=$2
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18633 $as_echo_n "checking for $ac_word... " >&6; }
18634 if ${ac_cv_path_TIME+:} false; then :
18635   $as_echo_n "(cached) " >&6
18636 else
18637   case $TIME in
18638   [\\/]* | ?:[\\/]*)
18639   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18640   ;;
18641   *)
18642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18643 for as_dir in $PATH
18644 do
18645   IFS=$as_save_IFS
18646   test -z "$as_dir" && as_dir=.
18647     for ac_exec_ext in '' $ac_executable_extensions; do
18648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18649     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18651     break 2
18652   fi
18653 done
18654   done
18655 IFS=$as_save_IFS
18656 
18657   ;;
18658 esac
18659 fi
18660 TIME=$ac_cv_path_TIME
18661 if test -n "$TIME"; then
18662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18663 $as_echo "$TIME" >&6; }
18664 else
18665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18666 $as_echo "no" >&6; }
18667 fi
18668 
18669 
18670         if test "x$TIME" = x; then
18671           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18672         fi
18673       else
18674         # Otherwise we believe it is a complete path. Use it as it is.
18675         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18676 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18678 $as_echo_n "checking for TIME... " >&6; }
18679         if test ! -x "$tool_specified"; then
18680           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18681 $as_echo "not found" >&6; }
18682           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18683         fi
18684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18685 $as_echo "$tool_specified" >&6; }
18686       fi
18687     fi
18688   fi
18689 
18690 
18691   # Check if it's GNU time
18692   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18693   if test "x$IS_GNU_TIME" != x; then
18694     IS_GNU_TIME=yes
18695   else
18696     IS_GNU_TIME=no
18697   fi
18698 
18699 
18700   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18701 
18702 
18703 
18704   # Publish this variable in the help.
18705 
18706 
18707   if test "x$COMM" = x; then
18708     # The variable is not set by user, try to locate tool using the code snippet
18709     for ac_prog in comm
18710 do
18711   # Extract the first word of "$ac_prog", so it can be a program name with args.
18712 set dummy $ac_prog; ac_word=$2
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18714 $as_echo_n "checking for $ac_word... " >&6; }
18715 if ${ac_cv_path_COMM+:} false; then :
18716   $as_echo_n "(cached) " >&6
18717 else
18718   case $COMM in
18719   [\\/]* | ?:[\\/]*)
18720   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18721   ;;
18722   *)
18723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724 for as_dir in $PATH
18725 do
18726   IFS=$as_save_IFS
18727   test -z "$as_dir" && as_dir=.
18728     for ac_exec_ext in '' $ac_executable_extensions; do
18729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18732     break 2
18733   fi
18734 done
18735   done
18736 IFS=$as_save_IFS
18737 
18738   ;;
18739 esac
18740 fi
18741 COMM=$ac_cv_path_COMM
18742 if test -n "$COMM"; then
18743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18744 $as_echo "$COMM" >&6; }
18745 else
18746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18747 $as_echo "no" >&6; }
18748 fi
18749 
18750 
18751   test -n "$COMM" && break
18752 done
18753 
18754   else
18755     # The variable is set, but is it from the command line or the environment?
18756 
18757     # Try to remove the string !COMM! from our list.
18758     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18759     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18760       # If it failed, the variable was not from the command line. Ignore it,
18761       # but warn the user (except for BASH, which is always set by the calling BASH).
18762       if test "xCOMM" != xBASH; then
18763         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18764 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18765       fi
18766       # Try to locate tool using the code snippet
18767       for ac_prog in comm
18768 do
18769   # Extract the first word of "$ac_prog", so it can be a program name with args.
18770 set dummy $ac_prog; ac_word=$2
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18772 $as_echo_n "checking for $ac_word... " >&6; }
18773 if ${ac_cv_path_COMM+:} false; then :
18774   $as_echo_n "(cached) " >&6
18775 else
18776   case $COMM in
18777   [\\/]* | ?:[\\/]*)
18778   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18779   ;;
18780   *)
18781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18782 for as_dir in $PATH
18783 do
18784   IFS=$as_save_IFS
18785   test -z "$as_dir" && as_dir=.
18786     for ac_exec_ext in '' $ac_executable_extensions; do
18787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18788     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18790     break 2
18791   fi
18792 done
18793   done
18794 IFS=$as_save_IFS
18795 
18796   ;;
18797 esac
18798 fi
18799 COMM=$ac_cv_path_COMM
18800 if test -n "$COMM"; then
18801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18802 $as_echo "$COMM" >&6; }
18803 else
18804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18805 $as_echo "no" >&6; }
18806 fi
18807 
18808 
18809   test -n "$COMM" && break
18810 done
18811 
18812     else
18813       # If it succeeded, then it was overridden by the user. We will use it
18814       # for the tool.
18815 
18816       # First remove it from the list of overridden variables, so we can test
18817       # for unknown variables in the end.
18818       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18819 
18820       # Check if the provided tool contains a complete path.
18821       tool_specified="$COMM"
18822       tool_basename="${tool_specified##*/}"
18823       if test "x$tool_basename" = "x$tool_specified"; then
18824         # A command without a complete path is provided, search $PATH.
18825         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18826 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18827         # Extract the first word of "$tool_basename", so it can be a program name with args.
18828 set dummy $tool_basename; ac_word=$2
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18830 $as_echo_n "checking for $ac_word... " >&6; }
18831 if ${ac_cv_path_COMM+:} false; then :
18832   $as_echo_n "(cached) " >&6
18833 else
18834   case $COMM in
18835   [\\/]* | ?:[\\/]*)
18836   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18837   ;;
18838   *)
18839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18840 for as_dir in $PATH
18841 do
18842   IFS=$as_save_IFS
18843   test -z "$as_dir" && as_dir=.
18844     for ac_exec_ext in '' $ac_executable_extensions; do
18845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18846     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18848     break 2
18849   fi
18850 done
18851   done
18852 IFS=$as_save_IFS
18853 
18854   ;;
18855 esac
18856 fi
18857 COMM=$ac_cv_path_COMM
18858 if test -n "$COMM"; then
18859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18860 $as_echo "$COMM" >&6; }
18861 else
18862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863 $as_echo "no" >&6; }
18864 fi
18865 
18866 
18867         if test "x$COMM" = x; then
18868           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18869         fi
18870       else
18871         # Otherwise we believe it is a complete path. Use it as it is.
18872         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18873 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18875 $as_echo_n "checking for COMM... " >&6; }
18876         if test ! -x "$tool_specified"; then
18877           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18878 $as_echo "not found" >&6; }
18879           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18880         fi
18881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18882 $as_echo "$tool_specified" >&6; }
18883       fi
18884     fi
18885   fi
18886 
18887 
18888 
18889   if test "x$COMM" = x; then
18890     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18891   fi
18892 
18893 
18894   fi
18895 
18896   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18897 
18898 
18899 
18900   # Publish this variable in the help.
18901 
18902 
18903   if test "x$DSYMUTIL" = x; then
18904     # The variable is not set by user, try to locate tool using the code snippet
18905     for ac_prog in dsymutil
18906 do
18907   # Extract the first word of "$ac_prog", so it can be a program name with args.
18908 set dummy $ac_prog; ac_word=$2
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18910 $as_echo_n "checking for $ac_word... " >&6; }
18911 if ${ac_cv_path_DSYMUTIL+:} false; then :
18912   $as_echo_n "(cached) " >&6
18913 else
18914   case $DSYMUTIL in
18915   [\\/]* | ?:[\\/]*)
18916   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18917   ;;
18918   *)
18919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18920 for as_dir in $PATH
18921 do
18922   IFS=$as_save_IFS
18923   test -z "$as_dir" && as_dir=.
18924     for ac_exec_ext in '' $ac_executable_extensions; do
18925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18926     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18928     break 2
18929   fi
18930 done
18931   done
18932 IFS=$as_save_IFS
18933 
18934   ;;
18935 esac
18936 fi
18937 DSYMUTIL=$ac_cv_path_DSYMUTIL
18938 if test -n "$DSYMUTIL"; then
18939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18940 $as_echo "$DSYMUTIL" >&6; }
18941 else
18942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18943 $as_echo "no" >&6; }
18944 fi
18945 
18946 
18947   test -n "$DSYMUTIL" && break
18948 done
18949 
18950   else
18951     # The variable is set, but is it from the command line or the environment?
18952 
18953     # Try to remove the string !DSYMUTIL! from our list.
18954     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18955     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18956       # If it failed, the variable was not from the command line. Ignore it,
18957       # but warn the user (except for BASH, which is always set by the calling BASH).
18958       if test "xDSYMUTIL" != xBASH; then
18959         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18960 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18961       fi
18962       # Try to locate tool using the code snippet
18963       for ac_prog in dsymutil
18964 do
18965   # Extract the first word of "$ac_prog", so it can be a program name with args.
18966 set dummy $ac_prog; ac_word=$2
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18968 $as_echo_n "checking for $ac_word... " >&6; }
18969 if ${ac_cv_path_DSYMUTIL+:} false; then :
18970   $as_echo_n "(cached) " >&6
18971 else
18972   case $DSYMUTIL in
18973   [\\/]* | ?:[\\/]*)
18974   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18975   ;;
18976   *)
18977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978 for as_dir in $PATH
18979 do
18980   IFS=$as_save_IFS
18981   test -z "$as_dir" && as_dir=.
18982     for ac_exec_ext in '' $ac_executable_extensions; do
18983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18986     break 2
18987   fi
18988 done
18989   done
18990 IFS=$as_save_IFS
18991 
18992   ;;
18993 esac
18994 fi
18995 DSYMUTIL=$ac_cv_path_DSYMUTIL
18996 if test -n "$DSYMUTIL"; then
18997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18998 $as_echo "$DSYMUTIL" >&6; }
18999 else
19000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19001 $as_echo "no" >&6; }
19002 fi
19003 
19004 
19005   test -n "$DSYMUTIL" && break
19006 done
19007 
19008     else
19009       # If it succeeded, then it was overridden by the user. We will use it
19010       # for the tool.
19011 
19012       # First remove it from the list of overridden variables, so we can test
19013       # for unknown variables in the end.
19014       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19015 
19016       # Check if the provided tool contains a complete path.
19017       tool_specified="$DSYMUTIL"
19018       tool_basename="${tool_specified##*/}"
19019       if test "x$tool_basename" = "x$tool_specified"; then
19020         # A command without a complete path is provided, search $PATH.
19021         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
19022 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
19023         # Extract the first word of "$tool_basename", so it can be a program name with args.
19024 set dummy $tool_basename; ac_word=$2
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19026 $as_echo_n "checking for $ac_word... " >&6; }
19027 if ${ac_cv_path_DSYMUTIL+:} false; then :
19028   $as_echo_n "(cached) " >&6
19029 else
19030   case $DSYMUTIL in
19031   [\\/]* | ?:[\\/]*)
19032   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
19033   ;;
19034   *)
19035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19036 for as_dir in $PATH
19037 do
19038   IFS=$as_save_IFS
19039   test -z "$as_dir" && as_dir=.
19040     for ac_exec_ext in '' $ac_executable_extensions; do
19041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19042     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
19043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19044     break 2
19045   fi
19046 done
19047   done
19048 IFS=$as_save_IFS
19049 
19050   ;;
19051 esac
19052 fi
19053 DSYMUTIL=$ac_cv_path_DSYMUTIL
19054 if test -n "$DSYMUTIL"; then
19055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
19056 $as_echo "$DSYMUTIL" >&6; }
19057 else
19058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059 $as_echo "no" >&6; }
19060 fi
19061 
19062 
19063         if test "x$DSYMUTIL" = x; then
19064           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19065         fi
19066       else
19067         # Otherwise we believe it is a complete path. Use it as it is.
19068         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
19069 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
19070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
19071 $as_echo_n "checking for DSYMUTIL... " >&6; }
19072         if test ! -x "$tool_specified"; then
19073           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19074 $as_echo "not found" >&6; }
19075           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
19076         fi
19077         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19078 $as_echo "$tool_specified" >&6; }
19079       fi
19080     fi
19081   fi
19082 
19083 
19084 
19085   if test "x$DSYMUTIL" = x; then
19086     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
19087   fi
19088 
19089 
19090 
19091 
19092 
19093   # Publish this variable in the help.
19094 
19095 
19096   if test "x$XATTR" = x; then
19097     # The variable is not set by user, try to locate tool using the code snippet
19098     for ac_prog in xattr
19099 do
19100   # Extract the first word of "$ac_prog", so it can be a program name with args.
19101 set dummy $ac_prog; ac_word=$2
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19103 $as_echo_n "checking for $ac_word... " >&6; }
19104 if ${ac_cv_path_XATTR+:} false; then :
19105   $as_echo_n "(cached) " >&6
19106 else
19107   case $XATTR in
19108   [\\/]* | ?:[\\/]*)
19109   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19110   ;;
19111   *)
19112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19113 for as_dir in $PATH
19114 do
19115   IFS=$as_save_IFS
19116   test -z "$as_dir" && as_dir=.
19117     for ac_exec_ext in '' $ac_executable_extensions; do
19118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19119     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19121     break 2
19122   fi
19123 done
19124   done
19125 IFS=$as_save_IFS
19126 
19127   ;;
19128 esac
19129 fi
19130 XATTR=$ac_cv_path_XATTR
19131 if test -n "$XATTR"; then
19132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19133 $as_echo "$XATTR" >&6; }
19134 else
19135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 $as_echo "no" >&6; }
19137 fi
19138 
19139 
19140   test -n "$XATTR" && break
19141 done
19142 
19143   else
19144     # The variable is set, but is it from the command line or the environment?
19145 
19146     # Try to remove the string !XATTR! from our list.
19147     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19148     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19149       # If it failed, the variable was not from the command line. Ignore it,
19150       # but warn the user (except for BASH, which is always set by the calling BASH).
19151       if test "xXATTR" != xBASH; then
19152         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19153 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19154       fi
19155       # Try to locate tool using the code snippet
19156       for ac_prog in xattr
19157 do
19158   # Extract the first word of "$ac_prog", so it can be a program name with args.
19159 set dummy $ac_prog; ac_word=$2
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19161 $as_echo_n "checking for $ac_word... " >&6; }
19162 if ${ac_cv_path_XATTR+:} false; then :
19163   $as_echo_n "(cached) " >&6
19164 else
19165   case $XATTR in
19166   [\\/]* | ?:[\\/]*)
19167   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19168   ;;
19169   *)
19170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19171 for as_dir in $PATH
19172 do
19173   IFS=$as_save_IFS
19174   test -z "$as_dir" && as_dir=.
19175     for ac_exec_ext in '' $ac_executable_extensions; do
19176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19177     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19179     break 2
19180   fi
19181 done
19182   done
19183 IFS=$as_save_IFS
19184 
19185   ;;
19186 esac
19187 fi
19188 XATTR=$ac_cv_path_XATTR
19189 if test -n "$XATTR"; then
19190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19191 $as_echo "$XATTR" >&6; }
19192 else
19193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19194 $as_echo "no" >&6; }
19195 fi
19196 
19197 
19198   test -n "$XATTR" && break
19199 done
19200 
19201     else
19202       # If it succeeded, then it was overridden by the user. We will use it
19203       # for the tool.
19204 
19205       # First remove it from the list of overridden variables, so we can test
19206       # for unknown variables in the end.
19207       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19208 
19209       # Check if the provided tool contains a complete path.
19210       tool_specified="$XATTR"
19211       tool_basename="${tool_specified##*/}"
19212       if test "x$tool_basename" = "x$tool_specified"; then
19213         # A command without a complete path is provided, search $PATH.
19214         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19215 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19216         # Extract the first word of "$tool_basename", so it can be a program name with args.
19217 set dummy $tool_basename; ac_word=$2
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19219 $as_echo_n "checking for $ac_word... " >&6; }
19220 if ${ac_cv_path_XATTR+:} false; then :
19221   $as_echo_n "(cached) " >&6
19222 else
19223   case $XATTR in
19224   [\\/]* | ?:[\\/]*)
19225   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19226   ;;
19227   *)
19228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19229 for as_dir in $PATH
19230 do
19231   IFS=$as_save_IFS
19232   test -z "$as_dir" && as_dir=.
19233     for ac_exec_ext in '' $ac_executable_extensions; do
19234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19235     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19237     break 2
19238   fi
19239 done
19240   done
19241 IFS=$as_save_IFS
19242 
19243   ;;
19244 esac
19245 fi
19246 XATTR=$ac_cv_path_XATTR
19247 if test -n "$XATTR"; then
19248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19249 $as_echo "$XATTR" >&6; }
19250 else
19251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19252 $as_echo "no" >&6; }
19253 fi
19254 
19255 
19256         if test "x$XATTR" = x; then
19257           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19258         fi
19259       else
19260         # Otherwise we believe it is a complete path. Use it as it is.
19261         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19262 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19263         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19264 $as_echo_n "checking for XATTR... " >&6; }
19265         if test ! -x "$tool_specified"; then
19266           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19267 $as_echo "not found" >&6; }
19268           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19269         fi
19270         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19271 $as_echo "$tool_specified" >&6; }
19272       fi
19273     fi
19274   fi
19275 
19276 
19277 
19278   if test "x$XATTR" = x; then
19279     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19280   fi
19281 
19282 
19283 
19284 
19285   # Publish this variable in the help.
19286 
19287 
19288   if test "x$CODESIGN" = x; then
19289     # The variable is not set by user, try to locate tool using the code snippet
19290     for ac_prog in codesign
19291 do
19292   # Extract the first word of "$ac_prog", so it can be a program name with args.
19293 set dummy $ac_prog; ac_word=$2
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19295 $as_echo_n "checking for $ac_word... " >&6; }
19296 if ${ac_cv_path_CODESIGN+:} false; then :
19297   $as_echo_n "(cached) " >&6
19298 else
19299   case $CODESIGN in
19300   [\\/]* | ?:[\\/]*)
19301   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19302   ;;
19303   *)
19304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19305 for as_dir in $PATH
19306 do
19307   IFS=$as_save_IFS
19308   test -z "$as_dir" && as_dir=.
19309     for ac_exec_ext in '' $ac_executable_extensions; do
19310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19311     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19313     break 2
19314   fi
19315 done
19316   done
19317 IFS=$as_save_IFS
19318 
19319   ;;
19320 esac
19321 fi
19322 CODESIGN=$ac_cv_path_CODESIGN
19323 if test -n "$CODESIGN"; then
19324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19325 $as_echo "$CODESIGN" >&6; }
19326 else
19327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19328 $as_echo "no" >&6; }
19329 fi
19330 
19331 
19332   test -n "$CODESIGN" && break
19333 done
19334 
19335   else
19336     # The variable is set, but is it from the command line or the environment?
19337 
19338     # Try to remove the string !CODESIGN! from our list.
19339     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19340     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19341       # If it failed, the variable was not from the command line. Ignore it,
19342       # but warn the user (except for BASH, which is always set by the calling BASH).
19343       if test "xCODESIGN" != xBASH; then
19344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19345 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19346       fi
19347       # Try to locate tool using the code snippet
19348       for ac_prog in codesign
19349 do
19350   # Extract the first word of "$ac_prog", so it can be a program name with args.
19351 set dummy $ac_prog; ac_word=$2
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19353 $as_echo_n "checking for $ac_word... " >&6; }
19354 if ${ac_cv_path_CODESIGN+:} false; then :
19355   $as_echo_n "(cached) " >&6
19356 else
19357   case $CODESIGN in
19358   [\\/]* | ?:[\\/]*)
19359   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19360   ;;
19361   *)
19362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19363 for as_dir in $PATH
19364 do
19365   IFS=$as_save_IFS
19366   test -z "$as_dir" && as_dir=.
19367     for ac_exec_ext in '' $ac_executable_extensions; do
19368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19369     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19371     break 2
19372   fi
19373 done
19374   done
19375 IFS=$as_save_IFS
19376 
19377   ;;
19378 esac
19379 fi
19380 CODESIGN=$ac_cv_path_CODESIGN
19381 if test -n "$CODESIGN"; then
19382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19383 $as_echo "$CODESIGN" >&6; }
19384 else
19385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19386 $as_echo "no" >&6; }
19387 fi
19388 
19389 
19390   test -n "$CODESIGN" && break
19391 done
19392 
19393     else
19394       # If it succeeded, then it was overridden by the user. We will use it
19395       # for the tool.
19396 
19397       # First remove it from the list of overridden variables, so we can test
19398       # for unknown variables in the end.
19399       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19400 
19401       # Check if the provided tool contains a complete path.
19402       tool_specified="$CODESIGN"
19403       tool_basename="${tool_specified##*/}"
19404       if test "x$tool_basename" = "x$tool_specified"; then
19405         # A command without a complete path is provided, search $PATH.
19406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19407 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19408         # Extract the first word of "$tool_basename", so it can be a program name with args.
19409 set dummy $tool_basename; ac_word=$2
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19411 $as_echo_n "checking for $ac_word... " >&6; }
19412 if ${ac_cv_path_CODESIGN+:} false; then :
19413   $as_echo_n "(cached) " >&6
19414 else
19415   case $CODESIGN in
19416   [\\/]* | ?:[\\/]*)
19417   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19418   ;;
19419   *)
19420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19421 for as_dir in $PATH
19422 do
19423   IFS=$as_save_IFS
19424   test -z "$as_dir" && as_dir=.
19425     for ac_exec_ext in '' $ac_executable_extensions; do
19426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19427     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19429     break 2
19430   fi
19431 done
19432   done
19433 IFS=$as_save_IFS
19434 
19435   ;;
19436 esac
19437 fi
19438 CODESIGN=$ac_cv_path_CODESIGN
19439 if test -n "$CODESIGN"; then
19440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19441 $as_echo "$CODESIGN" >&6; }
19442 else
19443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19445 fi
19446 
19447 
19448         if test "x$CODESIGN" = x; then
19449           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19450         fi
19451       else
19452         # Otherwise we believe it is a complete path. Use it as it is.
19453         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19454 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19456 $as_echo_n "checking for CODESIGN... " >&6; }
19457         if test ! -x "$tool_specified"; then
19458           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19459 $as_echo "not found" >&6; }
19460           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19461         fi
19462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19463 $as_echo "$tool_specified" >&6; }
19464       fi
19465     fi
19466   fi
19467 
19468 
19469     if test "x$CODESIGN" != "x"; then
19470       # Verify that the openjdk_codesign certificate is present
19471       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19472 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19473       rm -f codesign-testfile
19474       touch codesign-testfile
19475       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19476       rm -f codesign-testfile
19477       if test "x$CODESIGN" = x; then
19478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19479 $as_echo "no" >&6; }
19480       else
19481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19482 $as_echo "yes" >&6; }
19483       fi
19484     fi
19485   fi
19486 
19487 
19488 # Check if pkg-config is available.
19489 
19490 
19491 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19492         if test -n "$ac_tool_prefix"; then
19493   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19494 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19496 $as_echo_n "checking for $ac_word... " >&6; }
19497 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19498   $as_echo_n "(cached) " >&6
19499 else
19500   case $PKG_CONFIG in
19501   [\\/]* | ?:[\\/]*)
19502   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19503   ;;
19504   *)
19505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19506 for as_dir in $PATH
19507 do
19508   IFS=$as_save_IFS
19509   test -z "$as_dir" && as_dir=.
19510     for ac_exec_ext in '' $ac_executable_extensions; do
19511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19512     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19514     break 2
19515   fi
19516 done
19517   done
19518 IFS=$as_save_IFS
19519 
19520   ;;
19521 esac
19522 fi
19523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19524 if test -n "$PKG_CONFIG"; then
19525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19526 $as_echo "$PKG_CONFIG" >&6; }
19527 else
19528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19529 $as_echo "no" >&6; }
19530 fi
19531 
19532 
19533 fi
19534 if test -z "$ac_cv_path_PKG_CONFIG"; then
19535   ac_pt_PKG_CONFIG=$PKG_CONFIG
19536   # Extract the first word of "pkg-config", so it can be a program name with args.
19537 set dummy pkg-config; ac_word=$2
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19539 $as_echo_n "checking for $ac_word... " >&6; }
19540 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19541   $as_echo_n "(cached) " >&6
19542 else
19543   case $ac_pt_PKG_CONFIG in
19544   [\\/]* | ?:[\\/]*)
19545   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19546   ;;
19547   *)
19548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19549 for as_dir in $PATH
19550 do
19551   IFS=$as_save_IFS
19552   test -z "$as_dir" && as_dir=.
19553     for ac_exec_ext in '' $ac_executable_extensions; do
19554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19555     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19557     break 2
19558   fi
19559 done
19560   done
19561 IFS=$as_save_IFS
19562 
19563   ;;
19564 esac
19565 fi
19566 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19567 if test -n "$ac_pt_PKG_CONFIG"; then
19568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19569 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19570 else
19571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19572 $as_echo "no" >&6; }
19573 fi
19574 
19575   if test "x$ac_pt_PKG_CONFIG" = x; then
19576     PKG_CONFIG=""
19577   else
19578     case $cross_compiling:$ac_tool_warned in
19579 yes:)
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19582 ac_tool_warned=yes ;;
19583 esac
19584     PKG_CONFIG=$ac_pt_PKG_CONFIG
19585   fi
19586 else
19587   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19588 fi
19589 
19590 fi
19591 if test -n "$PKG_CONFIG"; then
19592         _pkg_min_version=0.9.0
19593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19594 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19595         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19596                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19597 $as_echo "yes" >&6; }
19598         else
19599                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19600 $as_echo "no" >&6; }
19601                 PKG_CONFIG=""
19602         fi
19603 
19604 fi
19605 
19606 # After basic tools have been setup, we can check build os specific details.
19607 
19608   ###############################################################################
19609 
19610   # Note that this is the build platform OS version!
19611 
19612   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19613   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19614   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19615   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19616 
19617 
19618 
19619 
19620 
19621 # Setup builddeps, for automatic downloading of tools we need.
19622 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19623 # boot-jdk setup, but we need to have basic tools setup first.
19624 
19625 
19626 # Check whether --with-builddeps-conf was given.
19627 if test "${with_builddeps_conf+set}" = set; then :
19628   withval=$with_builddeps_conf;
19629 fi
19630 
19631 
19632 
19633 # Check whether --with-builddeps-server was given.
19634 if test "${with_builddeps_server+set}" = set; then :
19635   withval=$with_builddeps_server;
19636 fi
19637 
19638 
19639 
19640 # Check whether --with-builddeps-dir was given.
19641 if test "${with_builddeps_dir+set}" = set; then :
19642   withval=$with_builddeps_dir;
19643 else
19644   with_builddeps_dir=/localhome/builddeps
19645 fi
19646 
19647 
19648 
19649 # Check whether --with-builddeps-group was given.
19650 if test "${with_builddeps_group+set}" = set; then :
19651   withval=$with_builddeps_group;
19652 fi
19653 
19654 
19655 
19656 
19657   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19658     if test "x$with_builddeps_conf" != x; then
19659       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19660 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19661       builddepsfile=$with_builddeps_conf
19662       if test -s $builddepsfile; then
19663         . $builddepsfile
19664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19665 $as_echo "loaded!" >&6; }
19666       else
19667         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19668       fi
19669     else
19670       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19671 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19672       builddepsfile=`mktemp`
19673       touch $builddepsfile
19674       # Put all found confs into a single file.
19675       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19676       # Source the file to acquire the variables
19677       if test -s $builddepsfile; then
19678         . $builddepsfile
19679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19680 $as_echo "found at least one!" >&6; }
19681       else
19682         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19683       fi
19684     fi
19685     # Create build and target names that use _ instead of "-" and ".".
19686     # This is necessary to use them in variable names.
19687     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19688     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19689     # Extract rewrite information for build and target
19690     eval rewritten_build=\${REWRITE_${build_var}}
19691     if test "x$rewritten_build" = x; then
19692       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19693       echo Build stays the same $rewritten_build
19694     else
19695       echo Rewriting build for builddeps into $rewritten_build
19696     fi
19697     eval rewritten_target=\${REWRITE_${target_var}}
19698     if test "x$rewritten_target" = x; then
19699       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19700       echo Target stays the same $rewritten_target
19701     else
19702       echo Rewriting target for builddeps into $rewritten_target
19703     fi
19704     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19705     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19706   fi
19707   for ac_prog in 7z unzip
19708 do
19709   # Extract the first word of "$ac_prog", so it can be a program name with args.
19710 set dummy $ac_prog; ac_word=$2
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19712 $as_echo_n "checking for $ac_word... " >&6; }
19713 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19714   $as_echo_n "(cached) " >&6
19715 else
19716   if test -n "$BDEPS_UNZIP"; then
19717   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19718 else
19719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19720 for as_dir in $PATH
19721 do
19722   IFS=$as_save_IFS
19723   test -z "$as_dir" && as_dir=.
19724     for ac_exec_ext in '' $ac_executable_extensions; do
19725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19726     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19728     break 2
19729   fi
19730 done
19731   done
19732 IFS=$as_save_IFS
19733 
19734 fi
19735 fi
19736 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19737 if test -n "$BDEPS_UNZIP"; then
19738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19739 $as_echo "$BDEPS_UNZIP" >&6; }
19740 else
19741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19742 $as_echo "no" >&6; }
19743 fi
19744 
19745 
19746   test -n "$BDEPS_UNZIP" && break
19747 done
19748 
19749   if test "x$BDEPS_UNZIP" = x7z; then
19750     BDEPS_UNZIP="7z x"
19751   fi
19752 
19753   for ac_prog in wget lftp ftp
19754 do
19755   # Extract the first word of "$ac_prog", so it can be a program name with args.
19756 set dummy $ac_prog; ac_word=$2
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19758 $as_echo_n "checking for $ac_word... " >&6; }
19759 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19760   $as_echo_n "(cached) " >&6
19761 else
19762   if test -n "$BDEPS_FTP"; then
19763   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19764 else
19765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19766 for as_dir in $PATH
19767 do
19768   IFS=$as_save_IFS
19769   test -z "$as_dir" && as_dir=.
19770     for ac_exec_ext in '' $ac_executable_extensions; do
19771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19772     ac_cv_prog_BDEPS_FTP="$ac_prog"
19773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19774     break 2
19775   fi
19776 done
19777   done
19778 IFS=$as_save_IFS
19779 
19780 fi
19781 fi
19782 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19783 if test -n "$BDEPS_FTP"; then
19784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19785 $as_echo "$BDEPS_FTP" >&6; }
19786 else
19787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19788 $as_echo "no" >&6; }
19789 fi
19790 
19791 
19792   test -n "$BDEPS_FTP" && break
19793 done
19794 
19795 
19796 
19797 ###############################################################################
19798 #
19799 # Determine OpenJDK variants, options and version numbers.
19800 #
19801 ###############################################################################
19802 
19803 # We need build & target for this.
19804 
19805 
19806   ###############################################################################
19807   #
19808   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19809   # We always build headless support.
19810   #
19811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19812 $as_echo_n "checking headful support... " >&6; }
19813   # Check whether --enable-headful was given.
19814 if test "${enable_headful+set}" = set; then :
19815   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19816 else
19817   SUPPORT_HEADFUL=yes
19818 fi
19819 
19820 
19821   SUPPORT_HEADLESS=yes
19822   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19823 
19824   if test "x$SUPPORT_HEADFUL" = xyes; then
19825     # We are building both headful and headless.
19826     headful_msg="include support for both headful and headless"
19827   fi
19828 
19829   if test "x$SUPPORT_HEADFUL" = xno; then
19830     # Thus we are building headless only.
19831     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19832     headful_msg="headless only"
19833   fi
19834 
19835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19836 $as_echo "$headful_msg" >&6; }
19837 
19838 
19839 
19840 
19841 
19842   # Control wether Hotspot runs Queens test after build.
19843   # Check whether --enable-hotspot-test-in-build was given.
19844 if test "${enable_hotspot_test_in_build+set}" = set; then :
19845   enableval=$enable_hotspot_test_in_build;
19846 else
19847   enable_hotspot_test_in_build=no
19848 fi
19849 
19850   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19851     TEST_IN_BUILD=true
19852   else
19853     TEST_IN_BUILD=false
19854   fi
19855 
19856 
19857   ###############################################################################
19858   #
19859   # Choose cacerts source file
19860   #
19861 
19862 # Check whether --with-cacerts-file was given.
19863 if test "${with_cacerts_file+set}" = set; then :
19864   withval=$with_cacerts_file;
19865 fi
19866 
19867   if test "x$with_cacerts_file" != x; then
19868     CACERTS_FILE=$with_cacerts_file
19869   else
19870     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19871   fi
19872 
19873 
19874   ###############################################################################
19875   #
19876   # Enable or disable unlimited crypto
19877   #
19878   # Check whether --enable-unlimited-crypto was given.
19879 if test "${enable_unlimited_crypto+set}" = set; then :
19880   enableval=$enable_unlimited_crypto;
19881 else
19882   enable_unlimited_crypto=no
19883 fi
19884 
19885   if test "x$enable_unlimited_crypto" = "xyes"; then
19886     UNLIMITED_CRYPTO=true
19887   else
19888     UNLIMITED_CRYPTO=false
19889   fi
19890 
19891 
19892   ###############################################################################
19893   #
19894   # Enable or disable the elliptic curve crypto implementation
19895   #
19896 
19897 
19898   ###############################################################################
19899   #
19900   # --enable-rmiconnector-iiop
19901   #
19902   # Check whether --enable-rmiconnector-iiop was given.
19903 if test "${enable_rmiconnector_iiop+set}" = set; then :
19904   enableval=$enable_rmiconnector_iiop;
19905 fi
19906 
19907   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19908     RMICONNECTOR_IIOP=true
19909   else
19910     RMICONNECTOR_IIOP=false
19911   fi
19912 
19913 
19914   ###############################################################################
19915   #
19916   # Compress jars
19917   #
19918   COMPRESS_JARS=false
19919 
19920 
19921 
19922 
19923   # Source the version numbers
19924   . $AUTOCONF_DIR/version-numbers
19925 
19926   # Get the settings from parameters
19927 
19928 # Check whether --with-milestone was given.
19929 if test "${with_milestone+set}" = set; then :
19930   withval=$with_milestone;
19931 fi
19932 
19933   if test "x$with_milestone" = xyes; then
19934     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19935   elif test "x$with_milestone" != x; then
19936     MILESTONE="$with_milestone"
19937   fi
19938   if test "x$MILESTONE" = x; then
19939     MILESTONE=internal
19940   fi
19941 
19942 
19943 # Check whether --with-update-version was given.
19944 if test "${with_update_version+set}" = set; then :
19945   withval=$with_update_version;
19946 fi
19947 
19948   if test "x$with_update_version" = xyes; then
19949     as_fn_error $? "Update version must have a value" "$LINENO" 5
19950   elif test "x$with_update_version" != x; then
19951     JDK_UPDATE_VERSION="$with_update_version"
19952     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19953     # to a bug in expr (which reduces it to just X). To work around this, we
19954     # always add a 0 to one digit update versions.
19955     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19956       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19957     fi
19958   fi
19959 
19960 
19961 # Check whether --with-user-release-suffix was given.
19962 if test "${with_user_release_suffix+set}" = set; then :
19963   withval=$with_user_release_suffix;
19964 fi
19965 
19966   if test "x$with_user_release_suffix" = xyes; then
19967     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19968   elif test "x$with_user_release_suffix" != x; then
19969     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19970   fi
19971 
19972 
19973 # Check whether --with-build-number was given.
19974 if test "${with_build_number+set}" = set; then :
19975   withval=$with_build_number;
19976 fi
19977 
19978   if test "x$with_build_number" = xyes; then
19979     as_fn_error $? "Build number must have a value" "$LINENO" 5
19980   elif test "x$with_build_number" != x; then
19981     JDK_BUILD_NUMBER="$with_build_number"
19982   fi
19983   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19984   if test "x$JDK_BUILD_NUMBER" = x; then
19985     JDK_BUILD_NUMBER=b00
19986     if test "x$USER_RELEASE_SUFFIX" = x; then
19987       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19988       # Avoid [:alnum:] since it depends on the locale.
19989       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19990       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19991     fi
19992   fi
19993 
19994   # Now set the JDK version, milestone, build number etc.
19995 
19996 
19997 
19998 
19999 
20000 
20001 
20002 
20003 
20004 
20005 
20006 
20007 
20008 
20009 
20010   COPYRIGHT_YEAR=`date +'%Y'`
20011 
20012 
20013   if test "x$JDK_UPDATE_VERSION" != x; then
20014     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
20015   else
20016     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
20017   fi
20018 
20019 
20020   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
20021 
20022 
20023 
20024 ###############################################################################
20025 #
20026 # Setup BootJDK, used to bootstrap the build.
20027 #
20028 ###############################################################################
20029 
20030 
20031   BOOT_JDK_FOUND=no
20032 
20033 # Check whether --with-boot-jdk was given.
20034 if test "${with_boot_jdk+set}" = set; then :
20035   withval=$with_boot_jdk;
20036 fi
20037 
20038 
20039   # We look for the Boot JDK through various means, going from more certain to
20040   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20041   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20042   # must check if this is indeed valid; otherwise we'll continue looking.
20043 
20044   # Test: Is bootjdk explicitely set by command line arguments?
20045 
20046   if test "x$BOOT_JDK_FOUND" = xno; then
20047     # Now execute the test
20048 
20049   if test "x$with_boot_jdk" != x; then
20050     BOOT_JDK=$with_boot_jdk
20051     BOOT_JDK_FOUND=maybe
20052     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20053 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20054   fi
20055 
20056 
20057     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20058     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20059       # Do we have a bin/java?
20060       if test ! -x "$BOOT_JDK/bin/java"; then
20061         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20062 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20063         BOOT_JDK_FOUND=no
20064       else
20065         # Do we have a bin/javac?
20066         if test ! -x "$BOOT_JDK/bin/javac"; then
20067           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20068 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20069           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20070 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20071           BOOT_JDK_FOUND=no
20072         else
20073           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20074           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20075             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20076 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20077             BOOT_JDK_FOUND=no
20078           else
20079             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20080             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20081 
20082             # Extra M4 quote needed to protect [] in grep expression.
20083             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20084             if test "x$FOUND_CORRECT_VERSION" = x; then
20085               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20086 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20087               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20088 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20089               BOOT_JDK_FOUND=no
20090             else
20091               # We're done! :-)
20092               BOOT_JDK_FOUND=yes
20093 
20094   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20095 
20096   # Input might be given as Windows format, start by converting to
20097   # unix format.
20098   path="$BOOT_JDK"
20099   new_path=`$CYGPATH -u "$path"`
20100 
20101   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20102   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20103   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20104   # "foo.exe" is OK but "foo" is an error.
20105   #
20106   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20107   # It is also a way to make sure we got the proper file name for the real test later on.
20108   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20109   if test "x$test_shortpath" = x; then
20110     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20111 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20112     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20113   fi
20114 
20115   # Call helper function which possibly converts this using DOS-style short mode.
20116   # If so, the updated path is stored in $new_path.
20117 
20118   input_path="$new_path"
20119   # Check if we need to convert this using DOS-style short mode. If the path
20120   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20121   # take no chances and rewrite it.
20122   # Note: m4 eats our [], so we need to use [ and ] instead.
20123   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20124   if test "x$has_forbidden_chars" != x; then
20125     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20126     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20127     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20128     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20129       # Going to short mode and back again did indeed matter. Since short mode is
20130       # case insensitive, let's make it lowercase to improve readability.
20131       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20132       # Now convert it back to Unix-stile (cygpath)
20133       input_path=`$CYGPATH -u "$shortmode_path"`
20134       new_path="$input_path"
20135     fi
20136   fi
20137 
20138   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20139   if test "x$test_cygdrive_prefix" = x; then
20140     # As a simple fix, exclude /usr/bin since it's not a real path.
20141     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20142       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20143       # a path prefixed by /cygdrive for fixpath to work.
20144       new_path="$CYGWIN_ROOT_PATH$input_path"
20145     fi
20146   fi
20147 
20148 
20149   if test "x$path" != "x$new_path"; then
20150     BOOT_JDK="$new_path"
20151     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20153   fi
20154 
20155   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20156 
20157   path="$BOOT_JDK"
20158   has_colon=`$ECHO $path | $GREP ^.:`
20159   new_path="$path"
20160   if test "x$has_colon" = x; then
20161     # Not in mixed or Windows style, start by that.
20162     new_path=`cmd //c echo $path`
20163   fi
20164 
20165 
20166   input_path="$new_path"
20167   # Check if we need to convert this using DOS-style short mode. If the path
20168   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20169   # take no chances and rewrite it.
20170   # Note: m4 eats our [], so we need to use [ and ] instead.
20171   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20172   if test "x$has_forbidden_chars" != x; then
20173     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20174     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20175   fi
20176 
20177 
20178   windows_path="$new_path"
20179   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20180     unix_path=`$CYGPATH -u "$windows_path"`
20181     new_path="$unix_path"
20182   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20183     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20184     new_path="$unix_path"
20185   fi
20186 
20187   if test "x$path" != "x$new_path"; then
20188     BOOT_JDK="$new_path"
20189     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20190 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20191   fi
20192 
20193   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20194   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20195 
20196   else
20197     # We're on a posix platform. Hooray! :)
20198     path="$BOOT_JDK"
20199     has_space=`$ECHO "$path" | $GREP " "`
20200     if test "x$has_space" != x; then
20201       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20202 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20203       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20204     fi
20205 
20206     # Use eval to expand a potential ~
20207     eval path="$path"
20208     if test ! -f "$path" && test ! -d "$path"; then
20209       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20210     fi
20211 
20212     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20213   fi
20214 
20215               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20216 $as_echo_n "checking for Boot JDK... " >&6; }
20217               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20218 $as_echo "$BOOT_JDK" >&6; }
20219               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20220 $as_echo_n "checking Boot JDK version... " >&6; }
20221               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20222               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20223 $as_echo "$BOOT_JDK_VERSION" >&6; }
20224             fi # end check jdk version
20225           fi # end check rt.jar
20226         fi # end check javac
20227       fi # end check java
20228     fi # end check boot jdk found
20229   fi
20230 
20231   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20232     # Having specified an argument which is incorrect will produce an instant failure;
20233     # we should not go on looking
20234     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20235   fi
20236 
20237   # Test: Is bootjdk available from builddeps?
20238 
20239   if test "x$BOOT_JDK_FOUND" = xno; then
20240     # Now execute the test
20241 
20242 
20243 
20244   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20245     # Source the builddeps file again, to make sure it uses the latest variables!
20246     . $builddepsfile
20247     # Look for a target and build machine specific resource!
20248     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20249     if test "x$resource" = x; then
20250       # Ok, lets instead look for a target specific resource
20251       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20252     fi
20253     if test "x$resource" = x; then
20254       # Ok, lets instead look for a build specific resource
20255       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20256     fi
20257     if test "x$resource" = x; then
20258       # Ok, lets instead look for a generic resource
20259       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20260       resource=${builddep_bootjdk}
20261     fi
20262     if test "x$resource" != x; then
20263       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20264 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20265       # If the resource in the builddeps.conf file is an existing directory,
20266       # for example /java/linux/cups
20267       if test -d ${resource}; then
20268         depdir=${resource}
20269       else
20270 
20271   # bootjdk is for example mymodule
20272   # $resource is for example libs/general/libmymod_1_2_3.zip
20273   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20274   # $with_builddeps_dir is for example /localhome/builddeps
20275   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20276   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20277   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20278   filename=`basename $resource`
20279   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20280   filebase=${filename%%.*}
20281   extension=${filename#*.}
20282   installdir=$with_builddeps_dir/$filebase
20283   if test ! -f $installdir/$filename.unpacked; then
20284     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20285 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20286     if test ! -d $installdir; then
20287       mkdir -p $installdir
20288     fi
20289     if test ! -d $installdir; then
20290       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20291     fi
20292     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20293     touch $tmpfile
20294     if test ! -f $tmpfile; then
20295       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20296     fi
20297 
20298   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20299   # $tmpfile is the local file name for the downloaded file.
20300   VALID_TOOL=no
20301   if test "x$BDEPS_FTP" = xwget; then
20302     VALID_TOOL=yes
20303     wget -O $tmpfile $with_builddeps_server/$resource
20304   fi
20305   if test "x$BDEPS_FTP" = xlftp; then
20306     VALID_TOOL=yes
20307     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20308   fi
20309   if test "x$BDEPS_FTP" = xftp; then
20310     VALID_TOOL=yes
20311     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20312     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20313     FTPUSERPWD=${FTPSERVER%%@*}
20314     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20315       FTPUSER=${userpwd%%:*}
20316       FTPPWD=${userpwd#*@}
20317       FTPSERVER=${FTPSERVER#*@}
20318     else
20319       FTPUSER=ftp
20320       FTPPWD=ftp
20321     fi
20322     # the "pass" command does not work on some
20323     # ftp clients (read ftp.exe) but if it works,
20324     # passive mode is better!
20325     ( \
20326         echo "user $FTPUSER $FTPPWD"        ; \
20327         echo "pass"                         ; \
20328         echo "bin"                          ; \
20329         echo "get $FTPPATH $tmpfile"              ; \
20330     ) | ftp -in $FTPSERVER
20331   fi
20332   if test "x$VALID_TOOL" != xyes; then
20333     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20334   fi
20335 
20336     mv $tmpfile $installdir/$filename
20337     if test ! -s $installdir/$filename; then
20338       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20339     fi
20340     case "$extension" in
20341       zip)  echo "Unzipping $installdir/$filename..."
20342         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20343         ;;
20344       tar.gz) echo "Untaring $installdir/$filename..."
20345         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20346         ;;
20347       tgz) echo "Untaring $installdir/$filename..."
20348         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20349         ;;
20350       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20351         ;;
20352     esac
20353   fi
20354   if test -f $installdir/$filename.unpacked; then
20355     depdir=$installdir
20356   fi
20357 
20358       fi
20359       # Source the builddeps file again, because in the previous command, the depdir
20360       # was updated to point at the current build dependency install directory.
20361       . $builddepsfile
20362       # Now extract variables from the builddeps.conf files.
20363       theroot=${builddep_bootjdk_ROOT}
20364       thecflags=${builddep_bootjdk_CFLAGS}
20365       thelibs=${builddep_bootjdk_LIBS}
20366       if test "x$depdir" = x; then
20367         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20368       fi
20369       BOOT_JDK=$depdir
20370       if test "x$theroot" != x; then
20371         BOOT_JDK="$theroot"
20372       fi
20373       if test "x$thecflags" != x; then
20374         BOOT_JDK_CFLAGS="$thecflags"
20375       fi
20376       if test "x$thelibs" != x; then
20377         BOOT_JDK_LIBS="$thelibs"
20378       fi
20379       BOOT_JDK_FOUND=maybe
20380       else BOOT_JDK_FOUND=no
20381 
20382     fi
20383     else BOOT_JDK_FOUND=no
20384 
20385   fi
20386 
20387 
20388 
20389     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20390     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20391       # Do we have a bin/java?
20392       if test ! -x "$BOOT_JDK/bin/java"; then
20393         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20394 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20395         BOOT_JDK_FOUND=no
20396       else
20397         # Do we have a bin/javac?
20398         if test ! -x "$BOOT_JDK/bin/javac"; then
20399           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20400 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20401           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20402 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20403           BOOT_JDK_FOUND=no
20404         else
20405           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20406           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20407             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20408 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20409             BOOT_JDK_FOUND=no
20410           else
20411             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20412             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20413 
20414             # Extra M4 quote needed to protect [] in grep expression.
20415             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20416             if test "x$FOUND_CORRECT_VERSION" = x; then
20417               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20418 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20419               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20420 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20421               BOOT_JDK_FOUND=no
20422             else
20423               # We're done! :-)
20424               BOOT_JDK_FOUND=yes
20425 
20426   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20427 
20428   # Input might be given as Windows format, start by converting to
20429   # unix format.
20430   path="$BOOT_JDK"
20431   new_path=`$CYGPATH -u "$path"`
20432 
20433   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20434   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20435   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20436   # "foo.exe" is OK but "foo" is an error.
20437   #
20438   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20439   # It is also a way to make sure we got the proper file name for the real test later on.
20440   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20441   if test "x$test_shortpath" = x; then
20442     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20443 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20444     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20445   fi
20446 
20447   # Call helper function which possibly converts this using DOS-style short mode.
20448   # If so, the updated path is stored in $new_path.
20449 
20450   input_path="$new_path"
20451   # Check if we need to convert this using DOS-style short mode. If the path
20452   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20453   # take no chances and rewrite it.
20454   # Note: m4 eats our [], so we need to use [ and ] instead.
20455   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20456   if test "x$has_forbidden_chars" != x; then
20457     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20458     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20459     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20460     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20461       # Going to short mode and back again did indeed matter. Since short mode is
20462       # case insensitive, let's make it lowercase to improve readability.
20463       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20464       # Now convert it back to Unix-stile (cygpath)
20465       input_path=`$CYGPATH -u "$shortmode_path"`
20466       new_path="$input_path"
20467     fi
20468   fi
20469 
20470   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20471   if test "x$test_cygdrive_prefix" = x; then
20472     # As a simple fix, exclude /usr/bin since it's not a real path.
20473     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20474       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20475       # a path prefixed by /cygdrive for fixpath to work.
20476       new_path="$CYGWIN_ROOT_PATH$input_path"
20477     fi
20478   fi
20479 
20480 
20481   if test "x$path" != "x$new_path"; then
20482     BOOT_JDK="$new_path"
20483     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20484 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20485   fi
20486 
20487   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20488 
20489   path="$BOOT_JDK"
20490   has_colon=`$ECHO $path | $GREP ^.:`
20491   new_path="$path"
20492   if test "x$has_colon" = x; then
20493     # Not in mixed or Windows style, start by that.
20494     new_path=`cmd //c echo $path`
20495   fi
20496 
20497 
20498   input_path="$new_path"
20499   # Check if we need to convert this using DOS-style short mode. If the path
20500   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20501   # take no chances and rewrite it.
20502   # Note: m4 eats our [], so we need to use [ and ] instead.
20503   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20504   if test "x$has_forbidden_chars" != x; then
20505     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20506     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20507   fi
20508 
20509 
20510   windows_path="$new_path"
20511   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20512     unix_path=`$CYGPATH -u "$windows_path"`
20513     new_path="$unix_path"
20514   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20515     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20516     new_path="$unix_path"
20517   fi
20518 
20519   if test "x$path" != "x$new_path"; then
20520     BOOT_JDK="$new_path"
20521     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20522 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20523   fi
20524 
20525   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20526   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20527 
20528   else
20529     # We're on a posix platform. Hooray! :)
20530     path="$BOOT_JDK"
20531     has_space=`$ECHO "$path" | $GREP " "`
20532     if test "x$has_space" != x; then
20533       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20534 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20535       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20536     fi
20537 
20538     # Use eval to expand a potential ~
20539     eval path="$path"
20540     if test ! -f "$path" && test ! -d "$path"; then
20541       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20542     fi
20543 
20544     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20545   fi
20546 
20547               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20548 $as_echo_n "checking for Boot JDK... " >&6; }
20549               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20550 $as_echo "$BOOT_JDK" >&6; }
20551               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20552 $as_echo_n "checking Boot JDK version... " >&6; }
20553               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20554               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20555 $as_echo "$BOOT_JDK_VERSION" >&6; }
20556             fi # end check jdk version
20557           fi # end check rt.jar
20558         fi # end check javac
20559       fi # end check java
20560     fi # end check boot jdk found
20561   fi
20562 
20563 
20564   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20565 
20566   if test "x$BOOT_JDK_FOUND" = xno; then
20567     # Now execute the test
20568 
20569   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20570     # First check at user selected default
20571 
20572   if test "x$BOOT_JDK_FOUND" = xno; then
20573     # Now execute the test
20574 
20575   if test -x /usr/libexec/java_home; then
20576     BOOT_JDK=`/usr/libexec/java_home `
20577     BOOT_JDK_FOUND=maybe
20578     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20579 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20580   fi
20581 
20582 
20583     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20584     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20585       # Do we have a bin/java?
20586       if test ! -x "$BOOT_JDK/bin/java"; then
20587         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20588 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20589         BOOT_JDK_FOUND=no
20590       else
20591         # Do we have a bin/javac?
20592         if test ! -x "$BOOT_JDK/bin/javac"; then
20593           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20594 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20595           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20596 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20597           BOOT_JDK_FOUND=no
20598         else
20599           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20600           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20601             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20602 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20603             BOOT_JDK_FOUND=no
20604           else
20605             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20606             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20607 
20608             # Extra M4 quote needed to protect [] in grep expression.
20609             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20610             if test "x$FOUND_CORRECT_VERSION" = x; then
20611               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20613               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20614 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20615               BOOT_JDK_FOUND=no
20616             else
20617               # We're done! :-)
20618               BOOT_JDK_FOUND=yes
20619 
20620   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20621 
20622   # Input might be given as Windows format, start by converting to
20623   # unix format.
20624   path="$BOOT_JDK"
20625   new_path=`$CYGPATH -u "$path"`
20626 
20627   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20628   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20629   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20630   # "foo.exe" is OK but "foo" is an error.
20631   #
20632   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20633   # It is also a way to make sure we got the proper file name for the real test later on.
20634   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20635   if test "x$test_shortpath" = x; then
20636     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20637 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20638     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20639   fi
20640 
20641   # Call helper function which possibly converts this using DOS-style short mode.
20642   # If so, the updated path is stored in $new_path.
20643 
20644   input_path="$new_path"
20645   # Check if we need to convert this using DOS-style short mode. If the path
20646   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20647   # take no chances and rewrite it.
20648   # Note: m4 eats our [], so we need to use [ and ] instead.
20649   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20650   if test "x$has_forbidden_chars" != x; then
20651     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20652     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20653     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20654     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20655       # Going to short mode and back again did indeed matter. Since short mode is
20656       # case insensitive, let's make it lowercase to improve readability.
20657       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20658       # Now convert it back to Unix-stile (cygpath)
20659       input_path=`$CYGPATH -u "$shortmode_path"`
20660       new_path="$input_path"
20661     fi
20662   fi
20663 
20664   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20665   if test "x$test_cygdrive_prefix" = x; then
20666     # As a simple fix, exclude /usr/bin since it's not a real path.
20667     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20668       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20669       # a path prefixed by /cygdrive for fixpath to work.
20670       new_path="$CYGWIN_ROOT_PATH$input_path"
20671     fi
20672   fi
20673 
20674 
20675   if test "x$path" != "x$new_path"; then
20676     BOOT_JDK="$new_path"
20677     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20678 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20679   fi
20680 
20681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20682 
20683   path="$BOOT_JDK"
20684   has_colon=`$ECHO $path | $GREP ^.:`
20685   new_path="$path"
20686   if test "x$has_colon" = x; then
20687     # Not in mixed or Windows style, start by that.
20688     new_path=`cmd //c echo $path`
20689   fi
20690 
20691 
20692   input_path="$new_path"
20693   # Check if we need to convert this using DOS-style short mode. If the path
20694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20695   # take no chances and rewrite it.
20696   # Note: m4 eats our [], so we need to use [ and ] instead.
20697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20698   if test "x$has_forbidden_chars" != x; then
20699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20700     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20701   fi
20702 
20703 
20704   windows_path="$new_path"
20705   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20706     unix_path=`$CYGPATH -u "$windows_path"`
20707     new_path="$unix_path"
20708   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20709     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20710     new_path="$unix_path"
20711   fi
20712 
20713   if test "x$path" != "x$new_path"; then
20714     BOOT_JDK="$new_path"
20715     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20716 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20717   fi
20718 
20719   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20720   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20721 
20722   else
20723     # We're on a posix platform. Hooray! :)
20724     path="$BOOT_JDK"
20725     has_space=`$ECHO "$path" | $GREP " "`
20726     if test "x$has_space" != x; then
20727       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20728 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20729       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20730     fi
20731 
20732     # Use eval to expand a potential ~
20733     eval path="$path"
20734     if test ! -f "$path" && test ! -d "$path"; then
20735       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20736     fi
20737 
20738     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20739   fi
20740 
20741               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20742 $as_echo_n "checking for Boot JDK... " >&6; }
20743               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20744 $as_echo "$BOOT_JDK" >&6; }
20745               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20746 $as_echo_n "checking Boot JDK version... " >&6; }
20747               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20748               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20749 $as_echo "$BOOT_JDK_VERSION" >&6; }
20750             fi # end check jdk version
20751           fi # end check rt.jar
20752         fi # end check javac
20753       fi # end check java
20754     fi # end check boot jdk found
20755   fi
20756 
20757     # If that did not work out (e.g. too old), try explicit versions instead
20758 
20759   if test "x$BOOT_JDK_FOUND" = xno; then
20760     # Now execute the test
20761 
20762   if test -x /usr/libexec/java_home; then
20763     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20764     BOOT_JDK_FOUND=maybe
20765     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20766 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20767   fi
20768 
20769 
20770     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20771     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20772       # Do we have a bin/java?
20773       if test ! -x "$BOOT_JDK/bin/java"; then
20774         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20776         BOOT_JDK_FOUND=no
20777       else
20778         # Do we have a bin/javac?
20779         if test ! -x "$BOOT_JDK/bin/javac"; then
20780           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20781 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20782           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20783 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20784           BOOT_JDK_FOUND=no
20785         else
20786           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20787           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20788             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20790             BOOT_JDK_FOUND=no
20791           else
20792             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20793             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20794 
20795             # Extra M4 quote needed to protect [] in grep expression.
20796             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20797             if test "x$FOUND_CORRECT_VERSION" = x; then
20798               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20799 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20800               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20801 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20802               BOOT_JDK_FOUND=no
20803             else
20804               # We're done! :-)
20805               BOOT_JDK_FOUND=yes
20806 
20807   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20808 
20809   # Input might be given as Windows format, start by converting to
20810   # unix format.
20811   path="$BOOT_JDK"
20812   new_path=`$CYGPATH -u "$path"`
20813 
20814   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20815   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20816   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20817   # "foo.exe" is OK but "foo" is an error.
20818   #
20819   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20820   # It is also a way to make sure we got the proper file name for the real test later on.
20821   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20822   if test "x$test_shortpath" = x; then
20823     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20824 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20825     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20826   fi
20827 
20828   # Call helper function which possibly converts this using DOS-style short mode.
20829   # If so, the updated path is stored in $new_path.
20830 
20831   input_path="$new_path"
20832   # Check if we need to convert this using DOS-style short mode. If the path
20833   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20834   # take no chances and rewrite it.
20835   # Note: m4 eats our [], so we need to use [ and ] instead.
20836   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20837   if test "x$has_forbidden_chars" != x; then
20838     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20839     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20840     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20841     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20842       # Going to short mode and back again did indeed matter. Since short mode is
20843       # case insensitive, let's make it lowercase to improve readability.
20844       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20845       # Now convert it back to Unix-stile (cygpath)
20846       input_path=`$CYGPATH -u "$shortmode_path"`
20847       new_path="$input_path"
20848     fi
20849   fi
20850 
20851   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20852   if test "x$test_cygdrive_prefix" = x; then
20853     # As a simple fix, exclude /usr/bin since it's not a real path.
20854     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20855       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20856       # a path prefixed by /cygdrive for fixpath to work.
20857       new_path="$CYGWIN_ROOT_PATH$input_path"
20858     fi
20859   fi
20860 
20861 
20862   if test "x$path" != "x$new_path"; then
20863     BOOT_JDK="$new_path"
20864     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20865 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20866   fi
20867 
20868   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20869 
20870   path="$BOOT_JDK"
20871   has_colon=`$ECHO $path | $GREP ^.:`
20872   new_path="$path"
20873   if test "x$has_colon" = x; then
20874     # Not in mixed or Windows style, start by that.
20875     new_path=`cmd //c echo $path`
20876   fi
20877 
20878 
20879   input_path="$new_path"
20880   # Check if we need to convert this using DOS-style short mode. If the path
20881   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20882   # take no chances and rewrite it.
20883   # Note: m4 eats our [], so we need to use [ and ] instead.
20884   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20885   if test "x$has_forbidden_chars" != x; then
20886     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20887     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20888   fi
20889 
20890 
20891   windows_path="$new_path"
20892   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20893     unix_path=`$CYGPATH -u "$windows_path"`
20894     new_path="$unix_path"
20895   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20896     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20897     new_path="$unix_path"
20898   fi
20899 
20900   if test "x$path" != "x$new_path"; then
20901     BOOT_JDK="$new_path"
20902     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20903 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20904   fi
20905 
20906   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20907   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20908 
20909   else
20910     # We're on a posix platform. Hooray! :)
20911     path="$BOOT_JDK"
20912     has_space=`$ECHO "$path" | $GREP " "`
20913     if test "x$has_space" != x; then
20914       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20916       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20917     fi
20918 
20919     # Use eval to expand a potential ~
20920     eval path="$path"
20921     if test ! -f "$path" && test ! -d "$path"; then
20922       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20923     fi
20924 
20925     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20926   fi
20927 
20928               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20929 $as_echo_n "checking for Boot JDK... " >&6; }
20930               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20931 $as_echo "$BOOT_JDK" >&6; }
20932               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20933 $as_echo_n "checking Boot JDK version... " >&6; }
20934               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20935               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20936 $as_echo "$BOOT_JDK_VERSION" >&6; }
20937             fi # end check jdk version
20938           fi # end check rt.jar
20939         fi # end check javac
20940       fi # end check java
20941     fi # end check boot jdk found
20942   fi
20943 
20944 
20945   if test "x$BOOT_JDK_FOUND" = xno; then
20946     # Now execute the test
20947 
20948   if test -x /usr/libexec/java_home; then
20949     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20950     BOOT_JDK_FOUND=maybe
20951     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20952 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20953   fi
20954 
20955 
20956     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20957     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20958       # Do we have a bin/java?
20959       if test ! -x "$BOOT_JDK/bin/java"; then
20960         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20961 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20962         BOOT_JDK_FOUND=no
20963       else
20964         # Do we have a bin/javac?
20965         if test ! -x "$BOOT_JDK/bin/javac"; then
20966           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20967 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20968           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20969 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20970           BOOT_JDK_FOUND=no
20971         else
20972           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20973           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20974             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20975 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20976             BOOT_JDK_FOUND=no
20977           else
20978             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20979             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20980 
20981             # Extra M4 quote needed to protect [] in grep expression.
20982             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20983             if test "x$FOUND_CORRECT_VERSION" = x; then
20984               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20985 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20986               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20987 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20988               BOOT_JDK_FOUND=no
20989             else
20990               # We're done! :-)
20991               BOOT_JDK_FOUND=yes
20992 
20993   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20994 
20995   # Input might be given as Windows format, start by converting to
20996   # unix format.
20997   path="$BOOT_JDK"
20998   new_path=`$CYGPATH -u "$path"`
20999 
21000   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21001   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21002   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21003   # "foo.exe" is OK but "foo" is an error.
21004   #
21005   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21006   # It is also a way to make sure we got the proper file name for the real test later on.
21007   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21008   if test "x$test_shortpath" = x; then
21009     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21010 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21011     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21012   fi
21013 
21014   # Call helper function which possibly converts this using DOS-style short mode.
21015   # If so, the updated path is stored in $new_path.
21016 
21017   input_path="$new_path"
21018   # Check if we need to convert this using DOS-style short mode. If the path
21019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21020   # take no chances and rewrite it.
21021   # Note: m4 eats our [], so we need to use [ and ] instead.
21022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21023   if test "x$has_forbidden_chars" != x; then
21024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21025     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21026     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21027     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21028       # Going to short mode and back again did indeed matter. Since short mode is
21029       # case insensitive, let's make it lowercase to improve readability.
21030       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21031       # Now convert it back to Unix-stile (cygpath)
21032       input_path=`$CYGPATH -u "$shortmode_path"`
21033       new_path="$input_path"
21034     fi
21035   fi
21036 
21037   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21038   if test "x$test_cygdrive_prefix" = x; then
21039     # As a simple fix, exclude /usr/bin since it's not a real path.
21040     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21041       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21042       # a path prefixed by /cygdrive for fixpath to work.
21043       new_path="$CYGWIN_ROOT_PATH$input_path"
21044     fi
21045   fi
21046 
21047 
21048   if test "x$path" != "x$new_path"; then
21049     BOOT_JDK="$new_path"
21050     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21051 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21052   fi
21053 
21054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21055 
21056   path="$BOOT_JDK"
21057   has_colon=`$ECHO $path | $GREP ^.:`
21058   new_path="$path"
21059   if test "x$has_colon" = x; then
21060     # Not in mixed or Windows style, start by that.
21061     new_path=`cmd //c echo $path`
21062   fi
21063 
21064 
21065   input_path="$new_path"
21066   # Check if we need to convert this using DOS-style short mode. If the path
21067   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21068   # take no chances and rewrite it.
21069   # Note: m4 eats our [], so we need to use [ and ] instead.
21070   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21071   if test "x$has_forbidden_chars" != x; then
21072     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21073     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21074   fi
21075 
21076 
21077   windows_path="$new_path"
21078   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21079     unix_path=`$CYGPATH -u "$windows_path"`
21080     new_path="$unix_path"
21081   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21082     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21083     new_path="$unix_path"
21084   fi
21085 
21086   if test "x$path" != "x$new_path"; then
21087     BOOT_JDK="$new_path"
21088     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21089 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21090   fi
21091 
21092   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21093   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21094 
21095   else
21096     # We're on a posix platform. Hooray! :)
21097     path="$BOOT_JDK"
21098     has_space=`$ECHO "$path" | $GREP " "`
21099     if test "x$has_space" != x; then
21100       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21101 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21102       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21103     fi
21104 
21105     # Use eval to expand a potential ~
21106     eval path="$path"
21107     if test ! -f "$path" && test ! -d "$path"; then
21108       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21109     fi
21110 
21111     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21112   fi
21113 
21114               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21115 $as_echo_n "checking for Boot JDK... " >&6; }
21116               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21117 $as_echo "$BOOT_JDK" >&6; }
21118               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21119 $as_echo_n "checking Boot JDK version... " >&6; }
21120               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21121               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21122 $as_echo "$BOOT_JDK_VERSION" >&6; }
21123             fi # end check jdk version
21124           fi # end check rt.jar
21125         fi # end check javac
21126       fi # end check java
21127     fi # end check boot jdk found
21128   fi
21129 
21130 
21131   if test "x$BOOT_JDK_FOUND" = xno; then
21132     # Now execute the test
21133 
21134   if test -x /usr/libexec/java_home; then
21135     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
21136     BOOT_JDK_FOUND=maybe
21137     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
21138 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
21139   fi
21140 
21141 
21142     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21143     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21144       # Do we have a bin/java?
21145       if test ! -x "$BOOT_JDK/bin/java"; then
21146         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21147 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21148         BOOT_JDK_FOUND=no
21149       else
21150         # Do we have a bin/javac?
21151         if test ! -x "$BOOT_JDK/bin/javac"; then
21152           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21153 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21154           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21155 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21156           BOOT_JDK_FOUND=no
21157         else
21158           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21159           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21160             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21161 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21162             BOOT_JDK_FOUND=no
21163           else
21164             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21165             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21166 
21167             # Extra M4 quote needed to protect [] in grep expression.
21168             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21169             if test "x$FOUND_CORRECT_VERSION" = x; then
21170               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21171 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21172               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21173 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21174               BOOT_JDK_FOUND=no
21175             else
21176               # We're done! :-)
21177               BOOT_JDK_FOUND=yes
21178 
21179   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21180 
21181   # Input might be given as Windows format, start by converting to
21182   # unix format.
21183   path="$BOOT_JDK"
21184   new_path=`$CYGPATH -u "$path"`
21185 
21186   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21187   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21188   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21189   # "foo.exe" is OK but "foo" is an error.
21190   #
21191   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21192   # It is also a way to make sure we got the proper file name for the real test later on.
21193   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21194   if test "x$test_shortpath" = x; then
21195     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21196 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21197     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21198   fi
21199 
21200   # Call helper function which possibly converts this using DOS-style short mode.
21201   # If so, the updated path is stored in $new_path.
21202 
21203   input_path="$new_path"
21204   # Check if we need to convert this using DOS-style short mode. If the path
21205   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21206   # take no chances and rewrite it.
21207   # Note: m4 eats our [], so we need to use [ and ] instead.
21208   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21209   if test "x$has_forbidden_chars" != x; then
21210     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21211     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21212     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21213     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21214       # Going to short mode and back again did indeed matter. Since short mode is
21215       # case insensitive, let's make it lowercase to improve readability.
21216       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21217       # Now convert it back to Unix-stile (cygpath)
21218       input_path=`$CYGPATH -u "$shortmode_path"`
21219       new_path="$input_path"
21220     fi
21221   fi
21222 
21223   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21224   if test "x$test_cygdrive_prefix" = x; then
21225     # As a simple fix, exclude /usr/bin since it's not a real path.
21226     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21227       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21228       # a path prefixed by /cygdrive for fixpath to work.
21229       new_path="$CYGWIN_ROOT_PATH$input_path"
21230     fi
21231   fi
21232 
21233 
21234   if test "x$path" != "x$new_path"; then
21235     BOOT_JDK="$new_path"
21236     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21237 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21238   fi
21239 
21240   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21241 
21242   path="$BOOT_JDK"
21243   has_colon=`$ECHO $path | $GREP ^.:`
21244   new_path="$path"
21245   if test "x$has_colon" = x; then
21246     # Not in mixed or Windows style, start by that.
21247     new_path=`cmd //c echo $path`
21248   fi
21249 
21250 
21251   input_path="$new_path"
21252   # Check if we need to convert this using DOS-style short mode. If the path
21253   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21254   # take no chances and rewrite it.
21255   # Note: m4 eats our [], so we need to use [ and ] instead.
21256   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21257   if test "x$has_forbidden_chars" != x; then
21258     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21259     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21260   fi
21261 
21262 
21263   windows_path="$new_path"
21264   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21265     unix_path=`$CYGPATH -u "$windows_path"`
21266     new_path="$unix_path"
21267   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21268     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21269     new_path="$unix_path"
21270   fi
21271 
21272   if test "x$path" != "x$new_path"; then
21273     BOOT_JDK="$new_path"
21274     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21275 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21276   fi
21277 
21278   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21279   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21280 
21281   else
21282     # We're on a posix platform. Hooray! :)
21283     path="$BOOT_JDK"
21284     has_space=`$ECHO "$path" | $GREP " "`
21285     if test "x$has_space" != x; then
21286       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21287 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21288       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21289     fi
21290 
21291     # Use eval to expand a potential ~
21292     eval path="$path"
21293     if test ! -f "$path" && test ! -d "$path"; then
21294       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21295     fi
21296 
21297     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21298   fi
21299 
21300               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21301 $as_echo_n "checking for Boot JDK... " >&6; }
21302               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21303 $as_echo "$BOOT_JDK" >&6; }
21304               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21305 $as_echo_n "checking Boot JDK version... " >&6; }
21306               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21307               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21308 $as_echo "$BOOT_JDK_VERSION" >&6; }
21309             fi # end check jdk version
21310           fi # end check rt.jar
21311         fi # end check javac
21312       fi # end check java
21313     fi # end check boot jdk found
21314   fi
21315 
21316   fi
21317 
21318 
21319     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21320     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21321       # Do we have a bin/java?
21322       if test ! -x "$BOOT_JDK/bin/java"; then
21323         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21324 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21325         BOOT_JDK_FOUND=no
21326       else
21327         # Do we have a bin/javac?
21328         if test ! -x "$BOOT_JDK/bin/javac"; then
21329           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21330 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21331           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21332 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21333           BOOT_JDK_FOUND=no
21334         else
21335           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21336           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21337             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21338 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21339             BOOT_JDK_FOUND=no
21340           else
21341             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21342             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21343 
21344             # Extra M4 quote needed to protect [] in grep expression.
21345             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21346             if test "x$FOUND_CORRECT_VERSION" = x; then
21347               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21348 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21349               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21350 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21351               BOOT_JDK_FOUND=no
21352             else
21353               # We're done! :-)
21354               BOOT_JDK_FOUND=yes
21355 
21356   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21357 
21358   # Input might be given as Windows format, start by converting to
21359   # unix format.
21360   path="$BOOT_JDK"
21361   new_path=`$CYGPATH -u "$path"`
21362 
21363   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21364   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21365   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21366   # "foo.exe" is OK but "foo" is an error.
21367   #
21368   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21369   # It is also a way to make sure we got the proper file name for the real test later on.
21370   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21371   if test "x$test_shortpath" = x; then
21372     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21373 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21374     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21375   fi
21376 
21377   # Call helper function which possibly converts this using DOS-style short mode.
21378   # If so, the updated path is stored in $new_path.
21379 
21380   input_path="$new_path"
21381   # Check if we need to convert this using DOS-style short mode. If the path
21382   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21383   # take no chances and rewrite it.
21384   # Note: m4 eats our [], so we need to use [ and ] instead.
21385   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21386   if test "x$has_forbidden_chars" != x; then
21387     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21388     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21389     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21390     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21391       # Going to short mode and back again did indeed matter. Since short mode is
21392       # case insensitive, let's make it lowercase to improve readability.
21393       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21394       # Now convert it back to Unix-stile (cygpath)
21395       input_path=`$CYGPATH -u "$shortmode_path"`
21396       new_path="$input_path"
21397     fi
21398   fi
21399 
21400   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21401   if test "x$test_cygdrive_prefix" = x; then
21402     # As a simple fix, exclude /usr/bin since it's not a real path.
21403     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21404       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21405       # a path prefixed by /cygdrive for fixpath to work.
21406       new_path="$CYGWIN_ROOT_PATH$input_path"
21407     fi
21408   fi
21409 
21410 
21411   if test "x$path" != "x$new_path"; then
21412     BOOT_JDK="$new_path"
21413     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21414 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21415   fi
21416 
21417   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21418 
21419   path="$BOOT_JDK"
21420   has_colon=`$ECHO $path | $GREP ^.:`
21421   new_path="$path"
21422   if test "x$has_colon" = x; then
21423     # Not in mixed or Windows style, start by that.
21424     new_path=`cmd //c echo $path`
21425   fi
21426 
21427 
21428   input_path="$new_path"
21429   # Check if we need to convert this using DOS-style short mode. If the path
21430   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21431   # take no chances and rewrite it.
21432   # Note: m4 eats our [], so we need to use [ and ] instead.
21433   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21434   if test "x$has_forbidden_chars" != x; then
21435     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21436     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21437   fi
21438 
21439 
21440   windows_path="$new_path"
21441   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21442     unix_path=`$CYGPATH -u "$windows_path"`
21443     new_path="$unix_path"
21444   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21445     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21446     new_path="$unix_path"
21447   fi
21448 
21449   if test "x$path" != "x$new_path"; then
21450     BOOT_JDK="$new_path"
21451     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21452 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21453   fi
21454 
21455   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21456   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21457 
21458   else
21459     # We're on a posix platform. Hooray! :)
21460     path="$BOOT_JDK"
21461     has_space=`$ECHO "$path" | $GREP " "`
21462     if test "x$has_space" != x; then
21463       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21464 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21465       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21466     fi
21467 
21468     # Use eval to expand a potential ~
21469     eval path="$path"
21470     if test ! -f "$path" && test ! -d "$path"; then
21471       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21472     fi
21473 
21474     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21475   fi
21476 
21477               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21478 $as_echo_n "checking for Boot JDK... " >&6; }
21479               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21480 $as_echo "$BOOT_JDK" >&6; }
21481               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21482 $as_echo_n "checking Boot JDK version... " >&6; }
21483               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21484               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21485 $as_echo "$BOOT_JDK_VERSION" >&6; }
21486             fi # end check jdk version
21487           fi # end check rt.jar
21488         fi # end check javac
21489       fi # end check java
21490     fi # end check boot jdk found
21491   fi
21492 
21493 
21494   # Test: Is $JAVA_HOME set?
21495 
21496   if test "x$BOOT_JDK_FOUND" = xno; then
21497     # Now execute the test
21498 
21499   if test "x$JAVA_HOME" != x; then
21500     JAVA_HOME_PROCESSED="$JAVA_HOME"
21501 
21502   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21503 
21504   # Input might be given as Windows format, start by converting to
21505   # unix format.
21506   path="$JAVA_HOME_PROCESSED"
21507   new_path=`$CYGPATH -u "$path"`
21508 
21509   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21510   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21511   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21512   # "foo.exe" is OK but "foo" is an error.
21513   #
21514   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21515   # It is also a way to make sure we got the proper file name for the real test later on.
21516   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21517   if test "x$test_shortpath" = x; then
21518     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21519 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21520     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21521   fi
21522 
21523   # Call helper function which possibly converts this using DOS-style short mode.
21524   # If so, the updated path is stored in $new_path.
21525 
21526   input_path="$new_path"
21527   # Check if we need to convert this using DOS-style short mode. If the path
21528   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21529   # take no chances and rewrite it.
21530   # Note: m4 eats our [], so we need to use [ and ] instead.
21531   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21532   if test "x$has_forbidden_chars" != x; then
21533     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21534     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21535     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21536     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21537       # Going to short mode and back again did indeed matter. Since short mode is
21538       # case insensitive, let's make it lowercase to improve readability.
21539       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21540       # Now convert it back to Unix-stile (cygpath)
21541       input_path=`$CYGPATH -u "$shortmode_path"`
21542       new_path="$input_path"
21543     fi
21544   fi
21545 
21546   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21547   if test "x$test_cygdrive_prefix" = x; then
21548     # As a simple fix, exclude /usr/bin since it's not a real path.
21549     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21550       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21551       # a path prefixed by /cygdrive for fixpath to work.
21552       new_path="$CYGWIN_ROOT_PATH$input_path"
21553     fi
21554   fi
21555 
21556 
21557   if test "x$path" != "x$new_path"; then
21558     JAVA_HOME_PROCESSED="$new_path"
21559     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21560 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21561   fi
21562 
21563   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21564 
21565   path="$JAVA_HOME_PROCESSED"
21566   has_colon=`$ECHO $path | $GREP ^.:`
21567   new_path="$path"
21568   if test "x$has_colon" = x; then
21569     # Not in mixed or Windows style, start by that.
21570     new_path=`cmd //c echo $path`
21571   fi
21572 
21573 
21574   input_path="$new_path"
21575   # Check if we need to convert this using DOS-style short mode. If the path
21576   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21577   # take no chances and rewrite it.
21578   # Note: m4 eats our [], so we need to use [ and ] instead.
21579   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21580   if test "x$has_forbidden_chars" != x; then
21581     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21582     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21583   fi
21584 
21585 
21586   windows_path="$new_path"
21587   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21588     unix_path=`$CYGPATH -u "$windows_path"`
21589     new_path="$unix_path"
21590   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21591     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21592     new_path="$unix_path"
21593   fi
21594 
21595   if test "x$path" != "x$new_path"; then
21596     JAVA_HOME_PROCESSED="$new_path"
21597     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21598 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21599   fi
21600 
21601   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21602   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21603 
21604   else
21605     # We're on a posix platform. Hooray! :)
21606     path="$JAVA_HOME_PROCESSED"
21607     has_space=`$ECHO "$path" | $GREP " "`
21608     if test "x$has_space" != x; then
21609       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21610 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21611       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21612     fi
21613 
21614     # Use eval to expand a potential ~
21615     eval path="$path"
21616     if test ! -f "$path" && test ! -d "$path"; then
21617       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21618     fi
21619 
21620     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21621   fi
21622 
21623     if test ! -d "$JAVA_HOME_PROCESSED"; then
21624       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21625 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21626     else
21627       # Aha, the user has set a JAVA_HOME
21628       # let us use that as the Boot JDK.
21629       BOOT_JDK="$JAVA_HOME_PROCESSED"
21630       BOOT_JDK_FOUND=maybe
21631       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21632 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21633     fi
21634   fi
21635 
21636 
21637     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21638     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21639       # Do we have a bin/java?
21640       if test ! -x "$BOOT_JDK/bin/java"; then
21641         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21642 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21643         BOOT_JDK_FOUND=no
21644       else
21645         # Do we have a bin/javac?
21646         if test ! -x "$BOOT_JDK/bin/javac"; then
21647           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21648 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21649           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21650 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21651           BOOT_JDK_FOUND=no
21652         else
21653           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21654           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21655             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21656 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21657             BOOT_JDK_FOUND=no
21658           else
21659             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21660             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21661 
21662             # Extra M4 quote needed to protect [] in grep expression.
21663             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21664             if test "x$FOUND_CORRECT_VERSION" = x; then
21665               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21666 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21667               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21668 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21669               BOOT_JDK_FOUND=no
21670             else
21671               # We're done! :-)
21672               BOOT_JDK_FOUND=yes
21673 
21674   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21675 
21676   # Input might be given as Windows format, start by converting to
21677   # unix format.
21678   path="$BOOT_JDK"
21679   new_path=`$CYGPATH -u "$path"`
21680 
21681   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21682   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21683   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21684   # "foo.exe" is OK but "foo" is an error.
21685   #
21686   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21687   # It is also a way to make sure we got the proper file name for the real test later on.
21688   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21689   if test "x$test_shortpath" = x; then
21690     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21691 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21692     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21693   fi
21694 
21695   # Call helper function which possibly converts this using DOS-style short mode.
21696   # If so, the updated path is stored in $new_path.
21697 
21698   input_path="$new_path"
21699   # Check if we need to convert this using DOS-style short mode. If the path
21700   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21701   # take no chances and rewrite it.
21702   # Note: m4 eats our [], so we need to use [ and ] instead.
21703   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21704   if test "x$has_forbidden_chars" != x; then
21705     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21706     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21707     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21708     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21709       # Going to short mode and back again did indeed matter. Since short mode is
21710       # case insensitive, let's make it lowercase to improve readability.
21711       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21712       # Now convert it back to Unix-stile (cygpath)
21713       input_path=`$CYGPATH -u "$shortmode_path"`
21714       new_path="$input_path"
21715     fi
21716   fi
21717 
21718   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21719   if test "x$test_cygdrive_prefix" = x; then
21720     # As a simple fix, exclude /usr/bin since it's not a real path.
21721     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21722       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21723       # a path prefixed by /cygdrive for fixpath to work.
21724       new_path="$CYGWIN_ROOT_PATH$input_path"
21725     fi
21726   fi
21727 
21728 
21729   if test "x$path" != "x$new_path"; then
21730     BOOT_JDK="$new_path"
21731     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21732 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21733   fi
21734 
21735   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21736 
21737   path="$BOOT_JDK"
21738   has_colon=`$ECHO $path | $GREP ^.:`
21739   new_path="$path"
21740   if test "x$has_colon" = x; then
21741     # Not in mixed or Windows style, start by that.
21742     new_path=`cmd //c echo $path`
21743   fi
21744 
21745 
21746   input_path="$new_path"
21747   # Check if we need to convert this using DOS-style short mode. If the path
21748   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21749   # take no chances and rewrite it.
21750   # Note: m4 eats our [], so we need to use [ and ] instead.
21751   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21752   if test "x$has_forbidden_chars" != x; then
21753     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21754     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21755   fi
21756 
21757 
21758   windows_path="$new_path"
21759   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21760     unix_path=`$CYGPATH -u "$windows_path"`
21761     new_path="$unix_path"
21762   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21763     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21764     new_path="$unix_path"
21765   fi
21766 
21767   if test "x$path" != "x$new_path"; then
21768     BOOT_JDK="$new_path"
21769     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21770 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21771   fi
21772 
21773   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21774   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21775 
21776   else
21777     # We're on a posix platform. Hooray! :)
21778     path="$BOOT_JDK"
21779     has_space=`$ECHO "$path" | $GREP " "`
21780     if test "x$has_space" != x; then
21781       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21782 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21783       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21784     fi
21785 
21786     # Use eval to expand a potential ~
21787     eval path="$path"
21788     if test ! -f "$path" && test ! -d "$path"; then
21789       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21790     fi
21791 
21792     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21793   fi
21794 
21795               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21796 $as_echo_n "checking for Boot JDK... " >&6; }
21797               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21798 $as_echo "$BOOT_JDK" >&6; }
21799               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21800 $as_echo_n "checking Boot JDK version... " >&6; }
21801               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21802               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21803 $as_echo "$BOOT_JDK_VERSION" >&6; }
21804             fi # end check jdk version
21805           fi # end check rt.jar
21806         fi # end check javac
21807       fi # end check java
21808     fi # end check boot jdk found
21809   fi
21810 
21811 
21812   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21813 
21814   if test "x$BOOT_JDK_FOUND" = xno; then
21815     # Now execute the test
21816 
21817   # Extract the first word of "javac", so it can be a program name with args.
21818 set dummy javac; ac_word=$2
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21820 $as_echo_n "checking for $ac_word... " >&6; }
21821 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21822   $as_echo_n "(cached) " >&6
21823 else
21824   case $JAVAC_CHECK in
21825   [\\/]* | ?:[\\/]*)
21826   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21827   ;;
21828   *)
21829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21830 for as_dir in $PATH
21831 do
21832   IFS=$as_save_IFS
21833   test -z "$as_dir" && as_dir=.
21834     for ac_exec_ext in '' $ac_executable_extensions; do
21835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21836     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21838     break 2
21839   fi
21840 done
21841   done
21842 IFS=$as_save_IFS
21843 
21844   ;;
21845 esac
21846 fi
21847 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21848 if test -n "$JAVAC_CHECK"; then
21849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21850 $as_echo "$JAVAC_CHECK" >&6; }
21851 else
21852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21853 $as_echo "no" >&6; }
21854 fi
21855 
21856 
21857   # Extract the first word of "java", so it can be a program name with args.
21858 set dummy java; ac_word=$2
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21860 $as_echo_n "checking for $ac_word... " >&6; }
21861 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21862   $as_echo_n "(cached) " >&6
21863 else
21864   case $JAVA_CHECK in
21865   [\\/]* | ?:[\\/]*)
21866   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21867   ;;
21868   *)
21869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21870 for as_dir in $PATH
21871 do
21872   IFS=$as_save_IFS
21873   test -z "$as_dir" && as_dir=.
21874     for ac_exec_ext in '' $ac_executable_extensions; do
21875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21876     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21878     break 2
21879   fi
21880 done
21881   done
21882 IFS=$as_save_IFS
21883 
21884   ;;
21885 esac
21886 fi
21887 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21888 if test -n "$JAVA_CHECK"; then
21889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21890 $as_echo "$JAVA_CHECK" >&6; }
21891 else
21892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21893 $as_echo "no" >&6; }
21894 fi
21895 
21896 
21897   BINARY="$JAVAC_CHECK"
21898   if test "x$JAVAC_CHECK" = x; then
21899     BINARY="$JAVA_CHECK"
21900   fi
21901   if test "x$BINARY" != x; then
21902     # So there is a java(c) binary, it might be part of a JDK.
21903     # Lets find the JDK/JRE directory by following symbolic links.
21904     # Linux/GNU systems often have links from /usr/bin/java to
21905     # /etc/alternatives/java to the real JDK binary.
21906 
21907   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21908     # Follow a chain of symbolic links. Use readlink
21909     # where it exists, else fall back to horribly
21910     # complicated shell code.
21911     if test "x$READLINK_TESTED" != yes; then
21912       # On MacOSX there is a readlink tool with a different
21913       # purpose than the GNU readlink tool. Check the found readlink.
21914       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21915       if test "x$ISGNU" = x; then
21916         # A readlink that we do not know how to use.
21917         # Are there other non-GNU readlinks out there?
21918         READLINK_TESTED=yes
21919         READLINK=
21920       fi
21921     fi
21922 
21923     if test "x$READLINK" != x; then
21924       BINARY=`$READLINK -f $BINARY`
21925     else
21926       # Save the current directory for restoring afterwards
21927       STARTDIR=$PWD
21928       COUNTER=0
21929       sym_link_dir=`$DIRNAME $BINARY`
21930       sym_link_file=`$BASENAME $BINARY`
21931       cd $sym_link_dir
21932       # Use -P flag to resolve symlinks in directories.
21933       cd `$THEPWDCMD -P`
21934       sym_link_dir=`$THEPWDCMD -P`
21935       # Resolve file symlinks
21936       while test $COUNTER -lt 20; do
21937         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21938         if test "x$ISLINK" == x; then
21939           # This is not a symbolic link! We are done!
21940           break
21941         fi
21942         # Again resolve directory symlinks since the target of the just found
21943         # link could be in a different directory
21944         cd `$DIRNAME $ISLINK`
21945         sym_link_dir=`$THEPWDCMD -P`
21946         sym_link_file=`$BASENAME $ISLINK`
21947         let COUNTER=COUNTER+1
21948       done
21949       cd $STARTDIR
21950       BINARY=$sym_link_dir/$sym_link_file
21951     fi
21952   fi
21953 
21954     BOOT_JDK=`dirname "$BINARY"`
21955     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21956     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21957       # Looks like we found ourselves an JDK
21958       BOOT_JDK_FOUND=maybe
21959       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21960 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21961     fi
21962   fi
21963 
21964 
21965     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21966     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21967       # Do we have a bin/java?
21968       if test ! -x "$BOOT_JDK/bin/java"; then
21969         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21971         BOOT_JDK_FOUND=no
21972       else
21973         # Do we have a bin/javac?
21974         if test ! -x "$BOOT_JDK/bin/javac"; then
21975           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21976 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21977           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21978 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21979           BOOT_JDK_FOUND=no
21980         else
21981           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21982           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21983             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21984 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21985             BOOT_JDK_FOUND=no
21986           else
21987             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21988             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21989 
21990             # Extra M4 quote needed to protect [] in grep expression.
21991             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21992             if test "x$FOUND_CORRECT_VERSION" = x; then
21993               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21994 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21995               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21996 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21997               BOOT_JDK_FOUND=no
21998             else
21999               # We're done! :-)
22000               BOOT_JDK_FOUND=yes
22001 
22002   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22003 
22004   # Input might be given as Windows format, start by converting to
22005   # unix format.
22006   path="$BOOT_JDK"
22007   new_path=`$CYGPATH -u "$path"`
22008 
22009   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22010   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22011   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22012   # "foo.exe" is OK but "foo" is an error.
22013   #
22014   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22015   # It is also a way to make sure we got the proper file name for the real test later on.
22016   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22017   if test "x$test_shortpath" = x; then
22018     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22019 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22020     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22021   fi
22022 
22023   # Call helper function which possibly converts this using DOS-style short mode.
22024   # If so, the updated path is stored in $new_path.
22025 
22026   input_path="$new_path"
22027   # Check if we need to convert this using DOS-style short mode. If the path
22028   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22029   # take no chances and rewrite it.
22030   # Note: m4 eats our [], so we need to use [ and ] instead.
22031   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22032   if test "x$has_forbidden_chars" != x; then
22033     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22034     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22035     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22036     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22037       # Going to short mode and back again did indeed matter. Since short mode is
22038       # case insensitive, let's make it lowercase to improve readability.
22039       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22040       # Now convert it back to Unix-stile (cygpath)
22041       input_path=`$CYGPATH -u "$shortmode_path"`
22042       new_path="$input_path"
22043     fi
22044   fi
22045 
22046   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22047   if test "x$test_cygdrive_prefix" = x; then
22048     # As a simple fix, exclude /usr/bin since it's not a real path.
22049     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22050       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22051       # a path prefixed by /cygdrive for fixpath to work.
22052       new_path="$CYGWIN_ROOT_PATH$input_path"
22053     fi
22054   fi
22055 
22056 
22057   if test "x$path" != "x$new_path"; then
22058     BOOT_JDK="$new_path"
22059     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22060 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22061   fi
22062 
22063   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22064 
22065   path="$BOOT_JDK"
22066   has_colon=`$ECHO $path | $GREP ^.:`
22067   new_path="$path"
22068   if test "x$has_colon" = x; then
22069     # Not in mixed or Windows style, start by that.
22070     new_path=`cmd //c echo $path`
22071   fi
22072 
22073 
22074   input_path="$new_path"
22075   # Check if we need to convert this using DOS-style short mode. If the path
22076   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22077   # take no chances and rewrite it.
22078   # Note: m4 eats our [], so we need to use [ and ] instead.
22079   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22080   if test "x$has_forbidden_chars" != x; then
22081     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22082     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22083   fi
22084 
22085 
22086   windows_path="$new_path"
22087   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22088     unix_path=`$CYGPATH -u "$windows_path"`
22089     new_path="$unix_path"
22090   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22091     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22092     new_path="$unix_path"
22093   fi
22094 
22095   if test "x$path" != "x$new_path"; then
22096     BOOT_JDK="$new_path"
22097     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22098 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22099   fi
22100 
22101   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22102   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22103 
22104   else
22105     # We're on a posix platform. Hooray! :)
22106     path="$BOOT_JDK"
22107     has_space=`$ECHO "$path" | $GREP " "`
22108     if test "x$has_space" != x; then
22109       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22110 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22111       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22112     fi
22113 
22114     # Use eval to expand a potential ~
22115     eval path="$path"
22116     if test ! -f "$path" && test ! -d "$path"; then
22117       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22118     fi
22119 
22120     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22121   fi
22122 
22123               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22124 $as_echo_n "checking for Boot JDK... " >&6; }
22125               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22126 $as_echo "$BOOT_JDK" >&6; }
22127               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22128 $as_echo_n "checking Boot JDK version... " >&6; }
22129               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22130               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22131 $as_echo "$BOOT_JDK_VERSION" >&6; }
22132             fi # end check jdk version
22133           fi # end check rt.jar
22134         fi # end check javac
22135       fi # end check java
22136     fi # end check boot jdk found
22137   fi
22138 
22139 
22140   # Test: Is there a JDK installed in default, well-known locations?
22141 
22142   if test "x$BOOT_JDK_FOUND" = xno; then
22143     # Now execute the test
22144 
22145   if test "x$OPENJDK_TARGET_OS" = xwindows; then
22146 
22147   if test "x$BOOT_JDK_FOUND" = xno; then
22148     # Now execute the test
22149 
22150   if test "x$ProgramW6432" != x; then
22151     VIRTUAL_DIR="$ProgramW6432/Java"
22152 
22153   windows_path="$VIRTUAL_DIR"
22154   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22155     unix_path=`$CYGPATH -u "$windows_path"`
22156     VIRTUAL_DIR="$unix_path"
22157   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22158     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22159     VIRTUAL_DIR="$unix_path"
22160   fi
22161 
22162 
22163   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22164   BOOT_JDK_SUFFIX=""
22165   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22166   if test "x$ALL_JDKS_FOUND" != x; then
22167     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22168 
22169   if test "x$BOOT_JDK_FOUND" = xno; then
22170     # Now execute the test
22171 
22172         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22173         if test -d "$BOOT_JDK"; then
22174           BOOT_JDK_FOUND=maybe
22175           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22176 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22177         fi
22178 
22179 
22180     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22181     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22182       # Do we have a bin/java?
22183       if test ! -x "$BOOT_JDK/bin/java"; then
22184         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22185 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22186         BOOT_JDK_FOUND=no
22187       else
22188         # Do we have a bin/javac?
22189         if test ! -x "$BOOT_JDK/bin/javac"; then
22190           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22191 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22192           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22193 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22194           BOOT_JDK_FOUND=no
22195         else
22196           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22197           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22198             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22200             BOOT_JDK_FOUND=no
22201           else
22202             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22203             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22204 
22205             # Extra M4 quote needed to protect [] in grep expression.
22206             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22207             if test "x$FOUND_CORRECT_VERSION" = x; then
22208               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22210               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22211 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22212               BOOT_JDK_FOUND=no
22213             else
22214               # We're done! :-)
22215               BOOT_JDK_FOUND=yes
22216 
22217   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22218 
22219   # Input might be given as Windows format, start by converting to
22220   # unix format.
22221   path="$BOOT_JDK"
22222   new_path=`$CYGPATH -u "$path"`
22223 
22224   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22225   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22226   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22227   # "foo.exe" is OK but "foo" is an error.
22228   #
22229   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22230   # It is also a way to make sure we got the proper file name for the real test later on.
22231   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22232   if test "x$test_shortpath" = x; then
22233     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22234 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22235     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22236   fi
22237 
22238   # Call helper function which possibly converts this using DOS-style short mode.
22239   # If so, the updated path is stored in $new_path.
22240 
22241   input_path="$new_path"
22242   # Check if we need to convert this using DOS-style short mode. If the path
22243   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22244   # take no chances and rewrite it.
22245   # Note: m4 eats our [], so we need to use [ and ] instead.
22246   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22247   if test "x$has_forbidden_chars" != x; then
22248     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22249     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22250     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22251     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22252       # Going to short mode and back again did indeed matter. Since short mode is
22253       # case insensitive, let's make it lowercase to improve readability.
22254       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22255       # Now convert it back to Unix-stile (cygpath)
22256       input_path=`$CYGPATH -u "$shortmode_path"`
22257       new_path="$input_path"
22258     fi
22259   fi
22260 
22261   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22262   if test "x$test_cygdrive_prefix" = x; then
22263     # As a simple fix, exclude /usr/bin since it's not a real path.
22264     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22265       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22266       # a path prefixed by /cygdrive for fixpath to work.
22267       new_path="$CYGWIN_ROOT_PATH$input_path"
22268     fi
22269   fi
22270 
22271 
22272   if test "x$path" != "x$new_path"; then
22273     BOOT_JDK="$new_path"
22274     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22275 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22276   fi
22277 
22278   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22279 
22280   path="$BOOT_JDK"
22281   has_colon=`$ECHO $path | $GREP ^.:`
22282   new_path="$path"
22283   if test "x$has_colon" = x; then
22284     # Not in mixed or Windows style, start by that.
22285     new_path=`cmd //c echo $path`
22286   fi
22287 
22288 
22289   input_path="$new_path"
22290   # Check if we need to convert this using DOS-style short mode. If the path
22291   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22292   # take no chances and rewrite it.
22293   # Note: m4 eats our [], so we need to use [ and ] instead.
22294   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22295   if test "x$has_forbidden_chars" != x; then
22296     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22297     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22298   fi
22299 
22300 
22301   windows_path="$new_path"
22302   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22303     unix_path=`$CYGPATH -u "$windows_path"`
22304     new_path="$unix_path"
22305   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22306     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22307     new_path="$unix_path"
22308   fi
22309 
22310   if test "x$path" != "x$new_path"; then
22311     BOOT_JDK="$new_path"
22312     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22313 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22314   fi
22315 
22316   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22317   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22318 
22319   else
22320     # We're on a posix platform. Hooray! :)
22321     path="$BOOT_JDK"
22322     has_space=`$ECHO "$path" | $GREP " "`
22323     if test "x$has_space" != x; then
22324       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22325 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22326       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22327     fi
22328 
22329     # Use eval to expand a potential ~
22330     eval path="$path"
22331     if test ! -f "$path" && test ! -d "$path"; then
22332       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22333     fi
22334 
22335     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22336   fi
22337 
22338               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22339 $as_echo_n "checking for Boot JDK... " >&6; }
22340               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22341 $as_echo "$BOOT_JDK" >&6; }
22342               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22343 $as_echo_n "checking Boot JDK version... " >&6; }
22344               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22345               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22346 $as_echo "$BOOT_JDK_VERSION" >&6; }
22347             fi # end check jdk version
22348           fi # end check rt.jar
22349         fi # end check javac
22350       fi # end check java
22351     fi # end check boot jdk found
22352   fi
22353 
22354     done
22355   fi
22356 
22357   fi
22358 
22359 
22360     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22361     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22362       # Do we have a bin/java?
22363       if test ! -x "$BOOT_JDK/bin/java"; then
22364         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22365 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22366         BOOT_JDK_FOUND=no
22367       else
22368         # Do we have a bin/javac?
22369         if test ! -x "$BOOT_JDK/bin/javac"; then
22370           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22371 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22372           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22373 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22374           BOOT_JDK_FOUND=no
22375         else
22376           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22377           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22378             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22379 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22380             BOOT_JDK_FOUND=no
22381           else
22382             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22383             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22384 
22385             # Extra M4 quote needed to protect [] in grep expression.
22386             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22387             if test "x$FOUND_CORRECT_VERSION" = x; then
22388               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22390               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22391 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22392               BOOT_JDK_FOUND=no
22393             else
22394               # We're done! :-)
22395               BOOT_JDK_FOUND=yes
22396 
22397   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22398 
22399   # Input might be given as Windows format, start by converting to
22400   # unix format.
22401   path="$BOOT_JDK"
22402   new_path=`$CYGPATH -u "$path"`
22403 
22404   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22405   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22406   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22407   # "foo.exe" is OK but "foo" is an error.
22408   #
22409   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22410   # It is also a way to make sure we got the proper file name for the real test later on.
22411   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22412   if test "x$test_shortpath" = x; then
22413     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22414 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22415     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22416   fi
22417 
22418   # Call helper function which possibly converts this using DOS-style short mode.
22419   # If so, the updated path is stored in $new_path.
22420 
22421   input_path="$new_path"
22422   # Check if we need to convert this using DOS-style short mode. If the path
22423   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22424   # take no chances and rewrite it.
22425   # Note: m4 eats our [], so we need to use [ and ] instead.
22426   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22427   if test "x$has_forbidden_chars" != x; then
22428     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22429     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22430     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22431     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22432       # Going to short mode and back again did indeed matter. Since short mode is
22433       # case insensitive, let's make it lowercase to improve readability.
22434       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22435       # Now convert it back to Unix-stile (cygpath)
22436       input_path=`$CYGPATH -u "$shortmode_path"`
22437       new_path="$input_path"
22438     fi
22439   fi
22440 
22441   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22442   if test "x$test_cygdrive_prefix" = x; then
22443     # As a simple fix, exclude /usr/bin since it's not a real path.
22444     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22445       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22446       # a path prefixed by /cygdrive for fixpath to work.
22447       new_path="$CYGWIN_ROOT_PATH$input_path"
22448     fi
22449   fi
22450 
22451 
22452   if test "x$path" != "x$new_path"; then
22453     BOOT_JDK="$new_path"
22454     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22455 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22456   fi
22457 
22458   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22459 
22460   path="$BOOT_JDK"
22461   has_colon=`$ECHO $path | $GREP ^.:`
22462   new_path="$path"
22463   if test "x$has_colon" = x; then
22464     # Not in mixed or Windows style, start by that.
22465     new_path=`cmd //c echo $path`
22466   fi
22467 
22468 
22469   input_path="$new_path"
22470   # Check if we need to convert this using DOS-style short mode. If the path
22471   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22472   # take no chances and rewrite it.
22473   # Note: m4 eats our [], so we need to use [ and ] instead.
22474   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22475   if test "x$has_forbidden_chars" != x; then
22476     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22477     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22478   fi
22479 
22480 
22481   windows_path="$new_path"
22482   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22483     unix_path=`$CYGPATH -u "$windows_path"`
22484     new_path="$unix_path"
22485   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22486     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22487     new_path="$unix_path"
22488   fi
22489 
22490   if test "x$path" != "x$new_path"; then
22491     BOOT_JDK="$new_path"
22492     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22493 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22494   fi
22495 
22496   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22497   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22498 
22499   else
22500     # We're on a posix platform. Hooray! :)
22501     path="$BOOT_JDK"
22502     has_space=`$ECHO "$path" | $GREP " "`
22503     if test "x$has_space" != x; then
22504       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22505 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22506       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22507     fi
22508 
22509     # Use eval to expand a potential ~
22510     eval path="$path"
22511     if test ! -f "$path" && test ! -d "$path"; then
22512       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22513     fi
22514 
22515     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22516   fi
22517 
22518               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22519 $as_echo_n "checking for Boot JDK... " >&6; }
22520               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22521 $as_echo "$BOOT_JDK" >&6; }
22522               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22523 $as_echo_n "checking Boot JDK version... " >&6; }
22524               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22525               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22526 $as_echo "$BOOT_JDK_VERSION" >&6; }
22527             fi # end check jdk version
22528           fi # end check rt.jar
22529         fi # end check javac
22530       fi # end check java
22531     fi # end check boot jdk found
22532   fi
22533 
22534 
22535   if test "x$BOOT_JDK_FOUND" = xno; then
22536     # Now execute the test
22537 
22538   if test "x$PROGRAMW6432" != x; then
22539     VIRTUAL_DIR="$PROGRAMW6432/Java"
22540 
22541   windows_path="$VIRTUAL_DIR"
22542   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22543     unix_path=`$CYGPATH -u "$windows_path"`
22544     VIRTUAL_DIR="$unix_path"
22545   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22546     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22547     VIRTUAL_DIR="$unix_path"
22548   fi
22549 
22550 
22551   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22552   BOOT_JDK_SUFFIX=""
22553   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22554   if test "x$ALL_JDKS_FOUND" != x; then
22555     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22556 
22557   if test "x$BOOT_JDK_FOUND" = xno; then
22558     # Now execute the test
22559 
22560         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22561         if test -d "$BOOT_JDK"; then
22562           BOOT_JDK_FOUND=maybe
22563           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22564 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22565         fi
22566 
22567 
22568     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22569     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22570       # Do we have a bin/java?
22571       if test ! -x "$BOOT_JDK/bin/java"; then
22572         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22573 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22574         BOOT_JDK_FOUND=no
22575       else
22576         # Do we have a bin/javac?
22577         if test ! -x "$BOOT_JDK/bin/javac"; then
22578           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22579 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22580           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22581 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22582           BOOT_JDK_FOUND=no
22583         else
22584           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22585           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22586             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22587 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22588             BOOT_JDK_FOUND=no
22589           else
22590             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22591             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22592 
22593             # Extra M4 quote needed to protect [] in grep expression.
22594             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22595             if test "x$FOUND_CORRECT_VERSION" = x; then
22596               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22597 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22598               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22599 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22600               BOOT_JDK_FOUND=no
22601             else
22602               # We're done! :-)
22603               BOOT_JDK_FOUND=yes
22604 
22605   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22606 
22607   # Input might be given as Windows format, start by converting to
22608   # unix format.
22609   path="$BOOT_JDK"
22610   new_path=`$CYGPATH -u "$path"`
22611 
22612   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22613   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22614   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22615   # "foo.exe" is OK but "foo" is an error.
22616   #
22617   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22618   # It is also a way to make sure we got the proper file name for the real test later on.
22619   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22620   if test "x$test_shortpath" = x; then
22621     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22622 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22623     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22624   fi
22625 
22626   # Call helper function which possibly converts this using DOS-style short mode.
22627   # If so, the updated path is stored in $new_path.
22628 
22629   input_path="$new_path"
22630   # Check if we need to convert this using DOS-style short mode. If the path
22631   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22632   # take no chances and rewrite it.
22633   # Note: m4 eats our [], so we need to use [ and ] instead.
22634   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22635   if test "x$has_forbidden_chars" != x; then
22636     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22637     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22638     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22639     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22640       # Going to short mode and back again did indeed matter. Since short mode is
22641       # case insensitive, let's make it lowercase to improve readability.
22642       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22643       # Now convert it back to Unix-stile (cygpath)
22644       input_path=`$CYGPATH -u "$shortmode_path"`
22645       new_path="$input_path"
22646     fi
22647   fi
22648 
22649   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22650   if test "x$test_cygdrive_prefix" = x; then
22651     # As a simple fix, exclude /usr/bin since it's not a real path.
22652     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22653       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22654       # a path prefixed by /cygdrive for fixpath to work.
22655       new_path="$CYGWIN_ROOT_PATH$input_path"
22656     fi
22657   fi
22658 
22659 
22660   if test "x$path" != "x$new_path"; then
22661     BOOT_JDK="$new_path"
22662     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22663 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22664   fi
22665 
22666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22667 
22668   path="$BOOT_JDK"
22669   has_colon=`$ECHO $path | $GREP ^.:`
22670   new_path="$path"
22671   if test "x$has_colon" = x; then
22672     # Not in mixed or Windows style, start by that.
22673     new_path=`cmd //c echo $path`
22674   fi
22675 
22676 
22677   input_path="$new_path"
22678   # Check if we need to convert this using DOS-style short mode. If the path
22679   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22680   # take no chances and rewrite it.
22681   # Note: m4 eats our [], so we need to use [ and ] instead.
22682   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22683   if test "x$has_forbidden_chars" != x; then
22684     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22685     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22686   fi
22687 
22688 
22689   windows_path="$new_path"
22690   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22691     unix_path=`$CYGPATH -u "$windows_path"`
22692     new_path="$unix_path"
22693   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22694     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22695     new_path="$unix_path"
22696   fi
22697 
22698   if test "x$path" != "x$new_path"; then
22699     BOOT_JDK="$new_path"
22700     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22701 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22702   fi
22703 
22704   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22705   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22706 
22707   else
22708     # We're on a posix platform. Hooray! :)
22709     path="$BOOT_JDK"
22710     has_space=`$ECHO "$path" | $GREP " "`
22711     if test "x$has_space" != x; then
22712       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22713 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22714       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22715     fi
22716 
22717     # Use eval to expand a potential ~
22718     eval path="$path"
22719     if test ! -f "$path" && test ! -d "$path"; then
22720       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22721     fi
22722 
22723     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22724   fi
22725 
22726               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22727 $as_echo_n "checking for Boot JDK... " >&6; }
22728               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22729 $as_echo "$BOOT_JDK" >&6; }
22730               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22731 $as_echo_n "checking Boot JDK version... " >&6; }
22732               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22733               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22734 $as_echo "$BOOT_JDK_VERSION" >&6; }
22735             fi # end check jdk version
22736           fi # end check rt.jar
22737         fi # end check javac
22738       fi # end check java
22739     fi # end check boot jdk found
22740   fi
22741 
22742     done
22743   fi
22744 
22745   fi
22746 
22747 
22748     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22749     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22750       # Do we have a bin/java?
22751       if test ! -x "$BOOT_JDK/bin/java"; then
22752         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22753 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22754         BOOT_JDK_FOUND=no
22755       else
22756         # Do we have a bin/javac?
22757         if test ! -x "$BOOT_JDK/bin/javac"; then
22758           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22759 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22760           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22761 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22762           BOOT_JDK_FOUND=no
22763         else
22764           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22765           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22766             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22767 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22768             BOOT_JDK_FOUND=no
22769           else
22770             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22771             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22772 
22773             # Extra M4 quote needed to protect [] in grep expression.
22774             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22775             if test "x$FOUND_CORRECT_VERSION" = x; then
22776               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22777 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22778               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22779 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22780               BOOT_JDK_FOUND=no
22781             else
22782               # We're done! :-)
22783               BOOT_JDK_FOUND=yes
22784 
22785   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22786 
22787   # Input might be given as Windows format, start by converting to
22788   # unix format.
22789   path="$BOOT_JDK"
22790   new_path=`$CYGPATH -u "$path"`
22791 
22792   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22793   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22794   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22795   # "foo.exe" is OK but "foo" is an error.
22796   #
22797   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22798   # It is also a way to make sure we got the proper file name for the real test later on.
22799   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22800   if test "x$test_shortpath" = x; then
22801     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22802 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22803     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22804   fi
22805 
22806   # Call helper function which possibly converts this using DOS-style short mode.
22807   # If so, the updated path is stored in $new_path.
22808 
22809   input_path="$new_path"
22810   # Check if we need to convert this using DOS-style short mode. If the path
22811   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22812   # take no chances and rewrite it.
22813   # Note: m4 eats our [], so we need to use [ and ] instead.
22814   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22815   if test "x$has_forbidden_chars" != x; then
22816     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22817     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22818     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22819     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22820       # Going to short mode and back again did indeed matter. Since short mode is
22821       # case insensitive, let's make it lowercase to improve readability.
22822       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22823       # Now convert it back to Unix-stile (cygpath)
22824       input_path=`$CYGPATH -u "$shortmode_path"`
22825       new_path="$input_path"
22826     fi
22827   fi
22828 
22829   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22830   if test "x$test_cygdrive_prefix" = x; then
22831     # As a simple fix, exclude /usr/bin since it's not a real path.
22832     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22833       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22834       # a path prefixed by /cygdrive for fixpath to work.
22835       new_path="$CYGWIN_ROOT_PATH$input_path"
22836     fi
22837   fi
22838 
22839 
22840   if test "x$path" != "x$new_path"; then
22841     BOOT_JDK="$new_path"
22842     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22843 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22844   fi
22845 
22846   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22847 
22848   path="$BOOT_JDK"
22849   has_colon=`$ECHO $path | $GREP ^.:`
22850   new_path="$path"
22851   if test "x$has_colon" = x; then
22852     # Not in mixed or Windows style, start by that.
22853     new_path=`cmd //c echo $path`
22854   fi
22855 
22856 
22857   input_path="$new_path"
22858   # Check if we need to convert this using DOS-style short mode. If the path
22859   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22860   # take no chances and rewrite it.
22861   # Note: m4 eats our [], so we need to use [ and ] instead.
22862   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22863   if test "x$has_forbidden_chars" != x; then
22864     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22865     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22866   fi
22867 
22868 
22869   windows_path="$new_path"
22870   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22871     unix_path=`$CYGPATH -u "$windows_path"`
22872     new_path="$unix_path"
22873   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22874     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22875     new_path="$unix_path"
22876   fi
22877 
22878   if test "x$path" != "x$new_path"; then
22879     BOOT_JDK="$new_path"
22880     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22881 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22882   fi
22883 
22884   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22885   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22886 
22887   else
22888     # We're on a posix platform. Hooray! :)
22889     path="$BOOT_JDK"
22890     has_space=`$ECHO "$path" | $GREP " "`
22891     if test "x$has_space" != x; then
22892       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22893 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22894       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22895     fi
22896 
22897     # Use eval to expand a potential ~
22898     eval path="$path"
22899     if test ! -f "$path" && test ! -d "$path"; then
22900       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22901     fi
22902 
22903     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22904   fi
22905 
22906               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22907 $as_echo_n "checking for Boot JDK... " >&6; }
22908               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22909 $as_echo "$BOOT_JDK" >&6; }
22910               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22911 $as_echo_n "checking Boot JDK version... " >&6; }
22912               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22913               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22914 $as_echo "$BOOT_JDK_VERSION" >&6; }
22915             fi # end check jdk version
22916           fi # end check rt.jar
22917         fi # end check javac
22918       fi # end check java
22919     fi # end check boot jdk found
22920   fi
22921 
22922 
22923   if test "x$BOOT_JDK_FOUND" = xno; then
22924     # Now execute the test
22925 
22926   if test "x$PROGRAMFILES" != x; then
22927     VIRTUAL_DIR="$PROGRAMFILES/Java"
22928 
22929   windows_path="$VIRTUAL_DIR"
22930   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22931     unix_path=`$CYGPATH -u "$windows_path"`
22932     VIRTUAL_DIR="$unix_path"
22933   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22934     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22935     VIRTUAL_DIR="$unix_path"
22936   fi
22937 
22938 
22939   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22940   BOOT_JDK_SUFFIX=""
22941   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22942   if test "x$ALL_JDKS_FOUND" != x; then
22943     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22944 
22945   if test "x$BOOT_JDK_FOUND" = xno; then
22946     # Now execute the test
22947 
22948         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22949         if test -d "$BOOT_JDK"; then
22950           BOOT_JDK_FOUND=maybe
22951           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22952 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22953         fi
22954 
22955 
22956     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22957     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22958       # Do we have a bin/java?
22959       if test ! -x "$BOOT_JDK/bin/java"; then
22960         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22961 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22962         BOOT_JDK_FOUND=no
22963       else
22964         # Do we have a bin/javac?
22965         if test ! -x "$BOOT_JDK/bin/javac"; then
22966           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22967 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22968           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22969 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22970           BOOT_JDK_FOUND=no
22971         else
22972           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22973           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22974             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22975 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22976             BOOT_JDK_FOUND=no
22977           else
22978             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22979             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22980 
22981             # Extra M4 quote needed to protect [] in grep expression.
22982             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22983             if test "x$FOUND_CORRECT_VERSION" = x; then
22984               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22985 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22986               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22987 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22988               BOOT_JDK_FOUND=no
22989             else
22990               # We're done! :-)
22991               BOOT_JDK_FOUND=yes
22992 
22993   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22994 
22995   # Input might be given as Windows format, start by converting to
22996   # unix format.
22997   path="$BOOT_JDK"
22998   new_path=`$CYGPATH -u "$path"`
22999 
23000   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23001   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23002   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23003   # "foo.exe" is OK but "foo" is an error.
23004   #
23005   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23006   # It is also a way to make sure we got the proper file name for the real test later on.
23007   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23008   if test "x$test_shortpath" = x; then
23009     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23010 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23011     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23012   fi
23013 
23014   # Call helper function which possibly converts this using DOS-style short mode.
23015   # If so, the updated path is stored in $new_path.
23016 
23017   input_path="$new_path"
23018   # Check if we need to convert this using DOS-style short mode. If the path
23019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23020   # take no chances and rewrite it.
23021   # Note: m4 eats our [], so we need to use [ and ] instead.
23022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23023   if test "x$has_forbidden_chars" != x; then
23024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23025     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23026     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23027     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23028       # Going to short mode and back again did indeed matter. Since short mode is
23029       # case insensitive, let's make it lowercase to improve readability.
23030       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23031       # Now convert it back to Unix-stile (cygpath)
23032       input_path=`$CYGPATH -u "$shortmode_path"`
23033       new_path="$input_path"
23034     fi
23035   fi
23036 
23037   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23038   if test "x$test_cygdrive_prefix" = x; then
23039     # As a simple fix, exclude /usr/bin since it's not a real path.
23040     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23041       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23042       # a path prefixed by /cygdrive for fixpath to work.
23043       new_path="$CYGWIN_ROOT_PATH$input_path"
23044     fi
23045   fi
23046 
23047 
23048   if test "x$path" != "x$new_path"; then
23049     BOOT_JDK="$new_path"
23050     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23051 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23052   fi
23053 
23054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23055 
23056   path="$BOOT_JDK"
23057   has_colon=`$ECHO $path | $GREP ^.:`
23058   new_path="$path"
23059   if test "x$has_colon" = x; then
23060     # Not in mixed or Windows style, start by that.
23061     new_path=`cmd //c echo $path`
23062   fi
23063 
23064 
23065   input_path="$new_path"
23066   # Check if we need to convert this using DOS-style short mode. If the path
23067   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23068   # take no chances and rewrite it.
23069   # Note: m4 eats our [], so we need to use [ and ] instead.
23070   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23071   if test "x$has_forbidden_chars" != x; then
23072     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23073     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23074   fi
23075 
23076 
23077   windows_path="$new_path"
23078   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23079     unix_path=`$CYGPATH -u "$windows_path"`
23080     new_path="$unix_path"
23081   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23082     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23083     new_path="$unix_path"
23084   fi
23085 
23086   if test "x$path" != "x$new_path"; then
23087     BOOT_JDK="$new_path"
23088     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23089 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23090   fi
23091 
23092   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23093   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23094 
23095   else
23096     # We're on a posix platform. Hooray! :)
23097     path="$BOOT_JDK"
23098     has_space=`$ECHO "$path" | $GREP " "`
23099     if test "x$has_space" != x; then
23100       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23101 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23102       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23103     fi
23104 
23105     # Use eval to expand a potential ~
23106     eval path="$path"
23107     if test ! -f "$path" && test ! -d "$path"; then
23108       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23109     fi
23110 
23111     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23112   fi
23113 
23114               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23115 $as_echo_n "checking for Boot JDK... " >&6; }
23116               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23117 $as_echo "$BOOT_JDK" >&6; }
23118               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23119 $as_echo_n "checking Boot JDK version... " >&6; }
23120               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23121               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23122 $as_echo "$BOOT_JDK_VERSION" >&6; }
23123             fi # end check jdk version
23124           fi # end check rt.jar
23125         fi # end check javac
23126       fi # end check java
23127     fi # end check boot jdk found
23128   fi
23129 
23130     done
23131   fi
23132 
23133   fi
23134 
23135 
23136     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23137     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23138       # Do we have a bin/java?
23139       if test ! -x "$BOOT_JDK/bin/java"; then
23140         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23141 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23142         BOOT_JDK_FOUND=no
23143       else
23144         # Do we have a bin/javac?
23145         if test ! -x "$BOOT_JDK/bin/javac"; then
23146           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23147 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23148           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23149 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23150           BOOT_JDK_FOUND=no
23151         else
23152           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23153           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23154             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23155 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23156             BOOT_JDK_FOUND=no
23157           else
23158             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23159             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23160 
23161             # Extra M4 quote needed to protect [] in grep expression.
23162             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23163             if test "x$FOUND_CORRECT_VERSION" = x; then
23164               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23165 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23166               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23167 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23168               BOOT_JDK_FOUND=no
23169             else
23170               # We're done! :-)
23171               BOOT_JDK_FOUND=yes
23172 
23173   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23174 
23175   # Input might be given as Windows format, start by converting to
23176   # unix format.
23177   path="$BOOT_JDK"
23178   new_path=`$CYGPATH -u "$path"`
23179 
23180   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23181   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23182   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23183   # "foo.exe" is OK but "foo" is an error.
23184   #
23185   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23186   # It is also a way to make sure we got the proper file name for the real test later on.
23187   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23188   if test "x$test_shortpath" = x; then
23189     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23190 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23191     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23192   fi
23193 
23194   # Call helper function which possibly converts this using DOS-style short mode.
23195   # If so, the updated path is stored in $new_path.
23196 
23197   input_path="$new_path"
23198   # Check if we need to convert this using DOS-style short mode. If the path
23199   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23200   # take no chances and rewrite it.
23201   # Note: m4 eats our [], so we need to use [ and ] instead.
23202   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23203   if test "x$has_forbidden_chars" != x; then
23204     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23205     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23206     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23207     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23208       # Going to short mode and back again did indeed matter. Since short mode is
23209       # case insensitive, let's make it lowercase to improve readability.
23210       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23211       # Now convert it back to Unix-stile (cygpath)
23212       input_path=`$CYGPATH -u "$shortmode_path"`
23213       new_path="$input_path"
23214     fi
23215   fi
23216 
23217   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23218   if test "x$test_cygdrive_prefix" = x; then
23219     # As a simple fix, exclude /usr/bin since it's not a real path.
23220     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23221       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23222       # a path prefixed by /cygdrive for fixpath to work.
23223       new_path="$CYGWIN_ROOT_PATH$input_path"
23224     fi
23225   fi
23226 
23227 
23228   if test "x$path" != "x$new_path"; then
23229     BOOT_JDK="$new_path"
23230     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23231 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23232   fi
23233 
23234   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23235 
23236   path="$BOOT_JDK"
23237   has_colon=`$ECHO $path | $GREP ^.:`
23238   new_path="$path"
23239   if test "x$has_colon" = x; then
23240     # Not in mixed or Windows style, start by that.
23241     new_path=`cmd //c echo $path`
23242   fi
23243 
23244 
23245   input_path="$new_path"
23246   # Check if we need to convert this using DOS-style short mode. If the path
23247   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23248   # take no chances and rewrite it.
23249   # Note: m4 eats our [], so we need to use [ and ] instead.
23250   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23251   if test "x$has_forbidden_chars" != x; then
23252     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23253     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23254   fi
23255 
23256 
23257   windows_path="$new_path"
23258   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23259     unix_path=`$CYGPATH -u "$windows_path"`
23260     new_path="$unix_path"
23261   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23262     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23263     new_path="$unix_path"
23264   fi
23265 
23266   if test "x$path" != "x$new_path"; then
23267     BOOT_JDK="$new_path"
23268     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23269 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23270   fi
23271 
23272   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23273   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23274 
23275   else
23276     # We're on a posix platform. Hooray! :)
23277     path="$BOOT_JDK"
23278     has_space=`$ECHO "$path" | $GREP " "`
23279     if test "x$has_space" != x; then
23280       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23282       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23283     fi
23284 
23285     # Use eval to expand a potential ~
23286     eval path="$path"
23287     if test ! -f "$path" && test ! -d "$path"; then
23288       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23289     fi
23290 
23291     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23292   fi
23293 
23294               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23295 $as_echo_n "checking for Boot JDK... " >&6; }
23296               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23297 $as_echo "$BOOT_JDK" >&6; }
23298               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23299 $as_echo_n "checking Boot JDK version... " >&6; }
23300               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23301               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23302 $as_echo "$BOOT_JDK_VERSION" >&6; }
23303             fi # end check jdk version
23304           fi # end check rt.jar
23305         fi # end check javac
23306       fi # end check java
23307     fi # end check boot jdk found
23308   fi
23309 
23310 
23311   if test "x$BOOT_JDK_FOUND" = xno; then
23312     # Now execute the test
23313 
23314   if test "x$ProgramFiles" != x; then
23315     VIRTUAL_DIR="$ProgramFiles/Java"
23316 
23317   windows_path="$VIRTUAL_DIR"
23318   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23319     unix_path=`$CYGPATH -u "$windows_path"`
23320     VIRTUAL_DIR="$unix_path"
23321   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23322     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23323     VIRTUAL_DIR="$unix_path"
23324   fi
23325 
23326 
23327   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
23328   BOOT_JDK_SUFFIX=""
23329   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23330   if test "x$ALL_JDKS_FOUND" != x; then
23331     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23332 
23333   if test "x$BOOT_JDK_FOUND" = xno; then
23334     # Now execute the test
23335 
23336         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23337         if test -d "$BOOT_JDK"; then
23338           BOOT_JDK_FOUND=maybe
23339           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23340 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23341         fi
23342 
23343 
23344     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23345     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23346       # Do we have a bin/java?
23347       if test ! -x "$BOOT_JDK/bin/java"; then
23348         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23349 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23350         BOOT_JDK_FOUND=no
23351       else
23352         # Do we have a bin/javac?
23353         if test ! -x "$BOOT_JDK/bin/javac"; then
23354           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23355 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23356           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23357 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23358           BOOT_JDK_FOUND=no
23359         else
23360           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23361           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23362             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23363 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23364             BOOT_JDK_FOUND=no
23365           else
23366             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23367             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23368 
23369             # Extra M4 quote needed to protect [] in grep expression.
23370             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23371             if test "x$FOUND_CORRECT_VERSION" = x; then
23372               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23373 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23374               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23375 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23376               BOOT_JDK_FOUND=no
23377             else
23378               # We're done! :-)
23379               BOOT_JDK_FOUND=yes
23380 
23381   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23382 
23383   # Input might be given as Windows format, start by converting to
23384   # unix format.
23385   path="$BOOT_JDK"
23386   new_path=`$CYGPATH -u "$path"`
23387 
23388   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23389   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23390   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23391   # "foo.exe" is OK but "foo" is an error.
23392   #
23393   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23394   # It is also a way to make sure we got the proper file name for the real test later on.
23395   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23396   if test "x$test_shortpath" = x; then
23397     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23398 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23399     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23400   fi
23401 
23402   # Call helper function which possibly converts this using DOS-style short mode.
23403   # If so, the updated path is stored in $new_path.
23404 
23405   input_path="$new_path"
23406   # Check if we need to convert this using DOS-style short mode. If the path
23407   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23408   # take no chances and rewrite it.
23409   # Note: m4 eats our [], so we need to use [ and ] instead.
23410   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23411   if test "x$has_forbidden_chars" != x; then
23412     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23413     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23414     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23415     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23416       # Going to short mode and back again did indeed matter. Since short mode is
23417       # case insensitive, let's make it lowercase to improve readability.
23418       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23419       # Now convert it back to Unix-stile (cygpath)
23420       input_path=`$CYGPATH -u "$shortmode_path"`
23421       new_path="$input_path"
23422     fi
23423   fi
23424 
23425   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23426   if test "x$test_cygdrive_prefix" = x; then
23427     # As a simple fix, exclude /usr/bin since it's not a real path.
23428     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23429       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23430       # a path prefixed by /cygdrive for fixpath to work.
23431       new_path="$CYGWIN_ROOT_PATH$input_path"
23432     fi
23433   fi
23434 
23435 
23436   if test "x$path" != "x$new_path"; then
23437     BOOT_JDK="$new_path"
23438     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23439 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23440   fi
23441 
23442   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23443 
23444   path="$BOOT_JDK"
23445   has_colon=`$ECHO $path | $GREP ^.:`
23446   new_path="$path"
23447   if test "x$has_colon" = x; then
23448     # Not in mixed or Windows style, start by that.
23449     new_path=`cmd //c echo $path`
23450   fi
23451 
23452 
23453   input_path="$new_path"
23454   # Check if we need to convert this using DOS-style short mode. If the path
23455   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23456   # take no chances and rewrite it.
23457   # Note: m4 eats our [], so we need to use [ and ] instead.
23458   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23459   if test "x$has_forbidden_chars" != x; then
23460     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23461     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23462   fi
23463 
23464 
23465   windows_path="$new_path"
23466   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23467     unix_path=`$CYGPATH -u "$windows_path"`
23468     new_path="$unix_path"
23469   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23470     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23471     new_path="$unix_path"
23472   fi
23473 
23474   if test "x$path" != "x$new_path"; then
23475     BOOT_JDK="$new_path"
23476     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23477 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23478   fi
23479 
23480   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23481   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23482 
23483   else
23484     # We're on a posix platform. Hooray! :)
23485     path="$BOOT_JDK"
23486     has_space=`$ECHO "$path" | $GREP " "`
23487     if test "x$has_space" != x; then
23488       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23489 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23490       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23491     fi
23492 
23493     # Use eval to expand a potential ~
23494     eval path="$path"
23495     if test ! -f "$path" && test ! -d "$path"; then
23496       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23497     fi
23498 
23499     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23500   fi
23501 
23502               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23503 $as_echo_n "checking for Boot JDK... " >&6; }
23504               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23505 $as_echo "$BOOT_JDK" >&6; }
23506               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23507 $as_echo_n "checking Boot JDK version... " >&6; }
23508               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23509               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23510 $as_echo "$BOOT_JDK_VERSION" >&6; }
23511             fi # end check jdk version
23512           fi # end check rt.jar
23513         fi # end check javac
23514       fi # end check java
23515     fi # end check boot jdk found
23516   fi
23517 
23518     done
23519   fi
23520 
23521   fi
23522 
23523 
23524     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23525     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23526       # Do we have a bin/java?
23527       if test ! -x "$BOOT_JDK/bin/java"; then
23528         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23529 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23530         BOOT_JDK_FOUND=no
23531       else
23532         # Do we have a bin/javac?
23533         if test ! -x "$BOOT_JDK/bin/javac"; then
23534           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23535 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23536           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23537 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23538           BOOT_JDK_FOUND=no
23539         else
23540           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23541           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23542             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23543 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23544             BOOT_JDK_FOUND=no
23545           else
23546             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23547             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23548 
23549             # Extra M4 quote needed to protect [] in grep expression.
23550             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23551             if test "x$FOUND_CORRECT_VERSION" = x; then
23552               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23553 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23554               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23555 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23556               BOOT_JDK_FOUND=no
23557             else
23558               # We're done! :-)
23559               BOOT_JDK_FOUND=yes
23560 
23561   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23562 
23563   # Input might be given as Windows format, start by converting to
23564   # unix format.
23565   path="$BOOT_JDK"
23566   new_path=`$CYGPATH -u "$path"`
23567 
23568   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23569   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23570   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23571   # "foo.exe" is OK but "foo" is an error.
23572   #
23573   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23574   # It is also a way to make sure we got the proper file name for the real test later on.
23575   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23576   if test "x$test_shortpath" = x; then
23577     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23578 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23579     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23580   fi
23581 
23582   # Call helper function which possibly converts this using DOS-style short mode.
23583   # If so, the updated path is stored in $new_path.
23584 
23585   input_path="$new_path"
23586   # Check if we need to convert this using DOS-style short mode. If the path
23587   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23588   # take no chances and rewrite it.
23589   # Note: m4 eats our [], so we need to use [ and ] instead.
23590   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23591   if test "x$has_forbidden_chars" != x; then
23592     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23593     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23594     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23595     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23596       # Going to short mode and back again did indeed matter. Since short mode is
23597       # case insensitive, let's make it lowercase to improve readability.
23598       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23599       # Now convert it back to Unix-stile (cygpath)
23600       input_path=`$CYGPATH -u "$shortmode_path"`
23601       new_path="$input_path"
23602     fi
23603   fi
23604 
23605   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23606   if test "x$test_cygdrive_prefix" = x; then
23607     # As a simple fix, exclude /usr/bin since it's not a real path.
23608     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23609       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23610       # a path prefixed by /cygdrive for fixpath to work.
23611       new_path="$CYGWIN_ROOT_PATH$input_path"
23612     fi
23613   fi
23614 
23615 
23616   if test "x$path" != "x$new_path"; then
23617     BOOT_JDK="$new_path"
23618     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23619 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23620   fi
23621 
23622   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23623 
23624   path="$BOOT_JDK"
23625   has_colon=`$ECHO $path | $GREP ^.:`
23626   new_path="$path"
23627   if test "x$has_colon" = x; then
23628     # Not in mixed or Windows style, start by that.
23629     new_path=`cmd //c echo $path`
23630   fi
23631 
23632 
23633   input_path="$new_path"
23634   # Check if we need to convert this using DOS-style short mode. If the path
23635   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23636   # take no chances and rewrite it.
23637   # Note: m4 eats our [], so we need to use [ and ] instead.
23638   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23639   if test "x$has_forbidden_chars" != x; then
23640     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23641     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23642   fi
23643 
23644 
23645   windows_path="$new_path"
23646   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23647     unix_path=`$CYGPATH -u "$windows_path"`
23648     new_path="$unix_path"
23649   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23650     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23651     new_path="$unix_path"
23652   fi
23653 
23654   if test "x$path" != "x$new_path"; then
23655     BOOT_JDK="$new_path"
23656     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23657 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23658   fi
23659 
23660   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23661   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23662 
23663   else
23664     # We're on a posix platform. Hooray! :)
23665     path="$BOOT_JDK"
23666     has_space=`$ECHO "$path" | $GREP " "`
23667     if test "x$has_space" != x; then
23668       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23670       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23671     fi
23672 
23673     # Use eval to expand a potential ~
23674     eval path="$path"
23675     if test ! -f "$path" && test ! -d "$path"; then
23676       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23677     fi
23678 
23679     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23680   fi
23681 
23682               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23683 $as_echo_n "checking for Boot JDK... " >&6; }
23684               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23685 $as_echo "$BOOT_JDK" >&6; }
23686               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23687 $as_echo_n "checking Boot JDK version... " >&6; }
23688               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23689               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23690 $as_echo "$BOOT_JDK_VERSION" >&6; }
23691             fi # end check jdk version
23692           fi # end check rt.jar
23693         fi # end check javac
23694       fi # end check java
23695     fi # end check boot jdk found
23696   fi
23697 
23698 
23699   if test "x$BOOT_JDK_FOUND" = xno; then
23700     # Now execute the test
23701 
23702   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23703   BOOT_JDK_SUFFIX=""
23704   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23705   if test "x$ALL_JDKS_FOUND" != x; then
23706     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23707 
23708   if test "x$BOOT_JDK_FOUND" = xno; then
23709     # Now execute the test
23710 
23711         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23712         if test -d "$BOOT_JDK"; then
23713           BOOT_JDK_FOUND=maybe
23714           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23715 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23716         fi
23717 
23718 
23719     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23720     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23721       # Do we have a bin/java?
23722       if test ! -x "$BOOT_JDK/bin/java"; then
23723         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23724 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23725         BOOT_JDK_FOUND=no
23726       else
23727         # Do we have a bin/javac?
23728         if test ! -x "$BOOT_JDK/bin/javac"; then
23729           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23731           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23732 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23733           BOOT_JDK_FOUND=no
23734         else
23735           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23736           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23737             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23738 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23739             BOOT_JDK_FOUND=no
23740           else
23741             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23742             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23743 
23744             # Extra M4 quote needed to protect [] in grep expression.
23745             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23746             if test "x$FOUND_CORRECT_VERSION" = x; then
23747               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23749               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23750 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23751               BOOT_JDK_FOUND=no
23752             else
23753               # We're done! :-)
23754               BOOT_JDK_FOUND=yes
23755 
23756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23757 
23758   # Input might be given as Windows format, start by converting to
23759   # unix format.
23760   path="$BOOT_JDK"
23761   new_path=`$CYGPATH -u "$path"`
23762 
23763   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23764   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23765   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23766   # "foo.exe" is OK but "foo" is an error.
23767   #
23768   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23769   # It is also a way to make sure we got the proper file name for the real test later on.
23770   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23771   if test "x$test_shortpath" = x; then
23772     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23773 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23774     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23775   fi
23776 
23777   # Call helper function which possibly converts this using DOS-style short mode.
23778   # If so, the updated path is stored in $new_path.
23779 
23780   input_path="$new_path"
23781   # Check if we need to convert this using DOS-style short mode. If the path
23782   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23783   # take no chances and rewrite it.
23784   # Note: m4 eats our [], so we need to use [ and ] instead.
23785   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23786   if test "x$has_forbidden_chars" != x; then
23787     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23788     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23789     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23790     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23791       # Going to short mode and back again did indeed matter. Since short mode is
23792       # case insensitive, let's make it lowercase to improve readability.
23793       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23794       # Now convert it back to Unix-stile (cygpath)
23795       input_path=`$CYGPATH -u "$shortmode_path"`
23796       new_path="$input_path"
23797     fi
23798   fi
23799 
23800   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23801   if test "x$test_cygdrive_prefix" = x; then
23802     # As a simple fix, exclude /usr/bin since it's not a real path.
23803     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23804       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23805       # a path prefixed by /cygdrive for fixpath to work.
23806       new_path="$CYGWIN_ROOT_PATH$input_path"
23807     fi
23808   fi
23809 
23810 
23811   if test "x$path" != "x$new_path"; then
23812     BOOT_JDK="$new_path"
23813     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23814 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23815   fi
23816 
23817   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23818 
23819   path="$BOOT_JDK"
23820   has_colon=`$ECHO $path | $GREP ^.:`
23821   new_path="$path"
23822   if test "x$has_colon" = x; then
23823     # Not in mixed or Windows style, start by that.
23824     new_path=`cmd //c echo $path`
23825   fi
23826 
23827 
23828   input_path="$new_path"
23829   # Check if we need to convert this using DOS-style short mode. If the path
23830   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23831   # take no chances and rewrite it.
23832   # Note: m4 eats our [], so we need to use [ and ] instead.
23833   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23834   if test "x$has_forbidden_chars" != x; then
23835     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23836     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23837   fi
23838 
23839 
23840   windows_path="$new_path"
23841   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23842     unix_path=`$CYGPATH -u "$windows_path"`
23843     new_path="$unix_path"
23844   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23845     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23846     new_path="$unix_path"
23847   fi
23848 
23849   if test "x$path" != "x$new_path"; then
23850     BOOT_JDK="$new_path"
23851     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23852 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23853   fi
23854 
23855   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23856   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23857 
23858   else
23859     # We're on a posix platform. Hooray! :)
23860     path="$BOOT_JDK"
23861     has_space=`$ECHO "$path" | $GREP " "`
23862     if test "x$has_space" != x; then
23863       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23864 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23865       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23866     fi
23867 
23868     # Use eval to expand a potential ~
23869     eval path="$path"
23870     if test ! -f "$path" && test ! -d "$path"; then
23871       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23872     fi
23873 
23874     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23875   fi
23876 
23877               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23878 $as_echo_n "checking for Boot JDK... " >&6; }
23879               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23880 $as_echo "$BOOT_JDK" >&6; }
23881               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23882 $as_echo_n "checking Boot JDK version... " >&6; }
23883               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23884               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23885 $as_echo "$BOOT_JDK_VERSION" >&6; }
23886             fi # end check jdk version
23887           fi # end check rt.jar
23888         fi # end check javac
23889       fi # end check java
23890     fi # end check boot jdk found
23891   fi
23892 
23893     done
23894   fi
23895 
23896 
23897     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23898     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23899       # Do we have a bin/java?
23900       if test ! -x "$BOOT_JDK/bin/java"; then
23901         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23902 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23903         BOOT_JDK_FOUND=no
23904       else
23905         # Do we have a bin/javac?
23906         if test ! -x "$BOOT_JDK/bin/javac"; then
23907           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23908 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23909           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23910 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23911           BOOT_JDK_FOUND=no
23912         else
23913           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23914           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23915             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23916 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23917             BOOT_JDK_FOUND=no
23918           else
23919             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23920             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23921 
23922             # Extra M4 quote needed to protect [] in grep expression.
23923             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23924             if test "x$FOUND_CORRECT_VERSION" = x; then
23925               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23926 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23927               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23928 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23929               BOOT_JDK_FOUND=no
23930             else
23931               # We're done! :-)
23932               BOOT_JDK_FOUND=yes
23933 
23934   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23935 
23936   # Input might be given as Windows format, start by converting to
23937   # unix format.
23938   path="$BOOT_JDK"
23939   new_path=`$CYGPATH -u "$path"`
23940 
23941   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23942   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23943   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23944   # "foo.exe" is OK but "foo" is an error.
23945   #
23946   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23947   # It is also a way to make sure we got the proper file name for the real test later on.
23948   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23949   if test "x$test_shortpath" = x; then
23950     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23951 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23952     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23953   fi
23954 
23955   # Call helper function which possibly converts this using DOS-style short mode.
23956   # If so, the updated path is stored in $new_path.
23957 
23958   input_path="$new_path"
23959   # Check if we need to convert this using DOS-style short mode. If the path
23960   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23961   # take no chances and rewrite it.
23962   # Note: m4 eats our [], so we need to use [ and ] instead.
23963   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23964   if test "x$has_forbidden_chars" != x; then
23965     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23966     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23967     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23968     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23969       # Going to short mode and back again did indeed matter. Since short mode is
23970       # case insensitive, let's make it lowercase to improve readability.
23971       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23972       # Now convert it back to Unix-stile (cygpath)
23973       input_path=`$CYGPATH -u "$shortmode_path"`
23974       new_path="$input_path"
23975     fi
23976   fi
23977 
23978   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23979   if test "x$test_cygdrive_prefix" = x; then
23980     # As a simple fix, exclude /usr/bin since it's not a real path.
23981     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23982       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23983       # a path prefixed by /cygdrive for fixpath to work.
23984       new_path="$CYGWIN_ROOT_PATH$input_path"
23985     fi
23986   fi
23987 
23988 
23989   if test "x$path" != "x$new_path"; then
23990     BOOT_JDK="$new_path"
23991     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23992 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23993   fi
23994 
23995   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23996 
23997   path="$BOOT_JDK"
23998   has_colon=`$ECHO $path | $GREP ^.:`
23999   new_path="$path"
24000   if test "x$has_colon" = x; then
24001     # Not in mixed or Windows style, start by that.
24002     new_path=`cmd //c echo $path`
24003   fi
24004 
24005 
24006   input_path="$new_path"
24007   # Check if we need to convert this using DOS-style short mode. If the path
24008   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24009   # take no chances and rewrite it.
24010   # Note: m4 eats our [], so we need to use [ and ] instead.
24011   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24012   if test "x$has_forbidden_chars" != x; then
24013     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24014     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24015   fi
24016 
24017 
24018   windows_path="$new_path"
24019   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24020     unix_path=`$CYGPATH -u "$windows_path"`
24021     new_path="$unix_path"
24022   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24023     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24024     new_path="$unix_path"
24025   fi
24026 
24027   if test "x$path" != "x$new_path"; then
24028     BOOT_JDK="$new_path"
24029     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24030 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24031   fi
24032 
24033   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24034   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24035 
24036   else
24037     # We're on a posix platform. Hooray! :)
24038     path="$BOOT_JDK"
24039     has_space=`$ECHO "$path" | $GREP " "`
24040     if test "x$has_space" != x; then
24041       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24042 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24043       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24044     fi
24045 
24046     # Use eval to expand a potential ~
24047     eval path="$path"
24048     if test ! -f "$path" && test ! -d "$path"; then
24049       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24050     fi
24051 
24052     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24053   fi
24054 
24055               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24056 $as_echo_n "checking for Boot JDK... " >&6; }
24057               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24058 $as_echo "$BOOT_JDK" >&6; }
24059               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24060 $as_echo_n "checking Boot JDK version... " >&6; }
24061               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24062               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24063 $as_echo "$BOOT_JDK_VERSION" >&6; }
24064             fi # end check jdk version
24065           fi # end check rt.jar
24066         fi # end check javac
24067       fi # end check java
24068     fi # end check boot jdk found
24069   fi
24070 
24071   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
24072 
24073   if test "x$BOOT_JDK_FOUND" = xno; then
24074     # Now execute the test
24075 
24076   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
24077   BOOT_JDK_SUFFIX="/Contents/Home"
24078   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24079   if test "x$ALL_JDKS_FOUND" != x; then
24080     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24081 
24082   if test "x$BOOT_JDK_FOUND" = xno; then
24083     # Now execute the test
24084 
24085         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24086         if test -d "$BOOT_JDK"; then
24087           BOOT_JDK_FOUND=maybe
24088           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24089 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24090         fi
24091 
24092 
24093     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24094     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24095       # Do we have a bin/java?
24096       if test ! -x "$BOOT_JDK/bin/java"; then
24097         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24098 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24099         BOOT_JDK_FOUND=no
24100       else
24101         # Do we have a bin/javac?
24102         if test ! -x "$BOOT_JDK/bin/javac"; then
24103           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24104 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24105           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24106 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24107           BOOT_JDK_FOUND=no
24108         else
24109           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24110           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24111             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24112 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24113             BOOT_JDK_FOUND=no
24114           else
24115             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24116             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24117 
24118             # Extra M4 quote needed to protect [] in grep expression.
24119             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24120             if test "x$FOUND_CORRECT_VERSION" = x; then
24121               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24123               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24124 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24125               BOOT_JDK_FOUND=no
24126             else
24127               # We're done! :-)
24128               BOOT_JDK_FOUND=yes
24129 
24130   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24131 
24132   # Input might be given as Windows format, start by converting to
24133   # unix format.
24134   path="$BOOT_JDK"
24135   new_path=`$CYGPATH -u "$path"`
24136 
24137   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24138   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24139   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24140   # "foo.exe" is OK but "foo" is an error.
24141   #
24142   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24143   # It is also a way to make sure we got the proper file name for the real test later on.
24144   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24145   if test "x$test_shortpath" = x; then
24146     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24147 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24148     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24149   fi
24150 
24151   # Call helper function which possibly converts this using DOS-style short mode.
24152   # If so, the updated path is stored in $new_path.
24153 
24154   input_path="$new_path"
24155   # Check if we need to convert this using DOS-style short mode. If the path
24156   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24157   # take no chances and rewrite it.
24158   # Note: m4 eats our [], so we need to use [ and ] instead.
24159   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24160   if test "x$has_forbidden_chars" != x; then
24161     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24162     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24163     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24164     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24165       # Going to short mode and back again did indeed matter. Since short mode is
24166       # case insensitive, let's make it lowercase to improve readability.
24167       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24168       # Now convert it back to Unix-stile (cygpath)
24169       input_path=`$CYGPATH -u "$shortmode_path"`
24170       new_path="$input_path"
24171     fi
24172   fi
24173 
24174   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24175   if test "x$test_cygdrive_prefix" = x; then
24176     # As a simple fix, exclude /usr/bin since it's not a real path.
24177     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24178       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24179       # a path prefixed by /cygdrive for fixpath to work.
24180       new_path="$CYGWIN_ROOT_PATH$input_path"
24181     fi
24182   fi
24183 
24184 
24185   if test "x$path" != "x$new_path"; then
24186     BOOT_JDK="$new_path"
24187     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24188 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24189   fi
24190 
24191   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24192 
24193   path="$BOOT_JDK"
24194   has_colon=`$ECHO $path | $GREP ^.:`
24195   new_path="$path"
24196   if test "x$has_colon" = x; then
24197     # Not in mixed or Windows style, start by that.
24198     new_path=`cmd //c echo $path`
24199   fi
24200 
24201 
24202   input_path="$new_path"
24203   # Check if we need to convert this using DOS-style short mode. If the path
24204   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24205   # take no chances and rewrite it.
24206   # Note: m4 eats our [], so we need to use [ and ] instead.
24207   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24208   if test "x$has_forbidden_chars" != x; then
24209     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24210     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24211   fi
24212 
24213 
24214   windows_path="$new_path"
24215   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24216     unix_path=`$CYGPATH -u "$windows_path"`
24217     new_path="$unix_path"
24218   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24219     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24220     new_path="$unix_path"
24221   fi
24222 
24223   if test "x$path" != "x$new_path"; then
24224     BOOT_JDK="$new_path"
24225     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24226 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24227   fi
24228 
24229   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24230   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24231 
24232   else
24233     # We're on a posix platform. Hooray! :)
24234     path="$BOOT_JDK"
24235     has_space=`$ECHO "$path" | $GREP " "`
24236     if test "x$has_space" != x; then
24237       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24238 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24239       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24240     fi
24241 
24242     # Use eval to expand a potential ~
24243     eval path="$path"
24244     if test ! -f "$path" && test ! -d "$path"; then
24245       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24246     fi
24247 
24248     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24249   fi
24250 
24251               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24252 $as_echo_n "checking for Boot JDK... " >&6; }
24253               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24254 $as_echo "$BOOT_JDK" >&6; }
24255               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24256 $as_echo_n "checking Boot JDK version... " >&6; }
24257               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24258               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24259 $as_echo "$BOOT_JDK_VERSION" >&6; }
24260             fi # end check jdk version
24261           fi # end check rt.jar
24262         fi # end check javac
24263       fi # end check java
24264     fi # end check boot jdk found
24265   fi
24266 
24267     done
24268   fi
24269 
24270 
24271     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24272     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24273       # Do we have a bin/java?
24274       if test ! -x "$BOOT_JDK/bin/java"; then
24275         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24276 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24277         BOOT_JDK_FOUND=no
24278       else
24279         # Do we have a bin/javac?
24280         if test ! -x "$BOOT_JDK/bin/javac"; then
24281           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24282 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24283           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24284 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24285           BOOT_JDK_FOUND=no
24286         else
24287           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24288           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24289             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24290 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24291             BOOT_JDK_FOUND=no
24292           else
24293             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24294             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24295 
24296             # Extra M4 quote needed to protect [] in grep expression.
24297             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24298             if test "x$FOUND_CORRECT_VERSION" = x; then
24299               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24301               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24302 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24303               BOOT_JDK_FOUND=no
24304             else
24305               # We're done! :-)
24306               BOOT_JDK_FOUND=yes
24307 
24308   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24309 
24310   # Input might be given as Windows format, start by converting to
24311   # unix format.
24312   path="$BOOT_JDK"
24313   new_path=`$CYGPATH -u "$path"`
24314 
24315   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24316   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24317   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24318   # "foo.exe" is OK but "foo" is an error.
24319   #
24320   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24321   # It is also a way to make sure we got the proper file name for the real test later on.
24322   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24323   if test "x$test_shortpath" = x; then
24324     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24325 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24326     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24327   fi
24328 
24329   # Call helper function which possibly converts this using DOS-style short mode.
24330   # If so, the updated path is stored in $new_path.
24331 
24332   input_path="$new_path"
24333   # Check if we need to convert this using DOS-style short mode. If the path
24334   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24335   # take no chances and rewrite it.
24336   # Note: m4 eats our [], so we need to use [ and ] instead.
24337   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24338   if test "x$has_forbidden_chars" != x; then
24339     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24340     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24341     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24342     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24343       # Going to short mode and back again did indeed matter. Since short mode is
24344       # case insensitive, let's make it lowercase to improve readability.
24345       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24346       # Now convert it back to Unix-stile (cygpath)
24347       input_path=`$CYGPATH -u "$shortmode_path"`
24348       new_path="$input_path"
24349     fi
24350   fi
24351 
24352   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24353   if test "x$test_cygdrive_prefix" = x; then
24354     # As a simple fix, exclude /usr/bin since it's not a real path.
24355     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24356       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24357       # a path prefixed by /cygdrive for fixpath to work.
24358       new_path="$CYGWIN_ROOT_PATH$input_path"
24359     fi
24360   fi
24361 
24362 
24363   if test "x$path" != "x$new_path"; then
24364     BOOT_JDK="$new_path"
24365     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24366 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24367   fi
24368 
24369   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24370 
24371   path="$BOOT_JDK"
24372   has_colon=`$ECHO $path | $GREP ^.:`
24373   new_path="$path"
24374   if test "x$has_colon" = x; then
24375     # Not in mixed or Windows style, start by that.
24376     new_path=`cmd //c echo $path`
24377   fi
24378 
24379 
24380   input_path="$new_path"
24381   # Check if we need to convert this using DOS-style short mode. If the path
24382   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24383   # take no chances and rewrite it.
24384   # Note: m4 eats our [], so we need to use [ and ] instead.
24385   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24386   if test "x$has_forbidden_chars" != x; then
24387     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24388     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24389   fi
24390 
24391 
24392   windows_path="$new_path"
24393   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24394     unix_path=`$CYGPATH -u "$windows_path"`
24395     new_path="$unix_path"
24396   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24397     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24398     new_path="$unix_path"
24399   fi
24400 
24401   if test "x$path" != "x$new_path"; then
24402     BOOT_JDK="$new_path"
24403     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24404 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24405   fi
24406 
24407   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24408   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24409 
24410   else
24411     # We're on a posix platform. Hooray! :)
24412     path="$BOOT_JDK"
24413     has_space=`$ECHO "$path" | $GREP " "`
24414     if test "x$has_space" != x; then
24415       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24416 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24417       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24418     fi
24419 
24420     # Use eval to expand a potential ~
24421     eval path="$path"
24422     if test ! -f "$path" && test ! -d "$path"; then
24423       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24424     fi
24425 
24426     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24427   fi
24428 
24429               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24430 $as_echo_n "checking for Boot JDK... " >&6; }
24431               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24432 $as_echo "$BOOT_JDK" >&6; }
24433               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24434 $as_echo_n "checking Boot JDK version... " >&6; }
24435               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24436               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24437 $as_echo "$BOOT_JDK_VERSION" >&6; }
24438             fi # end check jdk version
24439           fi # end check rt.jar
24440         fi # end check javac
24441       fi # end check java
24442     fi # end check boot jdk found
24443   fi
24444 
24445 
24446   if test "x$BOOT_JDK_FOUND" = xno; then
24447     # Now execute the test
24448 
24449   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24450   BOOT_JDK_SUFFIX="/Contents/Home"
24451   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24452   if test "x$ALL_JDKS_FOUND" != x; then
24453     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24454 
24455   if test "x$BOOT_JDK_FOUND" = xno; then
24456     # Now execute the test
24457 
24458         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24459         if test -d "$BOOT_JDK"; then
24460           BOOT_JDK_FOUND=maybe
24461           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24462 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24463         fi
24464 
24465 
24466     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24467     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24468       # Do we have a bin/java?
24469       if test ! -x "$BOOT_JDK/bin/java"; then
24470         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24472         BOOT_JDK_FOUND=no
24473       else
24474         # Do we have a bin/javac?
24475         if test ! -x "$BOOT_JDK/bin/javac"; then
24476           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24478           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24479 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24480           BOOT_JDK_FOUND=no
24481         else
24482           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24483           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24484             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24485 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24486             BOOT_JDK_FOUND=no
24487           else
24488             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24489             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24490 
24491             # Extra M4 quote needed to protect [] in grep expression.
24492             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24493             if test "x$FOUND_CORRECT_VERSION" = x; then
24494               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24495 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24496               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24497 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24498               BOOT_JDK_FOUND=no
24499             else
24500               # We're done! :-)
24501               BOOT_JDK_FOUND=yes
24502 
24503   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24504 
24505   # Input might be given as Windows format, start by converting to
24506   # unix format.
24507   path="$BOOT_JDK"
24508   new_path=`$CYGPATH -u "$path"`
24509 
24510   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24511   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24512   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24513   # "foo.exe" is OK but "foo" is an error.
24514   #
24515   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24516   # It is also a way to make sure we got the proper file name for the real test later on.
24517   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24518   if test "x$test_shortpath" = x; then
24519     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24520 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24521     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24522   fi
24523 
24524   # Call helper function which possibly converts this using DOS-style short mode.
24525   # If so, the updated path is stored in $new_path.
24526 
24527   input_path="$new_path"
24528   # Check if we need to convert this using DOS-style short mode. If the path
24529   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24530   # take no chances and rewrite it.
24531   # Note: m4 eats our [], so we need to use [ and ] instead.
24532   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24533   if test "x$has_forbidden_chars" != x; then
24534     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24535     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24536     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24537     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24538       # Going to short mode and back again did indeed matter. Since short mode is
24539       # case insensitive, let's make it lowercase to improve readability.
24540       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24541       # Now convert it back to Unix-stile (cygpath)
24542       input_path=`$CYGPATH -u "$shortmode_path"`
24543       new_path="$input_path"
24544     fi
24545   fi
24546 
24547   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24548   if test "x$test_cygdrive_prefix" = x; then
24549     # As a simple fix, exclude /usr/bin since it's not a real path.
24550     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24551       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24552       # a path prefixed by /cygdrive for fixpath to work.
24553       new_path="$CYGWIN_ROOT_PATH$input_path"
24554     fi
24555   fi
24556 
24557 
24558   if test "x$path" != "x$new_path"; then
24559     BOOT_JDK="$new_path"
24560     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24562   fi
24563 
24564   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24565 
24566   path="$BOOT_JDK"
24567   has_colon=`$ECHO $path | $GREP ^.:`
24568   new_path="$path"
24569   if test "x$has_colon" = x; then
24570     # Not in mixed or Windows style, start by that.
24571     new_path=`cmd //c echo $path`
24572   fi
24573 
24574 
24575   input_path="$new_path"
24576   # Check if we need to convert this using DOS-style short mode. If the path
24577   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24578   # take no chances and rewrite it.
24579   # Note: m4 eats our [], so we need to use [ and ] instead.
24580   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24581   if test "x$has_forbidden_chars" != x; then
24582     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24583     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24584   fi
24585 
24586 
24587   windows_path="$new_path"
24588   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24589     unix_path=`$CYGPATH -u "$windows_path"`
24590     new_path="$unix_path"
24591   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24592     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24593     new_path="$unix_path"
24594   fi
24595 
24596   if test "x$path" != "x$new_path"; then
24597     BOOT_JDK="$new_path"
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24599 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24600   fi
24601 
24602   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24603   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24604 
24605   else
24606     # We're on a posix platform. Hooray! :)
24607     path="$BOOT_JDK"
24608     has_space=`$ECHO "$path" | $GREP " "`
24609     if test "x$has_space" != x; then
24610       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24611 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24612       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24613     fi
24614 
24615     # Use eval to expand a potential ~
24616     eval path="$path"
24617     if test ! -f "$path" && test ! -d "$path"; then
24618       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24619     fi
24620 
24621     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24622   fi
24623 
24624               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24625 $as_echo_n "checking for Boot JDK... " >&6; }
24626               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24627 $as_echo "$BOOT_JDK" >&6; }
24628               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24629 $as_echo_n "checking Boot JDK version... " >&6; }
24630               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24631               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24632 $as_echo "$BOOT_JDK_VERSION" >&6; }
24633             fi # end check jdk version
24634           fi # end check rt.jar
24635         fi # end check javac
24636       fi # end check java
24637     fi # end check boot jdk found
24638   fi
24639 
24640     done
24641   fi
24642 
24643 
24644     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24645     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24646       # Do we have a bin/java?
24647       if test ! -x "$BOOT_JDK/bin/java"; then
24648         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24649 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24650         BOOT_JDK_FOUND=no
24651       else
24652         # Do we have a bin/javac?
24653         if test ! -x "$BOOT_JDK/bin/javac"; then
24654           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24655 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24656           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24657 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24658           BOOT_JDK_FOUND=no
24659         else
24660           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24661           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24662             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24664             BOOT_JDK_FOUND=no
24665           else
24666             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24667             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24668 
24669             # Extra M4 quote needed to protect [] in grep expression.
24670             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24671             if test "x$FOUND_CORRECT_VERSION" = x; then
24672               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24673 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24674               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24675 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24676               BOOT_JDK_FOUND=no
24677             else
24678               # We're done! :-)
24679               BOOT_JDK_FOUND=yes
24680 
24681   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24682 
24683   # Input might be given as Windows format, start by converting to
24684   # unix format.
24685   path="$BOOT_JDK"
24686   new_path=`$CYGPATH -u "$path"`
24687 
24688   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24689   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24690   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24691   # "foo.exe" is OK but "foo" is an error.
24692   #
24693   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24694   # It is also a way to make sure we got the proper file name for the real test later on.
24695   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24696   if test "x$test_shortpath" = x; then
24697     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24698 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24699     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24700   fi
24701 
24702   # Call helper function which possibly converts this using DOS-style short mode.
24703   # If so, the updated path is stored in $new_path.
24704 
24705   input_path="$new_path"
24706   # Check if we need to convert this using DOS-style short mode. If the path
24707   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24708   # take no chances and rewrite it.
24709   # Note: m4 eats our [], so we need to use [ and ] instead.
24710   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24711   if test "x$has_forbidden_chars" != x; then
24712     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24713     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24714     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24715     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24716       # Going to short mode and back again did indeed matter. Since short mode is
24717       # case insensitive, let's make it lowercase to improve readability.
24718       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24719       # Now convert it back to Unix-stile (cygpath)
24720       input_path=`$CYGPATH -u "$shortmode_path"`
24721       new_path="$input_path"
24722     fi
24723   fi
24724 
24725   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24726   if test "x$test_cygdrive_prefix" = x; then
24727     # As a simple fix, exclude /usr/bin since it's not a real path.
24728     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24729       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24730       # a path prefixed by /cygdrive for fixpath to work.
24731       new_path="$CYGWIN_ROOT_PATH$input_path"
24732     fi
24733   fi
24734 
24735 
24736   if test "x$path" != "x$new_path"; then
24737     BOOT_JDK="$new_path"
24738     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24739 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24740   fi
24741 
24742   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24743 
24744   path="$BOOT_JDK"
24745   has_colon=`$ECHO $path | $GREP ^.:`
24746   new_path="$path"
24747   if test "x$has_colon" = x; then
24748     # Not in mixed or Windows style, start by that.
24749     new_path=`cmd //c echo $path`
24750   fi
24751 
24752 
24753   input_path="$new_path"
24754   # Check if we need to convert this using DOS-style short mode. If the path
24755   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24756   # take no chances and rewrite it.
24757   # Note: m4 eats our [], so we need to use [ and ] instead.
24758   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24759   if test "x$has_forbidden_chars" != x; then
24760     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24761     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24762   fi
24763 
24764 
24765   windows_path="$new_path"
24766   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24767     unix_path=`$CYGPATH -u "$windows_path"`
24768     new_path="$unix_path"
24769   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24770     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24771     new_path="$unix_path"
24772   fi
24773 
24774   if test "x$path" != "x$new_path"; then
24775     BOOT_JDK="$new_path"
24776     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24777 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24778   fi
24779 
24780   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24781   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24782 
24783   else
24784     # We're on a posix platform. Hooray! :)
24785     path="$BOOT_JDK"
24786     has_space=`$ECHO "$path" | $GREP " "`
24787     if test "x$has_space" != x; then
24788       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is i