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_LIBGIF
 660 USE_EXTERNAL_LIBJPEG
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 OPENWIN_HOME
 668 X_EXTRA_LIBS
 669 X_LIBS
 670 X_PRE_LIBS
 671 X_CFLAGS
 672 XMKMF
 673 FIXPATH
 674 ZIP_DEBUGINFO_FILES
 675 ENABLE_DEBUG_SYMBOLS
 676 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 677 ZERO_ARCHFLAG
 678 LDFLAGS_CXX_JDK
 679 LDFLAGS_JDKEXE_SUFFIX
 680 LDFLAGS_JDKLIB_SUFFIX
 681 LDFLAGS_JDKEXE
 682 LDFLAGS_JDKLIB
 683 CXXFLAGS_JDKEXE
 684 CXXFLAGS_JDKLIB
 685 CFLAGS_JDKEXE
 686 CFLAGS_JDKLIB
 687 MACOSX_VERSION_MIN
 688 LEGACY_EXTRA_LDFLAGS
 689 LEGACY_EXTRA_CXXFLAGS
 690 LEGACY_EXTRA_CFLAGS
 691 CXX_O_FLAG_NONE
 692 CXX_O_FLAG_NORM
 693 CXX_O_FLAG_HI
 694 CXX_O_FLAG_HIGHEST
 695 C_O_FLAG_NONE
 696 C_O_FLAG_NORM
 697 C_O_FLAG_HI
 698 C_O_FLAG_HIGHEST
 699 CXXFLAGS_DEBUG_SYMBOLS
 700 CFLAGS_DEBUG_SYMBOLS
 701 CXX_FLAG_DEPS
 702 C_FLAG_DEPS
 703 SET_SHARED_LIBRARY_MAPFILE
 704 SET_SHARED_LIBRARY_NAME
 705 SET_SHARED_LIBRARY_ORIGIN
 706 SET_EXECUTABLE_ORIGIN
 707 SHARED_LIBRARY_FLAGS
 708 CXX_FLAG_REORDER
 709 C_FLAG_REORDER
 710 RC_FLAGS
 711 AR_OUT_OPTION
 712 LD_OUT_OPTION
 713 EXE_OUT_OPTION
 714 CC_OUT_OPTION
 715 POST_MCS_CMD
 716 POST_STRIP_CMD
 717 ARFLAGS
 718 COMPILER_TARGET_BITS_FLAG
 719 JT_HOME
 720 JTREGEXE
 721 USING_BROKEN_SUSE_LD
 722 PACKAGE_PATH
 723 LDEXECXX
 724 LDEXE
 725 USE_CLANG
 726 HOTSPOT_LD
 727 HOTSPOT_CXX
 728 HOTSPOT_RC
 729 HOTSPOT_MT
 730 BUILD_LD
 731 BUILD_CXX
 732 BUILD_CC
 733 ac_ct_OBJDUMP
 734 OBJDUMP
 735 ac_ct_OBJCOPY
 736 OBJCOPY
 737 ac_ct_NM
 738 ac_ct_STRIP
 739 MCS
 740 GNM
 741 NM
 742 STRIP
 743 DUMPBIN
 744 RC
 745 MT
 746 LIPO
 747 ac_ct_OBJC
 748 OBJCFLAGS
 749 OBJC
 750 ac_ct_AR
 751 AR
 752 AS
 753 LDCXX
 754 LD
 755 CXXCPP
 756 CPP
 757 ac_ct_CXX
 758 CXXFLAGS
 759 CXX
 760 ac_ct_PROPER_COMPILER_CXX
 761 PROPER_COMPILER_CXX
 762 TOOLS_DIR_CXX
 763 POTENTIAL_CXX
 764 OBJEXT
 765 EXEEXT
 766 ac_ct_CC
 767 CPPFLAGS
 768 LDFLAGS
 769 CFLAGS
 770 CC
 771 ac_ct_PROPER_COMPILER_CC
 772 PROPER_COMPILER_CC
 773 TOOLS_DIR_CC
 774 POTENTIAL_CC
 775 VS_PATH
 776 VS_LIB
 777 VS_INCLUDE
 778 CYGWIN_LINK
 779 EXE_SUFFIX
 780 OBJ_SUFFIX
 781 STATIC_LIBRARY
 782 SHARED_LIBRARY
 783 STATIC_LIBRARY_SUFFIX
 784 SHARED_LIBRARY_SUFFIX
 785 LIBRARY_PREFIX
 786 TOOLCHAIN_TYPE
 787 BUILD_HOTSPOT
 788 HOTSPOT_DIST
 789 BUILD_OUTPUT
 790 OVERRIDE_SRC_ROOT
 791 ADD_SRC_ROOT
 792 JDK_TOPDIR
 793 NASHORN_TOPDIR
 794 HOTSPOT_TOPDIR
 795 JAXWS_TOPDIR
 796 JAXP_TOPDIR
 797 CORBA_TOPDIR
 798 LANGTOOLS_TOPDIR
 799 JAVA_FLAGS_SMALL
 800 JAVA_FLAGS_BIG
 801 JAVA_FLAGS
 802 BOOT_JDK_JVMARGS
 803 JAVAC_FLAGS
 804 BOOT_JDK_SOURCETARGET
 805 JARSIGNER
 806 NATIVE2ASCII
 807 JAR
 808 JAVAH
 809 JAVAC
 810 JAVA
 811 BOOT_JDK
 812 BOOT_TOOLSJAR
 813 BOOT_RTJAR
 814 JAVA_CHECK
 815 JAVAC_CHECK
 816 COOKED_BUILD_NUMBER
 817 JDK_VERSION
 818 COPYRIGHT_YEAR
 819 MACOSX_BUNDLE_ID_BASE
 820 MACOSX_BUNDLE_NAME_BASE
 821 COMPANY_NAME
 822 JDK_RC_PLATFORM_NAME
 823 PRODUCT_SUFFIX
 824 PRODUCT_NAME
 825 LAUNCHER_NAME
 826 MILESTONE
 827 JDK_BUILD_NUMBER
 828 JDK_UPDATE_VERSION
 829 JDK_MICRO_VERSION
 830 JDK_MINOR_VERSION
 831 JDK_MAJOR_VERSION
 832 USER_RELEASE_SUFFIX
 833 COMPRESS_JARS
 834 RMICONNECTOR_IIOP
 835 UNLIMITED_CRYPTO
 836 CACERTS_FILE
 837 TEST_IN_BUILD
 838 BUILD_HEADLESS
 839 SUPPORT_HEADFUL
 840 SUPPORT_HEADLESS
 841 BDEPS_FTP
 842 BDEPS_UNZIP
 843 OS_VERSION_MICRO
 844 OS_VERSION_MINOR
 845 OS_VERSION_MAJOR
 846 PKG_CONFIG
 847 CODESIGN
 848 XATTR
 849 DSYMUTIL
 850 IS_GNU_TIME
 851 TIME
 852 STAT
 853 HG
 854 READELF
 855 OTOOL
 856 LDD
 857 ZIP
 858 UNZIP
 859 FIND_DELETE
 860 MAKE
 861 CHECK_TOOLSDIR_MAKE
 862 CHECK_TOOLSDIR_GMAKE
 863 CHECK_MAKE
 864 CHECK_GMAKE
 865 PKGHANDLER
 866 OUTPUT_ROOT
 867 CONF_NAME
 868 SPEC
 869 BUILD_VARIANT_RELEASE
 870 DEBUG_CLASSFILES
 871 FASTDEBUG
 872 VARIANT
 873 DEBUG_LEVEL
 874 MACOSX_UNIVERSAL
 875 INCLUDE_SA
 876 JVM_VARIANT_CORE
 877 JVM_VARIANT_ZEROSHARK
 878 JVM_VARIANT_ZERO
 879 JVM_VARIANT_KERNEL
 880 JVM_VARIANT_MINIMAL1
 881 JVM_VARIANT_CLIENT
 882 JVM_VARIANT_SERVER
 883 JVM_VARIANTS
 884 JVM_INTERPRETER
 885 JDK_VARIANT
 886 SET_OPENJDK
 887 BUILD_LOG_WRAPPER
 888 BUILD_LOG_PREVIOUS
 889 BUILD_LOG
 890 SYS_ROOT
 891 TOPDIR
 892 PATH_SEP
 893 ZERO_ARCHDEF
 894 DEFINE_CROSS_COMPILE_ARCH
 895 LP64
 896 OPENJDK_TARGET_OS_EXPORT_DIR
 897 OPENJDK_TARGET_OS_API_DIR
 898 OPENJDK_TARGET_CPU_JLI_CFLAGS
 899 OPENJDK_TARGET_CPU_OSARCH
 900 OPENJDK_TARGET_CPU_ISADIR
 901 OPENJDK_TARGET_CPU_LIBDIR
 902 OPENJDK_TARGET_CPU_LEGACY_LIB
 903 OPENJDK_TARGET_CPU_LEGACY
 904 REQUIRED_OS_VERSION
 905 REQUIRED_OS_NAME
 906 COMPILE_TYPE
 907 OPENJDK_TARGET_CPU_ENDIAN
 908 OPENJDK_TARGET_CPU_BITS
 909 OPENJDK_TARGET_CPU_ARCH
 910 OPENJDK_TARGET_CPU
 911 OPENJDK_TARGET_OS_API
 912 OPENJDK_TARGET_OS
 913 OPENJDK_BUILD_CPU_ENDIAN
 914 OPENJDK_BUILD_CPU_BITS
 915 OPENJDK_BUILD_CPU_ARCH
 916 OPENJDK_BUILD_CPU
 917 OPENJDK_BUILD_OS_API
 918 OPENJDK_BUILD_OS
 919 OPENJDK_BUILD_AUTOCONF_NAME
 920 OPENJDK_TARGET_AUTOCONF_NAME
 921 target_os
 922 target_vendor
 923 target_cpu
 924 target
 925 host_os
 926 host_vendor
 927 host_cpu
 928 host
 929 build_os
 930 build_vendor
 931 build_cpu
 932 build
 933 SETFILE
 934 DF
 935 READLINK
 936 CYGPATH
 937 SED
 938 FGREP
 939 EGREP
 940 GREP
 941 AWK
 942 XARGS
 943 WHICH
 944 WC
 945 UNIQ
 946 UNAME
 947 TR
 948 TOUCH
 949 TEE
 950 TAR
 951 TAIL
 952 SORT
 953 SH
 954 RM
 955 PRINTF
 956 NAWK
 957 MV
 958 MKTEMP
 959 MKDIR
 960 LS
 961 LN
 962 HEAD
 963 FIND
 964 FILE
 965 EXPR
 966 ECHO
 967 DIRNAME
 968 DIFF
 969 DATE
 970 CUT
 971 CPIO
 972 CP
 973 COMM
 974 CMP
 975 CHMOD
 976 CAT
 977 BASH
 978 BASENAME
 979 DATE_WHEN_CONFIGURED
 980 CONFIGURE_COMMAND_LINE
 981 target_alias
 982 host_alias
 983 build_alias
 984 LIBS
 985 ECHO_T
 986 ECHO_N
 987 ECHO_C
 988 DEFS
 989 mandir
 990 localedir
 991 libdir
 992 psdir
 993 pdfdir
 994 dvidir
 995 htmldir
 996 infodir
 997 docdir
 998 oldincludedir
 999 includedir
1000 localstatedir
1001 sharedstatedir
1002 sysconfdir
1003 datadir
1004 datarootdir
1005 libexecdir
1006 sbindir
1007 bindir
1008 program_transform_name
1009 prefix
1010 exec_prefix
1011 PACKAGE_URL
1012 PACKAGE_BUGREPORT
1013 PACKAGE_STRING
1014 PACKAGE_VERSION
1015 PACKAGE_TARNAME
1016 PACKAGE_NAME
1017 PATH_SEPARATOR
1018 SHELL'
1019 ac_subst_files=''
1020 ac_user_opts='
1021 enable_option_checking
1022 with_target_bits
1023 with_sys_root
1024 with_tools_dir
1025 with_devkit
1026 enable_openjdk_only
1027 with_custom_make_dir
1028 with_jdk_variant
1029 with_jvm_interpreter
1030 with_jvm_variants
1031 enable_debug
1032 with_debug_level
1033 with_conf_name
1034 with_builddeps_conf
1035 with_builddeps_server
1036 with_builddeps_dir
1037 with_builddeps_group
1038 enable_headful
1039 enable_hotspot_test_in_build
1040 with_cacerts_file
1041 enable_unlimited_crypto
1042 enable_rmiconnector_iiop
1043 with_milestone
1044 with_update_version
1045 with_user_release_suffix
1046 with_build_number
1047 with_boot_jdk
1048 with_boot_jdk_jvmargs
1049 with_add_source_root
1050 with_override_source_root
1051 with_adds_and_overrides
1052 with_override_langtools
1053 with_override_corba
1054 with_override_jaxp
1055 with_override_jaxws
1056 with_override_hotspot
1057 with_override_nashorn
1058 with_override_jdk
1059 with_import_hotspot
1060 with_toolchain_type
1061 with_jtreg
1062 with_extra_cflags
1063 with_extra_cxxflags
1064 with_extra_ldflags
1065 enable_debug_symbols
1066 enable_zip_debug_info
1067 enable_macosx_runtime_support
1068 with_x
1069 with_cups
1070 with_cups_include
1071 with_freetype
1072 with_freetype_include
1073 with_freetype_lib
1074 enable_freetype_bundling
1075 with_alsa
1076 with_alsa_include
1077 with_alsa_lib
1078 with_giflib
1079 with_libpng
1080 with_zlib
1081 with_stdc__lib
1082 with_msvcr_dll
1083 with_dxsdk
1084 with_dxsdk_lib
1085 with_dxsdk_include
1086 with_num_cores
1087 with_memory_size
1088 with_jobs
1089 with_sjavac_server_java
1090 enable_sjavac
1091 enable_precompiled_headers
1092 enable_ccache
1093 with_ccache_dir
1094 '
1095       ac_precious_vars='build_alias
1096 host_alias
1097 target_alias
1098 BASENAME
1099 BASH
1100 CAT
1101 CHMOD
1102 CMP
1103 COMM
1104 CP
1105 CPIO
1106 CUT
1107 DATE
1108 DIFF
1109 DIRNAME
1110 ECHO
1111 EXPR
1112 FILE
1113 FIND
1114 HEAD
1115 LN
1116 LS
1117 MKDIR
1118 MKTEMP
1119 MV
1120 NAWK
1121 PRINTF
1122 RM
1123 SH
1124 SORT
1125 TAIL
1126 TAR
1127 TEE
1128 TOUCH
1129 TR
1130 UNAME
1131 UNIQ
1132 WC
1133 WHICH
1134 XARGS
1135 AWK
1136 GREP
1137 EGREP
1138 FGREP
1139 SED
1140 CYGPATH
1141 READLINK
1142 DF
1143 SETFILE
1144 UNZIP
1145 ZIP
1146 LDD
1147 OTOOL
1148 READELF
1149 HG
1150 STAT
1151 TIME
1152 DSYMUTIL
1153 XATTR
1154 CODESIGN
1155 PKG_CONFIG
1156 JAVA
1157 JAVAC
1158 JAVAH
1159 JAR
1160 NATIVE2ASCII
1161 JARSIGNER
1162 CC
1163 CFLAGS
1164 LDFLAGS
1165 LIBS
1166 CPPFLAGS
1167 CXX
1168 CXXFLAGS
1169 CCC
1170 CPP
1171 CXXCPP
1172 AS
1173 AR
1174 OBJC
1175 OBJCFLAGS
1176 LIPO
1177 STRIP
1178 NM
1179 GNM
1180 MCS
1181 OBJCOPY
1182 OBJDUMP
1183 BUILD_CC
1184 BUILD_CXX
1185 BUILD_LD
1186 JTREGEXE
1187 XMKMF
1188 FREETYPE_CFLAGS
1189 FREETYPE_LIBS
1190 ALSA_CFLAGS
1191 ALSA_LIBS
1192 PNG_CFLAGS
1193 PNG_LIBS
1194 LIBFFI_CFLAGS
1195 LIBFFI_LIBS
1196 CCACHE'
1197 
1198 
1199 # Initialize some variables set by options.
1200 ac_init_help=
1201 ac_init_version=false
1202 ac_unrecognized_opts=
1203 ac_unrecognized_sep=
1204 # The variables have the same names as the options, with
1205 # dashes changed to underlines.
1206 cache_file=/dev/null
1207 exec_prefix=NONE
1208 no_create=
1209 no_recursion=
1210 prefix=NONE
1211 program_prefix=NONE
1212 program_suffix=NONE
1213 program_transform_name=s,x,x,
1214 silent=
1215 site=
1216 srcdir=
1217 verbose=
1218 x_includes=NONE
1219 x_libraries=NONE
1220 
1221 # Installation directory options.
1222 # These are left unexpanded so users can "make install exec_prefix=/foo"
1223 # and all the variables that are supposed to be based on exec_prefix
1224 # by default will actually change.
1225 # Use braces instead of parens because sh, perl, etc. also accept them.
1226 # (The list follows the same order as the GNU Coding Standards.)
1227 bindir='${exec_prefix}/bin'
1228 sbindir='${exec_prefix}/sbin'
1229 libexecdir='${exec_prefix}/libexec'
1230 datarootdir='${prefix}/share'
1231 datadir='${datarootdir}'
1232 sysconfdir='${prefix}/etc'
1233 sharedstatedir='${prefix}/com'
1234 localstatedir='${prefix}/var'
1235 includedir='${prefix}/include'
1236 oldincludedir='/usr/include'
1237 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1238 infodir='${datarootdir}/info'
1239 htmldir='${docdir}'
1240 dvidir='${docdir}'
1241 pdfdir='${docdir}'
1242 psdir='${docdir}'
1243 libdir='${exec_prefix}/lib'
1244 localedir='${datarootdir}/locale'
1245 mandir='${datarootdir}/man'
1246 
1247 ac_prev=
1248 ac_dashdash=
1249 for ac_option
1250 do
1251   # If the previous option needs an argument, assign it.
1252   if test -n "$ac_prev"; then
1253     eval $ac_prev=\$ac_option
1254     ac_prev=
1255     continue
1256   fi
1257 
1258   case $ac_option in
1259   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1260   *=)   ac_optarg= ;;
1261   *)    ac_optarg=yes ;;
1262   esac
1263 
1264   # Accept the important Cygnus configure options, so we can diagnose typos.
1265 
1266   case $ac_dashdash$ac_option in
1267   --)
1268     ac_dashdash=yes ;;
1269 
1270   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1271     ac_prev=bindir ;;
1272   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1273     bindir=$ac_optarg ;;
1274 
1275   -build | --build | --buil | --bui | --bu)
1276     ac_prev=build_alias ;;
1277   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1278     build_alias=$ac_optarg ;;
1279 
1280   -cache-file | --cache-file | --cache-fil | --cache-fi \
1281   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1282     ac_prev=cache_file ;;
1283   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1284   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1285     cache_file=$ac_optarg ;;
1286 
1287   --config-cache | -C)
1288     cache_file=config.cache ;;
1289 
1290   -datadir | --datadir | --datadi | --datad)
1291     ac_prev=datadir ;;
1292   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1293     datadir=$ac_optarg ;;
1294 
1295   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1296   | --dataroo | --dataro | --datar)
1297     ac_prev=datarootdir ;;
1298   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1299   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1300     datarootdir=$ac_optarg ;;
1301 
1302   -disable-* | --disable-*)
1303     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306       as_fn_error $? "invalid feature name: $ac_useropt"
1307     ac_useropt_orig=$ac_useropt
1308     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309     case $ac_user_opts in
1310       *"
1311 "enable_$ac_useropt"
1312 "*) ;;
1313       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1314          ac_unrecognized_sep=', ';;
1315     esac
1316     eval enable_$ac_useropt=no ;;
1317 
1318   -docdir | --docdir | --docdi | --doc | --do)
1319     ac_prev=docdir ;;
1320   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1321     docdir=$ac_optarg ;;
1322 
1323   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1324     ac_prev=dvidir ;;
1325   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1326     dvidir=$ac_optarg ;;
1327 
1328   -enable-* | --enable-*)
1329     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332       as_fn_error $? "invalid feature name: $ac_useropt"
1333     ac_useropt_orig=$ac_useropt
1334     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335     case $ac_user_opts in
1336       *"
1337 "enable_$ac_useropt"
1338 "*) ;;
1339       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1340          ac_unrecognized_sep=', ';;
1341     esac
1342     eval enable_$ac_useropt=\$ac_optarg ;;
1343 
1344   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1345   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1346   | --exec | --exe | --ex)
1347     ac_prev=exec_prefix ;;
1348   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1349   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1350   | --exec=* | --exe=* | --ex=*)
1351     exec_prefix=$ac_optarg ;;
1352 
1353   -gas | --gas | --ga | --g)
1354     # Obsolete; use --with-gas.
1355     with_gas=yes ;;
1356 
1357   -help | --help | --hel | --he | -h)
1358     ac_init_help=long ;;
1359   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1360     ac_init_help=recursive ;;
1361   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1362     ac_init_help=short ;;
1363 
1364   -host | --host | --hos | --ho)
1365     ac_prev=host_alias ;;
1366   -host=* | --host=* | --hos=* | --ho=*)
1367     host_alias=$ac_optarg ;;
1368 
1369   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1370     ac_prev=htmldir ;;
1371   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1372   | --ht=*)
1373     htmldir=$ac_optarg ;;
1374 
1375   -includedir | --includedir | --includedi | --included | --include \
1376   | --includ | --inclu | --incl | --inc)
1377     ac_prev=includedir ;;
1378   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1379   | --includ=* | --inclu=* | --incl=* | --inc=*)
1380     includedir=$ac_optarg ;;
1381 
1382   -infodir | --infodir | --infodi | --infod | --info | --inf)
1383     ac_prev=infodir ;;
1384   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1385     infodir=$ac_optarg ;;
1386 
1387   -libdir | --libdir | --libdi | --libd)
1388     ac_prev=libdir ;;
1389   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1390     libdir=$ac_optarg ;;
1391 
1392   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1393   | --libexe | --libex | --libe)
1394     ac_prev=libexecdir ;;
1395   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1396   | --libexe=* | --libex=* | --libe=*)
1397     libexecdir=$ac_optarg ;;
1398 
1399   -localedir | --localedir | --localedi | --localed | --locale)
1400     ac_prev=localedir ;;
1401   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1402     localedir=$ac_optarg ;;
1403 
1404   -localstatedir | --localstatedir | --localstatedi | --localstated \
1405   | --localstate | --localstat | --localsta | --localst | --locals)
1406     ac_prev=localstatedir ;;
1407   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1408   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1409     localstatedir=$ac_optarg ;;
1410 
1411   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1412     ac_prev=mandir ;;
1413   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1414     mandir=$ac_optarg ;;
1415 
1416   -nfp | --nfp | --nf)
1417     # Obsolete; use --without-fp.
1418     with_fp=no ;;
1419 
1420   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1421   | --no-cr | --no-c | -n)
1422     no_create=yes ;;
1423 
1424   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1425   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1426     no_recursion=yes ;;
1427 
1428   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1429   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1430   | --oldin | --oldi | --old | --ol | --o)
1431     ac_prev=oldincludedir ;;
1432   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1433   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1434   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1435     oldincludedir=$ac_optarg ;;
1436 
1437   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1438     ac_prev=prefix ;;
1439   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1440     prefix=$ac_optarg ;;
1441 
1442   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1443   | --program-pre | --program-pr | --program-p)
1444     ac_prev=program_prefix ;;
1445   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1446   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1447     program_prefix=$ac_optarg ;;
1448 
1449   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1450   | --program-suf | --program-su | --program-s)
1451     ac_prev=program_suffix ;;
1452   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1453   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1454     program_suffix=$ac_optarg ;;
1455 
1456   -program-transform-name | --program-transform-name \
1457   | --program-transform-nam | --program-transform-na \
1458   | --program-transform-n | --program-transform- \
1459   | --program-transform | --program-transfor \
1460   | --program-transfo | --program-transf \
1461   | --program-trans | --program-tran \
1462   | --progr-tra | --program-tr | --program-t)
1463     ac_prev=program_transform_name ;;
1464   -program-transform-name=* | --program-transform-name=* \
1465   | --program-transform-nam=* | --program-transform-na=* \
1466   | --program-transform-n=* | --program-transform-=* \
1467   | --program-transform=* | --program-transfor=* \
1468   | --program-transfo=* | --program-transf=* \
1469   | --program-trans=* | --program-tran=* \
1470   | --progr-tra=* | --program-tr=* | --program-t=*)
1471     program_transform_name=$ac_optarg ;;
1472 
1473   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1474     ac_prev=pdfdir ;;
1475   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1476     pdfdir=$ac_optarg ;;
1477 
1478   -psdir | --psdir | --psdi | --psd | --ps)
1479     ac_prev=psdir ;;
1480   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1481     psdir=$ac_optarg ;;
1482 
1483   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1484   | -silent | --silent | --silen | --sile | --sil)
1485     silent=yes ;;
1486 
1487   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1488     ac_prev=sbindir ;;
1489   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1490   | --sbi=* | --sb=*)
1491     sbindir=$ac_optarg ;;
1492 
1493   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1494   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1495   | --sharedst | --shareds | --shared | --share | --shar \
1496   | --sha | --sh)
1497     ac_prev=sharedstatedir ;;
1498   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1499   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1500   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1501   | --sha=* | --sh=*)
1502     sharedstatedir=$ac_optarg ;;
1503 
1504   -site | --site | --sit)
1505     ac_prev=site ;;
1506   -site=* | --site=* | --sit=*)
1507     site=$ac_optarg ;;
1508 
1509   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1510     ac_prev=srcdir ;;
1511   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1512     srcdir=$ac_optarg ;;
1513 
1514   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1515   | --syscon | --sysco | --sysc | --sys | --sy)
1516     ac_prev=sysconfdir ;;
1517   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1518   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1519     sysconfdir=$ac_optarg ;;
1520 
1521   -target | --target | --targe | --targ | --tar | --ta | --t)
1522     ac_prev=target_alias ;;
1523   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1524     target_alias=$ac_optarg ;;
1525 
1526   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1527     verbose=yes ;;
1528 
1529   -version | --version | --versio | --versi | --vers | -V)
1530     ac_init_version=: ;;
1531 
1532   -with-* | --with-*)
1533     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1534     # Reject names that are not valid shell variable names.
1535     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1536       as_fn_error $? "invalid package name: $ac_useropt"
1537     ac_useropt_orig=$ac_useropt
1538     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539     case $ac_user_opts in
1540       *"
1541 "with_$ac_useropt"
1542 "*) ;;
1543       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1544          ac_unrecognized_sep=', ';;
1545     esac
1546     eval with_$ac_useropt=\$ac_optarg ;;
1547 
1548   -without-* | --without-*)
1549     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1560          ac_unrecognized_sep=', ';;
1561     esac
1562     eval with_$ac_useropt=no ;;
1563 
1564   --x)
1565     # Obsolete; use --with-x.
1566     with_x=yes ;;
1567 
1568   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1569   | --x-incl | --x-inc | --x-in | --x-i)
1570     ac_prev=x_includes ;;
1571   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1572   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1573     x_includes=$ac_optarg ;;
1574 
1575   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1576   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1577     ac_prev=x_libraries ;;
1578   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1579   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1580     x_libraries=$ac_optarg ;;
1581 
1582   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1583 Try \`$0 --help' for more information"
1584     ;;
1585 
1586   *=*)
1587     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1588     # Reject names that are not valid shell variable names.
1589     case $ac_envvar in #(
1590       '' | [0-9]* | *[!_$as_cr_alnum]* )
1591       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1592     esac
1593     eval $ac_envvar=\$ac_optarg
1594     export $ac_envvar ;;
1595 
1596   *)
1597     # FIXME: should be removed in autoconf 3.0.
1598     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1599     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1600       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1601     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1602     ;;
1603 
1604   esac
1605 done
1606 
1607 if test -n "$ac_prev"; then
1608   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1609   as_fn_error $? "missing argument to $ac_option"
1610 fi
1611 
1612 if test -n "$ac_unrecognized_opts"; then
1613   case $enable_option_checking in
1614     no) ;;
1615     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1616     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1617   esac
1618 fi
1619 
1620 # Check all directory arguments for consistency.
1621 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1622                 datadir sysconfdir sharedstatedir localstatedir includedir \
1623                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1624                 libdir localedir mandir
1625 do
1626   eval ac_val=\$$ac_var
1627   # Remove trailing slashes.
1628   case $ac_val in
1629     */ )
1630       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1631       eval $ac_var=\$ac_val;;
1632   esac
1633   # Be sure to have absolute directory names.
1634   case $ac_val in
1635     [\\/$]* | ?:[\\/]* )  continue;;
1636     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1637   esac
1638   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1639 done
1640 
1641 # There might be people who depend on the old broken behavior: `$host'
1642 # used to hold the argument of --host etc.
1643 # FIXME: To remove some day.
1644 build=$build_alias
1645 host=$host_alias
1646 target=$target_alias
1647 
1648 # FIXME: To remove some day.
1649 if test "x$host_alias" != x; then
1650   if test "x$build_alias" = x; then
1651     cross_compiling=maybe
1652   elif test "x$build_alias" != "x$host_alias"; then
1653     cross_compiling=yes
1654   fi
1655 fi
1656 
1657 ac_tool_prefix=
1658 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1659 
1660 test "$silent" = yes && exec 6>/dev/null
1661 
1662 
1663 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1664 ac_ls_di=`ls -di .` &&
1665 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1666   as_fn_error $? "working directory cannot be determined"
1667 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1668   as_fn_error $? "pwd does not report name of working directory"
1669 
1670 
1671 # Find the source files, if location was not specified.
1672 if test -z "$srcdir"; then
1673   ac_srcdir_defaulted=yes
1674   # Try the directory containing this script, then the parent directory.
1675   ac_confdir=`$as_dirname -- "$as_myself" ||
1676 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1677          X"$as_myself" : 'X\(//\)[^/]' \| \
1678          X"$as_myself" : 'X\(//\)$' \| \
1679          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1680 $as_echo X"$as_myself" |
1681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1682             s//\1/
1683             q
1684           }
1685           /^X\(\/\/\)[^/].*/{
1686             s//\1/
1687             q
1688           }
1689           /^X\(\/\/\)$/{
1690             s//\1/
1691             q
1692           }
1693           /^X\(\/\).*/{
1694             s//\1/
1695             q
1696           }
1697           s/.*/./; q'`
1698   srcdir=$ac_confdir
1699   if test ! -r "$srcdir/$ac_unique_file"; then
1700     srcdir=..
1701   fi
1702 else
1703   ac_srcdir_defaulted=no
1704 fi
1705 if test ! -r "$srcdir/$ac_unique_file"; then
1706   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1707   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1708 fi
1709 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1710 ac_abs_confdir=`(
1711         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1712         pwd)`
1713 # When building in place, set srcdir=.
1714 if test "$ac_abs_confdir" = "$ac_pwd"; then
1715   srcdir=.
1716 fi
1717 # Remove unnecessary trailing slashes from srcdir.
1718 # Double slashes in file names in object file debugging info
1719 # mess up M-x gdb in Emacs.
1720 case $srcdir in
1721 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1722 esac
1723 for ac_var in $ac_precious_vars; do
1724   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1725   eval ac_env_${ac_var}_value=\$${ac_var}
1726   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1727   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1728 done
1729 
1730 #
1731 # Report the --help message.
1732 #
1733 if test "$ac_init_help" = "long"; then
1734   # Omit some internal or obsolete options to make the list less imposing.
1735   # This message is too long to be a string in the A/UX 3.1 sh.
1736   cat <<_ACEOF
1737 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1738 
1739 Usage: $0 [OPTION]... [VAR=VALUE]...
1740 
1741 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1742 VAR=VALUE.  See below for descriptions of some of the useful variables.
1743 
1744 Defaults for the options are specified in brackets.
1745 
1746 Configuration:
1747   -h, --help              display this help and exit
1748       --help=short        display options specific to this package
1749       --help=recursive    display the short help of all the included packages
1750   -V, --version           display version information and exit
1751   -q, --quiet, --silent   do not print \`checking ...' messages
1752       --cache-file=FILE   cache test results in FILE [disabled]
1753   -C, --config-cache      alias for \`--cache-file=config.cache'
1754   -n, --no-create         do not create output files
1755       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1756 
1757 Installation directories:
1758   --prefix=PREFIX         install architecture-independent files in PREFIX
1759                           [$ac_default_prefix]
1760   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1761                           [PREFIX]
1762 
1763 By default, \`make install' will install all the files in
1764 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1765 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1766 for instance \`--prefix=\$HOME'.
1767 
1768 For better control, use the options below.
1769 
1770 Fine tuning of the installation directories:
1771   --bindir=DIR            user executables [EPREFIX/bin]
1772   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1773   --libexecdir=DIR        program executables [EPREFIX/libexec]
1774   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1775   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1776   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1777   --libdir=DIR            object code libraries [EPREFIX/lib]
1778   --includedir=DIR        C header files [PREFIX/include]
1779   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1780   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1781   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1782   --infodir=DIR           info documentation [DATAROOTDIR/info]
1783   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1784   --mandir=DIR            man documentation [DATAROOTDIR/man]
1785   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1786   --htmldir=DIR           html documentation [DOCDIR]
1787   --dvidir=DIR            dvi documentation [DOCDIR]
1788   --pdfdir=DIR            pdf documentation [DOCDIR]
1789   --psdir=DIR             ps documentation [DOCDIR]
1790 _ACEOF
1791 
1792   cat <<\_ACEOF
1793 
1794 X features:
1795   --x-includes=DIR    X include files are in DIR
1796   --x-libraries=DIR   X library files are in DIR
1797 
1798 System types:
1799   --build=BUILD     configure for building on BUILD [guessed]
1800   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1801   --target=TARGET   configure for building compilers for TARGET [HOST]
1802 _ACEOF
1803 fi
1804 
1805 if test -n "$ac_init_help"; then
1806   case $ac_init_help in
1807      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1808    esac
1809   cat <<\_ACEOF
1810 
1811 Optional Features:
1812   --disable-option-checking  ignore unrecognized --enable/--with options
1813   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1814   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1815   --enable-openjdk-only   suppress building custom source even if present
1816                           [disabled]
1817   --enable-debug          set the debug level to fastdebug (shorthand for
1818                           --with-debug-level=fastdebug) [disabled]
1819   --disable-headful       disable building headful support (graphical UI
1820                           support) [enabled]
1821   --enable-hotspot-test-in-build
1822                           run the Queens test after Hotspot build [disabled]
1823   --enable-unlimited-crypto
1824                           Enable unlimited crypto policy [disabled]
1825   --enable-rmiconnector-iiop
1826                           enable the JMX RMIConnector iiop transport
1827                           [disabled]
1828   --disable-debug-symbols disable generation of debug symbols [enabled]
1829   --disable-zip-debug-info
1830                           disable zipping of debug-info files [enabled]
1831   --enable-macosx-runtime-support
1832                           Deprecated. Option is kept for backwards
1833                           compatibility and is ignored
1834   --disable-freetype-bundling
1835                           disable bundling of the freetype library with the
1836                           build result [enabled on Windows or when using
1837                           --with-freetype, disabled otherwise]
1838   --enable-sjavac         use sjavac to do fast incremental compiles
1839                           [disabled]
1840   --disable-precompiled-headers
1841                           disable using precompiled headers when compiling C++
1842                           [enabled]
1843   --enable-ccache         enable using ccache to speed up recompilations
1844                           [disabled]
1845 
1846 Optional Packages:
1847   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1848   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1849   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1850                           support it), e.g. --with-target-bits=32 [guessed]
1851   --with-sys-root         pass this sys-root to the compilers and tools (for
1852                           cross-compiling)
1853   --with-tools-dir        search this directory for compilers and tools (for
1854                           cross-compiling)
1855   --with-devkit           use this directory as base for tools-dir and
1856                           sys-root (for cross-compiling)
1857   --with-custom-make-dir  Deprecated. Option is kept for backwards
1858                           compatibility and is ignored
1859   --with-jdk-variant      JDK variant to build (normal) [normal]
1860   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1861   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1862                           client, minimal1, kernel, zero, zeroshark, core)
1863                           [server]
1864   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1865                           [release]
1866   --with-conf-name        use this as the name of the configuration [generated
1867                           from important configuration options]
1868   --with-builddeps-conf   use this configuration file for the builddeps
1869   --with-builddeps-server download and use build dependencies from this server
1870                           url
1871   --with-builddeps-dir    store downloaded build dependencies here
1872                           [/localhome/builddeps]
1873   --with-builddeps-group  chgrp the downloaded build dependencies to this
1874                           group
1875   --with-cacerts-file     specify alternative cacerts file
1876   --with-milestone        Set milestone value for build [internal]
1877   --with-update-version   Set update version value for build [b00]
1878   --with-user-release-suffix
1879                           Add a custom string to the version string if build
1880                           number is not set.[username_builddateb00]
1881   --with-build-number     Set build number value for build [b00]
1882   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1883   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
1884                           invocations of boot JDK, overriding the default
1885                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1886                           -enableassertions"
1887   --with-add-source-root  for each and every source directory, look in this
1888                           additional source root for the same directory; if it
1889                           exists and have files in it, include it in the build
1890   --with-override-source-root
1891                           for each and every source directory, look in this
1892                           override source root for the same directory; if it
1893                           exists, use that directory instead and ignore the
1894                           directory in the original source root
1895   --with-adds-and-overrides
1896                           use the subdirs 'adds' and 'overrides' in the
1897                           specified directory as add-source-root and
1898                           override-source-root
1899   --with-override-langtools
1900                           use this langtools dir for the build
1901   --with-override-corba   use this corba dir for the build
1902   --with-override-jaxp    use this jaxp dir for the build
1903   --with-override-jaxws   use this jaxws dir for the build
1904   --with-override-hotspot use this hotspot dir for the build
1905   --with-override-nashorn use this nashorn dir for the build
1906   --with-override-jdk     use this jdk dir for the build
1907   --with-import-hotspot   import hotspot binaries from this jdk image or
1908                           hotspot build dist dir instead of building from
1909                           source
1910   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1911                           to show possible values [platform dependent]
1912   --with-jtreg            Regression Test Harness [probed]
1913   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1914   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1915   --with-extra-ldflags    extra flags to be used when linking jdk
1916   --with-x                use the X Window System
1917   --with-cups             specify prefix directory for the cups package
1918                           (expecting the headers under PATH/include)
1919   --with-cups-include     specify directory for the cups include files
1920   --with-freetype         specify prefix directory for the freetype package
1921                           (expecting the libraries under PATH/lib and the
1922                           headers under PATH/include)
1923   --with-freetype-include specify directory for the freetype include files
1924   --with-freetype-lib     specify directory for the freetype library
1925   --with-alsa             specify prefix directory for the alsa package
1926                           (expecting the libraries under PATH/lib and the
1927                           headers under PATH/include)
1928   --with-alsa-include     specify directory for the alsa include files
1929   --with-alsa-lib         specify directory for the alsa library
1930   --with-giflib           use giflib from build system or OpenJDK source
1931                           (system, bundled) [bundled]
1932   --with-libpng           use libpng from build system or OpenJDK source
1933                           (system, bundled) [bundled]
1934   --with-zlib             use zlib from build system or OpenJDK source
1935                           (system, bundled) [bundled]
1936   --with-stdc++lib=<static>,<dynamic>,<default>
1937                           force linking of the C++ runtime on Linux to either
1938                           static or dynamic, default is static with dynamic as
1939                           fallback
1940   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1941                           only) [probed]
1942   --with-dxsdk            Deprecated. Option is kept for backwards
1943                           compatibility and is ignored
1944   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1945                           compatibility and is ignored
1946   --with-dxsdk-include    Deprecated. Option is kept for backwards
1947                           compatibility and is ignored
1948   --with-num-cores        number of cores in the build system, e.g.
1949                           --with-num-cores=8 [probed]
1950   --with-memory-size      memory (in MB) available in the build system, e.g.
1951                           --with-memory-size=1024 [probed]
1952   --with-jobs             number of parallel jobs to let make run [calculated
1953                           based on cores and memory]
1954   --with-sjavac-server-java
1955                           use this java binary for running the sjavac
1956                           background server [Boot JDK java]
1957   --with-ccache-dir       where to store ccache files [~/.ccache]
1958 
1959 Some influential environment variables:
1960   BASENAME    Override default value for BASENAME
1961   BASH        Override default value for BASH
1962   CAT         Override default value for CAT
1963   CHMOD       Override default value for CHMOD
1964   CMP         Override default value for CMP
1965   COMM        Override default value for COMM
1966   CP          Override default value for CP
1967   CPIO        Override default value for CPIO
1968   CUT         Override default value for CUT
1969   DATE        Override default value for DATE
1970   DIFF        Override default value for DIFF
1971   DIRNAME     Override default value for DIRNAME
1972   ECHO        Override default value for ECHO
1973   EXPR        Override default value for EXPR
1974   FILE        Override default value for FILE
1975   FIND        Override default value for FIND
1976   HEAD        Override default value for HEAD
1977   LN          Override default value for LN
1978   LS          Override default value for LS
1979   MKDIR       Override default value for MKDIR
1980   MKTEMP      Override default value for MKTEMP
1981   MV          Override default value for MV
1982   NAWK        Override default value for NAWK
1983   PRINTF      Override default value for PRINTF
1984   RM          Override default value for RM
1985   SH          Override default value for SH
1986   SORT        Override default value for SORT
1987   TAIL        Override default value for TAIL
1988   TAR         Override default value for TAR
1989   TEE         Override default value for TEE
1990   TOUCH       Override default value for TOUCH
1991   TR          Override default value for TR
1992   UNAME       Override default value for UNAME
1993   UNIQ        Override default value for UNIQ
1994   WC          Override default value for WC
1995   WHICH       Override default value for WHICH
1996   XARGS       Override default value for XARGS
1997   AWK         Override default value for AWK
1998   GREP        Override default value for GREP
1999   EGREP       Override default value for EGREP
2000   FGREP       Override default value for FGREP
2001   SED         Override default value for SED
2002   CYGPATH     Override default value for CYGPATH
2003   READLINK    Override default value for READLINK
2004   DF          Override default value for DF
2005   SETFILE     Override default value for SETFILE
2006   UNZIP       Override default value for UNZIP
2007   ZIP         Override default value for ZIP
2008   LDD         Override default value for LDD
2009   OTOOL       Override default value for OTOOL
2010   READELF     Override default value for READELF
2011   HG          Override default value for HG
2012   STAT        Override default value for STAT
2013   TIME        Override default value for TIME
2014   DSYMUTIL    Override default value for DSYMUTIL
2015   XATTR       Override default value for XATTR
2016   CODESIGN    Override default value for CODESIGN
2017   PKG_CONFIG  path to pkg-config utility
2018   JAVA        Override default value for JAVA
2019   JAVAC       Override default value for JAVAC
2020   JAVAH       Override default value for JAVAH
2021   JAR         Override default value for JAR
2022   NATIVE2ASCII
2023               Override default value for NATIVE2ASCII
2024   JARSIGNER   Override default value for JARSIGNER
2025   CC          C compiler command
2026   CFLAGS      C compiler flags
2027   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2028               nonstandard directory <lib dir>
2029   LIBS        libraries to pass to the linker, e.g. -l<library>
2030   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2031               you have headers in a nonstandard directory <include dir>
2032   CXX         C++ compiler command
2033   CXXFLAGS    C++ compiler flags
2034   CPP         C preprocessor
2035   CXXCPP      C++ preprocessor
2036   AS          Override default value for AS
2037   AR          Override default value for AR
2038   OBJC        Objective C compiler command
2039   OBJCFLAGS   Objective C compiler flags
2040   LIPO        Override default value for LIPO
2041   STRIP       Override default value for STRIP
2042   NM          Override default value for NM
2043   GNM         Override default value for GNM
2044   MCS         Override default value for MCS
2045   OBJCOPY     Override default value for OBJCOPY
2046   OBJDUMP     Override default value for OBJDUMP
2047   BUILD_CC    Override default value for BUILD_CC
2048   BUILD_CXX   Override default value for BUILD_CXX
2049   BUILD_LD    Override default value for BUILD_LD
2050   JTREGEXE    Override default value for JTREGEXE
2051   XMKMF       Path to xmkmf, Makefile generator for X Window System
2052   FREETYPE_CFLAGS
2053               C compiler flags for FREETYPE, overriding pkg-config
2054   FREETYPE_LIBS
2055               linker flags for FREETYPE, overriding pkg-config
2056   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2057   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2058   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2059   PNG_LIBS    linker flags for PNG, overriding pkg-config
2060   LIBFFI_CFLAGS
2061               C compiler flags for LIBFFI, overriding pkg-config
2062   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2063   CCACHE      Override default value for CCACHE
2064 
2065 Use these variables to override the choices made by `configure' or to help
2066 it to find libraries and programs with nonstandard names/locations.
2067 
2068 Report bugs to <build-dev@openjdk.java.net>.
2069 OpenJDK home page: <http://openjdk.java.net>.
2070 _ACEOF
2071 ac_status=$?
2072 fi
2073 
2074 if test "$ac_init_help" = "recursive"; then
2075   # If there are subdirs, report their specific --help.
2076   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2077     test -d "$ac_dir" ||
2078       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2079       continue
2080     ac_builddir=.
2081 
2082 case "$ac_dir" in
2083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2084 *)
2085   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2086   # A ".." for each directory in $ac_dir_suffix.
2087   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2088   case $ac_top_builddir_sub in
2089   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2090   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2091   esac ;;
2092 esac
2093 ac_abs_top_builddir=$ac_pwd
2094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2095 # for backward compatibility:
2096 ac_top_builddir=$ac_top_build_prefix
2097 
2098 case $srcdir in
2099   .)  # We are building in place.
2100     ac_srcdir=.
2101     ac_top_srcdir=$ac_top_builddir_sub
2102     ac_abs_top_srcdir=$ac_pwd ;;
2103   [\\/]* | ?:[\\/]* )  # Absolute name.
2104     ac_srcdir=$srcdir$ac_dir_suffix;
2105     ac_top_srcdir=$srcdir
2106     ac_abs_top_srcdir=$srcdir ;;
2107   *) # Relative name.
2108     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2109     ac_top_srcdir=$ac_top_build_prefix$srcdir
2110     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2111 esac
2112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2113 
2114     cd "$ac_dir" || { ac_status=$?; continue; }
2115     # Check for guested configure.
2116     if test -f "$ac_srcdir/configure.gnu"; then
2117       echo &&
2118       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2119     elif test -f "$ac_srcdir/configure"; then
2120       echo &&
2121       $SHELL "$ac_srcdir/configure" --help=recursive
2122     else
2123       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2124     fi || ac_status=$?
2125     cd "$ac_pwd" || { ac_status=$?; break; }
2126   done
2127 fi
2128 
2129 test -n "$ac_init_help" && exit $ac_status
2130 if $ac_init_version; then
2131   cat <<\_ACEOF
2132 OpenJDK configure jdk9
2133 generated by GNU Autoconf 2.69
2134 
2135 Copyright (C) 2012 Free Software Foundation, Inc.
2136 This configure script is free software; the Free Software Foundation
2137 gives unlimited permission to copy, distribute and modify it.
2138 _ACEOF
2139   exit
2140 fi
2141 
2142 ## ------------------------ ##
2143 ## Autoconf initialization. ##
2144 ## ------------------------ ##
2145 
2146 # ac_fn_c_try_compile LINENO
2147 # --------------------------
2148 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2149 ac_fn_c_try_compile ()
2150 {
2151   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152   rm -f conftest.$ac_objext
2153   if { { ac_try="$ac_compile"
2154 case "(($ac_try" in
2155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156   *) ac_try_echo=$ac_try;;
2157 esac
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160   (eval "$ac_compile") 2>conftest.err
2161   ac_status=$?
2162   if test -s conftest.err; then
2163     grep -v '^ *+' conftest.err >conftest.er1
2164     cat conftest.er1 >&5
2165     mv -f conftest.er1 conftest.err
2166   fi
2167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168   test $ac_status = 0; } && {
2169          test -z "$ac_c_werror_flag" ||
2170          test ! -s conftest.err
2171        } && test -s conftest.$ac_objext; then :
2172   ac_retval=0
2173 else
2174   $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176 
2177         ac_retval=1
2178 fi
2179   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180   as_fn_set_status $ac_retval
2181 
2182 } # ac_fn_c_try_compile
2183 
2184 # ac_fn_cxx_try_compile LINENO
2185 # ----------------------------
2186 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_compile ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   rm -f conftest.$ac_objext
2191   if { { ac_try="$ac_compile"
2192 case "(($ac_try" in
2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194   *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198   (eval "$ac_compile") 2>conftest.err
2199   ac_status=$?
2200   if test -s conftest.err; then
2201     grep -v '^ *+' conftest.err >conftest.er1
2202     cat conftest.er1 >&5
2203     mv -f conftest.er1 conftest.err
2204   fi
2205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206   test $ac_status = 0; } && {
2207          test -z "$ac_cxx_werror_flag" ||
2208          test ! -s conftest.err
2209        } && test -s conftest.$ac_objext; then :
2210   ac_retval=0
2211 else
2212   $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214 
2215         ac_retval=1
2216 fi
2217   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218   as_fn_set_status $ac_retval
2219 
2220 } # ac_fn_cxx_try_compile
2221 
2222 # ac_fn_c_try_cpp LINENO
2223 # ----------------------
2224 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_c_try_cpp ()
2226 {
2227   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228   if { { ac_try="$ac_cpp conftest.$ac_ext"
2229 case "(($ac_try" in
2230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231   *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2236   ac_status=$?
2237   if test -s conftest.err; then
2238     grep -v '^ *+' conftest.err >conftest.er1
2239     cat conftest.er1 >&5
2240     mv -f conftest.er1 conftest.err
2241   fi
2242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243   test $ac_status = 0; } > conftest.i && {
2244          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2245          test ! -s conftest.err
2246        }; then :
2247   ac_retval=0
2248 else
2249   $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251 
2252     ac_retval=1
2253 fi
2254   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255   as_fn_set_status $ac_retval
2256 
2257 } # ac_fn_c_try_cpp
2258 
2259 # ac_fn_cxx_try_cpp LINENO
2260 # ------------------------
2261 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2262 ac_fn_cxx_try_cpp ()
2263 {
2264   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265   if { { ac_try="$ac_cpp conftest.$ac_ext"
2266 case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2273   ac_status=$?
2274   if test -s conftest.err; then
2275     grep -v '^ *+' conftest.err >conftest.er1
2276     cat conftest.er1 >&5
2277     mv -f conftest.er1 conftest.err
2278   fi
2279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280   test $ac_status = 0; } > conftest.i && {
2281          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2282          test ! -s conftest.err
2283        }; then :
2284   ac_retval=0
2285 else
2286   $as_echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288 
2289     ac_retval=1
2290 fi
2291   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292   as_fn_set_status $ac_retval
2293 
2294 } # ac_fn_cxx_try_cpp
2295 
2296 # ac_fn_objc_try_compile LINENO
2297 # -----------------------------
2298 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2299 ac_fn_objc_try_compile ()
2300 {
2301   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302   rm -f conftest.$ac_objext
2303   if { { ac_try="$ac_compile"
2304 case "(($ac_try" in
2305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306   *) ac_try_echo=$ac_try;;
2307 esac
2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309 $as_echo "$ac_try_echo"; } >&5
2310   (eval "$ac_compile") 2>conftest.err
2311   ac_status=$?
2312   if test -s conftest.err; then
2313     grep -v '^ *+' conftest.err >conftest.er1
2314     cat conftest.er1 >&5
2315     mv -f conftest.er1 conftest.err
2316   fi
2317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318   test $ac_status = 0; } && {
2319          test -z "$ac_objc_werror_flag" ||
2320          test ! -s conftest.err
2321        } && test -s conftest.$ac_objext; then :
2322   ac_retval=0
2323 else
2324   $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326 
2327         ac_retval=1
2328 fi
2329   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330   as_fn_set_status $ac_retval
2331 
2332 } # ac_fn_objc_try_compile
2333 
2334 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2335 # ---------------------------------------------------------
2336 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2337 # the include files in INCLUDES and setting the cache variable VAR
2338 # accordingly.
2339 ac_fn_cxx_check_header_mongrel ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   if eval \${$3+:} false; then :
2343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344 $as_echo_n "checking for $2... " >&6; }
2345 if eval \${$3+:} false; then :
2346   $as_echo_n "(cached) " >&6
2347 fi
2348 eval ac_res=\$$3
2349                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 else
2352   # Is the header compilable?
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2354 $as_echo_n "checking $2 usability... " >&6; }
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h.  */
2357 $4
2358 #include <$2>
2359 _ACEOF
2360 if ac_fn_cxx_try_compile "$LINENO"; then :
2361   ac_header_compiler=yes
2362 else
2363   ac_header_compiler=no
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2367 $as_echo "$ac_header_compiler" >&6; }
2368 
2369 # Is the header present?
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2371 $as_echo_n "checking $2 presence... " >&6; }
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 #include <$2>
2375 _ACEOF
2376 if ac_fn_cxx_try_cpp "$LINENO"; then :
2377   ac_header_preproc=yes
2378 else
2379   ac_header_preproc=no
2380 fi
2381 rm -f conftest.err conftest.i conftest.$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2383 $as_echo "$ac_header_preproc" >&6; }
2384 
2385 # So?  What about this header?
2386 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2387   yes:no: )
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2389 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2391 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2392     ;;
2393   no:yes:* )
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2395 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2397 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2399 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2401 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2402     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2403 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2404 ( $as_echo "## ----------------------------------------- ##
2405 ## Report this to build-dev@openjdk.java.net ##
2406 ## ----------------------------------------- ##"
2407      ) | sed "s/^/$as_me: WARNING:     /" >&2
2408     ;;
2409 esac
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413   $as_echo_n "(cached) " >&6
2414 else
2415   eval "$3=\$ac_header_compiler"
2416 fi
2417 eval ac_res=\$$3
2418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 fi
2421   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422 
2423 } # ac_fn_cxx_check_header_mongrel
2424 
2425 # ac_fn_cxx_try_run LINENO
2426 # ------------------------
2427 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2428 # that executables *can* be run.
2429 ac_fn_cxx_try_run ()
2430 {
2431   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432   if { { ac_try="$ac_link"
2433 case "(($ac_try" in
2434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435   *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439   (eval "$ac_link") 2>&5
2440   ac_status=$?
2441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2442   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2443   { { case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449   (eval "$ac_try") 2>&5
2450   ac_status=$?
2451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2452   test $ac_status = 0; }; }; then :
2453   ac_retval=0
2454 else
2455   $as_echo "$as_me: program exited with status $ac_status" >&5
2456        $as_echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458 
2459        ac_retval=$ac_status
2460 fi
2461   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463   as_fn_set_status $ac_retval
2464 
2465 } # ac_fn_cxx_try_run
2466 
2467 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2468 # ---------------------------------------------------------
2469 # Tests whether HEADER exists and can be compiled using the include files in
2470 # INCLUDES, setting the cache variable VAR accordingly.
2471 ac_fn_cxx_check_header_compile ()
2472 {
2473   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477   $as_echo_n "(cached) " >&6
2478 else
2479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h.  */
2481 $4
2482 #include <$2>
2483 _ACEOF
2484 if ac_fn_cxx_try_compile "$LINENO"; then :
2485   eval "$3=yes"
2486 else
2487   eval "$3=no"
2488 fi
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 fi
2491 eval ac_res=\$$3
2492                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495 
2496 } # ac_fn_cxx_check_header_compile
2497 
2498 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2499 # ----------------------------------------------
2500 # Tries to find the compile-time value of EXPR in a program that includes
2501 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2502 # computed
2503 ac_fn_cxx_compute_int ()
2504 {
2505   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506   if test "$cross_compiling" = yes; then
2507     # Depending upon the size, compute the lo and hi bounds.
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h.  */
2510 $4
2511 int
2512 main ()
2513 {
2514 static int test_array [1 - 2 * !(($2) >= 0)];
2515 test_array [0] = 0;
2516 return test_array [0];
2517 
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 if ac_fn_cxx_try_compile "$LINENO"; then :
2523   ac_lo=0 ac_mid=0
2524   while :; do
2525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main ()
2530 {
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2532 test_array [0] = 0;
2533 return test_array [0];
2534 
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_cxx_try_compile "$LINENO"; then :
2540   ac_hi=$ac_mid; break
2541 else
2542   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2543                         if test $ac_lo -le $ac_mid; then
2544                           ac_lo= ac_hi=
2545                           break
2546                         fi
2547                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550   done
2551 else
2552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h.  */
2554 $4
2555 int
2556 main ()
2557 {
2558 static int test_array [1 - 2 * !(($2) < 0)];
2559 test_array [0] = 0;
2560 return test_array [0];
2561 
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_cxx_try_compile "$LINENO"; then :
2567   ac_hi=-1 ac_mid=-1
2568   while :; do
2569     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h.  */
2571 $4
2572 int
2573 main ()
2574 {
2575 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2576 test_array [0] = 0;
2577 return test_array [0];
2578 
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_cxx_try_compile "$LINENO"; then :
2584   ac_lo=$ac_mid; break
2585 else
2586   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2587                         if test $ac_mid -le $ac_hi; then
2588                           ac_lo= ac_hi=
2589                           break
2590                         fi
2591                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2592 fi
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594   done
2595 else
2596   ac_lo= ac_hi=
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 # Binary search between lo and hi bounds.
2602 while test "x$ac_lo" != "x$ac_hi"; do
2603   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 int
2608 main ()
2609 {
2610 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2611 test_array [0] = 0;
2612 return test_array [0];
2613 
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 if ac_fn_cxx_try_compile "$LINENO"; then :
2619   ac_hi=$ac_mid
2620 else
2621   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2622 fi
2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 done
2625 case $ac_lo in #((
2626 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2627 '') ac_retval=1 ;;
2628 esac
2629   else
2630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h.  */
2632 $4
2633 static long int longval () { return $2; }
2634 static unsigned long int ulongval () { return $2; }
2635 #include <stdio.h>
2636 #include <stdlib.h>
2637 int
2638 main ()
2639 {
2640 
2641   FILE *f = fopen ("conftest.val", "w");
2642   if (! f)
2643     return 1;
2644   if (($2) < 0)
2645     {
2646       long int i = longval ();
2647       if (i != ($2))
2648         return 1;
2649       fprintf (f, "%ld", i);
2650     }
2651   else
2652     {
2653       unsigned long int i = ulongval ();
2654       if (i != ($2))
2655         return 1;
2656       fprintf (f, "%lu", i);
2657     }
2658   /* Do not output a trailing newline, as this causes \r\n confusion
2659      on some platforms.  */
2660   return ferror (f) || fclose (f) != 0;
2661 
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 if ac_fn_cxx_try_run "$LINENO"; then :
2667   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2668 else
2669   ac_retval=1
2670 fi
2671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2672   conftest.$ac_objext conftest.beam conftest.$ac_ext
2673 rm -f conftest.val
2674 
2675   fi
2676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677   as_fn_set_status $ac_retval
2678 
2679 } # ac_fn_cxx_compute_int
2680 
2681 # ac_fn_cxx_try_link LINENO
2682 # -------------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded.
2684 ac_fn_cxx_try_link ()
2685 {
2686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687   rm -f conftest.$ac_objext conftest$ac_exeext
2688   if { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695   (eval "$ac_link") 2>conftest.err
2696   ac_status=$?
2697   if test -s conftest.err; then
2698     grep -v '^ *+' conftest.err >conftest.er1
2699     cat conftest.er1 >&5
2700     mv -f conftest.er1 conftest.err
2701   fi
2702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703   test $ac_status = 0; } && {
2704          test -z "$ac_cxx_werror_flag" ||
2705          test ! -s conftest.err
2706        } && test -s conftest$ac_exeext && {
2707          test "$cross_compiling" = yes ||
2708          test -x conftest$ac_exeext
2709        }; then :
2710   ac_retval=0
2711 else
2712   $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714 
2715         ac_retval=1
2716 fi
2717   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2718   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2719   # interfere with the next link command; also delete a directory that is
2720   # left behind by Apple's compiler.  We do this before executing the actions.
2721   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2723   as_fn_set_status $ac_retval
2724 
2725 } # ac_fn_cxx_try_link
2726 
2727 # ac_fn_cxx_check_func LINENO FUNC VAR
2728 # ------------------------------------
2729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2730 ac_fn_cxx_check_func ()
2731 {
2732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if eval \${$3+:} false; then :
2736   $as_echo_n "(cached) " >&6
2737 else
2738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h.  */
2740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2742 #define $2 innocuous_$2
2743 
2744 /* System header to define __stub macros and hopefully few prototypes,
2745     which can conflict with char $2 (); below.
2746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2747     <limits.h> exists even on freestanding compilers.  */
2748 
2749 #ifdef __STDC__
2750 # include <limits.h>
2751 #else
2752 # include <assert.h>
2753 #endif
2754 
2755 #undef $2
2756 
2757 /* Override any GCC internal prototype to avoid an error.
2758    Use char because int might match the return type of a GCC
2759    builtin and then its argument prototype would still apply.  */
2760 #ifdef __cplusplus
2761 extern "C"
2762 #endif
2763 char $2 ();
2764 /* The GNU C library defines this for functions which it implements
2765     to always fail with ENOSYS.  Some functions are actually named
2766     something starting with __ and the normal name is an alias.  */
2767 #if defined __stub_$2 || defined __stub___$2
2768 choke me
2769 #endif
2770 
2771 int
2772 main ()
2773 {
2774 return $2 ();
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 if ac_fn_cxx_try_link "$LINENO"; then :
2780   eval "$3=yes"
2781 else
2782   eval "$3=no"
2783 fi
2784 rm -f core conftest.err conftest.$ac_objext \
2785     conftest$ac_exeext conftest.$ac_ext
2786 fi
2787 eval ac_res=\$$3
2788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 
2792 } # ac_fn_cxx_check_func
2793 
2794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2795 # -------------------------------------------------------
2796 # Tests whether HEADER exists and can be compiled using the include files in
2797 # INCLUDES, setting the cache variable VAR accordingly.
2798 ac_fn_c_check_header_compile ()
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 $4
2809 #include <$2>
2810 _ACEOF
2811 if ac_fn_c_try_compile "$LINENO"; then :
2812   eval "$3=yes"
2813 else
2814   eval "$3=no"
2815 fi
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 fi
2818 eval ac_res=\$$3
2819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2820 $as_echo "$ac_res" >&6; }
2821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2822 
2823 } # ac_fn_c_check_header_compile
2824 cat >config.log <<_ACEOF
2825 This file contains any messages produced by compilers while
2826 running configure, to aid debugging if configure makes a mistake.
2827 
2828 It was created by OpenJDK $as_me jdk9, which was
2829 generated by GNU Autoconf 2.69.  Invocation command line was
2830 
2831   $ $0 $@
2832 
2833 _ACEOF
2834 exec 5>>config.log
2835 {
2836 cat <<_ASUNAME
2837 ## --------- ##
2838 ## Platform. ##
2839 ## --------- ##
2840 
2841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2846 
2847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2848 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2849 
2850 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2851 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2853 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2854 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2855 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2856 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2857 
2858 _ASUNAME
2859 
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     $as_echo "PATH: $as_dir"
2866   done
2867 IFS=$as_save_IFS
2868 
2869 } >&5
2870 
2871 cat >&5 <<_ACEOF
2872 
2873 
2874 ## ----------- ##
2875 ## Core tests. ##
2876 ## ----------- ##
2877 
2878 _ACEOF
2879 
2880 
2881 # Keep a trace of the command line.
2882 # Strip out --no-create and --no-recursion so they do not pile up.
2883 # Strip out --silent because we don't want to record it for future runs.
2884 # Also quote any args containing shell meta-characters.
2885 # Make two passes to allow for proper duplicate-argument suppression.
2886 ac_configure_args=
2887 ac_configure_args0=
2888 ac_configure_args1=
2889 ac_must_keep_next=false
2890 for ac_pass in 1 2
2891 do
2892   for ac_arg
2893   do
2894     case $ac_arg in
2895     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2896     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2897     | -silent | --silent | --silen | --sile | --sil)
2898       continue ;;
2899     *\'*)
2900       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2901     esac
2902     case $ac_pass in
2903     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2904     2)
2905       as_fn_append ac_configure_args1 " '$ac_arg'"
2906       if test $ac_must_keep_next = true; then
2907         ac_must_keep_next=false # Got value, back to normal.
2908       else
2909         case $ac_arg in
2910           *=* | --config-cache | -C | -disable-* | --disable-* \
2911           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2912           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2913           | -with-* | --with-* | -without-* | --without-* | --x)
2914             case "$ac_configure_args0 " in
2915               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2916             esac
2917             ;;
2918           -* ) ac_must_keep_next=true ;;
2919         esac
2920       fi
2921       as_fn_append ac_configure_args " '$ac_arg'"
2922       ;;
2923     esac
2924   done
2925 done
2926 { ac_configure_args0=; unset ac_configure_args0;}
2927 { ac_configure_args1=; unset ac_configure_args1;}
2928 
2929 # When interrupted or exit'd, cleanup temporary files, and complete
2930 # config.log.  We remove comments because anyway the quotes in there
2931 # would cause problems or look ugly.
2932 # WARNING: Use '\'' to represent an apostrophe within the trap.
2933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2934 trap 'exit_status=$?
2935   # Save into config.log some information that might help in debugging.
2936   {
2937     echo
2938 
2939     $as_echo "## ---------------- ##
2940 ## Cache variables. ##
2941 ## ---------------- ##"
2942     echo
2943     # The following way of writing the cache mishandles newlines in values,
2944 (
2945   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2946     eval ac_val=\$$ac_var
2947     case $ac_val in #(
2948     *${as_nl}*)
2949       case $ac_var in #(
2950       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2952       esac
2953       case $ac_var in #(
2954       _ | IFS | as_nl) ;; #(
2955       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2956       *) { eval $ac_var=; unset $ac_var;} ;;
2957       esac ;;
2958     esac
2959   done
2960   (set) 2>&1 |
2961     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2962     *${as_nl}ac_space=\ *)
2963       sed -n \
2964         "s/'\''/'\''\\\\'\'''\''/g;
2965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2966       ;; #(
2967     *)
2968       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2969       ;;
2970     esac |
2971     sort
2972 )
2973     echo
2974 
2975     $as_echo "## ----------------- ##
2976 ## Output variables. ##
2977 ## ----------------- ##"
2978     echo
2979     for ac_var in $ac_subst_vars
2980     do
2981       eval ac_val=\$$ac_var
2982       case $ac_val in
2983       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2984       esac
2985       $as_echo "$ac_var='\''$ac_val'\''"
2986     done | sort
2987     echo
2988 
2989     if test -n "$ac_subst_files"; then
2990       $as_echo "## ------------------- ##
2991 ## File substitutions. ##
2992 ## ------------------- ##"
2993       echo
2994       for ac_var in $ac_subst_files
2995       do
2996         eval ac_val=\$$ac_var
2997         case $ac_val in
2998         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2999         esac
3000         $as_echo "$ac_var='\''$ac_val'\''"
3001       done | sort
3002       echo
3003     fi
3004 
3005     if test -s confdefs.h; then
3006       $as_echo "## ----------- ##
3007 ## confdefs.h. ##
3008 ## ----------- ##"
3009       echo
3010       cat confdefs.h
3011       echo
3012     fi
3013     test "$ac_signal" != 0 &&
3014       $as_echo "$as_me: caught signal $ac_signal"
3015     $as_echo "$as_me: exit $exit_status"
3016   } >&5
3017   rm -f core *.core core.conftest.* &&
3018     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3019     exit $exit_status
3020 ' 0
3021 for ac_signal in 1 2 13 15; do
3022   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3023 done
3024 ac_signal=0
3025 
3026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3027 rm -f -r conftest* confdefs.h
3028 
3029 $as_echo "/* confdefs.h */" > confdefs.h
3030 
3031 # Predefined preprocessor variables.
3032 
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE_NAME "$PACKAGE_NAME"
3035 _ACEOF
3036 
3037 cat >>confdefs.h <<_ACEOF
3038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3039 _ACEOF
3040 
3041 cat >>confdefs.h <<_ACEOF
3042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3043 _ACEOF
3044 
3045 cat >>confdefs.h <<_ACEOF
3046 #define PACKAGE_STRING "$PACKAGE_STRING"
3047 _ACEOF
3048 
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3051 _ACEOF
3052 
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_URL "$PACKAGE_URL"
3055 _ACEOF
3056 
3057 
3058 # Let the site file select an alternate cache file if it wants to.
3059 # Prefer an explicitly selected file to automatically selected ones.
3060 ac_site_file1=NONE
3061 ac_site_file2=NONE
3062 if test -n "$CONFIG_SITE"; then
3063   # We do not want a PATH search for config.site.
3064   case $CONFIG_SITE in #((
3065     -*)  ac_site_file1=./$CONFIG_SITE;;
3066     */*) ac_site_file1=$CONFIG_SITE;;
3067     *)   ac_site_file1=./$CONFIG_SITE;;
3068   esac
3069 elif test "x$prefix" != xNONE; then
3070   ac_site_file1=$prefix/share/config.site
3071   ac_site_file2=$prefix/etc/config.site
3072 else
3073   ac_site_file1=$ac_default_prefix/share/config.site
3074   ac_site_file2=$ac_default_prefix/etc/config.site
3075 fi
3076 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3077 do
3078   test "x$ac_site_file" = xNONE && continue
3079   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3080     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3081 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3082     sed 's/^/| /' "$ac_site_file" >&5
3083     . "$ac_site_file" \
3084       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error $? "failed to load site script $ac_site_file
3087 See \`config.log' for more details" "$LINENO" 5; }
3088   fi
3089 done
3090 
3091 if test -r "$cache_file"; then
3092   # Some versions of bash will fail to source /dev/null (special files
3093   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3094   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3095     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3096 $as_echo "$as_me: loading cache $cache_file" >&6;}
3097     case $cache_file in
3098       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3099       *)                      . "./$cache_file";;
3100     esac
3101   fi
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3104 $as_echo "$as_me: creating cache $cache_file" >&6;}
3105   >$cache_file
3106 fi
3107 
3108 # Check that the precious variables saved in the cache have kept the same
3109 # value.
3110 ac_cache_corrupted=false
3111 for ac_var in $ac_precious_vars; do
3112   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3113   eval ac_new_set=\$ac_env_${ac_var}_set
3114   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3115   eval ac_new_val=\$ac_env_${ac_var}_value
3116   case $ac_old_set,$ac_new_set in
3117     set,)
3118       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3120       ac_cache_corrupted=: ;;
3121     ,set)
3122       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3124       ac_cache_corrupted=: ;;
3125     ,);;
3126     *)
3127       if test "x$ac_old_val" != "x$ac_new_val"; then
3128         # differences in whitespace do not lead to failure.
3129         ac_old_val_w=`echo x $ac_old_val`
3130         ac_new_val_w=`echo x $ac_new_val`
3131         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3132           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3134           ac_cache_corrupted=:
3135         else
3136           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3138           eval $ac_var=\$ac_old_val
3139         fi
3140         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3141 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3142         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3143 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3144       fi;;
3145   esac
3146   # Pass precious variables to config.status.
3147   if test "$ac_new_set" = set; then
3148     case $ac_new_val in
3149     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3150     *) ac_arg=$ac_var=$ac_new_val ;;
3151     esac
3152     case " $ac_configure_args " in
3153       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3154       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3155     esac
3156   fi
3157 done
3158 if $ac_cache_corrupted; then
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3163   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3164 fi
3165 ## -------------------- ##
3166 ## Main body of script. ##
3167 ## -------------------- ##
3168 
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 
3175 
3176 
3177 ac_aux_dir=
3178 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3179   if test -f "$ac_dir/install-sh"; then
3180     ac_aux_dir=$ac_dir
3181     ac_install_sh="$ac_aux_dir/install-sh -c"
3182     break
3183   elif test -f "$ac_dir/install.sh"; then
3184     ac_aux_dir=$ac_dir
3185     ac_install_sh="$ac_aux_dir/install.sh -c"
3186     break
3187   elif test -f "$ac_dir/shtool"; then
3188     ac_aux_dir=$ac_dir
3189     ac_install_sh="$ac_aux_dir/shtool install -c"
3190     break
3191   fi
3192 done
3193 if test -z "$ac_aux_dir"; then
3194   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
3195 fi
3196 
3197 # These three variables are undocumented and unsupported,
3198 # and are intended to be withdrawn in a future Autoconf release.
3199 # They can cause serious problems if a builder's source tree is in a directory
3200 # whose full name contains unusual characters.
3201 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3202 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3203 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3204 
3205 
3206 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3207 
3208 #
3209 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3210 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3211 #
3212 # This code is free software; you can redistribute it and/or modify it
3213 # under the terms of the GNU General Public License version 2 only, as
3214 # published by the Free Software Foundation.  Oracle designates this
3215 # particular file as subject to the "Classpath" exception as provided
3216 # by Oracle in the LICENSE file that accompanied this code.
3217 #
3218 # This code is distributed in the hope that it will be useful, but WITHOUT
3219 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3220 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3221 # version 2 for more details (a copy is included in the LICENSE file that
3222 # accompanied this code).
3223 #
3224 # You should have received a copy of the GNU General Public License version
3225 # 2 along with this work; if not, write to the Free Software Foundation,
3226 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3227 #
3228 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3229 # or visit www.oracle.com if you need additional information or have any
3230 # questions.
3231 #
3232 
3233 #
3234 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3235 #
3236 # This program is free software; you can redistribute it and/or modify
3237 # it under the terms of the GNU General Public License as published by
3238 # the Free Software Foundation; either version 2 of the License, or
3239 # (at your option) any later version.
3240 #
3241 # This program is distributed in the hope that it will be useful, but
3242 # WITHOUT ANY WARRANTY; without even the implied warranty of
3243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3244 # General Public License for more details.
3245 #
3246 # You should have received a copy of the GNU General Public License
3247 # along with this program; if not, write to the Free Software
3248 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3249 #
3250 # As a special exception to the GNU General Public License, if you
3251 # distribute this file as part of a program that contains a
3252 # configuration script generated by Autoconf, you may include it under
3253 # the same distribution terms that you use for the rest of that program.
3254 
3255 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3256 # ----------------------------------
3257 # PKG_PROG_PKG_CONFIG
3258 
3259 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3260 #
3261 # Check to see whether a particular set of modules exists.  Similar
3262 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3263 #
3264 #
3265 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3266 # this or PKG_CHECK_MODULES is called, or make sure to call
3267 # PKG_CHECK_EXISTS manually
3268 # --------------------------------------------------------------
3269 
3270 
3271 
3272 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3273 # ---------------------------------------------
3274 # _PKG_CONFIG
3275 
3276 # _PKG_SHORT_ERRORS_SUPPORTED
3277 # -----------------------------
3278 # _PKG_SHORT_ERRORS_SUPPORTED
3279 
3280 
3281 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3282 # [ACTION-IF-NOT-FOUND])
3283 #
3284 #
3285 # Note that if there is a possibility the first call to
3286 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3287 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3288 #
3289 #
3290 # --------------------------------------------------------------
3291 # PKG_CHECK_MODULES
3292 
3293 
3294 # Include these first...
3295 #
3296 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3297 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3298 #
3299 # This code is free software; you can redistribute it and/or modify it
3300 # under the terms of the GNU General Public License version 2 only, as
3301 # published by the Free Software Foundation.  Oracle designates this
3302 # particular file as subject to the "Classpath" exception as provided
3303 # by Oracle in the LICENSE file that accompanied this code.
3304 #
3305 # This code is distributed in the hope that it will be useful, but WITHOUT
3306 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3307 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3308 # version 2 for more details (a copy is included in the LICENSE file that
3309 # accompanied this code).
3310 #
3311 # You should have received a copy of the GNU General Public License version
3312 # 2 along with this work; if not, write to the Free Software Foundation,
3313 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3314 #
3315 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3316 # or visit www.oracle.com if you need additional information or have any
3317 # questions.
3318 #
3319 
3320 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3321 # If so, then append $1 to $2 \
3322 # Also set JVM_ARG_OK to true/false depending on outcome.
3323 
3324 
3325 # Appends a string to a path variable, only adding the : when needed.
3326 
3327 
3328 # This will make sure the given variable points to a full and proper
3329 # path. This means:
3330 # 1) There will be no spaces in the path. On posix platforms,
3331 #    spaces in the path will result in an error. On Windows,
3332 #    the path will be rewritten using short-style to be space-free.
3333 # 2) The path will be absolute, and it will be in unix-style (on
3334 #     cygwin).
3335 # $1: The name of the variable to fix
3336 
3337 
3338 # This will make sure the given variable points to a executable
3339 # with a full and proper path. This means:
3340 # 1) There will be no spaces in the path. On posix platforms,
3341 #    spaces in the path will result in an error. On Windows,
3342 #    the path will be rewritten using short-style to be space-free.
3343 # 2) The path will be absolute, and it will be in unix-style (on
3344 #     cygwin).
3345 # Any arguments given to the executable is preserved.
3346 # If the input variable does not have a directory specification, then
3347 # it need to be in the PATH.
3348 # $1: The name of the variable to fix
3349 
3350 
3351 
3352 
3353 # Register a --with argument but mark it as deprecated
3354 # $1: The name of the with argument to deprecate, not including --with-
3355 
3356 
3357 # Register a --enable argument but mark it as deprecated
3358 # $1: The name of the with argument to deprecate, not including --enable-
3359 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3360 
3361 
3362 
3363 
3364 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3365 # $1: variable to check
3366 
3367 
3368 # Check that there are no unprocessed overridden variables left.
3369 # If so, they are an incorrect argument and we will exit with an error.
3370 
3371 
3372 # Setup a tool for the given variable. If correctly specified by the user,
3373 # use that value, otherwise search for the tool using the supplied code snippet.
3374 # $1: variable to set
3375 # $2: code snippet to call to look for the tool
3376 
3377 
3378 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3379 # $1: variable to set
3380 # $2: executable name (or list of names) to look for
3381 
3382 
3383 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3384 # $1: variable to set
3385 # $2: executable name (or list of names) to look for
3386 
3387 
3388 # Like BASIC_PATH_PROGS but fails if no tool was found.
3389 # $1: variable to set
3390 # $2: executable name (or list of names) to look for
3391 
3392 
3393 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3394 # $1: variable to set
3395 # $2: autoconf macro to call to look for the special tool
3396 
3397 
3398 # Setup the most fundamental tools that relies on not much else to set up,
3399 # but is used by much of the early bootstrap code.
3400 
3401 
3402 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3403 
3404 
3405 
3406 
3407 
3408 
3409 
3410 #%%% Simple tools %%%
3411 
3412 # Check if we have found a usable version of make
3413 # $1: the path to a potential make binary (or empty)
3414 # $2: the description on how we found this
3415 
3416 
3417 # Goes looking for a usable version of GNU make.
3418 
3419 
3420 
3421 
3422 
3423 
3424 # Check if build directory is on local disk. If not possible to determine,
3425 # we prefer to claim it's local.
3426 # Argument 1: directory to test
3427 # Argument 2: what to do if it is on local disk
3428 # Argument 3: what to do otherwise (remote disk or failure)
3429 
3430 
3431 # Check that source files have basic read permissions set. This might
3432 # not be the case in cygwin in certain conditions.
3433 
3434 
3435 
3436 
3437 #
3438 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3439 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3440 #
3441 # This code is free software; you can redistribute it and/or modify it
3442 # under the terms of the GNU General Public License version 2 only, as
3443 # published by the Free Software Foundation.  Oracle designates this
3444 # particular file as subject to the "Classpath" exception as provided
3445 # by Oracle in the LICENSE file that accompanied this code.
3446 #
3447 # This code is distributed in the hope that it will be useful, but WITHOUT
3448 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3449 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3450 # version 2 for more details (a copy is included in the LICENSE file that
3451 # accompanied this code).
3452 #
3453 # You should have received a copy of the GNU General Public License version
3454 # 2 along with this work; if not, write to the Free Software Foundation,
3455 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3456 #
3457 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3458 # or visit www.oracle.com if you need additional information or have any
3459 # questions.
3460 #
3461 
3462 
3463 
3464 
3465 
3466 # Helper function which possibly converts a path using DOS-style short mode.
3467 # If so, the updated path is stored in $new_path.
3468 # $1: The path to check
3469 
3470 
3471 # Helper function which possibly converts a path using DOS-style short mode.
3472 # If so, the updated path is stored in $new_path.
3473 # $1: The path to check
3474 
3475 
3476 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3477 # and could probably be heavily simplified. However, all changes in this
3478 # area tend to need lot of testing in different scenarios, and in lack of
3479 # proper unit testing, cleaning this up has not been deemed worth the effort
3480 # at the moment.
3481 
3482 
3483 
3484 
3485 
3486 
3487 
3488 
3489 
3490 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3491 
3492 
3493 
3494 
3495 #
3496 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3497 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3498 #
3499 # This code is free software; you can redistribute it and/or modify it
3500 # under the terms of the GNU General Public License version 2 only, as
3501 # published by the Free Software Foundation.  Oracle designates this
3502 # particular file as subject to the "Classpath" exception as provided
3503 # by Oracle in the LICENSE file that accompanied this code.
3504 #
3505 # This code is distributed in the hope that it will be useful, but WITHOUT
3506 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3507 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3508 # version 2 for more details (a copy is included in the LICENSE file that
3509 # accompanied this code).
3510 #
3511 # You should have received a copy of the GNU General Public License version
3512 # 2 along with this work; if not, write to the Free Software Foundation,
3513 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3514 #
3515 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3516 # or visit www.oracle.com if you need additional information or have any
3517 # questions.
3518 #
3519 
3520 
3521 
3522 
3523 
3524 
3525 
3526 
3527 
3528 
3529 
3530 # ... then the rest
3531 #
3532 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3533 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3534 #
3535 # This code is free software; you can redistribute it and/or modify it
3536 # under the terms of the GNU General Public License version 2 only, as
3537 # published by the Free Software Foundation.  Oracle designates this
3538 # particular file as subject to the "Classpath" exception as provided
3539 # by Oracle in the LICENSE file that accompanied this code.
3540 #
3541 # This code is distributed in the hope that it will be useful, but WITHOUT
3542 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3543 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3544 # version 2 for more details (a copy is included in the LICENSE file that
3545 # accompanied this code).
3546 #
3547 # You should have received a copy of the GNU General Public License version
3548 # 2 along with this work; if not, write to the Free Software Foundation,
3549 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3550 #
3551 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3552 # or visit www.oracle.com if you need additional information or have any
3553 # questions.
3554 #
3555 
3556 ########################################################################
3557 # This file handles detection of the Boot JDK. The Boot JDK detection
3558 # process has been developed as a response to solve a complex real-world
3559 # problem. Initially, it was simple, but it has grown as platform after
3560 # platform, idiosyncracy after idiosyncracy has been supported.
3561 #
3562 # The basic idea is this:
3563 # 1) You need an acceptable *) JDK to use as a Boot JDK
3564 # 2) There are several ways to locate a JDK, that are mostly platform
3565 #    dependent **)
3566 # 3) You can have multiple JDKs installed
3567 # 4) If possible, configure should try to dig out an acceptable JDK
3568 #    automatically, without having to resort to command-line options
3569 #
3570 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3571 #     javac) and not a JRE, etc.
3572 #
3573 # **) On Windows we typically use a well-known path.
3574 #     On MacOSX we typically use the tool java_home.
3575 #     On Linux we typically find javac in the $PATH, and then follow a
3576 #     chain of symlinks that often ends up in a real JDK.
3577 #
3578 # This leads to the code where we check in different ways to locate a
3579 # JDK, and if one is found, check if it is acceptable. If not, we print
3580 # our reasons for rejecting it (useful when debugging non-working
3581 # configure situations) and continue checking the next one.
3582 ########################################################################
3583 
3584 # Execute the check given as argument, and verify the result
3585 # If the Boot JDK was previously found, do nothing
3586 # $1 A command line (typically autoconf macro) to execute
3587 
3588 
3589 # Test: Is bootjdk explicitely set by command line arguments?
3590 
3591 
3592 # Test: Is bootjdk available from builddeps?
3593 
3594 
3595 # Test: Is $JAVA_HOME set?
3596 
3597 
3598 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3599 
3600 
3601 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3602 # $1: Argument to the java_home binary (optional)
3603 
3604 
3605 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3606 
3607 
3608 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3609 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3610 # $1 = Path to directory containing jdk installations.
3611 # $2 = String to append to the found JDK directory to get the proper JDK home
3612 
3613 
3614 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3615 # environmental variable as base for where to look.
3616 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3617 
3618 
3619 # Test: Is there a JDK installed in default, well-known locations?
3620 
3621 
3622 # Check that a command-line tool in the Boot JDK is correct
3623 # $1 = name of variable to assign
3624 # $2 = name of binary
3625 
3626 
3627 ###############################################################################
3628 #
3629 # We need a Boot JDK to bootstrap the build.
3630 #
3631 
3632 
3633 
3634 
3635 
3636 #
3637 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3638 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3639 #
3640 # This code is free software; you can redistribute it and/or modify it
3641 # under the terms of the GNU General Public License version 2 only, as
3642 # published by the Free Software Foundation.  Oracle designates this
3643 # particular file as subject to the "Classpath" exception as provided
3644 # by Oracle in the LICENSE file that accompanied this code.
3645 #
3646 # This code is distributed in the hope that it will be useful, but WITHOUT
3647 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3648 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3649 # version 2 for more details (a copy is included in the LICENSE file that
3650 # accompanied this code).
3651 #
3652 # You should have received a copy of the GNU General Public License version
3653 # 2 along with this work; if not, write to the Free Software Foundation,
3654 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3655 #
3656 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3657 # or visit www.oracle.com if you need additional information or have any
3658 # questions.
3659 #
3660 
3661 
3662 
3663 
3664 
3665 
3666 
3667 
3668 
3669 
3670 
3671 
3672 
3673 
3674 
3675 
3676 
3677 
3678 
3679 
3680 #
3681 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3682 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3683 #
3684 # This code is free software; you can redistribute it and/or modify it
3685 # under the terms of the GNU General Public License version 2 only, as
3686 # published by the Free Software Foundation.  Oracle designates this
3687 # particular file as subject to the "Classpath" exception as provided
3688 # by Oracle in the LICENSE file that accompanied this code.
3689 #
3690 # This code is distributed in the hope that it will be useful, but WITHOUT
3691 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3692 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3693 # version 2 for more details (a copy is included in the LICENSE file that
3694 # accompanied this code).
3695 #
3696 # You should have received a copy of the GNU General Public License version
3697 # 2 along with this work; if not, write to the Free Software Foundation,
3698 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3699 #
3700 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3701 # or visit www.oracle.com if you need additional information or have any
3702 # questions.
3703 #
3704 
3705 
3706 
3707 
3708 
3709 # Documentation on common flags used for solstudio in HIGHEST.
3710 #
3711 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3712 #          done with care, there are some assumptions below that need to
3713 #          be understood about the use of pointers, and IEEE behavior.
3714 #
3715 # -fns: Use non-standard floating point mode (not IEEE 754)
3716 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3717 # -fsingle: Use single precision floating point with 'float'
3718 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3719 #   (Source with excessing pointer casting and data access with mixed
3720 #    pointer types are not recommended)
3721 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3722 #   (If you expect perfect errno behavior, do not use this)
3723 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3724 # -xrestrict: Pointer parameters to functions do not overlap
3725 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3726 #    If you pass in multiple pointers to the same data, do not use this)
3727 # -xlibmil: Inline some library routines
3728 #   (If you expect perfect errno behavior, do not use this)
3729 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3730 #   (If you expect perfect errno behavior, do not use this)
3731 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3732 
3733     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3734     # Bug?
3735     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3736     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3737     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3738     #fi
3739 
3740 
3741 
3742 
3743 
3744 
3745 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3746 #                                   [RUN-IF-FALSE])
3747 # ------------------------------------------------------------
3748 # Check that the c and c++ compilers support an argument
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 cygwin_help() {
3783   case $1 in
3784     unzip)
3785       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3786       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3787       ;;
3788     zip)
3789       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3790       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3791       ;;
3792     make)
3793       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3794       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3795       ;;
3796     freetype)
3797       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3798         HELP_MSG="To install freetype, run:
3799 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3800 chmod +x /tmp/freetype-setup.exe
3801 /tmp/freetype-setup.exe
3802 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3803 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3804       else
3805         HELP_MSG="You need to build a 64-bit version of freetype.
3806 This is not readily available.
3807 You can find source code and build instructions on
3808 http://www.freetype.org/
3809 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3810       fi
3811       ;;
3812   esac
3813 }
3814 
3815 msys_help() {
3816   PKGHANDLER_COMMAND=""
3817 }
3818 
3819 apt_help() {
3820   case $1 in
3821     devkit)
3822       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3823     openjdk)
3824       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3825     alsa)
3826       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3827     cups)
3828       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3829     freetype)
3830       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3831     pulse)
3832       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3833     x11)
3834       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3835     ccache)
3836       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3837   esac
3838 }
3839 
3840 yum_help() {
3841   case $1 in
3842     devkit)
3843       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3844     openjdk)
3845       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3846     alsa)
3847       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3848     cups)
3849       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3850     freetype)
3851       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3852     pulse)
3853       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3854     x11)
3855       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3856     ccache)
3857       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3858   esac
3859 }
3860 
3861 port_help() {
3862   PKGHANDLER_COMMAND=""
3863 }
3864 
3865 pkgutil_help() {
3866   PKGHANDLER_COMMAND=""
3867 }
3868 
3869 pkgadd_help() {
3870   PKGHANDLER_COMMAND=""
3871 }
3872 
3873 # This function will check if we're called from the "configure" wrapper while
3874 # printing --help. If so, we will print out additional information that can
3875 # only be extracted within the autoconf script, and then exit. This must be
3876 # called at the very beginning in configure.ac.
3877 
3878 
3879 
3880 
3881 #
3882 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3883 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3884 #
3885 # This code is free software; you can redistribute it and/or modify it
3886 # under the terms of the GNU General Public License version 2 only, as
3887 # published by the Free Software Foundation.  Oracle designates this
3888 # particular file as subject to the "Classpath" exception as provided
3889 # by Oracle in the LICENSE file that accompanied this code.
3890 #
3891 # This code is distributed in the hope that it will be useful, but WITHOUT
3892 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3893 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3894 # version 2 for more details (a copy is included in the LICENSE file that
3895 # accompanied this code).
3896 #
3897 # You should have received a copy of the GNU General Public License version
3898 # 2 along with this work; if not, write to the Free Software Foundation,
3899 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3900 #
3901 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3902 # or visit www.oracle.com if you need additional information or have any
3903 # questions.
3904 #
3905 
3906 
3907 
3908 
3909 
3910 
3911 
3912 
3913 
3914 
3915 ###############################################################################
3916 #
3917 # Should we build only OpenJDK even if closed sources are present?
3918 #
3919 
3920 
3921 
3922 
3923 ###############################################################################
3924 #
3925 # Setup version numbers
3926 #
3927 
3928 
3929 
3930 
3931 
3932 
3933 #
3934 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3935 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3936 #
3937 # This code is free software; you can redistribute it and/or modify it
3938 # under the terms of the GNU General Public License version 2 only, as
3939 # published by the Free Software Foundation.  Oracle designates this
3940 # particular file as subject to the "Classpath" exception as provided
3941 # by Oracle in the LICENSE file that accompanied this code.
3942 #
3943 # This code is distributed in the hope that it will be useful, but WITHOUT
3944 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3945 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3946 # version 2 for more details (a copy is included in the LICENSE file that
3947 # accompanied this code).
3948 #
3949 # You should have received a copy of the GNU General Public License version
3950 # 2 along with this work; if not, write to the Free Software Foundation,
3951 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3952 #
3953 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3954 # or visit www.oracle.com if you need additional information or have any
3955 # questions.
3956 #
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 #
3977 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3978 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3979 #
3980 # This code is free software; you can redistribute it and/or modify it
3981 # under the terms of the GNU General Public License version 2 only, as
3982 # published by the Free Software Foundation.  Oracle designates this
3983 # particular file as subject to the "Classpath" exception as provided
3984 # by Oracle in the LICENSE file that accompanied this code.
3985 #
3986 # This code is distributed in the hope that it will be useful, but WITHOUT
3987 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3988 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3989 # version 2 for more details (a copy is included in the LICENSE file that
3990 # accompanied this code).
3991 #
3992 # You should have received a copy of the GNU General Public License version
3993 # 2 along with this work; if not, write to the Free Software Foundation,
3994 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3995 #
3996 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3997 # or visit www.oracle.com if you need additional information or have any
3998 # questions.
3999 #
4000 
4001 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4002 # Converts autoconf style CPU name to OpenJDK style, into
4003 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4004 
4005 
4006 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4007 # Converts autoconf style OS name to OpenJDK style, into
4008 # VAR_OS and VAR_OS_API.
4009 
4010 
4011 # Expects $host_os $host_cpu $build_os and $build_cpu
4012 # and $with_target_bits to have been setup!
4013 #
4014 # Translate the standard triplet(quadruplet) definition
4015 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4016 # OPENJDK_BUILD_OS, etc.
4017 
4018 
4019 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4020 # accordingly. Must be done after setting up build and target system, but before
4021 # doing anything else with these values.
4022 
4023 
4024 # Setup the legacy variables, for controlling the old makefiles.
4025 #
4026 
4027 
4028 
4029 
4030 #%%% Build and target systems %%%
4031 
4032 
4033 
4034 
4035 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4036 # Add -mX to various FLAGS variables.
4037 
4038 
4039 
4040 
4041 
4042 
4043 #
4044 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4045 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4046 #
4047 # This code is free software; you can redistribute it and/or modify it
4048 # under the terms of the GNU General Public License version 2 only, as
4049 # published by the Free Software Foundation.  Oracle designates this
4050 # particular file as subject to the "Classpath" exception as provided
4051 # by Oracle in the LICENSE file that accompanied this code.
4052 #
4053 # This code is distributed in the hope that it will be useful, but WITHOUT
4054 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4055 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4056 # version 2 for more details (a copy is included in the LICENSE file that
4057 # accompanied this code).
4058 #
4059 # You should have received a copy of the GNU General Public License version
4060 # 2 along with this work; if not, write to the Free Software Foundation,
4061 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4062 #
4063 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4064 # or visit www.oracle.com if you need additional information or have any
4065 # questions.
4066 #
4067 
4068 
4069 
4070 
4071 
4072 
4073 
4074 
4075 #
4076 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4077 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4078 #
4079 # This code is free software; you can redistribute it and/or modify it
4080 # under the terms of the GNU General Public License version 2 only, as
4081 # published by the Free Software Foundation.  Oracle designates this
4082 # particular file as subject to the "Classpath" exception as provided
4083 # by Oracle in the LICENSE file that accompanied this code.
4084 #
4085 # This code is distributed in the hope that it will be useful, but WITHOUT
4086 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4087 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4088 # version 2 for more details (a copy is included in the LICENSE file that
4089 # accompanied this code).
4090 #
4091 # You should have received a copy of the GNU General Public License version
4092 # 2 along with this work; if not, write to the Free Software Foundation,
4093 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4094 #
4095 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4096 # or visit www.oracle.com if you need additional information or have any
4097 # questions.
4098 #
4099 
4100 ########################################################################
4101 # This file is responsible for detecting, verifying and setting up the
4102 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4103 # proper paths to the binaries, but it will not setup any flags.
4104 #
4105 # The binaries used is determined by the toolchain type, which is the family of
4106 # compilers and related tools that are used.
4107 ########################################################################
4108 
4109 
4110 # All valid toolchains, regardless of platform (used by help.m4)
4111 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4112 
4113 # These toolchains are valid on different platforms
4114 VALID_TOOLCHAINS_linux="gcc clang"
4115 VALID_TOOLCHAINS_solaris="solstudio"
4116 VALID_TOOLCHAINS_macosx="gcc clang"
4117 VALID_TOOLCHAINS_aix="xlc"
4118 VALID_TOOLCHAINS_windows="microsoft"
4119 
4120 # Toolchain descriptions
4121 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4122 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4123 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4124 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4125 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4126 
4127 # Setup a number of variables describing how native output files are
4128 # named on this platform/toolchain.
4129 
4130 
4131 # Determine which toolchain type to use, and make sure it is valid for this
4132 # platform. Setup various information about the selected toolchain.
4133 
4134 
4135 # Before we start detecting the toolchain executables, we might need some
4136 # special setup, e.g. additional paths etc.
4137 
4138 
4139 # Restore path, etc
4140 
4141 
4142 # Check if a compiler is of the toolchain type we expect, and save the version
4143 # information from it. If the compiler does not match the expected type,
4144 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4145 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4146 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4147 #
4148 # $1 = compiler to test (CC or CXX)
4149 # $2 = human readable name of compiler (C or C++)
4150 
4151 
4152 # Try to locate the given C or C++ compiler in the path, or otherwise.
4153 #
4154 # $1 = compiler to test (CC or CXX)
4155 # $2 = human readable name of compiler (C or C++)
4156 # $3 = list of compiler names to search for
4157 
4158 
4159 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4160 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4161 # archiver (AR). Verify that the compilers are correct according to the
4162 # toolchain type.
4163 
4164 
4165 # Setup additional tools that is considered a part of the toolchain, but not the
4166 # core part. Many of these are highly platform-specific and do not exist,
4167 # and/or are not needed on all platforms.
4168 
4169 
4170 # Setup the build tools (i.e, the compiler and linker used to build programs
4171 # that should be run on the build platform, not the target platform, as a build
4172 # helper). Since the non-cross-compile case uses the normal, target compilers
4173 # for this, we can only do this after these have been setup.
4174 
4175 
4176 # Setup legacy variables that are still needed as alternative ways to refer to
4177 # parts of the toolchain.
4178 
4179 
4180 # Do some additional checks on the detected tools.
4181 
4182 
4183 # Setup the JTReg Regression Test Harness.
4184 
4185 
4186 #
4187 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4188 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4189 #
4190 # This code is free software; you can redistribute it and/or modify it
4191 # under the terms of the GNU General Public License version 2 only, as
4192 # published by the Free Software Foundation.  Oracle designates this
4193 # particular file as subject to the "Classpath" exception as provided
4194 # by Oracle in the LICENSE file that accompanied this code.
4195 #
4196 # This code is distributed in the hope that it will be useful, but WITHOUT
4197 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4198 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4199 # version 2 for more details (a copy is included in the LICENSE file that
4200 # accompanied this code).
4201 #
4202 # You should have received a copy of the GNU General Public License version
4203 # 2 along with this work; if not, write to the Free Software Foundation,
4204 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4205 #
4206 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4207 # or visit www.oracle.com if you need additional information or have any
4208 # questions.
4209 #
4210 
4211 
4212 
4213 
4214 
4215 
4216 
4217 # Check if the VS env variables were setup prior to running configure.
4218 # If not, then find vcvarsall.bat and run it automatically, and integrate
4219 # the set env variables into the spec file.
4220 
4221 
4222 
4223 
4224 
4225 
4226 
4227 
4228 
4229 
4230 # This line needs to be here, verbatim, after all includes and the dummy hook
4231 # definitions. It is replaced with custom functionality when building
4232 # custom sources.
4233 #CUSTOM_AUTOCONF_INCLUDE
4234 
4235 # Do not change or remove the following line, it is needed for consistency checks:
4236 DATE_WHEN_GENERATED=1394726197
4237 
4238 ###############################################################################
4239 #
4240 # Initialization / Boot-strapping
4241 #
4242 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4243 # thus it jumps back and forth, each time gaining something needed later on.
4244 #
4245 ###############################################################################
4246 
4247 # If we are requested to print additional help, do that and then exit.
4248 # This must be the very first call.
4249 
4250   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4251     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4252     $PRINTF "Which are valid to use depends on the build platform.\n"
4253     for toolchain in $VALID_TOOLCHAINS_all; do
4254       # Use indirect variable referencing
4255       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4256       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4257       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4258     done
4259 
4260     # And now exit directly
4261     exit 0
4262   fi
4263 
4264 
4265 # Basic initialization that must happen first of all in the normal process.
4266 
4267   # Save the original command line. This is passed to us by the wrapper configure script.
4268 
4269   DATE_WHEN_CONFIGURED=`LANG=C date`
4270 
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4272 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4274 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4275 
4276 
4277   # Start with tools that do not need have cross compilation support
4278   # and can be expected to be found in the default PATH. These tools are
4279   # used by configure. Nor are these tools expected to be found in the
4280   # devkit from the builddeps server either, since they are
4281   # needed to download the devkit.
4282 
4283   # First are all the simple required tools.
4284 
4285 
4286 
4287   # Publish this variable in the help.
4288 
4289 
4290   if test "x$BASENAME" = x; then
4291     # The variable is not set by user, try to locate tool using the code snippet
4292     for ac_prog in basename
4293 do
4294   # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_path_BASENAME+:} false; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301   case $BASENAME in
4302   [\\/]* | ?:[\\/]*)
4303   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4304   ;;
4305   *)
4306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311     for ac_exec_ext in '' $ac_executable_extensions; do
4312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318   done
4319 IFS=$as_save_IFS
4320 
4321   ;;
4322 esac
4323 fi
4324 BASENAME=$ac_cv_path_BASENAME
4325 if test -n "$BASENAME"; then
4326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4327 $as_echo "$BASENAME" >&6; }
4328 else
4329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4331 fi
4332 
4333 
4334   test -n "$BASENAME" && break
4335 done
4336 
4337   else
4338     # The variable is set, but is it from the command line or the environment?
4339 
4340     # Try to remove the string !BASENAME! from our list.
4341     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4342     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4343       # If it failed, the variable was not from the command line. Ignore it,
4344       # but warn the user (except for BASH, which is always set by the calling BASH).
4345       if test "xBASENAME" != xBASH; then
4346         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4347 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4348       fi
4349       # Try to locate tool using the code snippet
4350       for ac_prog in basename
4351 do
4352   # Extract the first word of "$ac_prog", so it can be a program name with args.
4353 set dummy $ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_path_BASENAME+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   case $BASENAME in
4360   [\\/]* | ?:[\\/]*)
4361   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4362   ;;
4363   *)
4364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369     for ac_exec_ext in '' $ac_executable_extensions; do
4370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376   done
4377 IFS=$as_save_IFS
4378 
4379   ;;
4380 esac
4381 fi
4382 BASENAME=$ac_cv_path_BASENAME
4383 if test -n "$BASENAME"; then
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4385 $as_echo "$BASENAME" >&6; }
4386 else
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390 
4391 
4392   test -n "$BASENAME" && break
4393 done
4394 
4395     else
4396       # If it succeeded, then it was overridden by the user. We will use it
4397       # for the tool.
4398 
4399       # First remove it from the list of overridden variables, so we can test
4400       # for unknown variables in the end.
4401       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4402 
4403       # Check if the provided tool contains a complete path.
4404       tool_specified="$BASENAME"
4405       tool_basename="${tool_specified##*/}"
4406       if test "x$tool_basename" = "x$tool_specified"; then
4407         # A command without a complete path is provided, search $PATH.
4408         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4409 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4410         # Extract the first word of "$tool_basename", so it can be a program name with args.
4411 set dummy $tool_basename; ac_word=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if ${ac_cv_path_BASENAME+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417   case $BASENAME in
4418   [\\/]* | ?:[\\/]*)
4419   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4420   ;;
4421   *)
4422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427     for ac_exec_ext in '' $ac_executable_extensions; do
4428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434   done
4435 IFS=$as_save_IFS
4436 
4437   ;;
4438 esac
4439 fi
4440 BASENAME=$ac_cv_path_BASENAME
4441 if test -n "$BASENAME"; then
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4443 $as_echo "$BASENAME" >&6; }
4444 else
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448 
4449 
4450         if test "x$BASENAME" = x; then
4451           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4452         fi
4453       else
4454         # Otherwise we believe it is a complete path. Use it as it is.
4455         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4456 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4458 $as_echo_n "checking for BASENAME... " >&6; }
4459         if test ! -x "$tool_specified"; then
4460           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4461 $as_echo "not found" >&6; }
4462           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4463         fi
4464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4465 $as_echo "$tool_specified" >&6; }
4466       fi
4467     fi
4468   fi
4469 
4470 
4471 
4472   if test "x$BASENAME" = x; then
4473     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4474   fi
4475 
4476 
4477 
4478 
4479 
4480   # Publish this variable in the help.
4481 
4482 
4483   if test "x$BASH" = x; then
4484     # The variable is not set by user, try to locate tool using the code snippet
4485     for ac_prog in bash
4486 do
4487   # Extract the first word of "$ac_prog", so it can be a program name with args.
4488 set dummy $ac_prog; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_path_BASH+:} false; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   case $BASH in
4495   [\\/]* | ?:[\\/]*)
4496   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4497   ;;
4498   *)
4499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504     for ac_exec_ext in '' $ac_executable_extensions; do
4505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508     break 2
4509   fi
4510 done
4511   done
4512 IFS=$as_save_IFS
4513 
4514   ;;
4515 esac
4516 fi
4517 BASH=$ac_cv_path_BASH
4518 if test -n "$BASH"; then
4519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4520 $as_echo "$BASH" >&6; }
4521 else
4522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4524 fi
4525 
4526 
4527   test -n "$BASH" && break
4528 done
4529 
4530   else
4531     # The variable is set, but is it from the command line or the environment?
4532 
4533     # Try to remove the string !BASH! from our list.
4534     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4535     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4536       # If it failed, the variable was not from the command line. Ignore it,
4537       # but warn the user (except for BASH, which is always set by the calling BASH).
4538       if test "xBASH" != xBASH; then
4539         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4540 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4541       fi
4542       # Try to locate tool using the code snippet
4543       for ac_prog in bash
4544 do
4545   # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_path_BASH+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   case $BASH in
4553   [\\/]* | ?:[\\/]*)
4554   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4555   ;;
4556   *)
4557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562     for ac_exec_ext in '' $ac_executable_extensions; do
4563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566     break 2
4567   fi
4568 done
4569   done
4570 IFS=$as_save_IFS
4571 
4572   ;;
4573 esac
4574 fi
4575 BASH=$ac_cv_path_BASH
4576 if test -n "$BASH"; then
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4578 $as_echo "$BASH" >&6; }
4579 else
4580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 fi
4583 
4584 
4585   test -n "$BASH" && break
4586 done
4587 
4588     else
4589       # If it succeeded, then it was overridden by the user. We will use it
4590       # for the tool.
4591 
4592       # First remove it from the list of overridden variables, so we can test
4593       # for unknown variables in the end.
4594       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4595 
4596       # Check if the provided tool contains a complete path.
4597       tool_specified="$BASH"
4598       tool_basename="${tool_specified##*/}"
4599       if test "x$tool_basename" = "x$tool_specified"; then
4600         # A command without a complete path is provided, search $PATH.
4601         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4602 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4603         # Extract the first word of "$tool_basename", so it can be a program name with args.
4604 set dummy $tool_basename; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if ${ac_cv_path_BASH+:} false; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   case $BASH in
4611   [\\/]* | ?:[\\/]*)
4612   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4613   ;;
4614   *)
4615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620     for ac_exec_ext in '' $ac_executable_extensions; do
4621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627   done
4628 IFS=$as_save_IFS
4629 
4630   ;;
4631 esac
4632 fi
4633 BASH=$ac_cv_path_BASH
4634 if test -n "$BASH"; then
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4636 $as_echo "$BASH" >&6; }
4637 else
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641 
4642 
4643         if test "x$BASH" = x; then
4644           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4645         fi
4646       else
4647         # Otherwise we believe it is a complete path. Use it as it is.
4648         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4649 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4650         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4651 $as_echo_n "checking for BASH... " >&6; }
4652         if test ! -x "$tool_specified"; then
4653           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4654 $as_echo "not found" >&6; }
4655           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4656         fi
4657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4658 $as_echo "$tool_specified" >&6; }
4659       fi
4660     fi
4661   fi
4662 
4663 
4664 
4665   if test "x$BASH" = x; then
4666     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4667   fi
4668 
4669 
4670 
4671 
4672 
4673   # Publish this variable in the help.
4674 
4675 
4676   if test "x$CAT" = x; then
4677     # The variable is not set by user, try to locate tool using the code snippet
4678     for ac_prog in cat
4679 do
4680   # Extract the first word of "$ac_prog", so it can be a program name with args.
4681 set dummy $ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_path_CAT+:} false; then :
4685   $as_echo_n "(cached) " >&6
4686 else
4687   case $CAT in
4688   [\\/]* | ?:[\\/]*)
4689   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4690   ;;
4691   *)
4692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697     for ac_exec_ext in '' $ac_executable_extensions; do
4698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704   done
4705 IFS=$as_save_IFS
4706 
4707   ;;
4708 esac
4709 fi
4710 CAT=$ac_cv_path_CAT
4711 if test -n "$CAT"; then
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4713 $as_echo "$CAT" >&6; }
4714 else
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718 
4719 
4720   test -n "$CAT" && break
4721 done
4722 
4723   else
4724     # The variable is set, but is it from the command line or the environment?
4725 
4726     # Try to remove the string !CAT! from our list.
4727     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4728     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4729       # If it failed, the variable was not from the command line. Ignore it,
4730       # but warn the user (except for BASH, which is always set by the calling BASH).
4731       if test "xCAT" != xBASH; then
4732         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4733 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4734       fi
4735       # Try to locate tool using the code snippet
4736       for ac_prog in cat
4737 do
4738   # Extract the first word of "$ac_prog", so it can be a program name with args.
4739 set dummy $ac_prog; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_path_CAT+:} false; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   case $CAT in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762   done
4763 IFS=$as_save_IFS
4764 
4765   ;;
4766 esac
4767 fi
4768 CAT=$ac_cv_path_CAT
4769 if test -n "$CAT"; then
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4771 $as_echo "$CAT" >&6; }
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776 
4777 
4778   test -n "$CAT" && break
4779 done
4780 
4781     else
4782       # If it succeeded, then it was overridden by the user. We will use it
4783       # for the tool.
4784 
4785       # First remove it from the list of overridden variables, so we can test
4786       # for unknown variables in the end.
4787       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4788 
4789       # Check if the provided tool contains a complete path.
4790       tool_specified="$CAT"
4791       tool_basename="${tool_specified##*/}"
4792       if test "x$tool_basename" = "x$tool_specified"; then
4793         # A command without a complete path is provided, search $PATH.
4794         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4795 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4796         # Extract the first word of "$tool_basename", so it can be a program name with args.
4797 set dummy $tool_basename; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_path_CAT+:} false; then :
4801   $as_echo_n "(cached) " >&6
4802 else
4803   case $CAT in
4804   [\\/]* | ?:[\\/]*)
4805   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4806   ;;
4807   *)
4808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813     for ac_exec_ext in '' $ac_executable_extensions; do
4814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820   done
4821 IFS=$as_save_IFS
4822 
4823   ;;
4824 esac
4825 fi
4826 CAT=$ac_cv_path_CAT
4827 if test -n "$CAT"; then
4828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4829 $as_echo "$CAT" >&6; }
4830 else
4831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4833 fi
4834 
4835 
4836         if test "x$CAT" = x; then
4837           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4838         fi
4839       else
4840         # Otherwise we believe it is a complete path. Use it as it is.
4841         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4842 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4844 $as_echo_n "checking for CAT... " >&6; }
4845         if test ! -x "$tool_specified"; then
4846           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4847 $as_echo "not found" >&6; }
4848           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4849         fi
4850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4851 $as_echo "$tool_specified" >&6; }
4852       fi
4853     fi
4854   fi
4855 
4856 
4857 
4858   if test "x$CAT" = x; then
4859     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4860   fi
4861 
4862 
4863 
4864 
4865 
4866   # Publish this variable in the help.
4867 
4868 
4869   if test "x$CHMOD" = x; then
4870     # The variable is not set by user, try to locate tool using the code snippet
4871     for ac_prog in chmod
4872 do
4873   # Extract the first word of "$ac_prog", so it can be a program name with args.
4874 set dummy $ac_prog; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_path_CHMOD+:} false; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   case $CHMOD in
4881   [\\/]* | ?:[\\/]*)
4882   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4883   ;;
4884   *)
4885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890     for ac_exec_ext in '' $ac_executable_extensions; do
4891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897   done
4898 IFS=$as_save_IFS
4899 
4900   ;;
4901 esac
4902 fi
4903 CHMOD=$ac_cv_path_CHMOD
4904 if test -n "$CHMOD"; then
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4906 $as_echo "$CHMOD" >&6; }
4907 else
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911 
4912 
4913   test -n "$CHMOD" && break
4914 done
4915 
4916   else
4917     # The variable is set, but is it from the command line or the environment?
4918 
4919     # Try to remove the string !CHMOD! from our list.
4920     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4921     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4922       # If it failed, the variable was not from the command line. Ignore it,
4923       # but warn the user (except for BASH, which is always set by the calling BASH).
4924       if test "xCHMOD" != xBASH; then
4925         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4926 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4927       fi
4928       # Try to locate tool using the code snippet
4929       for ac_prog in chmod
4930 do
4931   # Extract the first word of "$ac_prog", so it can be a program name with args.
4932 set dummy $ac_prog; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_path_CHMOD+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   case $CHMOD in
4939   [\\/]* | ?:[\\/]*)
4940   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4941   ;;
4942   *)
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     for ac_exec_ext in '' $ac_executable_extensions; do
4949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955   done
4956 IFS=$as_save_IFS
4957 
4958   ;;
4959 esac
4960 fi
4961 CHMOD=$ac_cv_path_CHMOD
4962 if test -n "$CHMOD"; then
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4964 $as_echo "$CHMOD" >&6; }
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969 
4970 
4971   test -n "$CHMOD" && break
4972 done
4973 
4974     else
4975       # If it succeeded, then it was overridden by the user. We will use it
4976       # for the tool.
4977 
4978       # First remove it from the list of overridden variables, so we can test
4979       # for unknown variables in the end.
4980       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4981 
4982       # Check if the provided tool contains a complete path.
4983       tool_specified="$CHMOD"
4984       tool_basename="${tool_specified##*/}"
4985       if test "x$tool_basename" = "x$tool_specified"; then
4986         # A command without a complete path is provided, search $PATH.
4987         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4988 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4989         # Extract the first word of "$tool_basename", so it can be a program name with args.
4990 set dummy $tool_basename; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_path_CHMOD+:} false; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   case $CHMOD in
4997   [\\/]* | ?:[\\/]*)
4998   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4999   ;;
5000   *)
5001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006     for ac_exec_ext in '' $ac_executable_extensions; do
5007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013   done
5014 IFS=$as_save_IFS
5015 
5016   ;;
5017 esac
5018 fi
5019 CHMOD=$ac_cv_path_CHMOD
5020 if test -n "$CHMOD"; then
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5022 $as_echo "$CHMOD" >&6; }
5023 else
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027 
5028 
5029         if test "x$CHMOD" = x; then
5030           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5031         fi
5032       else
5033         # Otherwise we believe it is a complete path. Use it as it is.
5034         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5035 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5037 $as_echo_n "checking for CHMOD... " >&6; }
5038         if test ! -x "$tool_specified"; then
5039           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5040 $as_echo "not found" >&6; }
5041           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5042         fi
5043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5044 $as_echo "$tool_specified" >&6; }
5045       fi
5046     fi
5047   fi
5048 
5049 
5050 
5051   if test "x$CHMOD" = x; then
5052     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5053   fi
5054 
5055 
5056 
5057 
5058 
5059   # Publish this variable in the help.
5060 
5061 
5062   if test "x$CMP" = x; then
5063     # The variable is not set by user, try to locate tool using the code snippet
5064     for ac_prog in cmp
5065 do
5066   # Extract the first word of "$ac_prog", so it can be a program name with args.
5067 set dummy $ac_prog; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_CMP+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   case $CMP in
5074   [\\/]* | ?:[\\/]*)
5075   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5076   ;;
5077   *)
5078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083     for ac_exec_ext in '' $ac_executable_extensions; do
5084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090   done
5091 IFS=$as_save_IFS
5092 
5093   ;;
5094 esac
5095 fi
5096 CMP=$ac_cv_path_CMP
5097 if test -n "$CMP"; then
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5099 $as_echo "$CMP" >&6; }
5100 else
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104 
5105 
5106   test -n "$CMP" && break
5107 done
5108 
5109   else
5110     # The variable is set, but is it from the command line or the environment?
5111 
5112     # Try to remove the string !CMP! from our list.
5113     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5114     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5115       # If it failed, the variable was not from the command line. Ignore it,
5116       # but warn the user (except for BASH, which is always set by the calling BASH).
5117       if test "xCMP" != xBASH; then
5118         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5119 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5120       fi
5121       # Try to locate tool using the code snippet
5122       for ac_prog in cmp
5123 do
5124   # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_path_CMP+:} false; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   case $CMP in
5132   [\\/]* | ?:[\\/]*)
5133   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5134   ;;
5135   *)
5136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150 
5151   ;;
5152 esac
5153 fi
5154 CMP=$ac_cv_path_CMP
5155 if test -n "$CMP"; then
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5157 $as_echo "$CMP" >&6; }
5158 else
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162 
5163 
5164   test -n "$CMP" && break
5165 done
5166 
5167     else
5168       # If it succeeded, then it was overridden by the user. We will use it
5169       # for the tool.
5170 
5171       # First remove it from the list of overridden variables, so we can test
5172       # for unknown variables in the end.
5173       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5174 
5175       # Check if the provided tool contains a complete path.
5176       tool_specified="$CMP"
5177       tool_basename="${tool_specified##*/}"
5178       if test "x$tool_basename" = "x$tool_specified"; then
5179         # A command without a complete path is provided, search $PATH.
5180         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5181 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5182         # Extract the first word of "$tool_basename", so it can be a program name with args.
5183 set dummy $tool_basename; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_path_CMP+:} false; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   case $CMP in
5190   [\\/]* | ?:[\\/]*)
5191   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5192   ;;
5193   *)
5194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199     for ac_exec_ext in '' $ac_executable_extensions; do
5200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203     break 2
5204   fi
5205 done
5206   done
5207 IFS=$as_save_IFS
5208 
5209   ;;
5210 esac
5211 fi
5212 CMP=$ac_cv_path_CMP
5213 if test -n "$CMP"; then
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5215 $as_echo "$CMP" >&6; }
5216 else
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220 
5221 
5222         if test "x$CMP" = x; then
5223           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5224         fi
5225       else
5226         # Otherwise we believe it is a complete path. Use it as it is.
5227         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5228 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5230 $as_echo_n "checking for CMP... " >&6; }
5231         if test ! -x "$tool_specified"; then
5232           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5233 $as_echo "not found" >&6; }
5234           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5235         fi
5236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5237 $as_echo "$tool_specified" >&6; }
5238       fi
5239     fi
5240   fi
5241 
5242 
5243 
5244   if test "x$CMP" = x; then
5245     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5246   fi
5247 
5248 
5249 
5250 
5251 
5252   # Publish this variable in the help.
5253 
5254 
5255   if test "x$COMM" = x; then
5256     # The variable is not set by user, try to locate tool using the code snippet
5257     for ac_prog in comm
5258 do
5259   # Extract the first word of "$ac_prog", so it can be a program name with args.
5260 set dummy $ac_prog; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_path_COMM+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   case $COMM in
5267   [\\/]* | ?:[\\/]*)
5268   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5269   ;;
5270   *)
5271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283   done
5284 IFS=$as_save_IFS
5285 
5286   ;;
5287 esac
5288 fi
5289 COMM=$ac_cv_path_COMM
5290 if test -n "$COMM"; then
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5292 $as_echo "$COMM" >&6; }
5293 else
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297 
5298 
5299   test -n "$COMM" && break
5300 done
5301 
5302   else
5303     # The variable is set, but is it from the command line or the environment?
5304 
5305     # Try to remove the string !COMM! from our list.
5306     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5307     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5308       # If it failed, the variable was not from the command line. Ignore it,
5309       # but warn the user (except for BASH, which is always set by the calling BASH).
5310       if test "xCOMM" != xBASH; then
5311         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5312 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5313       fi
5314       # Try to locate tool using the code snippet
5315       for ac_prog in comm
5316 do
5317   # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_path_COMM+:} false; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   case $COMM in
5325   [\\/]* | ?:[\\/]*)
5326   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5327   ;;
5328   *)
5329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334     for ac_exec_ext in '' $ac_executable_extensions; do
5335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341   done
5342 IFS=$as_save_IFS
5343 
5344   ;;
5345 esac
5346 fi
5347 COMM=$ac_cv_path_COMM
5348 if test -n "$COMM"; then
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5350 $as_echo "$COMM" >&6; }
5351 else
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355 
5356 
5357   test -n "$COMM" && break
5358 done
5359 
5360     else
5361       # If it succeeded, then it was overridden by the user. We will use it
5362       # for the tool.
5363 
5364       # First remove it from the list of overridden variables, so we can test
5365       # for unknown variables in the end.
5366       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5367 
5368       # Check if the provided tool contains a complete path.
5369       tool_specified="$COMM"
5370       tool_basename="${tool_specified##*/}"
5371       if test "x$tool_basename" = "x$tool_specified"; then
5372         # A command without a complete path is provided, search $PATH.
5373         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5374 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5375         # Extract the first word of "$tool_basename", so it can be a program name with args.
5376 set dummy $tool_basename; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_path_COMM+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   case $COMM in
5383   [\\/]* | ?:[\\/]*)
5384   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5385   ;;
5386   *)
5387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
5391   test -z "$as_dir" && as_dir=.
5392     for ac_exec_ext in '' $ac_executable_extensions; do
5393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396     break 2
5397   fi
5398 done
5399   done
5400 IFS=$as_save_IFS
5401 
5402   ;;
5403 esac
5404 fi
5405 COMM=$ac_cv_path_COMM
5406 if test -n "$COMM"; then
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5408 $as_echo "$COMM" >&6; }
5409 else
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413 
5414 
5415         if test "x$COMM" = x; then
5416           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5417         fi
5418       else
5419         # Otherwise we believe it is a complete path. Use it as it is.
5420         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5421 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5423 $as_echo_n "checking for COMM... " >&6; }
5424         if test ! -x "$tool_specified"; then
5425           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5426 $as_echo "not found" >&6; }
5427           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5428         fi
5429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5430 $as_echo "$tool_specified" >&6; }
5431       fi
5432     fi
5433   fi
5434 
5435 
5436 
5437   if test "x$COMM" = x; then
5438     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5439   fi
5440 
5441 
5442 
5443 
5444 
5445   # Publish this variable in the help.
5446 
5447 
5448   if test "x$CP" = x; then
5449     # The variable is not set by user, try to locate tool using the code snippet
5450     for ac_prog in cp
5451 do
5452   # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_path_CP+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   case $CP in
5460   [\\/]* | ?:[\\/]*)
5461   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5462   ;;
5463   *)
5464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469     for ac_exec_ext in '' $ac_executable_extensions; do
5470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476   done
5477 IFS=$as_save_IFS
5478 
5479   ;;
5480 esac
5481 fi
5482 CP=$ac_cv_path_CP
5483 if test -n "$CP"; then
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5485 $as_echo "$CP" >&6; }
5486 else
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490 
5491 
5492   test -n "$CP" && break
5493 done
5494 
5495   else
5496     # The variable is set, but is it from the command line or the environment?
5497 
5498     # Try to remove the string !CP! from our list.
5499     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5500     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5501       # If it failed, the variable was not from the command line. Ignore it,
5502       # but warn the user (except for BASH, which is always set by the calling BASH).
5503       if test "xCP" != xBASH; then
5504         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5505 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5506       fi
5507       # Try to locate tool using the code snippet
5508       for ac_prog in cp
5509 do
5510   # Extract the first word of "$ac_prog", so it can be a program name with args.
5511 set dummy $ac_prog; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_path_CP+:} false; then :
5515   $as_echo_n "(cached) " >&6
5516 else
5517   case $CP in
5518   [\\/]* | ?:[\\/]*)
5519   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5520   ;;
5521   *)
5522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527     for ac_exec_ext in '' $ac_executable_extensions; do
5528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534   done
5535 IFS=$as_save_IFS
5536 
5537   ;;
5538 esac
5539 fi
5540 CP=$ac_cv_path_CP
5541 if test -n "$CP"; then
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5543 $as_echo "$CP" >&6; }
5544 else
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548 
5549 
5550   test -n "$CP" && break
5551 done
5552 
5553     else
5554       # If it succeeded, then it was overridden by the user. We will use it
5555       # for the tool.
5556 
5557       # First remove it from the list of overridden variables, so we can test
5558       # for unknown variables in the end.
5559       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5560 
5561       # Check if the provided tool contains a complete path.
5562       tool_specified="$CP"
5563       tool_basename="${tool_specified##*/}"
5564       if test "x$tool_basename" = "x$tool_specified"; then
5565         # A command without a complete path is provided, search $PATH.
5566         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5567 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5568         # Extract the first word of "$tool_basename", so it can be a program name with args.
5569 set dummy $tool_basename; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_path_CP+:} false; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   case $CP in
5576   [\\/]* | ?:[\\/]*)
5577   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5578   ;;
5579   *)
5580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594 
5595   ;;
5596 esac
5597 fi
5598 CP=$ac_cv_path_CP
5599 if test -n "$CP"; then
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5601 $as_echo "$CP" >&6; }
5602 else
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606 
5607 
5608         if test "x$CP" = x; then
5609           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5610         fi
5611       else
5612         # Otherwise we believe it is a complete path. Use it as it is.
5613         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5614 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5616 $as_echo_n "checking for CP... " >&6; }
5617         if test ! -x "$tool_specified"; then
5618           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5619 $as_echo "not found" >&6; }
5620           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5621         fi
5622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5623 $as_echo "$tool_specified" >&6; }
5624       fi
5625     fi
5626   fi
5627 
5628 
5629 
5630   if test "x$CP" = x; then
5631     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5632   fi
5633 
5634 
5635 
5636 
5637 
5638   # Publish this variable in the help.
5639 
5640 
5641   if test "x$CPIO" = x; then
5642     # The variable is not set by user, try to locate tool using the code snippet
5643     for ac_prog in cpio
5644 do
5645   # Extract the first word of "$ac_prog", so it can be a program name with args.
5646 set dummy $ac_prog; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_path_CPIO+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   case $CPIO in
5653   [\\/]* | ?:[\\/]*)
5654   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5655   ;;
5656   *)
5657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662     for ac_exec_ext in '' $ac_executable_extensions; do
5663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669   done
5670 IFS=$as_save_IFS
5671 
5672   ;;
5673 esac
5674 fi
5675 CPIO=$ac_cv_path_CPIO
5676 if test -n "$CPIO"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5678 $as_echo "$CPIO" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683 
5684 
5685   test -n "$CPIO" && break
5686 done
5687 
5688   else
5689     # The variable is set, but is it from the command line or the environment?
5690 
5691     # Try to remove the string !CPIO! from our list.
5692     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5693     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5694       # If it failed, the variable was not from the command line. Ignore it,
5695       # but warn the user (except for BASH, which is always set by the calling BASH).
5696       if test "xCPIO" != xBASH; then
5697         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5698 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5699       fi
5700       # Try to locate tool using the code snippet
5701       for ac_prog in cpio
5702 do
5703   # Extract the first word of "$ac_prog", so it can be a program name with args.
5704 set dummy $ac_prog; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_path_CPIO+:} false; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   case $CPIO in
5711   [\\/]* | ?:[\\/]*)
5712   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5713   ;;
5714   *)
5715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720     for ac_exec_ext in '' $ac_executable_extensions; do
5721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724     break 2
5725   fi
5726 done
5727   done
5728 IFS=$as_save_IFS
5729 
5730   ;;
5731 esac
5732 fi
5733 CPIO=$ac_cv_path_CPIO
5734 if test -n "$CPIO"; then
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5736 $as_echo "$CPIO" >&6; }
5737 else
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741 
5742 
5743   test -n "$CPIO" && break
5744 done
5745 
5746     else
5747       # If it succeeded, then it was overridden by the user. We will use it
5748       # for the tool.
5749 
5750       # First remove it from the list of overridden variables, so we can test
5751       # for unknown variables in the end.
5752       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5753 
5754       # Check if the provided tool contains a complete path.
5755       tool_specified="$CPIO"
5756       tool_basename="${tool_specified##*/}"
5757       if test "x$tool_basename" = "x$tool_specified"; then
5758         # A command without a complete path is provided, search $PATH.
5759         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5760 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5761         # Extract the first word of "$tool_basename", so it can be a program name with args.
5762 set dummy $tool_basename; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_path_CPIO+:} false; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768   case $CPIO in
5769   [\\/]* | ?:[\\/]*)
5770   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5771   ;;
5772   *)
5773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778     for ac_exec_ext in '' $ac_executable_extensions; do
5779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785   done
5786 IFS=$as_save_IFS
5787 
5788   ;;
5789 esac
5790 fi
5791 CPIO=$ac_cv_path_CPIO
5792 if test -n "$CPIO"; then
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5794 $as_echo "$CPIO" >&6; }
5795 else
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799 
5800 
5801         if test "x$CPIO" = x; then
5802           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5803         fi
5804       else
5805         # Otherwise we believe it is a complete path. Use it as it is.
5806         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5807 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5809 $as_echo_n "checking for CPIO... " >&6; }
5810         if test ! -x "$tool_specified"; then
5811           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5812 $as_echo "not found" >&6; }
5813           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5814         fi
5815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5816 $as_echo "$tool_specified" >&6; }
5817       fi
5818     fi
5819   fi
5820 
5821 
5822 
5823   if test "x$CPIO" = x; then
5824     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5825   fi
5826 
5827 
5828 
5829 
5830 
5831   # Publish this variable in the help.
5832 
5833 
5834   if test "x$CUT" = x; then
5835     # The variable is not set by user, try to locate tool using the code snippet
5836     for ac_prog in cut
5837 do
5838   # Extract the first word of "$ac_prog", so it can be a program name with args.
5839 set dummy $ac_prog; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_path_CUT+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   case $CUT in
5846   [\\/]* | ?:[\\/]*)
5847   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5848   ;;
5849   *)
5850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862   done
5863 IFS=$as_save_IFS
5864 
5865   ;;
5866 esac
5867 fi
5868 CUT=$ac_cv_path_CUT
5869 if test -n "$CUT"; then
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5871 $as_echo "$CUT" >&6; }
5872 else
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876 
5877 
5878   test -n "$CUT" && break
5879 done
5880 
5881   else
5882     # The variable is set, but is it from the command line or the environment?
5883 
5884     # Try to remove the string !CUT! from our list.
5885     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5886     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5887       # If it failed, the variable was not from the command line. Ignore it,
5888       # but warn the user (except for BASH, which is always set by the calling BASH).
5889       if test "xCUT" != xBASH; then
5890         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5891 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5892       fi
5893       # Try to locate tool using the code snippet
5894       for ac_prog in cut
5895 do
5896   # Extract the first word of "$ac_prog", so it can be a program name with args.
5897 set dummy $ac_prog; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if ${ac_cv_path_CUT+:} false; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903   case $CUT in
5904   [\\/]* | ?:[\\/]*)
5905   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5906   ;;
5907   *)
5908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913     for ac_exec_ext in '' $ac_executable_extensions; do
5914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920   done
5921 IFS=$as_save_IFS
5922 
5923   ;;
5924 esac
5925 fi
5926 CUT=$ac_cv_path_CUT
5927 if test -n "$CUT"; then
5928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5929 $as_echo "$CUT" >&6; }
5930 else
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934 
5935 
5936   test -n "$CUT" && break
5937 done
5938 
5939     else
5940       # If it succeeded, then it was overridden by the user. We will use it
5941       # for the tool.
5942 
5943       # First remove it from the list of overridden variables, so we can test
5944       # for unknown variables in the end.
5945       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5946 
5947       # Check if the provided tool contains a complete path.
5948       tool_specified="$CUT"
5949       tool_basename="${tool_specified##*/}"
5950       if test "x$tool_basename" = "x$tool_specified"; then
5951         # A command without a complete path is provided, search $PATH.
5952         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5953 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5954         # Extract the first word of "$tool_basename", so it can be a program name with args.
5955 set dummy $tool_basename; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_path_CUT+:} false; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   case $CUT in
5962   [\\/]* | ?:[\\/]*)
5963   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5964   ;;
5965   *)
5966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971     for ac_exec_ext in '' $ac_executable_extensions; do
5972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978   done
5979 IFS=$as_save_IFS
5980 
5981   ;;
5982 esac
5983 fi
5984 CUT=$ac_cv_path_CUT
5985 if test -n "$CUT"; then
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5987 $as_echo "$CUT" >&6; }
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992 
5993 
5994         if test "x$CUT" = x; then
5995           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5996         fi
5997       else
5998         # Otherwise we believe it is a complete path. Use it as it is.
5999         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6000 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6002 $as_echo_n "checking for CUT... " >&6; }
6003         if test ! -x "$tool_specified"; then
6004           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6005 $as_echo "not found" >&6; }
6006           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6007         fi
6008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6009 $as_echo "$tool_specified" >&6; }
6010       fi
6011     fi
6012   fi
6013 
6014 
6015 
6016   if test "x$CUT" = x; then
6017     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6018   fi
6019 
6020 
6021 
6022 
6023 
6024   # Publish this variable in the help.
6025 
6026 
6027   if test "x$DATE" = x; then
6028     # The variable is not set by user, try to locate tool using the code snippet
6029     for ac_prog in date
6030 do
6031   # Extract the first word of "$ac_prog", so it can be a program name with args.
6032 set dummy $ac_prog; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_path_DATE+:} false; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   case $DATE in
6039   [\\/]* | ?:[\\/]*)
6040   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6041   ;;
6042   *)
6043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048     for ac_exec_ext in '' $ac_executable_extensions; do
6049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055   done
6056 IFS=$as_save_IFS
6057 
6058   ;;
6059 esac
6060 fi
6061 DATE=$ac_cv_path_DATE
6062 if test -n "$DATE"; then
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6064 $as_echo "$DATE" >&6; }
6065 else
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069 
6070 
6071   test -n "$DATE" && break
6072 done
6073 
6074   else
6075     # The variable is set, but is it from the command line or the environment?
6076 
6077     # Try to remove the string !DATE! from our list.
6078     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6079     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6080       # If it failed, the variable was not from the command line. Ignore it,
6081       # but warn the user (except for BASH, which is always set by the calling BASH).
6082       if test "xDATE" != xBASH; then
6083         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6084 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6085       fi
6086       # Try to locate tool using the code snippet
6087       for ac_prog in date
6088 do
6089   # Extract the first word of "$ac_prog", so it can be a program name with args.
6090 set dummy $ac_prog; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if ${ac_cv_path_DATE+:} false; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   case $DATE in
6097   [\\/]* | ?:[\\/]*)
6098   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6099   ;;
6100   *)
6101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106     for ac_exec_ext in '' $ac_executable_extensions; do
6107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113   done
6114 IFS=$as_save_IFS
6115 
6116   ;;
6117 esac
6118 fi
6119 DATE=$ac_cv_path_DATE
6120 if test -n "$DATE"; then
6121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6122 $as_echo "$DATE" >&6; }
6123 else
6124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6126 fi
6127 
6128 
6129   test -n "$DATE" && break
6130 done
6131 
6132     else
6133       # If it succeeded, then it was overridden by the user. We will use it
6134       # for the tool.
6135 
6136       # First remove it from the list of overridden variables, so we can test
6137       # for unknown variables in the end.
6138       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6139 
6140       # Check if the provided tool contains a complete path.
6141       tool_specified="$DATE"
6142       tool_basename="${tool_specified##*/}"
6143       if test "x$tool_basename" = "x$tool_specified"; then
6144         # A command without a complete path is provided, search $PATH.
6145         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6146 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6147         # Extract the first word of "$tool_basename", so it can be a program name with args.
6148 set dummy $tool_basename; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_path_DATE+:} false; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   case $DATE in
6155   [\\/]* | ?:[\\/]*)
6156   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6157   ;;
6158   *)
6159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164     for ac_exec_ext in '' $ac_executable_extensions; do
6165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171   done
6172 IFS=$as_save_IFS
6173 
6174   ;;
6175 esac
6176 fi
6177 DATE=$ac_cv_path_DATE
6178 if test -n "$DATE"; then
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6180 $as_echo "$DATE" >&6; }
6181 else
6182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6184 fi
6185 
6186 
6187         if test "x$DATE" = x; then
6188           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6189         fi
6190       else
6191         # Otherwise we believe it is a complete path. Use it as it is.
6192         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6193 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6195 $as_echo_n "checking for DATE... " >&6; }
6196         if test ! -x "$tool_specified"; then
6197           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6198 $as_echo "not found" >&6; }
6199           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6200         fi
6201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6202 $as_echo "$tool_specified" >&6; }
6203       fi
6204     fi
6205   fi
6206 
6207 
6208 
6209   if test "x$DATE" = x; then
6210     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6211   fi
6212 
6213 
6214 
6215 
6216 
6217   # Publish this variable in the help.
6218 
6219 
6220   if test "x$DIFF" = x; then
6221     # The variable is not set by user, try to locate tool using the code snippet
6222     for ac_prog in gdiff diff
6223 do
6224   # Extract the first word of "$ac_prog", so it can be a program name with args.
6225 set dummy $ac_prog; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_path_DIFF+:} false; then :
6229   $as_echo_n "(cached) " >&6
6230 else
6231   case $DIFF in
6232   [\\/]* | ?:[\\/]*)
6233   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6234   ;;
6235   *)
6236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_exec_ext in '' $ac_executable_extensions; do
6242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248   done
6249 IFS=$as_save_IFS
6250 
6251   ;;
6252 esac
6253 fi
6254 DIFF=$ac_cv_path_DIFF
6255 if test -n "$DIFF"; then
6256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6257 $as_echo "$DIFF" >&6; }
6258 else
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262 
6263 
6264   test -n "$DIFF" && break
6265 done
6266 
6267   else
6268     # The variable is set, but is it from the command line or the environment?
6269 
6270     # Try to remove the string !DIFF! from our list.
6271     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6272     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6273       # If it failed, the variable was not from the command line. Ignore it,
6274       # but warn the user (except for BASH, which is always set by the calling BASH).
6275       if test "xDIFF" != xBASH; then
6276         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6277 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6278       fi
6279       # Try to locate tool using the code snippet
6280       for ac_prog in gdiff diff
6281 do
6282   # Extract the first word of "$ac_prog", so it can be a program name with args.
6283 set dummy $ac_prog; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_path_DIFF+:} false; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289   case $DIFF in
6290   [\\/]* | ?:[\\/]*)
6291   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6292   ;;
6293   *)
6294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299     for ac_exec_ext in '' $ac_executable_extensions; do
6300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303     break 2
6304   fi
6305 done
6306   done
6307 IFS=$as_save_IFS
6308 
6309   ;;
6310 esac
6311 fi
6312 DIFF=$ac_cv_path_DIFF
6313 if test -n "$DIFF"; then
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6315 $as_echo "$DIFF" >&6; }
6316 else
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320 
6321 
6322   test -n "$DIFF" && break
6323 done
6324 
6325     else
6326       # If it succeeded, then it was overridden by the user. We will use it
6327       # for the tool.
6328 
6329       # First remove it from the list of overridden variables, so we can test
6330       # for unknown variables in the end.
6331       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6332 
6333       # Check if the provided tool contains a complete path.
6334       tool_specified="$DIFF"
6335       tool_basename="${tool_specified##*/}"
6336       if test "x$tool_basename" = "x$tool_specified"; then
6337         # A command without a complete path is provided, search $PATH.
6338         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6339 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6340         # Extract the first word of "$tool_basename", so it can be a program name with args.
6341 set dummy $tool_basename; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_path_DIFF+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   case $DIFF in
6348   [\\/]* | ?:[\\/]*)
6349   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6350   ;;
6351   *)
6352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357     for ac_exec_ext in '' $ac_executable_extensions; do
6358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6359     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364   done
6365 IFS=$as_save_IFS
6366 
6367   ;;
6368 esac
6369 fi
6370 DIFF=$ac_cv_path_DIFF
6371 if test -n "$DIFF"; then
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6373 $as_echo "$DIFF" >&6; }
6374 else
6375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6377 fi
6378 
6379 
6380         if test "x$DIFF" = x; then
6381           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6382         fi
6383       else
6384         # Otherwise we believe it is a complete path. Use it as it is.
6385         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6386 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6388 $as_echo_n "checking for DIFF... " >&6; }
6389         if test ! -x "$tool_specified"; then
6390           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6391 $as_echo "not found" >&6; }
6392           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6393         fi
6394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6395 $as_echo "$tool_specified" >&6; }
6396       fi
6397     fi
6398   fi
6399 
6400 
6401 
6402   if test "x$DIFF" = x; then
6403     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6404   fi
6405 
6406 
6407 
6408 
6409 
6410   # Publish this variable in the help.
6411 
6412 
6413   if test "x$DIRNAME" = x; then
6414     # The variable is not set by user, try to locate tool using the code snippet
6415     for ac_prog in dirname
6416 do
6417   # Extract the first word of "$ac_prog", so it can be a program name with args.
6418 set dummy $ac_prog; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if ${ac_cv_path_DIRNAME+:} false; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   case $DIRNAME in
6425   [\\/]* | ?:[\\/]*)
6426   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6427   ;;
6428   *)
6429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434     for ac_exec_ext in '' $ac_executable_extensions; do
6435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441   done
6442 IFS=$as_save_IFS
6443 
6444   ;;
6445 esac
6446 fi
6447 DIRNAME=$ac_cv_path_DIRNAME
6448 if test -n "$DIRNAME"; then
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6450 $as_echo "$DIRNAME" >&6; }
6451 else
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455 
6456 
6457   test -n "$DIRNAME" && break
6458 done
6459 
6460   else
6461     # The variable is set, but is it from the command line or the environment?
6462 
6463     # Try to remove the string !DIRNAME! from our list.
6464     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6465     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6466       # If it failed, the variable was not from the command line. Ignore it,
6467       # but warn the user (except for BASH, which is always set by the calling BASH).
6468       if test "xDIRNAME" != xBASH; then
6469         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6470 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6471       fi
6472       # Try to locate tool using the code snippet
6473       for ac_prog in dirname
6474 do
6475   # Extract the first word of "$ac_prog", so it can be a program name with args.
6476 set dummy $ac_prog; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_path_DIRNAME+:} false; then :
6480   $as_echo_n "(cached) " >&6
6481 else
6482   case $DIRNAME in
6483   [\\/]* | ?:[\\/]*)
6484   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6485   ;;
6486   *)
6487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492     for ac_exec_ext in '' $ac_executable_extensions; do
6493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499   done
6500 IFS=$as_save_IFS
6501 
6502   ;;
6503 esac
6504 fi
6505 DIRNAME=$ac_cv_path_DIRNAME
6506 if test -n "$DIRNAME"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6508 $as_echo "$DIRNAME" >&6; }
6509 else
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513 
6514 
6515   test -n "$DIRNAME" && break
6516 done
6517 
6518     else
6519       # If it succeeded, then it was overridden by the user. We will use it
6520       # for the tool.
6521 
6522       # First remove it from the list of overridden variables, so we can test
6523       # for unknown variables in the end.
6524       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6525 
6526       # Check if the provided tool contains a complete path.
6527       tool_specified="$DIRNAME"
6528       tool_basename="${tool_specified##*/}"
6529       if test "x$tool_basename" = "x$tool_specified"; then
6530         # A command without a complete path is provided, search $PATH.
6531         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6532 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6533         # Extract the first word of "$tool_basename", so it can be a program name with args.
6534 set dummy $tool_basename; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if ${ac_cv_path_DIRNAME+:} false; then :
6538   $as_echo_n "(cached) " >&6
6539 else
6540   case $DIRNAME in
6541   [\\/]* | ?:[\\/]*)
6542   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6543   ;;
6544   *)
6545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6559 
6560   ;;
6561 esac
6562 fi
6563 DIRNAME=$ac_cv_path_DIRNAME
6564 if test -n "$DIRNAME"; then
6565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6566 $as_echo "$DIRNAME" >&6; }
6567 else
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 fi
6571 
6572 
6573         if test "x$DIRNAME" = x; then
6574           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6575         fi
6576       else
6577         # Otherwise we believe it is a complete path. Use it as it is.
6578         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6579 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6581 $as_echo_n "checking for DIRNAME... " >&6; }
6582         if test ! -x "$tool_specified"; then
6583           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6584 $as_echo "not found" >&6; }
6585           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6586         fi
6587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6588 $as_echo "$tool_specified" >&6; }
6589       fi
6590     fi
6591   fi
6592 
6593 
6594 
6595   if test "x$DIRNAME" = x; then
6596     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6597   fi
6598 
6599 
6600 
6601 
6602 
6603   # Publish this variable in the help.
6604 
6605 
6606   if test "x$ECHO" = x; then
6607     # The variable is not set by user, try to locate tool using the code snippet
6608     for ac_prog in echo
6609 do
6610   # Extract the first word of "$ac_prog", so it can be a program name with args.
6611 set dummy $ac_prog; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_path_ECHO+:} false; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   case $ECHO in
6618   [\\/]* | ?:[\\/]*)
6619   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6620   ;;
6621   *)
6622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627     for ac_exec_ext in '' $ac_executable_extensions; do
6628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634   done
6635 IFS=$as_save_IFS
6636 
6637   ;;
6638 esac
6639 fi
6640 ECHO=$ac_cv_path_ECHO
6641 if test -n "$ECHO"; then
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6643 $as_echo "$ECHO" >&6; }
6644 else
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648 
6649 
6650   test -n "$ECHO" && break
6651 done
6652 
6653   else
6654     # The variable is set, but is it from the command line or the environment?
6655 
6656     # Try to remove the string !ECHO! from our list.
6657     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6658     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6659       # If it failed, the variable was not from the command line. Ignore it,
6660       # but warn the user (except for BASH, which is always set by the calling BASH).
6661       if test "xECHO" != xBASH; then
6662         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6663 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6664       fi
6665       # Try to locate tool using the code snippet
6666       for ac_prog in echo
6667 do
6668   # Extract the first word of "$ac_prog", so it can be a program name with args.
6669 set dummy $ac_prog; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_path_ECHO+:} false; then :
6673   $as_echo_n "(cached) " >&6
6674 else
6675   case $ECHO in
6676   [\\/]* | ?:[\\/]*)
6677   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6678   ;;
6679   *)
6680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692   done
6693 IFS=$as_save_IFS
6694 
6695   ;;
6696 esac
6697 fi
6698 ECHO=$ac_cv_path_ECHO
6699 if test -n "$ECHO"; then
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6701 $as_echo "$ECHO" >&6; }
6702 else
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706 
6707 
6708   test -n "$ECHO" && break
6709 done
6710 
6711     else
6712       # If it succeeded, then it was overridden by the user. We will use it
6713       # for the tool.
6714 
6715       # First remove it from the list of overridden variables, so we can test
6716       # for unknown variables in the end.
6717       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6718 
6719       # Check if the provided tool contains a complete path.
6720       tool_specified="$ECHO"
6721       tool_basename="${tool_specified##*/}"
6722       if test "x$tool_basename" = "x$tool_specified"; then
6723         # A command without a complete path is provided, search $PATH.
6724         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6725 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6726         # Extract the first word of "$tool_basename", so it can be a program name with args.
6727 set dummy $tool_basename; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_path_ECHO+:} false; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   case $ECHO in
6734   [\\/]* | ?:[\\/]*)
6735   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6736   ;;
6737   *)
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743     for ac_exec_ext in '' $ac_executable_extensions; do
6744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750   done
6751 IFS=$as_save_IFS
6752 
6753   ;;
6754 esac
6755 fi
6756 ECHO=$ac_cv_path_ECHO
6757 if test -n "$ECHO"; then
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6759 $as_echo "$ECHO" >&6; }
6760 else
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764 
6765 
6766         if test "x$ECHO" = x; then
6767           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6768         fi
6769       else
6770         # Otherwise we believe it is a complete path. Use it as it is.
6771         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6772 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6774 $as_echo_n "checking for ECHO... " >&6; }
6775         if test ! -x "$tool_specified"; then
6776           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6777 $as_echo "not found" >&6; }
6778           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6779         fi
6780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6781 $as_echo "$tool_specified" >&6; }
6782       fi
6783     fi
6784   fi
6785 
6786 
6787 
6788   if test "x$ECHO" = x; then
6789     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6790   fi
6791 
6792 
6793 
6794 
6795 
6796   # Publish this variable in the help.
6797 
6798 
6799   if test "x$EXPR" = x; then
6800     # The variable is not set by user, try to locate tool using the code snippet
6801     for ac_prog in expr
6802 do
6803   # Extract the first word of "$ac_prog", so it can be a program name with args.
6804 set dummy $ac_prog; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_path_EXPR+:} false; then :
6808   $as_echo_n "(cached) " >&6
6809 else
6810   case $EXPR in
6811   [\\/]* | ?:[\\/]*)
6812   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6813   ;;
6814   *)
6815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820     for ac_exec_ext in '' $ac_executable_extensions; do
6821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827   done
6828 IFS=$as_save_IFS
6829 
6830   ;;
6831 esac
6832 fi
6833 EXPR=$ac_cv_path_EXPR
6834 if test -n "$EXPR"; then
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6836 $as_echo "$EXPR" >&6; }
6837 else
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841 
6842 
6843   test -n "$EXPR" && break
6844 done
6845 
6846   else
6847     # The variable is set, but is it from the command line or the environment?
6848 
6849     # Try to remove the string !EXPR! from our list.
6850     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6851     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6852       # If it failed, the variable was not from the command line. Ignore it,
6853       # but warn the user (except for BASH, which is always set by the calling BASH).
6854       if test "xEXPR" != xBASH; then
6855         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6856 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6857       fi
6858       # Try to locate tool using the code snippet
6859       for ac_prog in expr
6860 do
6861   # Extract the first word of "$ac_prog", so it can be a program name with args.
6862 set dummy $ac_prog; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_path_EXPR+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   case $EXPR in
6869   [\\/]* | ?:[\\/]*)
6870   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6871   ;;
6872   *)
6873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878     for ac_exec_ext in '' $ac_executable_extensions; do
6879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885   done
6886 IFS=$as_save_IFS
6887 
6888   ;;
6889 esac
6890 fi
6891 EXPR=$ac_cv_path_EXPR
6892 if test -n "$EXPR"; then
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6894 $as_echo "$EXPR" >&6; }
6895 else
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899 
6900 
6901   test -n "$EXPR" && break
6902 done
6903 
6904     else
6905       # If it succeeded, then it was overridden by the user. We will use it
6906       # for the tool.
6907 
6908       # First remove it from the list of overridden variables, so we can test
6909       # for unknown variables in the end.
6910       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6911 
6912       # Check if the provided tool contains a complete path.
6913       tool_specified="$EXPR"
6914       tool_basename="${tool_specified##*/}"
6915       if test "x$tool_basename" = "x$tool_specified"; then
6916         # A command without a complete path is provided, search $PATH.
6917         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6918 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6919         # Extract the first word of "$tool_basename", so it can be a program name with args.
6920 set dummy $tool_basename; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if ${ac_cv_path_EXPR+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   case $EXPR in
6927   [\\/]* | ?:[\\/]*)
6928   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6929   ;;
6930   *)
6931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936     for ac_exec_ext in '' $ac_executable_extensions; do
6937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940     break 2
6941   fi
6942 done
6943   done
6944 IFS=$as_save_IFS
6945 
6946   ;;
6947 esac
6948 fi
6949 EXPR=$ac_cv_path_EXPR
6950 if test -n "$EXPR"; then
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6952 $as_echo "$EXPR" >&6; }
6953 else
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6956 fi
6957 
6958 
6959         if test "x$EXPR" = x; then
6960           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6961         fi
6962       else
6963         # Otherwise we believe it is a complete path. Use it as it is.
6964         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6965 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6967 $as_echo_n "checking for EXPR... " >&6; }
6968         if test ! -x "$tool_specified"; then
6969           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6970 $as_echo "not found" >&6; }
6971           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6972         fi
6973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6974 $as_echo "$tool_specified" >&6; }
6975       fi
6976     fi
6977   fi
6978 
6979 
6980 
6981   if test "x$EXPR" = x; then
6982     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6983   fi
6984 
6985 
6986 
6987 
6988 
6989   # Publish this variable in the help.
6990 
6991 
6992   if test "x$FILE" = x; then
6993     # The variable is not set by user, try to locate tool using the code snippet
6994     for ac_prog in file
6995 do
6996   # Extract the first word of "$ac_prog", so it can be a program name with args.
6997 set dummy $ac_prog; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_path_FILE+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   case $FILE in
7004   [\\/]* | ?:[\\/]*)
7005   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7006   ;;
7007   *)
7008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013     for ac_exec_ext in '' $ac_executable_extensions; do
7014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020   done
7021 IFS=$as_save_IFS
7022 
7023   ;;
7024 esac
7025 fi
7026 FILE=$ac_cv_path_FILE
7027 if test -n "$FILE"; then
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7029 $as_echo "$FILE" >&6; }
7030 else
7031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7033 fi
7034 
7035 
7036   test -n "$FILE" && break
7037 done
7038 
7039   else
7040     # The variable is set, but is it from the command line or the environment?
7041 
7042     # Try to remove the string !FILE! from our list.
7043     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7044     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7045       # If it failed, the variable was not from the command line. Ignore it,
7046       # but warn the user (except for BASH, which is always set by the calling BASH).
7047       if test "xFILE" != xBASH; then
7048         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7049 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7050       fi
7051       # Try to locate tool using the code snippet
7052       for ac_prog in file
7053 do
7054   # Extract the first word of "$ac_prog", so it can be a program name with args.
7055 set dummy $ac_prog; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_path_FILE+:} false; then :
7059   $as_echo_n "(cached) " >&6
7060 else
7061   case $FILE in
7062   [\\/]* | ?:[\\/]*)
7063   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7064   ;;
7065   *)
7066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080 
7081   ;;
7082 esac
7083 fi
7084 FILE=$ac_cv_path_FILE
7085 if test -n "$FILE"; then
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7087 $as_echo "$FILE" >&6; }
7088 else
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092 
7093 
7094   test -n "$FILE" && break
7095 done
7096 
7097     else
7098       # If it succeeded, then it was overridden by the user. We will use it
7099       # for the tool.
7100 
7101       # First remove it from the list of overridden variables, so we can test
7102       # for unknown variables in the end.
7103       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7104 
7105       # Check if the provided tool contains a complete path.
7106       tool_specified="$FILE"
7107       tool_basename="${tool_specified##*/}"
7108       if test "x$tool_basename" = "x$tool_specified"; then
7109         # A command without a complete path is provided, search $PATH.
7110         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7111 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7112         # Extract the first word of "$tool_basename", so it can be a program name with args.
7113 set dummy $tool_basename; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_path_FILE+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   case $FILE in
7120   [\\/]* | ?:[\\/]*)
7121   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7122   ;;
7123   *)
7124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138 
7139   ;;
7140 esac
7141 fi
7142 FILE=$ac_cv_path_FILE
7143 if test -n "$FILE"; then
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7145 $as_echo "$FILE" >&6; }
7146 else
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150 
7151 
7152         if test "x$FILE" = x; then
7153           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7154         fi
7155       else
7156         # Otherwise we believe it is a complete path. Use it as it is.
7157         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7158 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7160 $as_echo_n "checking for FILE... " >&6; }
7161         if test ! -x "$tool_specified"; then
7162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7163 $as_echo "not found" >&6; }
7164           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7165         fi
7166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7167 $as_echo "$tool_specified" >&6; }
7168       fi
7169     fi
7170   fi
7171 
7172 
7173 
7174   if test "x$FILE" = x; then
7175     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7176   fi
7177 
7178 
7179 
7180 
7181 
7182   # Publish this variable in the help.
7183 
7184 
7185   if test "x$FIND" = x; then
7186     # The variable is not set by user, try to locate tool using the code snippet
7187     for ac_prog in find
7188 do
7189   # Extract the first word of "$ac_prog", so it can be a program name with args.
7190 set dummy $ac_prog; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_path_FIND+:} false; then :
7194   $as_echo_n "(cached) " >&6
7195 else
7196   case $FIND in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7215 
7216   ;;
7217 esac
7218 fi
7219 FIND=$ac_cv_path_FIND
7220 if test -n "$FIND"; then
7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7222 $as_echo "$FIND" >&6; }
7223 else
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227 
7228 
7229   test -n "$FIND" && break
7230 done
7231 
7232   else
7233     # The variable is set, but is it from the command line or the environment?
7234 
7235     # Try to remove the string !FIND! from our list.
7236     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7237     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7238       # If it failed, the variable was not from the command line. Ignore it,
7239       # but warn the user (except for BASH, which is always set by the calling BASH).
7240       if test "xFIND" != xBASH; then
7241         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7242 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7243       fi
7244       # Try to locate tool using the code snippet
7245       for ac_prog in find
7246 do
7247   # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_path_FIND+:} false; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   case $FIND in
7255   [\\/]* | ?:[\\/]*)
7256   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7257   ;;
7258   *)
7259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273 
7274   ;;
7275 esac
7276 fi
7277 FIND=$ac_cv_path_FIND
7278 if test -n "$FIND"; then
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7280 $as_echo "$FIND" >&6; }
7281 else
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285 
7286 
7287   test -n "$FIND" && break
7288 done
7289 
7290     else
7291       # If it succeeded, then it was overridden by the user. We will use it
7292       # for the tool.
7293 
7294       # First remove it from the list of overridden variables, so we can test
7295       # for unknown variables in the end.
7296       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7297 
7298       # Check if the provided tool contains a complete path.
7299       tool_specified="$FIND"
7300       tool_basename="${tool_specified##*/}"
7301       if test "x$tool_basename" = "x$tool_specified"; then
7302         # A command without a complete path is provided, search $PATH.
7303         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7304 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7305         # Extract the first word of "$tool_basename", so it can be a program name with args.
7306 set dummy $tool_basename; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_path_FIND+:} false; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   case $FIND in
7313   [\\/]* | ?:[\\/]*)
7314   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7315   ;;
7316   *)
7317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322     for ac_exec_ext in '' $ac_executable_extensions; do
7323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329   done
7330 IFS=$as_save_IFS
7331 
7332   ;;
7333 esac
7334 fi
7335 FIND=$ac_cv_path_FIND
7336 if test -n "$FIND"; then
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7338 $as_echo "$FIND" >&6; }
7339 else
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342 fi
7343 
7344 
7345         if test "x$FIND" = x; then
7346           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7347         fi
7348       else
7349         # Otherwise we believe it is a complete path. Use it as it is.
7350         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7351 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7353 $as_echo_n "checking for FIND... " >&6; }
7354         if test ! -x "$tool_specified"; then
7355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7356 $as_echo "not found" >&6; }
7357           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7358         fi
7359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7360 $as_echo "$tool_specified" >&6; }
7361       fi
7362     fi
7363   fi
7364 
7365 
7366 
7367   if test "x$FIND" = x; then
7368     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7369   fi
7370 
7371 
7372 
7373 
7374 
7375   # Publish this variable in the help.
7376 
7377 
7378   if test "x$HEAD" = x; then
7379     # The variable is not set by user, try to locate tool using the code snippet
7380     for ac_prog in head
7381 do
7382   # Extract the first word of "$ac_prog", so it can be a program name with args.
7383 set dummy $ac_prog; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_path_HEAD+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   case $HEAD in
7390   [\\/]* | ?:[\\/]*)
7391   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7392   ;;
7393   *)
7394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399     for ac_exec_ext in '' $ac_executable_extensions; do
7400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406   done
7407 IFS=$as_save_IFS
7408 
7409   ;;
7410 esac
7411 fi
7412 HEAD=$ac_cv_path_HEAD
7413 if test -n "$HEAD"; then
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7415 $as_echo "$HEAD" >&6; }
7416 else
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420 
7421 
7422   test -n "$HEAD" && break
7423 done
7424 
7425   else
7426     # The variable is set, but is it from the command line or the environment?
7427 
7428     # Try to remove the string !HEAD! from our list.
7429     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7430     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7431       # If it failed, the variable was not from the command line. Ignore it,
7432       # but warn the user (except for BASH, which is always set by the calling BASH).
7433       if test "xHEAD" != xBASH; then
7434         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7435 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7436       fi
7437       # Try to locate tool using the code snippet
7438       for ac_prog in head
7439 do
7440   # Extract the first word of "$ac_prog", so it can be a program name with args.
7441 set dummy $ac_prog; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_path_HEAD+:} false; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447   case $HEAD in
7448   [\\/]* | ?:[\\/]*)
7449   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7450   ;;
7451   *)
7452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457     for ac_exec_ext in '' $ac_executable_extensions; do
7458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464   done
7465 IFS=$as_save_IFS
7466 
7467   ;;
7468 esac
7469 fi
7470 HEAD=$ac_cv_path_HEAD
7471 if test -n "$HEAD"; then
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7473 $as_echo "$HEAD" >&6; }
7474 else
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478 
7479 
7480   test -n "$HEAD" && break
7481 done
7482 
7483     else
7484       # If it succeeded, then it was overridden by the user. We will use it
7485       # for the tool.
7486 
7487       # First remove it from the list of overridden variables, so we can test
7488       # for unknown variables in the end.
7489       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7490 
7491       # Check if the provided tool contains a complete path.
7492       tool_specified="$HEAD"
7493       tool_basename="${tool_specified##*/}"
7494       if test "x$tool_basename" = "x$tool_specified"; then
7495         # A command without a complete path is provided, search $PATH.
7496         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7497 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7498         # Extract the first word of "$tool_basename", so it can be a program name with args.
7499 set dummy $tool_basename; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_path_HEAD+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   case $HEAD in
7506   [\\/]* | ?:[\\/]*)
7507   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7508   ;;
7509   *)
7510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515     for ac_exec_ext in '' $ac_executable_extensions; do
7516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522   done
7523 IFS=$as_save_IFS
7524 
7525   ;;
7526 esac
7527 fi
7528 HEAD=$ac_cv_path_HEAD
7529 if test -n "$HEAD"; then
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7531 $as_echo "$HEAD" >&6; }
7532 else
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536 
7537 
7538         if test "x$HEAD" = x; then
7539           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7540         fi
7541       else
7542         # Otherwise we believe it is a complete path. Use it as it is.
7543         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7544 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7546 $as_echo_n "checking for HEAD... " >&6; }
7547         if test ! -x "$tool_specified"; then
7548           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7549 $as_echo "not found" >&6; }
7550           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7551         fi
7552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7553 $as_echo "$tool_specified" >&6; }
7554       fi
7555     fi
7556   fi
7557 
7558 
7559 
7560   if test "x$HEAD" = x; then
7561     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7562   fi
7563 
7564 
7565 
7566 
7567 
7568   # Publish this variable in the help.
7569 
7570 
7571   if test "x$LN" = x; then
7572     # The variable is not set by user, try to locate tool using the code snippet
7573     for ac_prog in ln
7574 do
7575   # Extract the first word of "$ac_prog", so it can be a program name with args.
7576 set dummy $ac_prog; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_path_LN+:} false; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582   case $LN in
7583   [\\/]* | ?:[\\/]*)
7584   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7585   ;;
7586   *)
7587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592     for ac_exec_ext in '' $ac_executable_extensions; do
7593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599   done
7600 IFS=$as_save_IFS
7601 
7602   ;;
7603 esac
7604 fi
7605 LN=$ac_cv_path_LN
7606 if test -n "$LN"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7608 $as_echo "$LN" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613 
7614 
7615   test -n "$LN" && break
7616 done
7617 
7618   else
7619     # The variable is set, but is it from the command line or the environment?
7620 
7621     # Try to remove the string !LN! from our list.
7622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7624       # If it failed, the variable was not from the command line. Ignore it,
7625       # but warn the user (except for BASH, which is always set by the calling BASH).
7626       if test "xLN" != xBASH; then
7627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7628 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7629       fi
7630       # Try to locate tool using the code snippet
7631       for ac_prog in ln
7632 do
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_path_LN+:} false; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   case $LN in
7641   [\\/]* | ?:[\\/]*)
7642   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7643   ;;
7644   *)
7645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659 
7660   ;;
7661 esac
7662 fi
7663 LN=$ac_cv_path_LN
7664 if test -n "$LN"; then
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7666 $as_echo "$LN" >&6; }
7667 else
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671 
7672 
7673   test -n "$LN" && break
7674 done
7675 
7676     else
7677       # If it succeeded, then it was overridden by the user. We will use it
7678       # for the tool.
7679 
7680       # First remove it from the list of overridden variables, so we can test
7681       # for unknown variables in the end.
7682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7683 
7684       # Check if the provided tool contains a complete path.
7685       tool_specified="$LN"
7686       tool_basename="${tool_specified##*/}"
7687       if test "x$tool_basename" = "x$tool_specified"; then
7688         # A command without a complete path is provided, search $PATH.
7689         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7690 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7691         # Extract the first word of "$tool_basename", so it can be a program name with args.
7692 set dummy $tool_basename; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_path_LN+:} false; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   case $LN in
7699   [\\/]* | ?:[\\/]*)
7700   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7701   ;;
7702   *)
7703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706   IFS=$as_save_IFS
7707   test -z "$as_dir" && as_dir=.
7708     for ac_exec_ext in '' $ac_executable_extensions; do
7709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712     break 2
7713   fi
7714 done
7715   done
7716 IFS=$as_save_IFS
7717 
7718   ;;
7719 esac
7720 fi
7721 LN=$ac_cv_path_LN
7722 if test -n "$LN"; then
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7724 $as_echo "$LN" >&6; }
7725 else
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729 
7730 
7731         if test "x$LN" = x; then
7732           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7733         fi
7734       else
7735         # Otherwise we believe it is a complete path. Use it as it is.
7736         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7737 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7739 $as_echo_n "checking for LN... " >&6; }
7740         if test ! -x "$tool_specified"; then
7741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7742 $as_echo "not found" >&6; }
7743           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7744         fi
7745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7746 $as_echo "$tool_specified" >&6; }
7747       fi
7748     fi
7749   fi
7750 
7751 
7752 
7753   if test "x$LN" = x; then
7754     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7755   fi
7756 
7757 
7758 
7759 
7760 
7761   # Publish this variable in the help.
7762 
7763 
7764   if test "x$LS" = x; then
7765     # The variable is not set by user, try to locate tool using the code snippet
7766     for ac_prog in ls
7767 do
7768   # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if ${ac_cv_path_LS+:} false; then :
7773   $as_echo_n "(cached) " >&6
7774 else
7775   case $LS in
7776   [\\/]* | ?:[\\/]*)
7777   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7778   ;;
7779   *)
7780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785     for ac_exec_ext in '' $ac_executable_extensions; do
7786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792   done
7793 IFS=$as_save_IFS
7794 
7795   ;;
7796 esac
7797 fi
7798 LS=$ac_cv_path_LS
7799 if test -n "$LS"; then
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7801 $as_echo "$LS" >&6; }
7802 else
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806 
7807 
7808   test -n "$LS" && break
7809 done
7810 
7811   else
7812     # The variable is set, but is it from the command line or the environment?
7813 
7814     # Try to remove the string !LS! from our list.
7815     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7816     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7817       # If it failed, the variable was not from the command line. Ignore it,
7818       # but warn the user (except for BASH, which is always set by the calling BASH).
7819       if test "xLS" != xBASH; then
7820         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7821 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7822       fi
7823       # Try to locate tool using the code snippet
7824       for ac_prog in ls
7825 do
7826   # Extract the first word of "$ac_prog", so it can be a program name with args.
7827 set dummy $ac_prog; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_path_LS+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   case $LS in
7834   [\\/]* | ?:[\\/]*)
7835   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7836   ;;
7837   *)
7838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843     for ac_exec_ext in '' $ac_executable_extensions; do
7844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850   done
7851 IFS=$as_save_IFS
7852 
7853   ;;
7854 esac
7855 fi
7856 LS=$ac_cv_path_LS
7857 if test -n "$LS"; then
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7859 $as_echo "$LS" >&6; }
7860 else
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864 
7865 
7866   test -n "$LS" && break
7867 done
7868 
7869     else
7870       # If it succeeded, then it was overridden by the user. We will use it
7871       # for the tool.
7872 
7873       # First remove it from the list of overridden variables, so we can test
7874       # for unknown variables in the end.
7875       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7876 
7877       # Check if the provided tool contains a complete path.
7878       tool_specified="$LS"
7879       tool_basename="${tool_specified##*/}"
7880       if test "x$tool_basename" = "x$tool_specified"; then
7881         # A command without a complete path is provided, search $PATH.
7882         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7883 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7884         # Extract the first word of "$tool_basename", so it can be a program name with args.
7885 set dummy $tool_basename; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_path_LS+:} false; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   case $LS in
7892   [\\/]* | ?:[\\/]*)
7893   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7894   ;;
7895   *)
7896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899   IFS=$as_save_IFS
7900   test -z "$as_dir" && as_dir=.
7901     for ac_exec_ext in '' $ac_executable_extensions; do
7902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905     break 2
7906   fi
7907 done
7908   done
7909 IFS=$as_save_IFS
7910 
7911   ;;
7912 esac
7913 fi
7914 LS=$ac_cv_path_LS
7915 if test -n "$LS"; then
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7917 $as_echo "$LS" >&6; }
7918 else
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922 
7923 
7924         if test "x$LS" = x; then
7925           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7926         fi
7927       else
7928         # Otherwise we believe it is a complete path. Use it as it is.
7929         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7930 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7932 $as_echo_n "checking for LS... " >&6; }
7933         if test ! -x "$tool_specified"; then
7934           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7935 $as_echo "not found" >&6; }
7936           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7937         fi
7938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7939 $as_echo "$tool_specified" >&6; }
7940       fi
7941     fi
7942   fi
7943 
7944 
7945 
7946   if test "x$LS" = x; then
7947     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7948   fi
7949 
7950 
7951 
7952 
7953 
7954   # Publish this variable in the help.
7955 
7956 
7957   if test "x$MKDIR" = x; then
7958     # The variable is not set by user, try to locate tool using the code snippet
7959     for ac_prog in mkdir
7960 do
7961   # Extract the first word of "$ac_prog", so it can be a program name with args.
7962 set dummy $ac_prog; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_path_MKDIR+:} false; then :
7966   $as_echo_n "(cached) " >&6
7967 else
7968   case $MKDIR in
7969   [\\/]* | ?:[\\/]*)
7970   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7971   ;;
7972   *)
7973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976   IFS=$as_save_IFS
7977   test -z "$as_dir" && as_dir=.
7978     for ac_exec_ext in '' $ac_executable_extensions; do
7979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982     break 2
7983   fi
7984 done
7985   done
7986 IFS=$as_save_IFS
7987 
7988   ;;
7989 esac
7990 fi
7991 MKDIR=$ac_cv_path_MKDIR
7992 if test -n "$MKDIR"; then
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7994 $as_echo "$MKDIR" >&6; }
7995 else
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999 
8000 
8001   test -n "$MKDIR" && break
8002 done
8003 
8004   else
8005     # The variable is set, but is it from the command line or the environment?
8006 
8007     # Try to remove the string !MKDIR! from our list.
8008     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8009     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8010       # If it failed, the variable was not from the command line. Ignore it,
8011       # but warn the user (except for BASH, which is always set by the calling BASH).
8012       if test "xMKDIR" != xBASH; then
8013         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8014 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8015       fi
8016       # Try to locate tool using the code snippet
8017       for ac_prog in mkdir
8018 do
8019   # Extract the first word of "$ac_prog", so it can be a program name with args.
8020 set dummy $ac_prog; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_path_MKDIR+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   case $MKDIR in
8027   [\\/]* | ?:[\\/]*)
8028   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8029   ;;
8030   *)
8031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034   IFS=$as_save_IFS
8035   test -z "$as_dir" && as_dir=.
8036     for ac_exec_ext in '' $ac_executable_extensions; do
8037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040     break 2
8041   fi
8042 done
8043   done
8044 IFS=$as_save_IFS
8045 
8046   ;;
8047 esac
8048 fi
8049 MKDIR=$ac_cv_path_MKDIR
8050 if test -n "$MKDIR"; then
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8052 $as_echo "$MKDIR" >&6; }
8053 else
8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8056 fi
8057 
8058 
8059   test -n "$MKDIR" && break
8060 done
8061 
8062     else
8063       # If it succeeded, then it was overridden by the user. We will use it
8064       # for the tool.
8065 
8066       # First remove it from the list of overridden variables, so we can test
8067       # for unknown variables in the end.
8068       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8069 
8070       # Check if the provided tool contains a complete path.
8071       tool_specified="$MKDIR"
8072       tool_basename="${tool_specified##*/}"
8073       if test "x$tool_basename" = "x$tool_specified"; then
8074         # A command without a complete path is provided, search $PATH.
8075         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8076 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8077         # Extract the first word of "$tool_basename", so it can be a program name with args.
8078 set dummy $tool_basename; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_path_MKDIR+:} false; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   case $MKDIR in
8085   [\\/]* | ?:[\\/]*)
8086   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8087   ;;
8088   *)
8089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092   IFS=$as_save_IFS
8093   test -z "$as_dir" && as_dir=.
8094     for ac_exec_ext in '' $ac_executable_extensions; do
8095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098     break 2
8099   fi
8100 done
8101   done
8102 IFS=$as_save_IFS
8103 
8104   ;;
8105 esac
8106 fi
8107 MKDIR=$ac_cv_path_MKDIR
8108 if test -n "$MKDIR"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8110 $as_echo "$MKDIR" >&6; }
8111 else
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115 
8116 
8117         if test "x$MKDIR" = x; then
8118           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8119         fi
8120       else
8121         # Otherwise we believe it is a complete path. Use it as it is.
8122         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8123 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8125 $as_echo_n "checking for MKDIR... " >&6; }
8126         if test ! -x "$tool_specified"; then
8127           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8128 $as_echo "not found" >&6; }
8129           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8130         fi
8131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8132 $as_echo "$tool_specified" >&6; }
8133       fi
8134     fi
8135   fi
8136 
8137 
8138 
8139   if test "x$MKDIR" = x; then
8140     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8141   fi
8142 
8143 
8144 
8145 
8146 
8147   # Publish this variable in the help.
8148 
8149 
8150   if test "x$MKTEMP" = x; then
8151     # The variable is not set by user, try to locate tool using the code snippet
8152     for ac_prog in mktemp
8153 do
8154   # Extract the first word of "$ac_prog", so it can be a program name with args.
8155 set dummy $ac_prog; ac_word=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if ${ac_cv_path_MKTEMP+:} false; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   case $MKTEMP in
8162   [\\/]* | ?:[\\/]*)
8163   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8164   ;;
8165   *)
8166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 for as_dir in $PATH
8168 do
8169   IFS=$as_save_IFS
8170   test -z "$as_dir" && as_dir=.
8171     for ac_exec_ext in '' $ac_executable_extensions; do
8172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8173     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175     break 2
8176   fi
8177 done
8178   done
8179 IFS=$as_save_IFS
8180 
8181   ;;
8182 esac
8183 fi
8184 MKTEMP=$ac_cv_path_MKTEMP
8185 if test -n "$MKTEMP"; then
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8187 $as_echo "$MKTEMP" >&6; }
8188 else
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192 
8193 
8194   test -n "$MKTEMP" && break
8195 done
8196 
8197   else
8198     # The variable is set, but is it from the command line or the environment?
8199 
8200     # Try to remove the string !MKTEMP! from our list.
8201     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8202     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8203       # If it failed, the variable was not from the command line. Ignore it,
8204       # but warn the user (except for BASH, which is always set by the calling BASH).
8205       if test "xMKTEMP" != xBASH; then
8206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8207 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8208       fi
8209       # Try to locate tool using the code snippet
8210       for ac_prog in mktemp
8211 do
8212   # Extract the first word of "$ac_prog", so it can be a program name with args.
8213 set dummy $ac_prog; ac_word=$2
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if ${ac_cv_path_MKTEMP+:} false; then :
8217   $as_echo_n "(cached) " >&6
8218 else
8219   case $MKTEMP in
8220   [\\/]* | ?:[\\/]*)
8221   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8222   ;;
8223   *)
8224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227   IFS=$as_save_IFS
8228   test -z "$as_dir" && as_dir=.
8229     for ac_exec_ext in '' $ac_executable_extensions; do
8230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233     break 2
8234   fi
8235 done
8236   done
8237 IFS=$as_save_IFS
8238 
8239   ;;
8240 esac
8241 fi
8242 MKTEMP=$ac_cv_path_MKTEMP
8243 if test -n "$MKTEMP"; then
8244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8245 $as_echo "$MKTEMP" >&6; }
8246 else
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250 
8251 
8252   test -n "$MKTEMP" && break
8253 done
8254 
8255     else
8256       # If it succeeded, then it was overridden by the user. We will use it
8257       # for the tool.
8258 
8259       # First remove it from the list of overridden variables, so we can test
8260       # for unknown variables in the end.
8261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8262 
8263       # Check if the provided tool contains a complete path.
8264       tool_specified="$MKTEMP"
8265       tool_basename="${tool_specified##*/}"
8266       if test "x$tool_basename" = "x$tool_specified"; then
8267         # A command without a complete path is provided, search $PATH.
8268         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8269 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8270         # Extract the first word of "$tool_basename", so it can be a program name with args.
8271 set dummy $tool_basename; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if ${ac_cv_path_MKTEMP+:} false; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   case $MKTEMP in
8278   [\\/]* | ?:[\\/]*)
8279   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8280   ;;
8281   *)
8282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8284 do
8285   IFS=$as_save_IFS
8286   test -z "$as_dir" && as_dir=.
8287     for ac_exec_ext in '' $ac_executable_extensions; do
8288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291     break 2
8292   fi
8293 done
8294   done
8295 IFS=$as_save_IFS
8296 
8297   ;;
8298 esac
8299 fi
8300 MKTEMP=$ac_cv_path_MKTEMP
8301 if test -n "$MKTEMP"; then
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8303 $as_echo "$MKTEMP" >&6; }
8304 else
8305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308 
8309 
8310         if test "x$MKTEMP" = x; then
8311           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8312         fi
8313       else
8314         # Otherwise we believe it is a complete path. Use it as it is.
8315         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8316 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8318 $as_echo_n "checking for MKTEMP... " >&6; }
8319         if test ! -x "$tool_specified"; then
8320           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8321 $as_echo "not found" >&6; }
8322           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8323         fi
8324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8325 $as_echo "$tool_specified" >&6; }
8326       fi
8327     fi
8328   fi
8329 
8330 
8331 
8332   if test "x$MKTEMP" = x; then
8333     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8334   fi
8335 
8336 
8337 
8338 
8339 
8340   # Publish this variable in the help.
8341 
8342 
8343   if test "x$MV" = x; then
8344     # The variable is not set by user, try to locate tool using the code snippet
8345     for ac_prog in mv
8346 do
8347   # Extract the first word of "$ac_prog", so it can be a program name with args.
8348 set dummy $ac_prog; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_path_MV+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   case $MV in
8355   [\\/]* | ?:[\\/]*)
8356   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8357   ;;
8358   *)
8359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362   IFS=$as_save_IFS
8363   test -z "$as_dir" && as_dir=.
8364     for ac_exec_ext in '' $ac_executable_extensions; do
8365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368     break 2
8369   fi
8370 done
8371   done
8372 IFS=$as_save_IFS
8373 
8374   ;;
8375 esac
8376 fi
8377 MV=$ac_cv_path_MV
8378 if test -n "$MV"; then
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8380 $as_echo "$MV" >&6; }
8381 else
8382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8384 fi
8385 
8386 
8387   test -n "$MV" && break
8388 done
8389 
8390   else
8391     # The variable is set, but is it from the command line or the environment?
8392 
8393     # Try to remove the string !MV! from our list.
8394     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8395     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8396       # If it failed, the variable was not from the command line. Ignore it,
8397       # but warn the user (except for BASH, which is always set by the calling BASH).
8398       if test "xMV" != xBASH; then
8399         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8400 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8401       fi
8402       # Try to locate tool using the code snippet
8403       for ac_prog in mv
8404 do
8405   # Extract the first word of "$ac_prog", so it can be a program name with args.
8406 set dummy $ac_prog; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_path_MV+:} false; then :
8410   $as_echo_n "(cached) " >&6
8411 else
8412   case $MV in
8413   [\\/]* | ?:[\\/]*)
8414   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8415   ;;
8416   *)
8417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420   IFS=$as_save_IFS
8421   test -z "$as_dir" && as_dir=.
8422     for ac_exec_ext in '' $ac_executable_extensions; do
8423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426     break 2
8427   fi
8428 done
8429   done
8430 IFS=$as_save_IFS
8431 
8432   ;;
8433 esac
8434 fi
8435 MV=$ac_cv_path_MV
8436 if test -n "$MV"; then
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8438 $as_echo "$MV" >&6; }
8439 else
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 fi
8443 
8444 
8445   test -n "$MV" && break
8446 done
8447 
8448     else
8449       # If it succeeded, then it was overridden by the user. We will use it
8450       # for the tool.
8451 
8452       # First remove it from the list of overridden variables, so we can test
8453       # for unknown variables in the end.
8454       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8455 
8456       # Check if the provided tool contains a complete path.
8457       tool_specified="$MV"
8458       tool_basename="${tool_specified##*/}"
8459       if test "x$tool_basename" = "x$tool_specified"; then
8460         # A command without a complete path is provided, search $PATH.
8461         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8462 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8463         # Extract the first word of "$tool_basename", so it can be a program name with args.
8464 set dummy $tool_basename; ac_word=$2
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466 $as_echo_n "checking for $ac_word... " >&6; }
8467 if ${ac_cv_path_MV+:} false; then :
8468   $as_echo_n "(cached) " >&6
8469 else
8470   case $MV in
8471   [\\/]* | ?:[\\/]*)
8472   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8473   ;;
8474   *)
8475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478   IFS=$as_save_IFS
8479   test -z "$as_dir" && as_dir=.
8480     for ac_exec_ext in '' $ac_executable_extensions; do
8481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484     break 2
8485   fi
8486 done
8487   done
8488 IFS=$as_save_IFS
8489 
8490   ;;
8491 esac
8492 fi
8493 MV=$ac_cv_path_MV
8494 if test -n "$MV"; then
8495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8496 $as_echo "$MV" >&6; }
8497 else
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8500 fi
8501 
8502 
8503         if test "x$MV" = x; then
8504           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8505         fi
8506       else
8507         # Otherwise we believe it is a complete path. Use it as it is.
8508         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8509 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8511 $as_echo_n "checking for MV... " >&6; }
8512         if test ! -x "$tool_specified"; then
8513           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8514 $as_echo "not found" >&6; }
8515           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8516         fi
8517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8518 $as_echo "$tool_specified" >&6; }
8519       fi
8520     fi
8521   fi
8522 
8523 
8524 
8525   if test "x$MV" = x; then
8526     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8527   fi
8528 
8529 
8530 
8531 
8532 
8533   # Publish this variable in the help.
8534 
8535 
8536   if test "x$NAWK" = x; then
8537     # The variable is not set by user, try to locate tool using the code snippet
8538     for ac_prog in nawk gawk awk
8539 do
8540   # Extract the first word of "$ac_prog", so it can be a program name with args.
8541 set dummy $ac_prog; ac_word=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if ${ac_cv_path_NAWK+:} false; then :
8545   $as_echo_n "(cached) " >&6
8546 else
8547   case $NAWK in
8548   [\\/]* | ?:[\\/]*)
8549   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8550   ;;
8551   *)
8552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555   IFS=$as_save_IFS
8556   test -z "$as_dir" && as_dir=.
8557     for ac_exec_ext in '' $ac_executable_extensions; do
8558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561     break 2
8562   fi
8563 done
8564   done
8565 IFS=$as_save_IFS
8566 
8567   ;;
8568 esac
8569 fi
8570 NAWK=$ac_cv_path_NAWK
8571 if test -n "$NAWK"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8573 $as_echo "$NAWK" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578 
8579 
8580   test -n "$NAWK" && break
8581 done
8582 
8583   else
8584     # The variable is set, but is it from the command line or the environment?
8585 
8586     # Try to remove the string !NAWK! from our list.
8587     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8588     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8589       # If it failed, the variable was not from the command line. Ignore it,
8590       # but warn the user (except for BASH, which is always set by the calling BASH).
8591       if test "xNAWK" != xBASH; then
8592         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8593 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8594       fi
8595       # Try to locate tool using the code snippet
8596       for ac_prog in nawk gawk awk
8597 do
8598   # Extract the first word of "$ac_prog", so it can be a program name with args.
8599 set dummy $ac_prog; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_path_NAWK+:} false; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   case $NAWK in
8606   [\\/]* | ?:[\\/]*)
8607   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8608   ;;
8609   *)
8610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8612 do
8613   IFS=$as_save_IFS
8614   test -z "$as_dir" && as_dir=.
8615     for ac_exec_ext in '' $ac_executable_extensions; do
8616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619     break 2
8620   fi
8621 done
8622   done
8623 IFS=$as_save_IFS
8624 
8625   ;;
8626 esac
8627 fi
8628 NAWK=$ac_cv_path_NAWK
8629 if test -n "$NAWK"; then
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8631 $as_echo "$NAWK" >&6; }
8632 else
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636 
8637 
8638   test -n "$NAWK" && break
8639 done
8640 
8641     else
8642       # If it succeeded, then it was overridden by the user. We will use it
8643       # for the tool.
8644 
8645       # First remove it from the list of overridden variables, so we can test
8646       # for unknown variables in the end.
8647       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8648 
8649       # Check if the provided tool contains a complete path.
8650       tool_specified="$NAWK"
8651       tool_basename="${tool_specified##*/}"
8652       if test "x$tool_basename" = "x$tool_specified"; then
8653         # A command without a complete path is provided, search $PATH.
8654         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8655 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8656         # Extract the first word of "$tool_basename", so it can be a program name with args.
8657 set dummy $tool_basename; ac_word=$2
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659 $as_echo_n "checking for $ac_word... " >&6; }
8660 if ${ac_cv_path_NAWK+:} false; then :
8661   $as_echo_n "(cached) " >&6
8662 else
8663   case $NAWK in
8664   [\\/]* | ?:[\\/]*)
8665   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8666   ;;
8667   *)
8668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 for as_dir in $PATH
8670 do
8671   IFS=$as_save_IFS
8672   test -z "$as_dir" && as_dir=.
8673     for ac_exec_ext in '' $ac_executable_extensions; do
8674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677     break 2
8678   fi
8679 done
8680   done
8681 IFS=$as_save_IFS
8682 
8683   ;;
8684 esac
8685 fi
8686 NAWK=$ac_cv_path_NAWK
8687 if test -n "$NAWK"; then
8688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8689 $as_echo "$NAWK" >&6; }
8690 else
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8693 fi
8694 
8695 
8696         if test "x$NAWK" = x; then
8697           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8698         fi
8699       else
8700         # Otherwise we believe it is a complete path. Use it as it is.
8701         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8702 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8703         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8704 $as_echo_n "checking for NAWK... " >&6; }
8705         if test ! -x "$tool_specified"; then
8706           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8707 $as_echo "not found" >&6; }
8708           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8709         fi
8710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8711 $as_echo "$tool_specified" >&6; }
8712       fi
8713     fi
8714   fi
8715 
8716 
8717 
8718   if test "x$NAWK" = x; then
8719     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8720   fi
8721 
8722 
8723 
8724 
8725 
8726   # Publish this variable in the help.
8727 
8728 
8729   if test "x$PRINTF" = x; then
8730     # The variable is not set by user, try to locate tool using the code snippet
8731     for ac_prog in printf
8732 do
8733   # Extract the first word of "$ac_prog", so it can be a program name with args.
8734 set dummy $ac_prog; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if ${ac_cv_path_PRINTF+:} false; then :
8738   $as_echo_n "(cached) " >&6
8739 else
8740   case $PRINTF in
8741   [\\/]* | ?:[\\/]*)
8742   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8743   ;;
8744   *)
8745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748   IFS=$as_save_IFS
8749   test -z "$as_dir" && as_dir=.
8750     for ac_exec_ext in '' $ac_executable_extensions; do
8751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754     break 2
8755   fi
8756 done
8757   done
8758 IFS=$as_save_IFS
8759 
8760   ;;
8761 esac
8762 fi
8763 PRINTF=$ac_cv_path_PRINTF
8764 if test -n "$PRINTF"; then
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8766 $as_echo "$PRINTF" >&6; }
8767 else
8768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8770 fi
8771 
8772 
8773   test -n "$PRINTF" && break
8774 done
8775 
8776   else
8777     # The variable is set, but is it from the command line or the environment?
8778 
8779     # Try to remove the string !PRINTF! from our list.
8780     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8781     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8782       # If it failed, the variable was not from the command line. Ignore it,
8783       # but warn the user (except for BASH, which is always set by the calling BASH).
8784       if test "xPRINTF" != xBASH; then
8785         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8786 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8787       fi
8788       # Try to locate tool using the code snippet
8789       for ac_prog in printf
8790 do
8791   # Extract the first word of "$ac_prog", so it can be a program name with args.
8792 set dummy $ac_prog; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_path_PRINTF+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   case $PRINTF in
8799   [\\/]* | ?:[\\/]*)
8800   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8801   ;;
8802   *)
8803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8805 do
8806   IFS=$as_save_IFS
8807   test -z "$as_dir" && as_dir=.
8808     for ac_exec_ext in '' $ac_executable_extensions; do
8809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8810     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812     break 2
8813   fi
8814 done
8815   done
8816 IFS=$as_save_IFS
8817 
8818   ;;
8819 esac
8820 fi
8821 PRINTF=$ac_cv_path_PRINTF
8822 if test -n "$PRINTF"; then
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8824 $as_echo "$PRINTF" >&6; }
8825 else
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829 
8830 
8831   test -n "$PRINTF" && break
8832 done
8833 
8834     else
8835       # If it succeeded, then it was overridden by the user. We will use it
8836       # for the tool.
8837 
8838       # First remove it from the list of overridden variables, so we can test
8839       # for unknown variables in the end.
8840       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8841 
8842       # Check if the provided tool contains a complete path.
8843       tool_specified="$PRINTF"
8844       tool_basename="${tool_specified##*/}"
8845       if test "x$tool_basename" = "x$tool_specified"; then
8846         # A command without a complete path is provided, search $PATH.
8847         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8848 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8849         # Extract the first word of "$tool_basename", so it can be a program name with args.
8850 set dummy $tool_basename; ac_word=$2
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852 $as_echo_n "checking for $ac_word... " >&6; }
8853 if ${ac_cv_path_PRINTF+:} false; then :
8854   $as_echo_n "(cached) " >&6
8855 else
8856   case $PRINTF in
8857   [\\/]* | ?:[\\/]*)
8858   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8859   ;;
8860   *)
8861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 for as_dir in $PATH
8863 do
8864   IFS=$as_save_IFS
8865   test -z "$as_dir" && as_dir=.
8866     for ac_exec_ext in '' $ac_executable_extensions; do
8867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8868     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8870     break 2
8871   fi
8872 done
8873   done
8874 IFS=$as_save_IFS
8875 
8876   ;;
8877 esac
8878 fi
8879 PRINTF=$ac_cv_path_PRINTF
8880 if test -n "$PRINTF"; then
8881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8882 $as_echo "$PRINTF" >&6; }
8883 else
8884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885 $as_echo "no" >&6; }
8886 fi
8887 
8888 
8889         if test "x$PRINTF" = x; then
8890           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8891         fi
8892       else
8893         # Otherwise we believe it is a complete path. Use it as it is.
8894         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8895 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8897 $as_echo_n "checking for PRINTF... " >&6; }
8898         if test ! -x "$tool_specified"; then
8899           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8900 $as_echo "not found" >&6; }
8901           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8902         fi
8903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8904 $as_echo "$tool_specified" >&6; }
8905       fi
8906     fi
8907   fi
8908 
8909 
8910 
8911   if test "x$PRINTF" = x; then
8912     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8913   fi
8914 
8915 
8916 
8917 
8918 
8919   # Publish this variable in the help.
8920 
8921 
8922   if test "x$RM" = x; then
8923     # The variable is not set by user, try to locate tool using the code snippet
8924     for ac_prog in rm
8925 do
8926   # Extract the first word of "$ac_prog", so it can be a program name with args.
8927 set dummy $ac_prog; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if ${ac_cv_path_RM+:} false; then :
8931   $as_echo_n "(cached) " >&6
8932 else
8933   case $RM in
8934   [\\/]* | ?:[\\/]*)
8935   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8936   ;;
8937   *)
8938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8940 do
8941   IFS=$as_save_IFS
8942   test -z "$as_dir" && as_dir=.
8943     for ac_exec_ext in '' $ac_executable_extensions; do
8944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8945     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947     break 2
8948   fi
8949 done
8950   done
8951 IFS=$as_save_IFS
8952 
8953   ;;
8954 esac
8955 fi
8956 RM=$ac_cv_path_RM
8957 if test -n "$RM"; then
8958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8959 $as_echo "$RM" >&6; }
8960 else
8961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8963 fi
8964 
8965 
8966   test -n "$RM" && break
8967 done
8968 
8969   else
8970     # The variable is set, but is it from the command line or the environment?
8971 
8972     # Try to remove the string !RM! from our list.
8973     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8974     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8975       # If it failed, the variable was not from the command line. Ignore it,
8976       # but warn the user (except for BASH, which is always set by the calling BASH).
8977       if test "xRM" != xBASH; then
8978         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8979 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8980       fi
8981       # Try to locate tool using the code snippet
8982       for ac_prog in rm
8983 do
8984   # Extract the first word of "$ac_prog", so it can be a program name with args.
8985 set dummy $ac_prog; ac_word=$2
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 $as_echo_n "checking for $ac_word... " >&6; }
8988 if ${ac_cv_path_RM+:} false; then :
8989   $as_echo_n "(cached) " >&6
8990 else
8991   case $RM in
8992   [\\/]* | ?:[\\/]*)
8993   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8994   ;;
8995   *)
8996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8998 do
8999   IFS=$as_save_IFS
9000   test -z "$as_dir" && as_dir=.
9001     for ac_exec_ext in '' $ac_executable_extensions; do
9002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9003     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005     break 2
9006   fi
9007 done
9008   done
9009 IFS=$as_save_IFS
9010 
9011   ;;
9012 esac
9013 fi
9014 RM=$ac_cv_path_RM
9015 if test -n "$RM"; then
9016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9017 $as_echo "$RM" >&6; }
9018 else
9019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9021 fi
9022 
9023 
9024   test -n "$RM" && break
9025 done
9026 
9027     else
9028       # If it succeeded, then it was overridden by the user. We will use it
9029       # for the tool.
9030 
9031       # First remove it from the list of overridden variables, so we can test
9032       # for unknown variables in the end.
9033       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9034 
9035       # Check if the provided tool contains a complete path.
9036       tool_specified="$RM"
9037       tool_basename="${tool_specified##*/}"
9038       if test "x$tool_basename" = "x$tool_specified"; then
9039         # A command without a complete path is provided, search $PATH.
9040         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9041 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9042         # Extract the first word of "$tool_basename", so it can be a program name with args.
9043 set dummy $tool_basename; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_path_RM+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   case $RM in
9050   [\\/]* | ?:[\\/]*)
9051   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9052   ;;
9053   *)
9054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9056 do
9057   IFS=$as_save_IFS
9058   test -z "$as_dir" && as_dir=.
9059     for ac_exec_ext in '' $ac_executable_extensions; do
9060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063     break 2
9064   fi
9065 done
9066   done
9067 IFS=$as_save_IFS
9068 
9069   ;;
9070 esac
9071 fi
9072 RM=$ac_cv_path_RM
9073 if test -n "$RM"; then
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9075 $as_echo "$RM" >&6; }
9076 else
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080 
9081 
9082         if test "x$RM" = x; then
9083           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9084         fi
9085       else
9086         # Otherwise we believe it is a complete path. Use it as it is.
9087         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9088 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9090 $as_echo_n "checking for RM... " >&6; }
9091         if test ! -x "$tool_specified"; then
9092           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9093 $as_echo "not found" >&6; }
9094           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9095         fi
9096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9097 $as_echo "$tool_specified" >&6; }
9098       fi
9099     fi
9100   fi
9101 
9102 
9103 
9104   if test "x$RM" = x; then
9105     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9106   fi
9107 
9108 
9109 
9110 
9111 
9112   # Publish this variable in the help.
9113 
9114 
9115   if test "x$SH" = x; then
9116     # The variable is not set by user, try to locate tool using the code snippet
9117     for ac_prog in sh
9118 do
9119   # Extract the first word of "$ac_prog", so it can be a program name with args.
9120 set dummy $ac_prog; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if ${ac_cv_path_SH+:} false; then :
9124   $as_echo_n "(cached) " >&6
9125 else
9126   case $SH in
9127   [\\/]* | ?:[\\/]*)
9128   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9129   ;;
9130   *)
9131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134   IFS=$as_save_IFS
9135   test -z "$as_dir" && as_dir=.
9136     for ac_exec_ext in '' $ac_executable_extensions; do
9137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140     break 2
9141   fi
9142 done
9143   done
9144 IFS=$as_save_IFS
9145 
9146   ;;
9147 esac
9148 fi
9149 SH=$ac_cv_path_SH
9150 if test -n "$SH"; then
9151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9152 $as_echo "$SH" >&6; }
9153 else
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9156 fi
9157 
9158 
9159   test -n "$SH" && break
9160 done
9161 
9162   else
9163     # The variable is set, but is it from the command line or the environment?
9164 
9165     # Try to remove the string !SH! from our list.
9166     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9167     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9168       # If it failed, the variable was not from the command line. Ignore it,
9169       # but warn the user (except for BASH, which is always set by the calling BASH).
9170       if test "xSH" != xBASH; then
9171         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9172 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9173       fi
9174       # Try to locate tool using the code snippet
9175       for ac_prog in sh
9176 do
9177   # Extract the first word of "$ac_prog", so it can be a program name with args.
9178 set dummy $ac_prog; ac_word=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if ${ac_cv_path_SH+:} false; then :
9182   $as_echo_n "(cached) " >&6
9183 else
9184   case $SH in
9185   [\\/]* | ?:[\\/]*)
9186   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9187   ;;
9188   *)
9189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190 for as_dir in $PATH
9191 do
9192   IFS=$as_save_IFS
9193   test -z "$as_dir" && as_dir=.
9194     for ac_exec_ext in '' $ac_executable_extensions; do
9195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9196     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198     break 2
9199   fi
9200 done
9201   done
9202 IFS=$as_save_IFS
9203 
9204   ;;
9205 esac
9206 fi
9207 SH=$ac_cv_path_SH
9208 if test -n "$SH"; then
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9210 $as_echo "$SH" >&6; }
9211 else
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9214 fi
9215 
9216 
9217   test -n "$SH" && break
9218 done
9219 
9220     else
9221       # If it succeeded, then it was overridden by the user. We will use it
9222       # for the tool.
9223 
9224       # First remove it from the list of overridden variables, so we can test
9225       # for unknown variables in the end.
9226       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9227 
9228       # Check if the provided tool contains a complete path.
9229       tool_specified="$SH"
9230       tool_basename="${tool_specified##*/}"
9231       if test "x$tool_basename" = "x$tool_specified"; then
9232         # A command without a complete path is provided, search $PATH.
9233         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9234 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9235         # Extract the first word of "$tool_basename", so it can be a program name with args.
9236 set dummy $tool_basename; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if ${ac_cv_path_SH+:} false; then :
9240   $as_echo_n "(cached) " >&6
9241 else
9242   case $SH in
9243   [\\/]* | ?:[\\/]*)
9244   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9245   ;;
9246   *)
9247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9249 do
9250   IFS=$as_save_IFS
9251   test -z "$as_dir" && as_dir=.
9252     for ac_exec_ext in '' $ac_executable_extensions; do
9253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9254     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256     break 2
9257   fi
9258 done
9259   done
9260 IFS=$as_save_IFS
9261 
9262   ;;
9263 esac
9264 fi
9265 SH=$ac_cv_path_SH
9266 if test -n "$SH"; then
9267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9268 $as_echo "$SH" >&6; }
9269 else
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9272 fi
9273 
9274 
9275         if test "x$SH" = x; then
9276           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9277         fi
9278       else
9279         # Otherwise we believe it is a complete path. Use it as it is.
9280         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9281 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9283 $as_echo_n "checking for SH... " >&6; }
9284         if test ! -x "$tool_specified"; then
9285           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9286 $as_echo "not found" >&6; }
9287           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9288         fi
9289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9290 $as_echo "$tool_specified" >&6; }
9291       fi
9292     fi
9293   fi
9294 
9295 
9296 
9297   if test "x$SH" = x; then
9298     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9299   fi
9300 
9301 
9302 
9303 
9304 
9305   # Publish this variable in the help.
9306 
9307 
9308   if test "x$SORT" = x; then
9309     # The variable is not set by user, try to locate tool using the code snippet
9310     for ac_prog in sort
9311 do
9312   # Extract the first word of "$ac_prog", so it can be a program name with args.
9313 set dummy $ac_prog; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_path_SORT+:} false; then :
9317   $as_echo_n "(cached) " >&6
9318 else
9319   case $SORT in
9320   [\\/]* | ?:[\\/]*)
9321   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9322   ;;
9323   *)
9324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9326 do
9327   IFS=$as_save_IFS
9328   test -z "$as_dir" && as_dir=.
9329     for ac_exec_ext in '' $ac_executable_extensions; do
9330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9331     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333     break 2
9334   fi
9335 done
9336   done
9337 IFS=$as_save_IFS
9338 
9339   ;;
9340 esac
9341 fi
9342 SORT=$ac_cv_path_SORT
9343 if test -n "$SORT"; then
9344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9345 $as_echo "$SORT" >&6; }
9346 else
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350 
9351 
9352   test -n "$SORT" && break
9353 done
9354 
9355   else
9356     # The variable is set, but is it from the command line or the environment?
9357 
9358     # Try to remove the string !SORT! from our list.
9359     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9360     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9361       # If it failed, the variable was not from the command line. Ignore it,
9362       # but warn the user (except for BASH, which is always set by the calling BASH).
9363       if test "xSORT" != xBASH; then
9364         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9365 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9366       fi
9367       # Try to locate tool using the code snippet
9368       for ac_prog in sort
9369 do
9370   # Extract the first word of "$ac_prog", so it can be a program name with args.
9371 set dummy $ac_prog; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if ${ac_cv_path_SORT+:} false; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   case $SORT in
9378   [\\/]* | ?:[\\/]*)
9379   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9380   ;;
9381   *)
9382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $PATH
9384 do
9385   IFS=$as_save_IFS
9386   test -z "$as_dir" && as_dir=.
9387     for ac_exec_ext in '' $ac_executable_extensions; do
9388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9389     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391     break 2
9392   fi
9393 done
9394   done
9395 IFS=$as_save_IFS
9396 
9397   ;;
9398 esac
9399 fi
9400 SORT=$ac_cv_path_SORT
9401 if test -n "$SORT"; then
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9403 $as_echo "$SORT" >&6; }
9404 else
9405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9407 fi
9408 
9409 
9410   test -n "$SORT" && break
9411 done
9412 
9413     else
9414       # If it succeeded, then it was overridden by the user. We will use it
9415       # for the tool.
9416 
9417       # First remove it from the list of overridden variables, so we can test
9418       # for unknown variables in the end.
9419       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9420 
9421       # Check if the provided tool contains a complete path.
9422       tool_specified="$SORT"
9423       tool_basename="${tool_specified##*/}"
9424       if test "x$tool_basename" = "x$tool_specified"; then
9425         # A command without a complete path is provided, search $PATH.
9426         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9427 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9428         # Extract the first word of "$tool_basename", so it can be a program name with args.
9429 set dummy $tool_basename; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if ${ac_cv_path_SORT+:} false; then :
9433   $as_echo_n "(cached) " >&6
9434 else
9435   case $SORT in
9436   [\\/]* | ?:[\\/]*)
9437   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9438   ;;
9439   *)
9440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9442 do
9443   IFS=$as_save_IFS
9444   test -z "$as_dir" && as_dir=.
9445     for ac_exec_ext in '' $ac_executable_extensions; do
9446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9447     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449     break 2
9450   fi
9451 done
9452   done
9453 IFS=$as_save_IFS
9454 
9455   ;;
9456 esac
9457 fi
9458 SORT=$ac_cv_path_SORT
9459 if test -n "$SORT"; then
9460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9461 $as_echo "$SORT" >&6; }
9462 else
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9465 fi
9466 
9467 
9468         if test "x$SORT" = x; then
9469           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9470         fi
9471       else
9472         # Otherwise we believe it is a complete path. Use it as it is.
9473         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9474 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9476 $as_echo_n "checking for SORT... " >&6; }
9477         if test ! -x "$tool_specified"; then
9478           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9479 $as_echo "not found" >&6; }
9480           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9481         fi
9482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9483 $as_echo "$tool_specified" >&6; }
9484       fi
9485     fi
9486   fi
9487 
9488 
9489 
9490   if test "x$SORT" = x; then
9491     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9492   fi
9493 
9494 
9495 
9496 
9497 
9498   # Publish this variable in the help.
9499 
9500 
9501   if test "x$TAIL" = x; then
9502     # The variable is not set by user, try to locate tool using the code snippet
9503     for ac_prog in tail
9504 do
9505   # Extract the first word of "$ac_prog", so it can be a program name with args.
9506 set dummy $ac_prog; ac_word=$2
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508 $as_echo_n "checking for $ac_word... " >&6; }
9509 if ${ac_cv_path_TAIL+:} false; then :
9510   $as_echo_n "(cached) " >&6
9511 else
9512   case $TAIL in
9513   [\\/]* | ?:[\\/]*)
9514   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9515   ;;
9516   *)
9517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9519 do
9520   IFS=$as_save_IFS
9521   test -z "$as_dir" && as_dir=.
9522     for ac_exec_ext in '' $ac_executable_extensions; do
9523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9524     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526     break 2
9527   fi
9528 done
9529   done
9530 IFS=$as_save_IFS
9531 
9532   ;;
9533 esac
9534 fi
9535 TAIL=$ac_cv_path_TAIL
9536 if test -n "$TAIL"; then
9537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9538 $as_echo "$TAIL" >&6; }
9539 else
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9542 fi
9543 
9544 
9545   test -n "$TAIL" && break
9546 done
9547 
9548   else
9549     # The variable is set, but is it from the command line or the environment?
9550 
9551     # Try to remove the string !TAIL! from our list.
9552     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9553     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9554       # If it failed, the variable was not from the command line. Ignore it,
9555       # but warn the user (except for BASH, which is always set by the calling BASH).
9556       if test "xTAIL" != xBASH; then
9557         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9558 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9559       fi
9560       # Try to locate tool using the code snippet
9561       for ac_prog in tail
9562 do
9563   # Extract the first word of "$ac_prog", so it can be a program name with args.
9564 set dummy $ac_prog; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_path_TAIL+:} false; then :
9568   $as_echo_n "(cached) " >&6
9569 else
9570   case $TAIL in
9571   [\\/]* | ?:[\\/]*)
9572   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9573   ;;
9574   *)
9575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9577 do
9578   IFS=$as_save_IFS
9579   test -z "$as_dir" && as_dir=.
9580     for ac_exec_ext in '' $ac_executable_extensions; do
9581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584     break 2
9585   fi
9586 done
9587   done
9588 IFS=$as_save_IFS
9589 
9590   ;;
9591 esac
9592 fi
9593 TAIL=$ac_cv_path_TAIL
9594 if test -n "$TAIL"; then
9595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9596 $as_echo "$TAIL" >&6; }
9597 else
9598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9600 fi
9601 
9602 
9603   test -n "$TAIL" && break
9604 done
9605 
9606     else
9607       # If it succeeded, then it was overridden by the user. We will use it
9608       # for the tool.
9609 
9610       # First remove it from the list of overridden variables, so we can test
9611       # for unknown variables in the end.
9612       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9613 
9614       # Check if the provided tool contains a complete path.
9615       tool_specified="$TAIL"
9616       tool_basename="${tool_specified##*/}"
9617       if test "x$tool_basename" = "x$tool_specified"; then
9618         # A command without a complete path is provided, search $PATH.
9619         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9620 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9621         # Extract the first word of "$tool_basename", so it can be a program name with args.
9622 set dummy $tool_basename; ac_word=$2
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if ${ac_cv_path_TAIL+:} false; then :
9626   $as_echo_n "(cached) " >&6
9627 else
9628   case $TAIL in
9629   [\\/]* | ?:[\\/]*)
9630   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9631   ;;
9632   *)
9633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9635 do
9636   IFS=$as_save_IFS
9637   test -z "$as_dir" && as_dir=.
9638     for ac_exec_ext in '' $ac_executable_extensions; do
9639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9640     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642     break 2
9643   fi
9644 done
9645   done
9646 IFS=$as_save_IFS
9647 
9648   ;;
9649 esac
9650 fi
9651 TAIL=$ac_cv_path_TAIL
9652 if test -n "$TAIL"; then
9653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9654 $as_echo "$TAIL" >&6; }
9655 else
9656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9658 fi
9659 
9660 
9661         if test "x$TAIL" = x; then
9662           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9663         fi
9664       else
9665         # Otherwise we believe it is a complete path. Use it as it is.
9666         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9667 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9669 $as_echo_n "checking for TAIL... " >&6; }
9670         if test ! -x "$tool_specified"; then
9671           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9672 $as_echo "not found" >&6; }
9673           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9674         fi
9675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9676 $as_echo "$tool_specified" >&6; }
9677       fi
9678     fi
9679   fi
9680 
9681 
9682 
9683   if test "x$TAIL" = x; then
9684     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9685   fi
9686 
9687 
9688 
9689 
9690 
9691   # Publish this variable in the help.
9692 
9693 
9694   if test "x$TAR" = x; then
9695     # The variable is not set by user, try to locate tool using the code snippet
9696     for ac_prog in tar
9697 do
9698   # Extract the first word of "$ac_prog", so it can be a program name with args.
9699 set dummy $ac_prog; ac_word=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if ${ac_cv_path_TAR+:} false; then :
9703   $as_echo_n "(cached) " >&6
9704 else
9705   case $TAR in
9706   [\\/]* | ?:[\\/]*)
9707   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9708   ;;
9709   *)
9710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9712 do
9713   IFS=$as_save_IFS
9714   test -z "$as_dir" && as_dir=.
9715     for ac_exec_ext in '' $ac_executable_extensions; do
9716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9717     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9719     break 2
9720   fi
9721 done
9722   done
9723 IFS=$as_save_IFS
9724 
9725   ;;
9726 esac
9727 fi
9728 TAR=$ac_cv_path_TAR
9729 if test -n "$TAR"; then
9730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9731 $as_echo "$TAR" >&6; }
9732 else
9733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9735 fi
9736 
9737 
9738   test -n "$TAR" && break
9739 done
9740 
9741   else
9742     # The variable is set, but is it from the command line or the environment?
9743 
9744     # Try to remove the string !TAR! from our list.
9745     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9746     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9747       # If it failed, the variable was not from the command line. Ignore it,
9748       # but warn the user (except for BASH, which is always set by the calling BASH).
9749       if test "xTAR" != xBASH; then
9750         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9751 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9752       fi
9753       # Try to locate tool using the code snippet
9754       for ac_prog in tar
9755 do
9756   # Extract the first word of "$ac_prog", so it can be a program name with args.
9757 set dummy $ac_prog; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if ${ac_cv_path_TAR+:} false; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763   case $TAR in
9764   [\\/]* | ?:[\\/]*)
9765   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9766   ;;
9767   *)
9768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9770 do
9771   IFS=$as_save_IFS
9772   test -z "$as_dir" && as_dir=.
9773     for ac_exec_ext in '' $ac_executable_extensions; do
9774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9775     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777     break 2
9778   fi
9779 done
9780   done
9781 IFS=$as_save_IFS
9782 
9783   ;;
9784 esac
9785 fi
9786 TAR=$ac_cv_path_TAR
9787 if test -n "$TAR"; then
9788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9789 $as_echo "$TAR" >&6; }
9790 else
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9793 fi
9794 
9795 
9796   test -n "$TAR" && break
9797 done
9798 
9799     else
9800       # If it succeeded, then it was overridden by the user. We will use it
9801       # for the tool.
9802 
9803       # First remove it from the list of overridden variables, so we can test
9804       # for unknown variables in the end.
9805       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9806 
9807       # Check if the provided tool contains a complete path.
9808       tool_specified="$TAR"
9809       tool_basename="${tool_specified##*/}"
9810       if test "x$tool_basename" = "x$tool_specified"; then
9811         # A command without a complete path is provided, search $PATH.
9812         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9813 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9814         # Extract the first word of "$tool_basename", so it can be a program name with args.
9815 set dummy $tool_basename; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_path_TAR+:} false; then :
9819   $as_echo_n "(cached) " >&6
9820 else
9821   case $TAR in
9822   [\\/]* | ?:[\\/]*)
9823   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9824   ;;
9825   *)
9826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829   IFS=$as_save_IFS
9830   test -z "$as_dir" && as_dir=.
9831     for ac_exec_ext in '' $ac_executable_extensions; do
9832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835     break 2
9836   fi
9837 done
9838   done
9839 IFS=$as_save_IFS
9840 
9841   ;;
9842 esac
9843 fi
9844 TAR=$ac_cv_path_TAR
9845 if test -n "$TAR"; then
9846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9847 $as_echo "$TAR" >&6; }
9848 else
9849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9851 fi
9852 
9853 
9854         if test "x$TAR" = x; then
9855           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9856         fi
9857       else
9858         # Otherwise we believe it is a complete path. Use it as it is.
9859         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9860 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9861         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9862 $as_echo_n "checking for TAR... " >&6; }
9863         if test ! -x "$tool_specified"; then
9864           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9865 $as_echo "not found" >&6; }
9866           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9867         fi
9868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9869 $as_echo "$tool_specified" >&6; }
9870       fi
9871     fi
9872   fi
9873 
9874 
9875 
9876   if test "x$TAR" = x; then
9877     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9878   fi
9879 
9880 
9881 
9882 
9883 
9884   # Publish this variable in the help.
9885 
9886 
9887   if test "x$TEE" = x; then
9888     # The variable is not set by user, try to locate tool using the code snippet
9889     for ac_prog in tee
9890 do
9891   # Extract the first word of "$ac_prog", so it can be a program name with args.
9892 set dummy $ac_prog; ac_word=$2
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 $as_echo_n "checking for $ac_word... " >&6; }
9895 if ${ac_cv_path_TEE+:} false; then :
9896   $as_echo_n "(cached) " >&6
9897 else
9898   case $TEE in
9899   [\\/]* | ?:[\\/]*)
9900   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9901   ;;
9902   *)
9903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9905 do
9906   IFS=$as_save_IFS
9907   test -z "$as_dir" && as_dir=.
9908     for ac_exec_ext in '' $ac_executable_extensions; do
9909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9910     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912     break 2
9913   fi
9914 done
9915   done
9916 IFS=$as_save_IFS
9917 
9918   ;;
9919 esac
9920 fi
9921 TEE=$ac_cv_path_TEE
9922 if test -n "$TEE"; then
9923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9924 $as_echo "$TEE" >&6; }
9925 else
9926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9928 fi
9929 
9930 
9931   test -n "$TEE" && break
9932 done
9933 
9934   else
9935     # The variable is set, but is it from the command line or the environment?
9936 
9937     # Try to remove the string !TEE! from our list.
9938     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9939     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9940       # If it failed, the variable was not from the command line. Ignore it,
9941       # but warn the user (except for BASH, which is always set by the calling BASH).
9942       if test "xTEE" != xBASH; then
9943         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9944 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9945       fi
9946       # Try to locate tool using the code snippet
9947       for ac_prog in tee
9948 do
9949   # Extract the first word of "$ac_prog", so it can be a program name with args.
9950 set dummy $ac_prog; ac_word=$2
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952 $as_echo_n "checking for $ac_word... " >&6; }
9953 if ${ac_cv_path_TEE+:} false; then :
9954   $as_echo_n "(cached) " >&6
9955 else
9956   case $TEE in
9957   [\\/]* | ?:[\\/]*)
9958   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9959   ;;
9960   *)
9961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9963 do
9964   IFS=$as_save_IFS
9965   test -z "$as_dir" && as_dir=.
9966     for ac_exec_ext in '' $ac_executable_extensions; do
9967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970     break 2
9971   fi
9972 done
9973   done
9974 IFS=$as_save_IFS
9975 
9976   ;;
9977 esac
9978 fi
9979 TEE=$ac_cv_path_TEE
9980 if test -n "$TEE"; then
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9982 $as_echo "$TEE" >&6; }
9983 else
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9986 fi
9987 
9988 
9989   test -n "$TEE" && break
9990 done
9991 
9992     else
9993       # If it succeeded, then it was overridden by the user. We will use it
9994       # for the tool.
9995 
9996       # First remove it from the list of overridden variables, so we can test
9997       # for unknown variables in the end.
9998       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9999 
10000       # Check if the provided tool contains a complete path.
10001       tool_specified="$TEE"
10002       tool_basename="${tool_specified##*/}"
10003       if test "x$tool_basename" = "x$tool_specified"; then
10004         # A command without a complete path is provided, search $PATH.
10005         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10006 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10007         # Extract the first word of "$tool_basename", so it can be a program name with args.
10008 set dummy $tool_basename; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if ${ac_cv_path_TEE+:} false; then :
10012   $as_echo_n "(cached) " >&6
10013 else
10014   case $TEE in
10015   [\\/]* | ?:[\\/]*)
10016   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10017   ;;
10018   *)
10019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10021 do
10022   IFS=$as_save_IFS
10023   test -z "$as_dir" && as_dir=.
10024     for ac_exec_ext in '' $ac_executable_extensions; do
10025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10026     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028     break 2
10029   fi
10030 done
10031   done
10032 IFS=$as_save_IFS
10033 
10034   ;;
10035 esac
10036 fi
10037 TEE=$ac_cv_path_TEE
10038 if test -n "$TEE"; then
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10040 $as_echo "$TEE" >&6; }
10041 else
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 fi
10045 
10046 
10047         if test "x$TEE" = x; then
10048           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10049         fi
10050       else
10051         # Otherwise we believe it is a complete path. Use it as it is.
10052         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10053 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10055 $as_echo_n "checking for TEE... " >&6; }
10056         if test ! -x "$tool_specified"; then
10057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10058 $as_echo "not found" >&6; }
10059           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10060         fi
10061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10062 $as_echo "$tool_specified" >&6; }
10063       fi
10064     fi
10065   fi
10066 
10067 
10068 
10069   if test "x$TEE" = x; then
10070     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10071   fi
10072 
10073 
10074 
10075 
10076 
10077   # Publish this variable in the help.
10078 
10079 
10080   if test "x$TOUCH" = x; then
10081     # The variable is not set by user, try to locate tool using the code snippet
10082     for ac_prog in touch
10083 do
10084   # Extract the first word of "$ac_prog", so it can be a program name with args.
10085 set dummy $ac_prog; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_path_TOUCH+:} false; then :
10089   $as_echo_n "(cached) " >&6
10090 else
10091   case $TOUCH in
10092   [\\/]* | ?:[\\/]*)
10093   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10094   ;;
10095   *)
10096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099   IFS=$as_save_IFS
10100   test -z "$as_dir" && as_dir=.
10101     for ac_exec_ext in '' $ac_executable_extensions; do
10102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10103     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105     break 2
10106   fi
10107 done
10108   done
10109 IFS=$as_save_IFS
10110 
10111   ;;
10112 esac
10113 fi
10114 TOUCH=$ac_cv_path_TOUCH
10115 if test -n "$TOUCH"; then
10116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10117 $as_echo "$TOUCH" >&6; }
10118 else
10119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10121 fi
10122 
10123 
10124   test -n "$TOUCH" && break
10125 done
10126 
10127   else
10128     # The variable is set, but is it from the command line or the environment?
10129 
10130     # Try to remove the string !TOUCH! from our list.
10131     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10132     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10133       # If it failed, the variable was not from the command line. Ignore it,
10134       # but warn the user (except for BASH, which is always set by the calling BASH).
10135       if test "xTOUCH" != xBASH; then
10136         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10137 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10138       fi
10139       # Try to locate tool using the code snippet
10140       for ac_prog in touch
10141 do
10142   # Extract the first word of "$ac_prog", so it can be a program name with args.
10143 set dummy $ac_prog; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_path_TOUCH+:} false; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149   case $TOUCH in
10150   [\\/]* | ?:[\\/]*)
10151   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10152   ;;
10153   *)
10154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157   IFS=$as_save_IFS
10158   test -z "$as_dir" && as_dir=.
10159     for ac_exec_ext in '' $ac_executable_extensions; do
10160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163     break 2
10164   fi
10165 done
10166   done
10167 IFS=$as_save_IFS
10168 
10169   ;;
10170 esac
10171 fi
10172 TOUCH=$ac_cv_path_TOUCH
10173 if test -n "$TOUCH"; then
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10175 $as_echo "$TOUCH" >&6; }
10176 else
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180 
10181 
10182   test -n "$TOUCH" && break
10183 done
10184 
10185     else
10186       # If it succeeded, then it was overridden by the user. We will use it
10187       # for the tool.
10188 
10189       # First remove it from the list of overridden variables, so we can test
10190       # for unknown variables in the end.
10191       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10192 
10193       # Check if the provided tool contains a complete path.
10194       tool_specified="$TOUCH"
10195       tool_basename="${tool_specified##*/}"
10196       if test "x$tool_basename" = "x$tool_specified"; then
10197         # A command without a complete path is provided, search $PATH.
10198         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10199 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10200         # Extract the first word of "$tool_basename", so it can be a program name with args.
10201 set dummy $tool_basename; ac_word=$2
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if ${ac_cv_path_TOUCH+:} false; then :
10205   $as_echo_n "(cached) " >&6
10206 else
10207   case $TOUCH in
10208   [\\/]* | ?:[\\/]*)
10209   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10210   ;;
10211   *)
10212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10214 do
10215   IFS=$as_save_IFS
10216   test -z "$as_dir" && as_dir=.
10217     for ac_exec_ext in '' $ac_executable_extensions; do
10218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10219     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10221     break 2
10222   fi
10223 done
10224   done
10225 IFS=$as_save_IFS
10226 
10227   ;;
10228 esac
10229 fi
10230 TOUCH=$ac_cv_path_TOUCH
10231 if test -n "$TOUCH"; then
10232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10233 $as_echo "$TOUCH" >&6; }
10234 else
10235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10237 fi
10238 
10239 
10240         if test "x$TOUCH" = x; then
10241           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10242         fi
10243       else
10244         # Otherwise we believe it is a complete path. Use it as it is.
10245         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10246 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10248 $as_echo_n "checking for TOUCH... " >&6; }
10249         if test ! -x "$tool_specified"; then
10250           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10251 $as_echo "not found" >&6; }
10252           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10253         fi
10254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10255 $as_echo "$tool_specified" >&6; }
10256       fi
10257     fi
10258   fi
10259 
10260 
10261 
10262   if test "x$TOUCH" = x; then
10263     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10264   fi
10265 
10266 
10267 
10268 
10269 
10270   # Publish this variable in the help.
10271 
10272 
10273   if test "x$TR" = x; then
10274     # The variable is not set by user, try to locate tool using the code snippet
10275     for ac_prog in tr
10276 do
10277   # Extract the first word of "$ac_prog", so it can be a program name with args.
10278 set dummy $ac_prog; ac_word=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_path_TR+:} false; then :
10282   $as_echo_n "(cached) " >&6
10283 else
10284   case $TR in
10285   [\\/]* | ?:[\\/]*)
10286   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10287   ;;
10288   *)
10289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10291 do
10292   IFS=$as_save_IFS
10293   test -z "$as_dir" && as_dir=.
10294     for ac_exec_ext in '' $ac_executable_extensions; do
10295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10296     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298     break 2
10299   fi
10300 done
10301   done
10302 IFS=$as_save_IFS
10303 
10304   ;;
10305 esac
10306 fi
10307 TR=$ac_cv_path_TR
10308 if test -n "$TR"; then
10309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10310 $as_echo "$TR" >&6; }
10311 else
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10314 fi
10315 
10316 
10317   test -n "$TR" && break
10318 done
10319 
10320   else
10321     # The variable is set, but is it from the command line or the environment?
10322 
10323     # Try to remove the string !TR! from our list.
10324     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10325     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10326       # If it failed, the variable was not from the command line. Ignore it,
10327       # but warn the user (except for BASH, which is always set by the calling BASH).
10328       if test "xTR" != xBASH; then
10329         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10330 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10331       fi
10332       # Try to locate tool using the code snippet
10333       for ac_prog in tr
10334 do
10335   # Extract the first word of "$ac_prog", so it can be a program name with args.
10336 set dummy $ac_prog; ac_word=$2
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 $as_echo_n "checking for $ac_word... " >&6; }
10339 if ${ac_cv_path_TR+:} false; then :
10340   $as_echo_n "(cached) " >&6
10341 else
10342   case $TR in
10343   [\\/]* | ?:[\\/]*)
10344   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10345   ;;
10346   *)
10347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348 for as_dir in $PATH
10349 do
10350   IFS=$as_save_IFS
10351   test -z "$as_dir" && as_dir=.
10352     for ac_exec_ext in '' $ac_executable_extensions; do
10353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10354     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10356     break 2
10357   fi
10358 done
10359   done
10360 IFS=$as_save_IFS
10361 
10362   ;;
10363 esac
10364 fi
10365 TR=$ac_cv_path_TR
10366 if test -n "$TR"; then
10367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10368 $as_echo "$TR" >&6; }
10369 else
10370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10372 fi
10373 
10374 
10375   test -n "$TR" && break
10376 done
10377 
10378     else
10379       # If it succeeded, then it was overridden by the user. We will use it
10380       # for the tool.
10381 
10382       # First remove it from the list of overridden variables, so we can test
10383       # for unknown variables in the end.
10384       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10385 
10386       # Check if the provided tool contains a complete path.
10387       tool_specified="$TR"
10388       tool_basename="${tool_specified##*/}"
10389       if test "x$tool_basename" = "x$tool_specified"; then
10390         # A command without a complete path is provided, search $PATH.
10391         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10392 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10393         # Extract the first word of "$tool_basename", so it can be a program name with args.
10394 set dummy $tool_basename; ac_word=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if ${ac_cv_path_TR+:} false; then :
10398   $as_echo_n "(cached) " >&6
10399 else
10400   case $TR in
10401   [\\/]* | ?:[\\/]*)
10402   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10403   ;;
10404   *)
10405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10407 do
10408   IFS=$as_save_IFS
10409   test -z "$as_dir" && as_dir=.
10410     for ac_exec_ext in '' $ac_executable_extensions; do
10411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414     break 2
10415   fi
10416 done
10417   done
10418 IFS=$as_save_IFS
10419 
10420   ;;
10421 esac
10422 fi
10423 TR=$ac_cv_path_TR
10424 if test -n "$TR"; then
10425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10426 $as_echo "$TR" >&6; }
10427 else
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10430 fi
10431 
10432 
10433         if test "x$TR" = x; then
10434           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10435         fi
10436       else
10437         # Otherwise we believe it is a complete path. Use it as it is.
10438         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10439 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10441 $as_echo_n "checking for TR... " >&6; }
10442         if test ! -x "$tool_specified"; then
10443           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10444 $as_echo "not found" >&6; }
10445           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10446         fi
10447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10448 $as_echo "$tool_specified" >&6; }
10449       fi
10450     fi
10451   fi
10452 
10453 
10454 
10455   if test "x$TR" = x; then
10456     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10457   fi
10458 
10459 
10460 
10461 
10462 
10463   # Publish this variable in the help.
10464 
10465 
10466   if test "x$UNAME" = x; then
10467     # The variable is not set by user, try to locate tool using the code snippet
10468     for ac_prog in uname
10469 do
10470   # Extract the first word of "$ac_prog", so it can be a program name with args.
10471 set dummy $ac_prog; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if ${ac_cv_path_UNAME+:} false; then :
10475   $as_echo_n "(cached) " >&6
10476 else
10477   case $UNAME in
10478   [\\/]* | ?:[\\/]*)
10479   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10480   ;;
10481   *)
10482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10484 do
10485   IFS=$as_save_IFS
10486   test -z "$as_dir" && as_dir=.
10487     for ac_exec_ext in '' $ac_executable_extensions; do
10488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491     break 2
10492   fi
10493 done
10494   done
10495 IFS=$as_save_IFS
10496 
10497   ;;
10498 esac
10499 fi
10500 UNAME=$ac_cv_path_UNAME
10501 if test -n "$UNAME"; then
10502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10503 $as_echo "$UNAME" >&6; }
10504 else
10505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508 
10509 
10510   test -n "$UNAME" && break
10511 done
10512 
10513   else
10514     # The variable is set, but is it from the command line or the environment?
10515 
10516     # Try to remove the string !UNAME! from our list.
10517     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10518     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10519       # If it failed, the variable was not from the command line. Ignore it,
10520       # but warn the user (except for BASH, which is always set by the calling BASH).
10521       if test "xUNAME" != xBASH; then
10522         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10523 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10524       fi
10525       # Try to locate tool using the code snippet
10526       for ac_prog in uname
10527 do
10528   # Extract the first word of "$ac_prog", so it can be a program name with args.
10529 set dummy $ac_prog; ac_word=$2
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10531 $as_echo_n "checking for $ac_word... " >&6; }
10532 if ${ac_cv_path_UNAME+:} false; then :
10533   $as_echo_n "(cached) " >&6
10534 else
10535   case $UNAME in
10536   [\\/]* | ?:[\\/]*)
10537   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10538   ;;
10539   *)
10540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10542 do
10543   IFS=$as_save_IFS
10544   test -z "$as_dir" && as_dir=.
10545     for ac_exec_ext in '' $ac_executable_extensions; do
10546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549     break 2
10550   fi
10551 done
10552   done
10553 IFS=$as_save_IFS
10554 
10555   ;;
10556 esac
10557 fi
10558 UNAME=$ac_cv_path_UNAME
10559 if test -n "$UNAME"; then
10560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10561 $as_echo "$UNAME" >&6; }
10562 else
10563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10565 fi
10566 
10567 
10568   test -n "$UNAME" && break
10569 done
10570 
10571     else
10572       # If it succeeded, then it was overridden by the user. We will use it
10573       # for the tool.
10574 
10575       # First remove it from the list of overridden variables, so we can test
10576       # for unknown variables in the end.
10577       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10578 
10579       # Check if the provided tool contains a complete path.
10580       tool_specified="$UNAME"
10581       tool_basename="${tool_specified##*/}"
10582       if test "x$tool_basename" = "x$tool_specified"; then
10583         # A command without a complete path is provided, search $PATH.
10584         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10585 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10586         # Extract the first word of "$tool_basename", so it can be a program name with args.
10587 set dummy $tool_basename; ac_word=$2
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 $as_echo_n "checking for $ac_word... " >&6; }
10590 if ${ac_cv_path_UNAME+:} false; then :
10591   $as_echo_n "(cached) " >&6
10592 else
10593   case $UNAME in
10594   [\\/]* | ?:[\\/]*)
10595   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10596   ;;
10597   *)
10598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599 for as_dir in $PATH
10600 do
10601   IFS=$as_save_IFS
10602   test -z "$as_dir" && as_dir=.
10603     for ac_exec_ext in '' $ac_executable_extensions; do
10604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10605     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607     break 2
10608   fi
10609 done
10610   done
10611 IFS=$as_save_IFS
10612 
10613   ;;
10614 esac
10615 fi
10616 UNAME=$ac_cv_path_UNAME
10617 if test -n "$UNAME"; then
10618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10619 $as_echo "$UNAME" >&6; }
10620 else
10621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10623 fi
10624 
10625 
10626         if test "x$UNAME" = x; then
10627           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10628         fi
10629       else
10630         # Otherwise we believe it is a complete path. Use it as it is.
10631         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10632 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10634 $as_echo_n "checking for UNAME... " >&6; }
10635         if test ! -x "$tool_specified"; then
10636           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10637 $as_echo "not found" >&6; }
10638           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10639         fi
10640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10641 $as_echo "$tool_specified" >&6; }
10642       fi
10643     fi
10644   fi
10645 
10646 
10647 
10648   if test "x$UNAME" = x; then
10649     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10650   fi
10651 
10652 
10653 
10654 
10655 
10656   # Publish this variable in the help.
10657 
10658 
10659   if test "x$UNIQ" = x; then
10660     # The variable is not set by user, try to locate tool using the code snippet
10661     for ac_prog in uniq
10662 do
10663   # Extract the first word of "$ac_prog", so it can be a program name with args.
10664 set dummy $ac_prog; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if ${ac_cv_path_UNIQ+:} false; then :
10668   $as_echo_n "(cached) " >&6
10669 else
10670   case $UNIQ in
10671   [\\/]* | ?:[\\/]*)
10672   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10673   ;;
10674   *)
10675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10677 do
10678   IFS=$as_save_IFS
10679   test -z "$as_dir" && as_dir=.
10680     for ac_exec_ext in '' $ac_executable_extensions; do
10681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10682     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10684     break 2
10685   fi
10686 done
10687   done
10688 IFS=$as_save_IFS
10689 
10690   ;;
10691 esac
10692 fi
10693 UNIQ=$ac_cv_path_UNIQ
10694 if test -n "$UNIQ"; then
10695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10696 $as_echo "$UNIQ" >&6; }
10697 else
10698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10700 fi
10701 
10702 
10703   test -n "$UNIQ" && break
10704 done
10705 
10706   else
10707     # The variable is set, but is it from the command line or the environment?
10708 
10709     # Try to remove the string !UNIQ! from our list.
10710     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10711     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10712       # If it failed, the variable was not from the command line. Ignore it,
10713       # but warn the user (except for BASH, which is always set by the calling BASH).
10714       if test "xUNIQ" != xBASH; then
10715         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10716 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10717       fi
10718       # Try to locate tool using the code snippet
10719       for ac_prog in uniq
10720 do
10721   # Extract the first word of "$ac_prog", so it can be a program name with args.
10722 set dummy $ac_prog; ac_word=$2
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10724 $as_echo_n "checking for $ac_word... " >&6; }
10725 if ${ac_cv_path_UNIQ+:} false; then :
10726   $as_echo_n "(cached) " >&6
10727 else
10728   case $UNIQ in
10729   [\\/]* | ?:[\\/]*)
10730   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10731   ;;
10732   *)
10733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734 for as_dir in $PATH
10735 do
10736   IFS=$as_save_IFS
10737   test -z "$as_dir" && as_dir=.
10738     for ac_exec_ext in '' $ac_executable_extensions; do
10739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10740     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10742     break 2
10743   fi
10744 done
10745   done
10746 IFS=$as_save_IFS
10747 
10748   ;;
10749 esac
10750 fi
10751 UNIQ=$ac_cv_path_UNIQ
10752 if test -n "$UNIQ"; then
10753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10754 $as_echo "$UNIQ" >&6; }
10755 else
10756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10758 fi
10759 
10760 
10761   test -n "$UNIQ" && break
10762 done
10763 
10764     else
10765       # If it succeeded, then it was overridden by the user. We will use it
10766       # for the tool.
10767 
10768       # First remove it from the list of overridden variables, so we can test
10769       # for unknown variables in the end.
10770       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10771 
10772       # Check if the provided tool contains a complete path.
10773       tool_specified="$UNIQ"
10774       tool_basename="${tool_specified##*/}"
10775       if test "x$tool_basename" = "x$tool_specified"; then
10776         # A command without a complete path is provided, search $PATH.
10777         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10778 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10779         # Extract the first word of "$tool_basename", so it can be a program name with args.
10780 set dummy $tool_basename; ac_word=$2
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10782 $as_echo_n "checking for $ac_word... " >&6; }
10783 if ${ac_cv_path_UNIQ+:} false; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   case $UNIQ in
10787   [\\/]* | ?:[\\/]*)
10788   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10789   ;;
10790   *)
10791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10793 do
10794   IFS=$as_save_IFS
10795   test -z "$as_dir" && as_dir=.
10796     for ac_exec_ext in '' $ac_executable_extensions; do
10797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800     break 2
10801   fi
10802 done
10803   done
10804 IFS=$as_save_IFS
10805 
10806   ;;
10807 esac
10808 fi
10809 UNIQ=$ac_cv_path_UNIQ
10810 if test -n "$UNIQ"; then
10811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10812 $as_echo "$UNIQ" >&6; }
10813 else
10814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10816 fi
10817 
10818 
10819         if test "x$UNIQ" = x; then
10820           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10821         fi
10822       else
10823         # Otherwise we believe it is a complete path. Use it as it is.
10824         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10825 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10827 $as_echo_n "checking for UNIQ... " >&6; }
10828         if test ! -x "$tool_specified"; then
10829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10830 $as_echo "not found" >&6; }
10831           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10832         fi
10833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10834 $as_echo "$tool_specified" >&6; }
10835       fi
10836     fi
10837   fi
10838 
10839 
10840 
10841   if test "x$UNIQ" = x; then
10842     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10843   fi
10844 
10845 
10846 
10847 
10848 
10849   # Publish this variable in the help.
10850 
10851 
10852   if test "x$WC" = x; then
10853     # The variable is not set by user, try to locate tool using the code snippet
10854     for ac_prog in wc
10855 do
10856   # Extract the first word of "$ac_prog", so it can be a program name with args.
10857 set dummy $ac_prog; ac_word=$2
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859 $as_echo_n "checking for $ac_word... " >&6; }
10860 if ${ac_cv_path_WC+:} false; then :
10861   $as_echo_n "(cached) " >&6
10862 else
10863   case $WC in
10864   [\\/]* | ?:[\\/]*)
10865   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10866   ;;
10867   *)
10868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10870 do
10871   IFS=$as_save_IFS
10872   test -z "$as_dir" && as_dir=.
10873     for ac_exec_ext in '' $ac_executable_extensions; do
10874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10875     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877     break 2
10878   fi
10879 done
10880   done
10881 IFS=$as_save_IFS
10882 
10883   ;;
10884 esac
10885 fi
10886 WC=$ac_cv_path_WC
10887 if test -n "$WC"; then
10888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10889 $as_echo "$WC" >&6; }
10890 else
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10893 fi
10894 
10895 
10896   test -n "$WC" && break
10897 done
10898 
10899   else
10900     # The variable is set, but is it from the command line or the environment?
10901 
10902     # Try to remove the string !WC! from our list.
10903     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10904     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10905       # If it failed, the variable was not from the command line. Ignore it,
10906       # but warn the user (except for BASH, which is always set by the calling BASH).
10907       if test "xWC" != xBASH; then
10908         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10909 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10910       fi
10911       # Try to locate tool using the code snippet
10912       for ac_prog in wc
10913 do
10914   # Extract the first word of "$ac_prog", so it can be a program name with args.
10915 set dummy $ac_prog; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if ${ac_cv_path_WC+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   case $WC in
10922   [\\/]* | ?:[\\/]*)
10923   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10924   ;;
10925   *)
10926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10928 do
10929   IFS=$as_save_IFS
10930   test -z "$as_dir" && as_dir=.
10931     for ac_exec_ext in '' $ac_executable_extensions; do
10932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935     break 2
10936   fi
10937 done
10938   done
10939 IFS=$as_save_IFS
10940 
10941   ;;
10942 esac
10943 fi
10944 WC=$ac_cv_path_WC
10945 if test -n "$WC"; then
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10947 $as_echo "$WC" >&6; }
10948 else
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10951 fi
10952 
10953 
10954   test -n "$WC" && break
10955 done
10956 
10957     else
10958       # If it succeeded, then it was overridden by the user. We will use it
10959       # for the tool.
10960 
10961       # First remove it from the list of overridden variables, so we can test
10962       # for unknown variables in the end.
10963       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10964 
10965       # Check if the provided tool contains a complete path.
10966       tool_specified="$WC"
10967       tool_basename="${tool_specified##*/}"
10968       if test "x$tool_basename" = "x$tool_specified"; then
10969         # A command without a complete path is provided, search $PATH.
10970         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10971 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10972         # Extract the first word of "$tool_basename", so it can be a program name with args.
10973 set dummy $tool_basename; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 $as_echo_n "checking for $ac_word... " >&6; }
10976 if ${ac_cv_path_WC+:} false; then :
10977   $as_echo_n "(cached) " >&6
10978 else
10979   case $WC in
10980   [\\/]* | ?:[\\/]*)
10981   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10982   ;;
10983   *)
10984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987   IFS=$as_save_IFS
10988   test -z "$as_dir" && as_dir=.
10989     for ac_exec_ext in '' $ac_executable_extensions; do
10990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993     break 2
10994   fi
10995 done
10996   done
10997 IFS=$as_save_IFS
10998 
10999   ;;
11000 esac
11001 fi
11002 WC=$ac_cv_path_WC
11003 if test -n "$WC"; then
11004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11005 $as_echo "$WC" >&6; }
11006 else
11007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; }
11009 fi
11010 
11011 
11012         if test "x$WC" = x; then
11013           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11014         fi
11015       else
11016         # Otherwise we believe it is a complete path. Use it as it is.
11017         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11018 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11020 $as_echo_n "checking for WC... " >&6; }
11021         if test ! -x "$tool_specified"; then
11022           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11023 $as_echo "not found" >&6; }
11024           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11025         fi
11026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11027 $as_echo "$tool_specified" >&6; }
11028       fi
11029     fi
11030   fi
11031 
11032 
11033 
11034   if test "x$WC" = x; then
11035     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11036   fi
11037 
11038 
11039 
11040 
11041 
11042   # Publish this variable in the help.
11043 
11044 
11045   if test "x$WHICH" = x; then
11046     # The variable is not set by user, try to locate tool using the code snippet
11047     for ac_prog in which
11048 do
11049   # Extract the first word of "$ac_prog", so it can be a program name with args.
11050 set dummy $ac_prog; ac_word=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if ${ac_cv_path_WHICH+:} false; then :
11054   $as_echo_n "(cached) " >&6
11055 else
11056   case $WHICH in
11057   [\\/]* | ?:[\\/]*)
11058   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11059   ;;
11060   *)
11061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11063 do
11064   IFS=$as_save_IFS
11065   test -z "$as_dir" && as_dir=.
11066     for ac_exec_ext in '' $ac_executable_extensions; do
11067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11068     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070     break 2
11071   fi
11072 done
11073   done
11074 IFS=$as_save_IFS
11075 
11076   ;;
11077 esac
11078 fi
11079 WHICH=$ac_cv_path_WHICH
11080 if test -n "$WHICH"; then
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11082 $as_echo "$WHICH" >&6; }
11083 else
11084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11086 fi
11087 
11088 
11089   test -n "$WHICH" && break
11090 done
11091 
11092   else
11093     # The variable is set, but is it from the command line or the environment?
11094 
11095     # Try to remove the string !WHICH! from our list.
11096     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11097     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11098       # If it failed, the variable was not from the command line. Ignore it,
11099       # but warn the user (except for BASH, which is always set by the calling BASH).
11100       if test "xWHICH" != xBASH; then
11101         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11102 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11103       fi
11104       # Try to locate tool using the code snippet
11105       for ac_prog in which
11106 do
11107   # Extract the first word of "$ac_prog", so it can be a program name with args.
11108 set dummy $ac_prog; ac_word=$2
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110 $as_echo_n "checking for $ac_word... " >&6; }
11111 if ${ac_cv_path_WHICH+:} false; then :
11112   $as_echo_n "(cached) " >&6
11113 else
11114   case $WHICH in
11115   [\\/]* | ?:[\\/]*)
11116   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11117   ;;
11118   *)
11119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 for as_dir in $PATH
11121 do
11122   IFS=$as_save_IFS
11123   test -z "$as_dir" && as_dir=.
11124     for ac_exec_ext in '' $ac_executable_extensions; do
11125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11126     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128     break 2
11129   fi
11130 done
11131   done
11132 IFS=$as_save_IFS
11133 
11134   ;;
11135 esac
11136 fi
11137 WHICH=$ac_cv_path_WHICH
11138 if test -n "$WHICH"; then
11139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11140 $as_echo "$WHICH" >&6; }
11141 else
11142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11144 fi
11145 
11146 
11147   test -n "$WHICH" && break
11148 done
11149 
11150     else
11151       # If it succeeded, then it was overridden by the user. We will use it
11152       # for the tool.
11153 
11154       # First remove it from the list of overridden variables, so we can test
11155       # for unknown variables in the end.
11156       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11157 
11158       # Check if the provided tool contains a complete path.
11159       tool_specified="$WHICH"
11160       tool_basename="${tool_specified##*/}"
11161       if test "x$tool_basename" = "x$tool_specified"; then
11162         # A command without a complete path is provided, search $PATH.
11163         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11164 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11165         # Extract the first word of "$tool_basename", so it can be a program name with args.
11166 set dummy $tool_basename; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if ${ac_cv_path_WHICH+:} false; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172   case $WHICH in
11173   [\\/]* | ?:[\\/]*)
11174   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11175   ;;
11176   *)
11177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11179 do
11180   IFS=$as_save_IFS
11181   test -z "$as_dir" && as_dir=.
11182     for ac_exec_ext in '' $ac_executable_extensions; do
11183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11184     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186     break 2
11187   fi
11188 done
11189   done
11190 IFS=$as_save_IFS
11191 
11192   ;;
11193 esac
11194 fi
11195 WHICH=$ac_cv_path_WHICH
11196 if test -n "$WHICH"; then
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11198 $as_echo "$WHICH" >&6; }
11199 else
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202 fi
11203 
11204 
11205         if test "x$WHICH" = x; then
11206           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11207         fi
11208       else
11209         # Otherwise we believe it is a complete path. Use it as it is.
11210         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11211 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11213 $as_echo_n "checking for WHICH... " >&6; }
11214         if test ! -x "$tool_specified"; then
11215           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11216 $as_echo "not found" >&6; }
11217           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11218         fi
11219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11220 $as_echo "$tool_specified" >&6; }
11221       fi
11222     fi
11223   fi
11224 
11225 
11226 
11227   if test "x$WHICH" = x; then
11228     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11229   fi
11230 
11231 
11232 
11233 
11234 
11235   # Publish this variable in the help.
11236 
11237 
11238   if test "x$XARGS" = x; then
11239     # The variable is not set by user, try to locate tool using the code snippet
11240     for ac_prog in xargs
11241 do
11242   # Extract the first word of "$ac_prog", so it can be a program name with args.
11243 set dummy $ac_prog; ac_word=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if ${ac_cv_path_XARGS+:} false; then :
11247   $as_echo_n "(cached) " >&6
11248 else
11249   case $XARGS in
11250   [\\/]* | ?:[\\/]*)
11251   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11252   ;;
11253   *)
11254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11256 do
11257   IFS=$as_save_IFS
11258   test -z "$as_dir" && as_dir=.
11259     for ac_exec_ext in '' $ac_executable_extensions; do
11260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263     break 2
11264   fi
11265 done
11266   done
11267 IFS=$as_save_IFS
11268 
11269   ;;
11270 esac
11271 fi
11272 XARGS=$ac_cv_path_XARGS
11273 if test -n "$XARGS"; then
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11275 $as_echo "$XARGS" >&6; }
11276 else
11277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 fi
11280 
11281 
11282   test -n "$XARGS" && break
11283 done
11284 
11285   else
11286     # The variable is set, but is it from the command line or the environment?
11287 
11288     # Try to remove the string !XARGS! from our list.
11289     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11290     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11291       # If it failed, the variable was not from the command line. Ignore it,
11292       # but warn the user (except for BASH, which is always set by the calling BASH).
11293       if test "xXARGS" != xBASH; then
11294         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11295 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11296       fi
11297       # Try to locate tool using the code snippet
11298       for ac_prog in xargs
11299 do
11300   # Extract the first word of "$ac_prog", so it can be a program name with args.
11301 set dummy $ac_prog; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if ${ac_cv_path_XARGS+:} false; then :
11305   $as_echo_n "(cached) " >&6
11306 else
11307   case $XARGS in
11308   [\\/]* | ?:[\\/]*)
11309   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11310   ;;
11311   *)
11312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11314 do
11315   IFS=$as_save_IFS
11316   test -z "$as_dir" && as_dir=.
11317     for ac_exec_ext in '' $ac_executable_extensions; do
11318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11319     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11321     break 2
11322   fi
11323 done
11324   done
11325 IFS=$as_save_IFS
11326 
11327   ;;
11328 esac
11329 fi
11330 XARGS=$ac_cv_path_XARGS
11331 if test -n "$XARGS"; then
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11333 $as_echo "$XARGS" >&6; }
11334 else
11335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11337 fi
11338 
11339 
11340   test -n "$XARGS" && break
11341 done
11342 
11343     else
11344       # If it succeeded, then it was overridden by the user. We will use it
11345       # for the tool.
11346 
11347       # First remove it from the list of overridden variables, so we can test
11348       # for unknown variables in the end.
11349       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11350 
11351       # Check if the provided tool contains a complete path.
11352       tool_specified="$XARGS"
11353       tool_basename="${tool_specified##*/}"
11354       if test "x$tool_basename" = "x$tool_specified"; then
11355         # A command without a complete path is provided, search $PATH.
11356         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11357 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11358         # Extract the first word of "$tool_basename", so it can be a program name with args.
11359 set dummy $tool_basename; ac_word=$2
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361 $as_echo_n "checking for $ac_word... " >&6; }
11362 if ${ac_cv_path_XARGS+:} false; then :
11363   $as_echo_n "(cached) " >&6
11364 else
11365   case $XARGS in
11366   [\\/]* | ?:[\\/]*)
11367   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11368   ;;
11369   *)
11370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373   IFS=$as_save_IFS
11374   test -z "$as_dir" && as_dir=.
11375     for ac_exec_ext in '' $ac_executable_extensions; do
11376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379     break 2
11380   fi
11381 done
11382   done
11383 IFS=$as_save_IFS
11384 
11385   ;;
11386 esac
11387 fi
11388 XARGS=$ac_cv_path_XARGS
11389 if test -n "$XARGS"; then
11390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11391 $as_echo "$XARGS" >&6; }
11392 else
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11395 fi
11396 
11397 
11398         if test "x$XARGS" = x; then
11399           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11400         fi
11401       else
11402         # Otherwise we believe it is a complete path. Use it as it is.
11403         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11404 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11406 $as_echo_n "checking for XARGS... " >&6; }
11407         if test ! -x "$tool_specified"; then
11408           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11409 $as_echo "not found" >&6; }
11410           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11411         fi
11412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11413 $as_echo "$tool_specified" >&6; }
11414       fi
11415     fi
11416   fi
11417 
11418 
11419 
11420   if test "x$XARGS" = x; then
11421     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11422   fi
11423 
11424 
11425 
11426   # Then required tools that require some special treatment.
11427 
11428 
11429   # Publish this variable in the help.
11430 
11431 
11432   if test "x$AWK" = x; then
11433     # The variable is not set by user, try to locate tool using the code snippet
11434     for ac_prog in gawk mawk nawk awk
11435 do
11436   # Extract the first word of "$ac_prog", so it can be a program name with args.
11437 set dummy $ac_prog; 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_prog_AWK+:} false; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   if test -n "$AWK"; then
11444   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11445 else
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11448 do
11449   IFS=$as_save_IFS
11450   test -z "$as_dir" && as_dir=.
11451     for ac_exec_ext in '' $ac_executable_extensions; do
11452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453     ac_cv_prog_AWK="$ac_prog"
11454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455     break 2
11456   fi
11457 done
11458   done
11459 IFS=$as_save_IFS
11460 
11461 fi
11462 fi
11463 AWK=$ac_cv_prog_AWK
11464 if test -n "$AWK"; then
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11466 $as_echo "$AWK" >&6; }
11467 else
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11470 fi
11471 
11472 
11473   test -n "$AWK" && break
11474 done
11475 
11476   else
11477     # The variable is set, but is it from the command line or the environment?
11478 
11479     # Try to remove the string !AWK! from our list.
11480     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11481     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11482       # If it failed, the variable was not from the command line. Ignore it,
11483       # but warn the user (except for BASH, which is always set by the calling BASH).
11484       if test "xAWK" != xBASH; then
11485         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11486 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11487       fi
11488       # Try to locate tool using the code snippet
11489       for ac_prog in gawk mawk nawk awk
11490 do
11491   # Extract the first word of "$ac_prog", so it can be a program name with args.
11492 set dummy $ac_prog; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494 $as_echo_n "checking for $ac_word... " >&6; }
11495 if ${ac_cv_prog_AWK+:} false; then :
11496   $as_echo_n "(cached) " >&6
11497 else
11498   if test -n "$AWK"; then
11499   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11500 else
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11503 do
11504   IFS=$as_save_IFS
11505   test -z "$as_dir" && as_dir=.
11506     for ac_exec_ext in '' $ac_executable_extensions; do
11507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508     ac_cv_prog_AWK="$ac_prog"
11509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510     break 2
11511   fi
11512 done
11513   done
11514 IFS=$as_save_IFS
11515 
11516 fi
11517 fi
11518 AWK=$ac_cv_prog_AWK
11519 if test -n "$AWK"; then
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11521 $as_echo "$AWK" >&6; }
11522 else
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11525 fi
11526 
11527 
11528   test -n "$AWK" && break
11529 done
11530 
11531     else
11532       # If it succeeded, then it was overridden by the user. We will use it
11533       # for the tool.
11534 
11535       # First remove it from the list of overridden variables, so we can test
11536       # for unknown variables in the end.
11537       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11538 
11539       # Check if the provided tool contains a complete path.
11540       tool_specified="$AWK"
11541       tool_basename="${tool_specified##*/}"
11542       if test "x$tool_basename" = "x$tool_specified"; then
11543         # A command without a complete path is provided, search $PATH.
11544         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11545 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11546         # Extract the first word of "$tool_basename", so it can be a program name with args.
11547 set dummy $tool_basename; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_AWK+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   case $AWK in
11554   [\\/]* | ?:[\\/]*)
11555   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11556   ;;
11557   *)
11558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561   IFS=$as_save_IFS
11562   test -z "$as_dir" && as_dir=.
11563     for ac_exec_ext in '' $ac_executable_extensions; do
11564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567     break 2
11568   fi
11569 done
11570   done
11571 IFS=$as_save_IFS
11572 
11573   ;;
11574 esac
11575 fi
11576 AWK=$ac_cv_path_AWK
11577 if test -n "$AWK"; then
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11579 $as_echo "$AWK" >&6; }
11580 else
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11583 fi
11584 
11585 
11586         if test "x$AWK" = x; then
11587           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11588         fi
11589       else
11590         # Otherwise we believe it is a complete path. Use it as it is.
11591         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11592 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11594 $as_echo_n "checking for AWK... " >&6; }
11595         if test ! -x "$tool_specified"; then
11596           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11597 $as_echo "not found" >&6; }
11598           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11599         fi
11600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11601 $as_echo "$tool_specified" >&6; }
11602       fi
11603     fi
11604   fi
11605 
11606 
11607   if test "x$AWK" = x; then
11608     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11609   fi
11610 
11611 
11612 
11613 
11614   # Publish this variable in the help.
11615 
11616 
11617   if test "x$GREP" = x; then
11618     # The variable is not set by user, try to locate tool using the code snippet
11619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11620 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11621 if ${ac_cv_path_GREP+:} false; then :
11622   $as_echo_n "(cached) " >&6
11623 else
11624   if test -z "$GREP"; then
11625   ac_path_GREP_found=false
11626   # Loop through the user's path and test for each of PROGNAME-LIST
11627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11629 do
11630   IFS=$as_save_IFS
11631   test -z "$as_dir" && as_dir=.
11632     for ac_prog in grep ggrep; do
11633     for ac_exec_ext in '' $ac_executable_extensions; do
11634       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11635       as_fn_executable_p "$ac_path_GREP" || continue
11636 # Check for GNU ac_path_GREP and select it if it is found.
11637   # Check for GNU $ac_path_GREP
11638 case `"$ac_path_GREP" --version 2>&1` in
11639 *GNU*)
11640   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11641 *)
11642   ac_count=0
11643   $as_echo_n 0123456789 >"conftest.in"
11644   while :
11645   do
11646     cat "conftest.in" "conftest.in" >"conftest.tmp"
11647     mv "conftest.tmp" "conftest.in"
11648     cp "conftest.in" "conftest.nl"
11649     $as_echo 'GREP' >> "conftest.nl"
11650     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11651     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11652     as_fn_arith $ac_count + 1 && ac_count=$as_val
11653     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11654       # Best one so far, save it but keep looking for a better one
11655       ac_cv_path_GREP="$ac_path_GREP"
11656       ac_path_GREP_max=$ac_count
11657     fi
11658     # 10*(2^10) chars as input seems more than enough
11659     test $ac_count -gt 10 && break
11660   done
11661   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11662 esac
11663 
11664       $ac_path_GREP_found && break 3
11665     done
11666   done
11667   done
11668 IFS=$as_save_IFS
11669   if test -z "$ac_cv_path_GREP"; then
11670     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11671   fi
11672 else
11673   ac_cv_path_GREP=$GREP
11674 fi
11675 
11676 fi
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11678 $as_echo "$ac_cv_path_GREP" >&6; }
11679  GREP="$ac_cv_path_GREP"
11680 
11681 
11682   else
11683     # The variable is set, but is it from the command line or the environment?
11684 
11685     # Try to remove the string !GREP! from our list.
11686     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11687     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11688       # If it failed, the variable was not from the command line. Ignore it,
11689       # but warn the user (except for BASH, which is always set by the calling BASH).
11690       if test "xGREP" != xBASH; then
11691         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11692 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11693       fi
11694       # Try to locate tool using the code snippet
11695       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11696 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11697 if ${ac_cv_path_GREP+:} false; then :
11698   $as_echo_n "(cached) " >&6
11699 else
11700   if test -z "$GREP"; then
11701   ac_path_GREP_found=false
11702   # Loop through the user's path and test for each of PROGNAME-LIST
11703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11705 do
11706   IFS=$as_save_IFS
11707   test -z "$as_dir" && as_dir=.
11708     for ac_prog in grep ggrep; do
11709     for ac_exec_ext in '' $ac_executable_extensions; do
11710       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11711       as_fn_executable_p "$ac_path_GREP" || continue
11712 # Check for GNU ac_path_GREP and select it if it is found.
11713   # Check for GNU $ac_path_GREP
11714 case `"$ac_path_GREP" --version 2>&1` in
11715 *GNU*)
11716   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11717 *)
11718   ac_count=0
11719   $as_echo_n 0123456789 >"conftest.in"
11720   while :
11721   do
11722     cat "conftest.in" "conftest.in" >"conftest.tmp"
11723     mv "conftest.tmp" "conftest.in"
11724     cp "conftest.in" "conftest.nl"
11725     $as_echo 'GREP' >> "conftest.nl"
11726     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11727     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11728     as_fn_arith $ac_count + 1 && ac_count=$as_val
11729     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11730       # Best one so far, save it but keep looking for a better one
11731       ac_cv_path_GREP="$ac_path_GREP"
11732       ac_path_GREP_max=$ac_count
11733     fi
11734     # 10*(2^10) chars as input seems more than enough
11735     test $ac_count -gt 10 && break
11736   done
11737   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11738 esac
11739 
11740       $ac_path_GREP_found && break 3
11741     done
11742   done
11743   done
11744 IFS=$as_save_IFS
11745   if test -z "$ac_cv_path_GREP"; then
11746     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11747   fi
11748 else
11749   ac_cv_path_GREP=$GREP
11750 fi
11751 
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11754 $as_echo "$ac_cv_path_GREP" >&6; }
11755  GREP="$ac_cv_path_GREP"
11756 
11757 
11758     else
11759       # If it succeeded, then it was overridden by the user. We will use it
11760       # for the tool.
11761 
11762       # First remove it from the list of overridden variables, so we can test
11763       # for unknown variables in the end.
11764       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11765 
11766       # Check if the provided tool contains a complete path.
11767       tool_specified="$GREP"
11768       tool_basename="${tool_specified##*/}"
11769       if test "x$tool_basename" = "x$tool_specified"; then
11770         # A command without a complete path is provided, search $PATH.
11771         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11772 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11773         # Extract the first word of "$tool_basename", so it can be a program name with args.
11774 set dummy $tool_basename; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if ${ac_cv_path_GREP+:} false; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780   case $GREP in
11781   [\\/]* | ?:[\\/]*)
11782   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11783   ;;
11784   *)
11785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11787 do
11788   IFS=$as_save_IFS
11789   test -z "$as_dir" && as_dir=.
11790     for ac_exec_ext in '' $ac_executable_extensions; do
11791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794     break 2
11795   fi
11796 done
11797   done
11798 IFS=$as_save_IFS
11799 
11800   ;;
11801 esac
11802 fi
11803 GREP=$ac_cv_path_GREP
11804 if test -n "$GREP"; then
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11806 $as_echo "$GREP" >&6; }
11807 else
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811 
11812 
11813         if test "x$GREP" = x; then
11814           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11815         fi
11816       else
11817         # Otherwise we believe it is a complete path. Use it as it is.
11818         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11819 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11820         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11821 $as_echo_n "checking for GREP... " >&6; }
11822         if test ! -x "$tool_specified"; then
11823           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11824 $as_echo "not found" >&6; }
11825           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11826         fi
11827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11828 $as_echo "$tool_specified" >&6; }
11829       fi
11830     fi
11831   fi
11832 
11833 
11834   if test "x$GREP" = x; then
11835     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11836   fi
11837 
11838 
11839 
11840 
11841   # Publish this variable in the help.
11842 
11843 
11844   if test "x$EGREP" = x; then
11845     # The variable is not set by user, try to locate tool using the code snippet
11846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11847 $as_echo_n "checking for egrep... " >&6; }
11848 if ${ac_cv_path_EGREP+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11852    then ac_cv_path_EGREP="$GREP -E"
11853    else
11854      if test -z "$EGREP"; then
11855   ac_path_EGREP_found=false
11856   # Loop through the user's path and test for each of PROGNAME-LIST
11857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11859 do
11860   IFS=$as_save_IFS
11861   test -z "$as_dir" && as_dir=.
11862     for ac_prog in egrep; do
11863     for ac_exec_ext in '' $ac_executable_extensions; do
11864       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11865       as_fn_executable_p "$ac_path_EGREP" || continue
11866 # Check for GNU ac_path_EGREP and select it if it is found.
11867   # Check for GNU $ac_path_EGREP
11868 case `"$ac_path_EGREP" --version 2>&1` in
11869 *GNU*)
11870   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11871 *)
11872   ac_count=0
11873   $as_echo_n 0123456789 >"conftest.in"
11874   while :
11875   do
11876     cat "conftest.in" "conftest.in" >"conftest.tmp"
11877     mv "conftest.tmp" "conftest.in"
11878     cp "conftest.in" "conftest.nl"
11879     $as_echo 'EGREP' >> "conftest.nl"
11880     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11881     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11882     as_fn_arith $ac_count + 1 && ac_count=$as_val
11883     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11884       # Best one so far, save it but keep looking for a better one
11885       ac_cv_path_EGREP="$ac_path_EGREP"
11886       ac_path_EGREP_max=$ac_count
11887     fi
11888     # 10*(2^10) chars as input seems more than enough
11889     test $ac_count -gt 10 && break
11890   done
11891   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11892 esac
11893 
11894       $ac_path_EGREP_found && break 3
11895     done
11896   done
11897   done
11898 IFS=$as_save_IFS
11899   if test -z "$ac_cv_path_EGREP"; then
11900     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11901   fi
11902 else
11903   ac_cv_path_EGREP=$EGREP
11904 fi
11905 
11906    fi
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11909 $as_echo "$ac_cv_path_EGREP" >&6; }
11910  EGREP="$ac_cv_path_EGREP"
11911 
11912 
11913   else
11914     # The variable is set, but is it from the command line or the environment?
11915 
11916     # Try to remove the string !EGREP! from our list.
11917     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11918     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11919       # If it failed, the variable was not from the command line. Ignore it,
11920       # but warn the user (except for BASH, which is always set by the calling BASH).
11921       if test "xEGREP" != xBASH; then
11922         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11923 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11924       fi
11925       # Try to locate tool using the code snippet
11926       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11927 $as_echo_n "checking for egrep... " >&6; }
11928 if ${ac_cv_path_EGREP+:} false; then :
11929   $as_echo_n "(cached) " >&6
11930 else
11931   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11932    then ac_cv_path_EGREP="$GREP -E"
11933    else
11934      if test -z "$EGREP"; then
11935   ac_path_EGREP_found=false
11936   # Loop through the user's path and test for each of PROGNAME-LIST
11937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11939 do
11940   IFS=$as_save_IFS
11941   test -z "$as_dir" && as_dir=.
11942     for ac_prog in egrep; do
11943     for ac_exec_ext in '' $ac_executable_extensions; do
11944       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11945       as_fn_executable_p "$ac_path_EGREP" || continue
11946 # Check for GNU ac_path_EGREP and select it if it is found.
11947   # Check for GNU $ac_path_EGREP
11948 case `"$ac_path_EGREP" --version 2>&1` in
11949 *GNU*)
11950   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11951 *)
11952   ac_count=0
11953   $as_echo_n 0123456789 >"conftest.in"
11954   while :
11955   do
11956     cat "conftest.in" "conftest.in" >"conftest.tmp"
11957     mv "conftest.tmp" "conftest.in"
11958     cp "conftest.in" "conftest.nl"
11959     $as_echo 'EGREP' >> "conftest.nl"
11960     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11961     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11962     as_fn_arith $ac_count + 1 && ac_count=$as_val
11963     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11964       # Best one so far, save it but keep looking for a better one
11965       ac_cv_path_EGREP="$ac_path_EGREP"
11966       ac_path_EGREP_max=$ac_count
11967     fi
11968     # 10*(2^10) chars as input seems more than enough
11969     test $ac_count -gt 10 && break
11970   done
11971   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11972 esac
11973 
11974       $ac_path_EGREP_found && break 3
11975     done
11976   done
11977   done
11978 IFS=$as_save_IFS
11979   if test -z "$ac_cv_path_EGREP"; then
11980     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11981   fi
11982 else
11983   ac_cv_path_EGREP=$EGREP
11984 fi
11985 
11986    fi
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11989 $as_echo "$ac_cv_path_EGREP" >&6; }
11990  EGREP="$ac_cv_path_EGREP"
11991 
11992 
11993     else
11994       # If it succeeded, then it was overridden by the user. We will use it
11995       # for the tool.
11996 
11997       # First remove it from the list of overridden variables, so we can test
11998       # for unknown variables in the end.
11999       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12000 
12001       # Check if the provided tool contains a complete path.
12002       tool_specified="$EGREP"
12003       tool_basename="${tool_specified##*/}"
12004       if test "x$tool_basename" = "x$tool_specified"; then
12005         # A command without a complete path is provided, search $PATH.
12006         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12007 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12008         # Extract the first word of "$tool_basename", so it can be a program name with args.
12009 set dummy $tool_basename; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_path_EGREP+:} false; then :
12013   $as_echo_n "(cached) " >&6
12014 else
12015   case $EGREP in
12016   [\\/]* | ?:[\\/]*)
12017   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12018   ;;
12019   *)
12020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12022 do
12023   IFS=$as_save_IFS
12024   test -z "$as_dir" && as_dir=.
12025     for ac_exec_ext in '' $ac_executable_extensions; do
12026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029     break 2
12030   fi
12031 done
12032   done
12033 IFS=$as_save_IFS
12034 
12035   ;;
12036 esac
12037 fi
12038 EGREP=$ac_cv_path_EGREP
12039 if test -n "$EGREP"; then
12040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12041 $as_echo "$EGREP" >&6; }
12042 else
12043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045 fi
12046 
12047 
12048         if test "x$EGREP" = x; then
12049           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12050         fi
12051       else
12052         # Otherwise we believe it is a complete path. Use it as it is.
12053         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12054 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12055         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12056 $as_echo_n "checking for EGREP... " >&6; }
12057         if test ! -x "$tool_specified"; then
12058           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12059 $as_echo "not found" >&6; }
12060           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12061         fi
12062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12063 $as_echo "$tool_specified" >&6; }
12064       fi
12065     fi
12066   fi
12067 
12068 
12069   if test "x$EGREP" = x; then
12070     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12071   fi
12072 
12073 
12074 
12075 
12076   # Publish this variable in the help.
12077 
12078 
12079   if test "x$FGREP" = x; then
12080     # The variable is not set by user, try to locate tool using the code snippet
12081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12082 $as_echo_n "checking for fgrep... " >&6; }
12083 if ${ac_cv_path_FGREP+:} false; then :
12084   $as_echo_n "(cached) " >&6
12085 else
12086   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12087    then ac_cv_path_FGREP="$GREP -F"
12088    else
12089      if test -z "$FGREP"; then
12090   ac_path_FGREP_found=false
12091   # Loop through the user's path and test for each of PROGNAME-LIST
12092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12094 do
12095   IFS=$as_save_IFS
12096   test -z "$as_dir" && as_dir=.
12097     for ac_prog in fgrep; do
12098     for ac_exec_ext in '' $ac_executable_extensions; do
12099       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12100       as_fn_executable_p "$ac_path_FGREP" || continue
12101 # Check for GNU ac_path_FGREP and select it if it is found.
12102   # Check for GNU $ac_path_FGREP
12103 case `"$ac_path_FGREP" --version 2>&1` in
12104 *GNU*)
12105   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12106 *)
12107   ac_count=0
12108   $as_echo_n 0123456789 >"conftest.in"
12109   while :
12110   do
12111     cat "conftest.in" "conftest.in" >"conftest.tmp"
12112     mv "conftest.tmp" "conftest.in"
12113     cp "conftest.in" "conftest.nl"
12114     $as_echo 'FGREP' >> "conftest.nl"
12115     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12117     as_fn_arith $ac_count + 1 && ac_count=$as_val
12118     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12119       # Best one so far, save it but keep looking for a better one
12120       ac_cv_path_FGREP="$ac_path_FGREP"
12121       ac_path_FGREP_max=$ac_count
12122     fi
12123     # 10*(2^10) chars as input seems more than enough
12124     test $ac_count -gt 10 && break
12125   done
12126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12127 esac
12128 
12129       $ac_path_FGREP_found && break 3
12130     done
12131   done
12132   done
12133 IFS=$as_save_IFS
12134   if test -z "$ac_cv_path_FGREP"; then
12135     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12136   fi
12137 else
12138   ac_cv_path_FGREP=$FGREP
12139 fi
12140 
12141    fi
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12144 $as_echo "$ac_cv_path_FGREP" >&6; }
12145  FGREP="$ac_cv_path_FGREP"
12146 
12147 
12148   else
12149     # The variable is set, but is it from the command line or the environment?
12150 
12151     # Try to remove the string !FGREP! from our list.
12152     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12153     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12154       # If it failed, the variable was not from the command line. Ignore it,
12155       # but warn the user (except for BASH, which is always set by the calling BASH).
12156       if test "xFGREP" != xBASH; then
12157         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12158 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12159       fi
12160       # Try to locate tool using the code snippet
12161       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12162 $as_echo_n "checking for fgrep... " >&6; }
12163 if ${ac_cv_path_FGREP+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12167    then ac_cv_path_FGREP="$GREP -F"
12168    else
12169      if test -z "$FGREP"; then
12170   ac_path_FGREP_found=false
12171   # Loop through the user's path and test for each of PROGNAME-LIST
12172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12174 do
12175   IFS=$as_save_IFS
12176   test -z "$as_dir" && as_dir=.
12177     for ac_prog in fgrep; do
12178     for ac_exec_ext in '' $ac_executable_extensions; do
12179       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12180       as_fn_executable_p "$ac_path_FGREP" || continue
12181 # Check for GNU ac_path_FGREP and select it if it is found.
12182   # Check for GNU $ac_path_FGREP
12183 case `"$ac_path_FGREP" --version 2>&1` in
12184 *GNU*)
12185   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12186 *)
12187   ac_count=0
12188   $as_echo_n 0123456789 >"conftest.in"
12189   while :
12190   do
12191     cat "conftest.in" "conftest.in" >"conftest.tmp"
12192     mv "conftest.tmp" "conftest.in"
12193     cp "conftest.in" "conftest.nl"
12194     $as_echo 'FGREP' >> "conftest.nl"
12195     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12196     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12197     as_fn_arith $ac_count + 1 && ac_count=$as_val
12198     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12199       # Best one so far, save it but keep looking for a better one
12200       ac_cv_path_FGREP="$ac_path_FGREP"
12201       ac_path_FGREP_max=$ac_count
12202     fi
12203     # 10*(2^10) chars as input seems more than enough
12204     test $ac_count -gt 10 && break
12205   done
12206   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12207 esac
12208 
12209       $ac_path_FGREP_found && break 3
12210     done
12211   done
12212   done
12213 IFS=$as_save_IFS
12214   if test -z "$ac_cv_path_FGREP"; then
12215     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12216   fi
12217 else
12218   ac_cv_path_FGREP=$FGREP
12219 fi
12220 
12221    fi
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12224 $as_echo "$ac_cv_path_FGREP" >&6; }
12225  FGREP="$ac_cv_path_FGREP"
12226 
12227 
12228     else
12229       # If it succeeded, then it was overridden by the user. We will use it
12230       # for the tool.
12231 
12232       # First remove it from the list of overridden variables, so we can test
12233       # for unknown variables in the end.
12234       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12235 
12236       # Check if the provided tool contains a complete path.
12237       tool_specified="$FGREP"
12238       tool_basename="${tool_specified##*/}"
12239       if test "x$tool_basename" = "x$tool_specified"; then
12240         # A command without a complete path is provided, search $PATH.
12241         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12242 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12243         # Extract the first word of "$tool_basename", so it can be a program name with args.
12244 set dummy $tool_basename; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_FGREP+:} false; then :
12248   $as_echo_n "(cached) " >&6
12249 else
12250   case $FGREP in
12251   [\\/]* | ?:[\\/]*)
12252   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12253   ;;
12254   *)
12255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258   IFS=$as_save_IFS
12259   test -z "$as_dir" && as_dir=.
12260     for ac_exec_ext in '' $ac_executable_extensions; do
12261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264     break 2
12265   fi
12266 done
12267   done
12268 IFS=$as_save_IFS
12269 
12270   ;;
12271 esac
12272 fi
12273 FGREP=$ac_cv_path_FGREP
12274 if test -n "$FGREP"; then
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12276 $as_echo "$FGREP" >&6; }
12277 else
12278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280 fi
12281 
12282 
12283         if test "x$FGREP" = x; then
12284           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12285         fi
12286       else
12287         # Otherwise we believe it is a complete path. Use it as it is.
12288         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12289 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12291 $as_echo_n "checking for FGREP... " >&6; }
12292         if test ! -x "$tool_specified"; then
12293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12294 $as_echo "not found" >&6; }
12295           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12296         fi
12297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12298 $as_echo "$tool_specified" >&6; }
12299       fi
12300     fi
12301   fi
12302 
12303 
12304   if test "x$FGREP" = x; then
12305     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12306   fi
12307 
12308 
12309 
12310 
12311   # Publish this variable in the help.
12312 
12313 
12314   if test "x$SED" = x; then
12315     # The variable is not set by user, try to locate tool using the code snippet
12316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12317 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12318 if ${ac_cv_path_SED+:} false; then :
12319   $as_echo_n "(cached) " >&6
12320 else
12321             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12322      for ac_i in 1 2 3 4 5 6 7; do
12323        ac_script="$ac_script$as_nl$ac_script"
12324      done
12325      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12326      { ac_script=; unset ac_script;}
12327      if test -z "$SED"; then
12328   ac_path_SED_found=false
12329   # Loop through the user's path and test for each of PROGNAME-LIST
12330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12332 do
12333   IFS=$as_save_IFS
12334   test -z "$as_dir" && as_dir=.
12335     for ac_prog in sed gsed; do
12336     for ac_exec_ext in '' $ac_executable_extensions; do
12337       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12338       as_fn_executable_p "$ac_path_SED" || continue
12339 # Check for GNU ac_path_SED and select it if it is found.
12340   # Check for GNU $ac_path_SED
12341 case `"$ac_path_SED" --version 2>&1` in
12342 *GNU*)
12343   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12344 *)
12345   ac_count=0
12346   $as_echo_n 0123456789 >"conftest.in"
12347   while :
12348   do
12349     cat "conftest.in" "conftest.in" >"conftest.tmp"
12350     mv "conftest.tmp" "conftest.in"
12351     cp "conftest.in" "conftest.nl"
12352     $as_echo '' >> "conftest.nl"
12353     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12354     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12355     as_fn_arith $ac_count + 1 && ac_count=$as_val
12356     if test $ac_count -gt ${ac_path_SED_max-0}; then
12357       # Best one so far, save it but keep looking for a better one
12358       ac_cv_path_SED="$ac_path_SED"
12359       ac_path_SED_max=$ac_count
12360     fi
12361     # 10*(2^10) chars as input seems more than enough
12362     test $ac_count -gt 10 && break
12363   done
12364   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12365 esac
12366 
12367       $ac_path_SED_found && break 3
12368     done
12369   done
12370   done
12371 IFS=$as_save_IFS
12372   if test -z "$ac_cv_path_SED"; then
12373     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12374   fi
12375 else
12376   ac_cv_path_SED=$SED
12377 fi
12378 
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12381 $as_echo "$ac_cv_path_SED" >&6; }
12382  SED="$ac_cv_path_SED"
12383   rm -f conftest.sed
12384 
12385   else
12386     # The variable is set, but is it from the command line or the environment?
12387 
12388     # Try to remove the string !SED! from our list.
12389     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12390     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12391       # If it failed, the variable was not from the command line. Ignore it,
12392       # but warn the user (except for BASH, which is always set by the calling BASH).
12393       if test "xSED" != xBASH; then
12394         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12395 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12396       fi
12397       # Try to locate tool using the code snippet
12398       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12399 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12400 if ${ac_cv_path_SED+:} false; then :
12401   $as_echo_n "(cached) " >&6
12402 else
12403             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12404      for ac_i in 1 2 3 4 5 6 7; do
12405        ac_script="$ac_script$as_nl$ac_script"
12406      done
12407      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12408      { ac_script=; unset ac_script;}
12409      if test -z "$SED"; then
12410   ac_path_SED_found=false
12411   # Loop through the user's path and test for each of PROGNAME-LIST
12412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415   IFS=$as_save_IFS
12416   test -z "$as_dir" && as_dir=.
12417     for ac_prog in sed gsed; do
12418     for ac_exec_ext in '' $ac_executable_extensions; do
12419       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12420       as_fn_executable_p "$ac_path_SED" || continue
12421 # Check for GNU ac_path_SED and select it if it is found.
12422   # Check for GNU $ac_path_SED
12423 case `"$ac_path_SED" --version 2>&1` in
12424 *GNU*)
12425   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12426 *)
12427   ac_count=0
12428   $as_echo_n 0123456789 >"conftest.in"
12429   while :
12430   do
12431     cat "conftest.in" "conftest.in" >"conftest.tmp"
12432     mv "conftest.tmp" "conftest.in"
12433     cp "conftest.in" "conftest.nl"
12434     $as_echo '' >> "conftest.nl"
12435     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12436     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12437     as_fn_arith $ac_count + 1 && ac_count=$as_val
12438     if test $ac_count -gt ${ac_path_SED_max-0}; then
12439       # Best one so far, save it but keep looking for a better one
12440       ac_cv_path_SED="$ac_path_SED"
12441       ac_path_SED_max=$ac_count
12442     fi
12443     # 10*(2^10) chars as input seems more than enough
12444     test $ac_count -gt 10 && break
12445   done
12446   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12447 esac
12448 
12449       $ac_path_SED_found && break 3
12450     done
12451   done
12452   done
12453 IFS=$as_save_IFS
12454   if test -z "$ac_cv_path_SED"; then
12455     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12456   fi
12457 else
12458   ac_cv_path_SED=$SED
12459 fi
12460 
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12463 $as_echo "$ac_cv_path_SED" >&6; }
12464  SED="$ac_cv_path_SED"
12465   rm -f conftest.sed
12466 
12467     else
12468       # If it succeeded, then it was overridden by the user. We will use it
12469       # for the tool.
12470 
12471       # First remove it from the list of overridden variables, so we can test
12472       # for unknown variables in the end.
12473       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12474 
12475       # Check if the provided tool contains a complete path.
12476       tool_specified="$SED"
12477       tool_basename="${tool_specified##*/}"
12478       if test "x$tool_basename" = "x$tool_specified"; then
12479         # A command without a complete path is provided, search $PATH.
12480         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12481 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12482         # Extract the first word of "$tool_basename", so it can be a program name with args.
12483 set dummy $tool_basename; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if ${ac_cv_path_SED+:} false; then :
12487   $as_echo_n "(cached) " >&6
12488 else
12489   case $SED in
12490   [\\/]* | ?:[\\/]*)
12491   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12492   ;;
12493   *)
12494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12496 do
12497   IFS=$as_save_IFS
12498   test -z "$as_dir" && as_dir=.
12499     for ac_exec_ext in '' $ac_executable_extensions; do
12500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12501     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12503     break 2
12504   fi
12505 done
12506   done
12507 IFS=$as_save_IFS
12508 
12509   ;;
12510 esac
12511 fi
12512 SED=$ac_cv_path_SED
12513 if test -n "$SED"; then
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12515 $as_echo "$SED" >&6; }
12516 else
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520 
12521 
12522         if test "x$SED" = x; then
12523           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12524         fi
12525       else
12526         # Otherwise we believe it is a complete path. Use it as it is.
12527         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12528 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12530 $as_echo_n "checking for SED... " >&6; }
12531         if test ! -x "$tool_specified"; then
12532           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12533 $as_echo "not found" >&6; }
12534           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12535         fi
12536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12537 $as_echo "$tool_specified" >&6; }
12538       fi
12539     fi
12540   fi
12541 
12542 
12543   if test "x$SED" = x; then
12544     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12545   fi
12546 
12547 
12548 
12549   # Always force rm.
12550   RM="$RM -f"
12551 
12552   # pwd behaves differently on various platforms and some don't support the -L flag.
12553   # Always use the bash builtin pwd to get uniform behavior.
12554   THEPWDCMD=pwd
12555 
12556   # These are not required on all platforms
12557 
12558 
12559   # Publish this variable in the help.
12560 
12561 
12562   if test "x$CYGPATH" = x; then
12563     # The variable is not set by user, try to locate tool using the code snippet
12564     for ac_prog in cygpath
12565 do
12566   # Extract the first word of "$ac_prog", so it can be a program name with args.
12567 set dummy $ac_prog; ac_word=$2
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569 $as_echo_n "checking for $ac_word... " >&6; }
12570 if ${ac_cv_path_CYGPATH+:} false; then :
12571   $as_echo_n "(cached) " >&6
12572 else
12573   case $CYGPATH in
12574   [\\/]* | ?:[\\/]*)
12575   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12576   ;;
12577   *)
12578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH
12580 do
12581   IFS=$as_save_IFS
12582   test -z "$as_dir" && as_dir=.
12583     for ac_exec_ext in '' $ac_executable_extensions; do
12584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12585     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12587     break 2
12588   fi
12589 done
12590   done
12591 IFS=$as_save_IFS
12592 
12593   ;;
12594 esac
12595 fi
12596 CYGPATH=$ac_cv_path_CYGPATH
12597 if test -n "$CYGPATH"; then
12598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12599 $as_echo "$CYGPATH" >&6; }
12600 else
12601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12603 fi
12604 
12605 
12606   test -n "$CYGPATH" && break
12607 done
12608 
12609   else
12610     # The variable is set, but is it from the command line or the environment?
12611 
12612     # Try to remove the string !CYGPATH! from our list.
12613     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12614     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12615       # If it failed, the variable was not from the command line. Ignore it,
12616       # but warn the user (except for BASH, which is always set by the calling BASH).
12617       if test "xCYGPATH" != xBASH; then
12618         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12619 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12620       fi
12621       # Try to locate tool using the code snippet
12622       for ac_prog in cygpath
12623 do
12624   # Extract the first word of "$ac_prog", so it can be a program name with args.
12625 set dummy $ac_prog; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if ${ac_cv_path_CYGPATH+:} false; then :
12629   $as_echo_n "(cached) " >&6
12630 else
12631   case $CYGPATH in
12632   [\\/]* | ?:[\\/]*)
12633   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12634   ;;
12635   *)
12636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12638 do
12639   IFS=$as_save_IFS
12640   test -z "$as_dir" && as_dir=.
12641     for ac_exec_ext in '' $ac_executable_extensions; do
12642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645     break 2
12646   fi
12647 done
12648   done
12649 IFS=$as_save_IFS
12650 
12651   ;;
12652 esac
12653 fi
12654 CYGPATH=$ac_cv_path_CYGPATH
12655 if test -n "$CYGPATH"; then
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12657 $as_echo "$CYGPATH" >&6; }
12658 else
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12661 fi
12662 
12663 
12664   test -n "$CYGPATH" && break
12665 done
12666 
12667     else
12668       # If it succeeded, then it was overridden by the user. We will use it
12669       # for the tool.
12670 
12671       # First remove it from the list of overridden variables, so we can test
12672       # for unknown variables in the end.
12673       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12674 
12675       # Check if the provided tool contains a complete path.
12676       tool_specified="$CYGPATH"
12677       tool_basename="${tool_specified##*/}"
12678       if test "x$tool_basename" = "x$tool_specified"; then
12679         # A command without a complete path is provided, search $PATH.
12680         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12681 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12682         # Extract the first word of "$tool_basename", so it can be a program name with args.
12683 set dummy $tool_basename; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if ${ac_cv_path_CYGPATH+:} false; then :
12687   $as_echo_n "(cached) " >&6
12688 else
12689   case $CYGPATH in
12690   [\\/]* | ?:[\\/]*)
12691   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12692   ;;
12693   *)
12694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697   IFS=$as_save_IFS
12698   test -z "$as_dir" && as_dir=.
12699     for ac_exec_ext in '' $ac_executable_extensions; do
12700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703     break 2
12704   fi
12705 done
12706   done
12707 IFS=$as_save_IFS
12708 
12709   ;;
12710 esac
12711 fi
12712 CYGPATH=$ac_cv_path_CYGPATH
12713 if test -n "$CYGPATH"; then
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12715 $as_echo "$CYGPATH" >&6; }
12716 else
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720 
12721 
12722         if test "x$CYGPATH" = x; then
12723           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12724         fi
12725       else
12726         # Otherwise we believe it is a complete path. Use it as it is.
12727         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12728 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12730 $as_echo_n "checking for CYGPATH... " >&6; }
12731         if test ! -x "$tool_specified"; then
12732           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12733 $as_echo "not found" >&6; }
12734           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12735         fi
12736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12737 $as_echo "$tool_specified" >&6; }
12738       fi
12739     fi
12740   fi
12741 
12742 
12743 
12744 
12745   # Publish this variable in the help.
12746 
12747 
12748   if test "x$READLINK" = x; then
12749     # The variable is not set by user, try to locate tool using the code snippet
12750     for ac_prog in greadlink readlink
12751 do
12752   # Extract the first word of "$ac_prog", so it can be a program name with args.
12753 set dummy $ac_prog; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if ${ac_cv_path_READLINK+:} false; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   case $READLINK in
12760   [\\/]* | ?:[\\/]*)
12761   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12762   ;;
12763   *)
12764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12766 do
12767   IFS=$as_save_IFS
12768   test -z "$as_dir" && as_dir=.
12769     for ac_exec_ext in '' $ac_executable_extensions; do
12770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773     break 2
12774   fi
12775 done
12776   done
12777 IFS=$as_save_IFS
12778 
12779   ;;
12780 esac
12781 fi
12782 READLINK=$ac_cv_path_READLINK
12783 if test -n "$READLINK"; then
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12785 $as_echo "$READLINK" >&6; }
12786 else
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790 
12791 
12792   test -n "$READLINK" && break
12793 done
12794 
12795   else
12796     # The variable is set, but is it from the command line or the environment?
12797 
12798     # Try to remove the string !READLINK! from our list.
12799     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12800     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12801       # If it failed, the variable was not from the command line. Ignore it,
12802       # but warn the user (except for BASH, which is always set by the calling BASH).
12803       if test "xREADLINK" != xBASH; then
12804         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12805 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12806       fi
12807       # Try to locate tool using the code snippet
12808       for ac_prog in greadlink readlink
12809 do
12810   # Extract the first word of "$ac_prog", so it can be a program name with args.
12811 set dummy $ac_prog; ac_word=$2
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813 $as_echo_n "checking for $ac_word... " >&6; }
12814 if ${ac_cv_path_READLINK+:} false; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   case $READLINK in
12818   [\\/]* | ?:[\\/]*)
12819   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12820   ;;
12821   *)
12822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12824 do
12825   IFS=$as_save_IFS
12826   test -z "$as_dir" && as_dir=.
12827     for ac_exec_ext in '' $ac_executable_extensions; do
12828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12829     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12831     break 2
12832   fi
12833 done
12834   done
12835 IFS=$as_save_IFS
12836 
12837   ;;
12838 esac
12839 fi
12840 READLINK=$ac_cv_path_READLINK
12841 if test -n "$READLINK"; then
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12843 $as_echo "$READLINK" >&6; }
12844 else
12845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12847 fi
12848 
12849 
12850   test -n "$READLINK" && break
12851 done
12852 
12853     else
12854       # If it succeeded, then it was overridden by the user. We will use it
12855       # for the tool.
12856 
12857       # First remove it from the list of overridden variables, so we can test
12858       # for unknown variables in the end.
12859       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12860 
12861       # Check if the provided tool contains a complete path.
12862       tool_specified="$READLINK"
12863       tool_basename="${tool_specified##*/}"
12864       if test "x$tool_basename" = "x$tool_specified"; then
12865         # A command without a complete path is provided, search $PATH.
12866         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12867 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12868         # Extract the first word of "$tool_basename", so it can be a program name with args.
12869 set dummy $tool_basename; ac_word=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if ${ac_cv_path_READLINK+:} false; then :
12873   $as_echo_n "(cached) " >&6
12874 else
12875   case $READLINK in
12876   [\\/]* | ?:[\\/]*)
12877   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12878   ;;
12879   *)
12880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883   IFS=$as_save_IFS
12884   test -z "$as_dir" && as_dir=.
12885     for ac_exec_ext in '' $ac_executable_extensions; do
12886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12887     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889     break 2
12890   fi
12891 done
12892   done
12893 IFS=$as_save_IFS
12894 
12895   ;;
12896 esac
12897 fi
12898 READLINK=$ac_cv_path_READLINK
12899 if test -n "$READLINK"; then
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12901 $as_echo "$READLINK" >&6; }
12902 else
12903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12905 fi
12906 
12907 
12908         if test "x$READLINK" = x; then
12909           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12910         fi
12911       else
12912         # Otherwise we believe it is a complete path. Use it as it is.
12913         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12914 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12916 $as_echo_n "checking for READLINK... " >&6; }
12917         if test ! -x "$tool_specified"; then
12918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12919 $as_echo "not found" >&6; }
12920           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12921         fi
12922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12923 $as_echo "$tool_specified" >&6; }
12924       fi
12925     fi
12926   fi
12927 
12928 
12929 
12930 
12931   # Publish this variable in the help.
12932 
12933 
12934   if test "x$DF" = x; then
12935     # The variable is not set by user, try to locate tool using the code snippet
12936     for ac_prog in df
12937 do
12938   # Extract the first word of "$ac_prog", so it can be a program name with args.
12939 set dummy $ac_prog; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if ${ac_cv_path_DF+:} false; then :
12943   $as_echo_n "(cached) " >&6
12944 else
12945   case $DF in
12946   [\\/]* | ?:[\\/]*)
12947   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12948   ;;
12949   *)
12950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953   IFS=$as_save_IFS
12954   test -z "$as_dir" && as_dir=.
12955     for ac_exec_ext in '' $ac_executable_extensions; do
12956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12957     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959     break 2
12960   fi
12961 done
12962   done
12963 IFS=$as_save_IFS
12964 
12965   ;;
12966 esac
12967 fi
12968 DF=$ac_cv_path_DF
12969 if test -n "$DF"; then
12970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12971 $as_echo "$DF" >&6; }
12972 else
12973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12974 $as_echo "no" >&6; }
12975 fi
12976 
12977 
12978   test -n "$DF" && break
12979 done
12980 
12981   else
12982     # The variable is set, but is it from the command line or the environment?
12983 
12984     # Try to remove the string !DF! from our list.
12985     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12986     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12987       # If it failed, the variable was not from the command line. Ignore it,
12988       # but warn the user (except for BASH, which is always set by the calling BASH).
12989       if test "xDF" != xBASH; then
12990         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12991 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12992       fi
12993       # Try to locate tool using the code snippet
12994       for ac_prog in df
12995 do
12996   # Extract the first word of "$ac_prog", so it can be a program name with args.
12997 set dummy $ac_prog; ac_word=$2
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12999 $as_echo_n "checking for $ac_word... " >&6; }
13000 if ${ac_cv_path_DF+:} false; then :
13001   $as_echo_n "(cached) " >&6
13002 else
13003   case $DF in
13004   [\\/]* | ?:[\\/]*)
13005   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13006   ;;
13007   *)
13008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011   IFS=$as_save_IFS
13012   test -z "$as_dir" && as_dir=.
13013     for ac_exec_ext in '' $ac_executable_extensions; do
13014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13017     break 2
13018   fi
13019 done
13020   done
13021 IFS=$as_save_IFS
13022 
13023   ;;
13024 esac
13025 fi
13026 DF=$ac_cv_path_DF
13027 if test -n "$DF"; then
13028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13029 $as_echo "$DF" >&6; }
13030 else
13031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13033 fi
13034 
13035 
13036   test -n "$DF" && break
13037 done
13038 
13039     else
13040       # If it succeeded, then it was overridden by the user. We will use it
13041       # for the tool.
13042 
13043       # First remove it from the list of overridden variables, so we can test
13044       # for unknown variables in the end.
13045       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13046 
13047       # Check if the provided tool contains a complete path.
13048       tool_specified="$DF"
13049       tool_basename="${tool_specified##*/}"
13050       if test "x$tool_basename" = "x$tool_specified"; then
13051         # A command without a complete path is provided, search $PATH.
13052         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13053 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13054         # Extract the first word of "$tool_basename", so it can be a program name with args.
13055 set dummy $tool_basename; ac_word=$2
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13057 $as_echo_n "checking for $ac_word... " >&6; }
13058 if ${ac_cv_path_DF+:} false; then :
13059   $as_echo_n "(cached) " >&6
13060 else
13061   case $DF in
13062   [\\/]* | ?:[\\/]*)
13063   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13064   ;;
13065   *)
13066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069   IFS=$as_save_IFS
13070   test -z "$as_dir" && as_dir=.
13071     for ac_exec_ext in '' $ac_executable_extensions; do
13072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075     break 2
13076   fi
13077 done
13078   done
13079 IFS=$as_save_IFS
13080 
13081   ;;
13082 esac
13083 fi
13084 DF=$ac_cv_path_DF
13085 if test -n "$DF"; then
13086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13087 $as_echo "$DF" >&6; }
13088 else
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13091 fi
13092 
13093 
13094         if test "x$DF" = x; then
13095           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13096         fi
13097       else
13098         # Otherwise we believe it is a complete path. Use it as it is.
13099         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13100 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13101         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13102 $as_echo_n "checking for DF... " >&6; }
13103         if test ! -x "$tool_specified"; then
13104           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13105 $as_echo "not found" >&6; }
13106           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13107         fi
13108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13109 $as_echo "$tool_specified" >&6; }
13110       fi
13111     fi
13112   fi
13113 
13114 
13115 
13116 
13117   # Publish this variable in the help.
13118 
13119 
13120   if test "x$SETFILE" = x; then
13121     # The variable is not set by user, try to locate tool using the code snippet
13122     for ac_prog in SetFile
13123 do
13124   # Extract the first word of "$ac_prog", so it can be a program name with args.
13125 set dummy $ac_prog; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127 $as_echo_n "checking for $ac_word... " >&6; }
13128 if ${ac_cv_path_SETFILE+:} false; then :
13129   $as_echo_n "(cached) " >&6
13130 else
13131   case $SETFILE in
13132   [\\/]* | ?:[\\/]*)
13133   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13134   ;;
13135   *)
13136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13138 do
13139   IFS=$as_save_IFS
13140   test -z "$as_dir" && as_dir=.
13141     for ac_exec_ext in '' $ac_executable_extensions; do
13142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13143     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145     break 2
13146   fi
13147 done
13148   done
13149 IFS=$as_save_IFS
13150 
13151   ;;
13152 esac
13153 fi
13154 SETFILE=$ac_cv_path_SETFILE
13155 if test -n "$SETFILE"; then
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13157 $as_echo "$SETFILE" >&6; }
13158 else
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13161 fi
13162 
13163 
13164   test -n "$SETFILE" && break
13165 done
13166 
13167   else
13168     # The variable is set, but is it from the command line or the environment?
13169 
13170     # Try to remove the string !SETFILE! from our list.
13171     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13172     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13173       # If it failed, the variable was not from the command line. Ignore it,
13174       # but warn the user (except for BASH, which is always set by the calling BASH).
13175       if test "xSETFILE" != xBASH; then
13176         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13177 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13178       fi
13179       # Try to locate tool using the code snippet
13180       for ac_prog in SetFile
13181 do
13182   # Extract the first word of "$ac_prog", so it can be a program name with args.
13183 set dummy $ac_prog; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if ${ac_cv_path_SETFILE+:} false; then :
13187   $as_echo_n "(cached) " >&6
13188 else
13189   case $SETFILE in
13190   [\\/]* | ?:[\\/]*)
13191   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13192   ;;
13193   *)
13194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $PATH
13196 do
13197   IFS=$as_save_IFS
13198   test -z "$as_dir" && as_dir=.
13199     for ac_exec_ext in '' $ac_executable_extensions; do
13200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13201     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203     break 2
13204   fi
13205 done
13206   done
13207 IFS=$as_save_IFS
13208 
13209   ;;
13210 esac
13211 fi
13212 SETFILE=$ac_cv_path_SETFILE
13213 if test -n "$SETFILE"; then
13214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13215 $as_echo "$SETFILE" >&6; }
13216 else
13217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 $as_echo "no" >&6; }
13219 fi
13220 
13221 
13222   test -n "$SETFILE" && break
13223 done
13224 
13225     else
13226       # If it succeeded, then it was overridden by the user. We will use it
13227       # for the tool.
13228 
13229       # First remove it from the list of overridden variables, so we can test
13230       # for unknown variables in the end.
13231       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13232 
13233       # Check if the provided tool contains a complete path.
13234       tool_specified="$SETFILE"
13235       tool_basename="${tool_specified##*/}"
13236       if test "x$tool_basename" = "x$tool_specified"; then
13237         # A command without a complete path is provided, search $PATH.
13238         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13239 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13240         # Extract the first word of "$tool_basename", so it can be a program name with args.
13241 set dummy $tool_basename; ac_word=$2
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243 $as_echo_n "checking for $ac_word... " >&6; }
13244 if ${ac_cv_path_SETFILE+:} false; then :
13245   $as_echo_n "(cached) " >&6
13246 else
13247   case $SETFILE in
13248   [\\/]* | ?:[\\/]*)
13249   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13250   ;;
13251   *)
13252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13254 do
13255   IFS=$as_save_IFS
13256   test -z "$as_dir" && as_dir=.
13257     for ac_exec_ext in '' $ac_executable_extensions; do
13258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13259     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261     break 2
13262   fi
13263 done
13264   done
13265 IFS=$as_save_IFS
13266 
13267   ;;
13268 esac
13269 fi
13270 SETFILE=$ac_cv_path_SETFILE
13271 if test -n "$SETFILE"; then
13272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13273 $as_echo "$SETFILE" >&6; }
13274 else
13275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13277 fi
13278 
13279 
13280         if test "x$SETFILE" = x; then
13281           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13282         fi
13283       else
13284         # Otherwise we believe it is a complete path. Use it as it is.
13285         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13286 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13288 $as_echo_n "checking for SETFILE... " >&6; }
13289         if test ! -x "$tool_specified"; then
13290           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13291 $as_echo "not found" >&6; }
13292           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13293         fi
13294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13295 $as_echo "$tool_specified" >&6; }
13296       fi
13297     fi
13298   fi
13299 
13300 
13301 
13302 
13303 # Now we can determine OpenJDK build and target platforms. This is required to
13304 # have early on.
13305 # Make sure we can run config.sub.
13306 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13307   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13308 
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13310 $as_echo_n "checking build system type... " >&6; }
13311 if ${ac_cv_build+:} false; then :
13312   $as_echo_n "(cached) " >&6
13313 else
13314   ac_build_alias=$build_alias
13315 test "x$ac_build_alias" = x &&
13316   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13317 test "x$ac_build_alias" = x &&
13318   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13319 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13320   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13321 
13322 fi
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13324 $as_echo "$ac_cv_build" >&6; }
13325 case $ac_cv_build in
13326 *-*-*) ;;
13327 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13328 esac
13329 build=$ac_cv_build
13330 ac_save_IFS=$IFS; IFS='-'
13331 set x $ac_cv_build
13332 shift
13333 build_cpu=$1
13334 build_vendor=$2
13335 shift; shift
13336 # Remember, the first character of IFS is used to create $*,
13337 # except with old shells:
13338 build_os=$*
13339 IFS=$ac_save_IFS
13340 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13341 
13342 
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13344 $as_echo_n "checking host system type... " >&6; }
13345 if ${ac_cv_host+:} false; then :
13346   $as_echo_n "(cached) " >&6
13347 else
13348   if test "x$host_alias" = x; then
13349   ac_cv_host=$ac_cv_build
13350 else
13351   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13352     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13353 fi
13354 
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13357 $as_echo "$ac_cv_host" >&6; }
13358 case $ac_cv_host in
13359 *-*-*) ;;
13360 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13361 esac
13362 host=$ac_cv_host
13363 ac_save_IFS=$IFS; IFS='-'
13364 set x $ac_cv_host
13365 shift
13366 host_cpu=$1
13367 host_vendor=$2
13368 shift; shift
13369 # Remember, the first character of IFS is used to create $*,
13370 # except with old shells:
13371 host_os=$*
13372 IFS=$ac_save_IFS
13373 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13374 
13375 
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13377 $as_echo_n "checking target system type... " >&6; }
13378 if ${ac_cv_target+:} false; then :
13379   $as_echo_n "(cached) " >&6
13380 else
13381   if test "x$target_alias" = x; then
13382   ac_cv_target=$ac_cv_host
13383 else
13384   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13385     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13386 fi
13387 
13388 fi
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13390 $as_echo "$ac_cv_target" >&6; }
13391 case $ac_cv_target in
13392 *-*-*) ;;
13393 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13394 esac
13395 target=$ac_cv_target
13396 ac_save_IFS=$IFS; IFS='-'
13397 set x $ac_cv_target
13398 shift
13399 target_cpu=$1
13400 target_vendor=$2
13401 shift; shift
13402 # Remember, the first character of IFS is used to create $*,
13403 # except with old shells:
13404 target_os=$*
13405 IFS=$ac_save_IFS
13406 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13407 
13408 
13409 # The aliases save the names the user supplied, while $host etc.
13410 # will get canonicalized.
13411 test -n "$target_alias" &&
13412   test "$program_prefix$program_suffix$program_transform_name" = \
13413     NONENONEs,x,x, &&
13414   program_prefix=${target_alias}-
13415 
13416   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13417   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13418   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13419   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13420   # to use the configure naming style.
13421 
13422 
13423 
13424 
13425 
13426   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13427   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13428   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13429   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13430   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13431   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13432 
13433 
13434 
13435   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13436 
13437   case "$build_os" in
13438     *linux*)
13439       VAR_OS=linux
13440       VAR_OS_API=posix
13441       VAR_OS_ENV=linux
13442       ;;
13443     *solaris*)
13444       VAR_OS=solaris
13445       VAR_OS_API=posix
13446       VAR_OS_ENV=solaris
13447       ;;
13448     *darwin*)
13449       VAR_OS=macosx
13450       VAR_OS_API=posix
13451       VAR_OS_ENV=macosx
13452       ;;
13453     *bsd*)
13454       VAR_OS=bsd
13455       VAR_OS_API=posix
13456       VAR_OS_ENV=bsd
13457       ;;
13458     *cygwin*)
13459       VAR_OS=windows
13460       VAR_OS_API=winapi
13461       VAR_OS_ENV=windows.cygwin
13462       ;;
13463     *mingw*)
13464       VAR_OS=windows
13465       VAR_OS_API=winapi
13466       VAR_OS_ENV=windows.msys
13467       ;;
13468     *aix*)
13469       VAR_OS=aix
13470       VAR_OS_API=posix
13471       VAR_OS_ENV=aix
13472       ;;
13473     *)
13474       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13475       ;;
13476   esac
13477 
13478 
13479   # First argument is the cpu name from the trip/quad
13480   case "$build_cpu" in
13481     x86_64)
13482       VAR_CPU=x86_64
13483       VAR_CPU_ARCH=x86
13484       VAR_CPU_BITS=64
13485       VAR_CPU_ENDIAN=little
13486       ;;
13487     i?86)
13488       VAR_CPU=x86
13489       VAR_CPU_ARCH=x86
13490       VAR_CPU_BITS=32
13491       VAR_CPU_ENDIAN=little
13492       ;;
13493     arm*)
13494       VAR_CPU=arm
13495       VAR_CPU_ARCH=arm
13496       VAR_CPU_BITS=32
13497       VAR_CPU_ENDIAN=little
13498       ;;
13499     powerpc)
13500       VAR_CPU=ppc
13501       VAR_CPU_ARCH=ppc
13502       VAR_CPU_BITS=32
13503       VAR_CPU_ENDIAN=big
13504       ;;
13505     powerpc64)
13506       VAR_CPU=ppc64
13507       VAR_CPU_ARCH=ppc
13508       VAR_CPU_BITS=64
13509       VAR_CPU_ENDIAN=big
13510       ;;
13511     s390)
13512       VAR_CPU=s390
13513       VAR_CPU_ARCH=s390
13514       VAR_CPU_BITS=32
13515       VAR_CPU_ENDIAN=big
13516       ;;
13517     s390x)
13518       VAR_CPU=s390x
13519       VAR_CPU_ARCH=s390
13520       VAR_CPU_BITS=64
13521       VAR_CPU_ENDIAN=big
13522       ;;
13523     sparc)
13524       VAR_CPU=sparc
13525       VAR_CPU_ARCH=sparc
13526       VAR_CPU_BITS=32
13527       VAR_CPU_ENDIAN=big
13528       ;;
13529     sparcv9)
13530       VAR_CPU=sparcv9
13531       VAR_CPU_ARCH=sparc
13532       VAR_CPU_BITS=64
13533       VAR_CPU_ENDIAN=big
13534       ;;
13535     *)
13536       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13537       ;;
13538   esac
13539 
13540   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13541   OPENJDK_BUILD_OS="$VAR_OS"
13542   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13543   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13544   OPENJDK_BUILD_CPU="$VAR_CPU"
13545   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13546   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13547   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13548 
13549 
13550 
13551 
13552 
13553 
13554 
13555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13556 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13558 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13559 
13560   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13561 
13562   case "$host_os" in
13563     *linux*)
13564       VAR_OS=linux
13565       VAR_OS_API=posix
13566       VAR_OS_ENV=linux
13567       ;;
13568     *solaris*)
13569       VAR_OS=solaris
13570       VAR_OS_API=posix
13571       VAR_OS_ENV=solaris
13572       ;;
13573     *darwin*)
13574       VAR_OS=macosx
13575       VAR_OS_API=posix
13576       VAR_OS_ENV=macosx
13577       ;;
13578     *bsd*)
13579       VAR_OS=bsd
13580       VAR_OS_API=posix
13581       VAR_OS_ENV=bsd
13582       ;;
13583     *cygwin*)
13584       VAR_OS=windows
13585       VAR_OS_API=winapi
13586       VAR_OS_ENV=windows.cygwin
13587       ;;
13588     *mingw*)
13589       VAR_OS=windows
13590       VAR_OS_API=winapi
13591       VAR_OS_ENV=windows.msys
13592       ;;
13593     *aix*)
13594       VAR_OS=aix
13595       VAR_OS_API=posix
13596       VAR_OS_ENV=aix
13597       ;;
13598     *)
13599       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13600       ;;
13601   esac
13602 
13603 
13604   # First argument is the cpu name from the trip/quad
13605   case "$host_cpu" in
13606     x86_64)
13607       VAR_CPU=x86_64
13608       VAR_CPU_ARCH=x86
13609       VAR_CPU_BITS=64
13610       VAR_CPU_ENDIAN=little
13611       ;;
13612     i?86)
13613       VAR_CPU=x86
13614       VAR_CPU_ARCH=x86
13615       VAR_CPU_BITS=32
13616       VAR_CPU_ENDIAN=little
13617       ;;
13618     arm*)
13619       VAR_CPU=arm
13620       VAR_CPU_ARCH=arm
13621       VAR_CPU_BITS=32
13622       VAR_CPU_ENDIAN=little
13623       ;;
13624     powerpc)
13625       VAR_CPU=ppc
13626       VAR_CPU_ARCH=ppc
13627       VAR_CPU_BITS=32
13628       VAR_CPU_ENDIAN=big
13629       ;;
13630     powerpc64)
13631       VAR_CPU=ppc64
13632       VAR_CPU_ARCH=ppc
13633       VAR_CPU_BITS=64
13634       VAR_CPU_ENDIAN=big
13635       ;;
13636     s390)
13637       VAR_CPU=s390
13638       VAR_CPU_ARCH=s390
13639       VAR_CPU_BITS=32
13640       VAR_CPU_ENDIAN=big
13641       ;;
13642     s390x)
13643       VAR_CPU=s390x
13644       VAR_CPU_ARCH=s390
13645       VAR_CPU_BITS=64
13646       VAR_CPU_ENDIAN=big
13647       ;;
13648     sparc)
13649       VAR_CPU=sparc
13650       VAR_CPU_ARCH=sparc
13651       VAR_CPU_BITS=32
13652       VAR_CPU_ENDIAN=big
13653       ;;
13654     sparcv9)
13655       VAR_CPU=sparcv9
13656       VAR_CPU_ARCH=sparc
13657       VAR_CPU_BITS=64
13658       VAR_CPU_ENDIAN=big
13659       ;;
13660     *)
13661       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13662       ;;
13663   esac
13664 
13665   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13666   OPENJDK_TARGET_OS="$VAR_OS"
13667   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13668   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13669   OPENJDK_TARGET_CPU="$VAR_CPU"
13670   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13671   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13672   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13673 
13674 
13675 
13676 
13677 
13678 
13679 
13680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13681 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13683 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13684 
13685 
13686 
13687 # Check whether --with-target-bits was given.
13688 if test "${with_target_bits+set}" = set; then :
13689   withval=$with_target_bits;
13690 fi
13691 
13692 
13693   # We have three types of compiles:
13694   # native  == normal compilation, target system == build system
13695   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13696   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13697   #
13698   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13699     # We're doing a proper cross-compilation
13700     COMPILE_TYPE="cross"
13701   else
13702     COMPILE_TYPE="native"
13703   fi
13704 
13705   if test "x$with_target_bits" != x; then
13706     if test "x$COMPILE_TYPE" = "xcross"; then
13707       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13708     fi
13709 
13710     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13711       # A reduced build is requested
13712       COMPILE_TYPE="reduced"
13713       OPENJDK_TARGET_CPU_BITS=32
13714       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13715         OPENJDK_TARGET_CPU=x86
13716       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13717         OPENJDK_TARGET_CPU=sparc
13718       else
13719         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13720       fi
13721     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13722       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
13723     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13724       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13725 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13726     else
13727       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13728     fi
13729   fi
13730 
13731 
13732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13733 $as_echo_n "checking compilation type... " >&6; }
13734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13735 $as_echo "$COMPILE_TYPE" >&6; }
13736 
13737 
13738   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13739     REQUIRED_OS_NAME=SunOS
13740     REQUIRED_OS_VERSION=5.10
13741   fi
13742   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13743     REQUIRED_OS_NAME=Linux
13744     REQUIRED_OS_VERSION=2.6
13745   fi
13746   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13747     REQUIRED_OS_NAME=Windows
13748     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13749       REQUIRED_OS_VERSION=5.2
13750     else
13751       REQUIRED_OS_VERSION=5.1
13752     fi
13753   fi
13754   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13755     REQUIRED_OS_NAME=Darwin
13756     REQUIRED_OS_VERSION=11.2
13757   fi
13758 
13759 
13760 
13761 
13762 
13763   # Also store the legacy naming of the cpu.
13764   # Ie i586 and amd64 instead of x86 and x86_64
13765   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13766   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13767     OPENJDK_TARGET_CPU_LEGACY="i586"
13768   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13769     # On all platforms except MacOSX replace x86_64 with amd64.
13770     OPENJDK_TARGET_CPU_LEGACY="amd64"
13771   fi
13772 
13773 
13774   # And the second legacy naming of the cpu.
13775   # Ie i386 and amd64 instead of x86 and x86_64.
13776   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13777   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13778     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13779   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13780     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13781   fi
13782 
13783 
13784   # This is the name of the cpu (but using i386 and amd64 instead of
13785   # x86 and x86_64, respectively), preceeded by a /, to be used when
13786   # locating libraries. On macosx, it's empty, though.
13787   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13788   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13789     OPENJDK_TARGET_CPU_LIBDIR=""
13790   fi
13791 
13792 
13793   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13794   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13795   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13796   OPENJDK_TARGET_CPU_ISADIR=""
13797   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13798     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13799       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13800     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13801       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13802     fi
13803   fi
13804 
13805 
13806   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13807   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13808   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13809     # On linux only, we replace x86 with i386.
13810     OPENJDK_TARGET_CPU_OSARCH="i386"
13811   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13812     # On all platforms except macosx, we replace x86_64 with amd64.
13813     OPENJDK_TARGET_CPU_OSARCH="amd64"
13814   fi
13815 
13816 
13817   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13818   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13819     OPENJDK_TARGET_CPU_JLI="i386"
13820   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13821     # On all platforms except macosx, we replace x86_64 with amd64.
13822     OPENJDK_TARGET_CPU_JLI="amd64"
13823   fi
13824   # Now setup the -D flags for building libjli.
13825   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13826   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13827     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13828       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13829     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13830       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13831     fi
13832   fi
13833 
13834 
13835   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13836   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13837     OPENJDK_TARGET_OS_API_DIR="solaris"
13838   fi
13839   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13840     OPENJDK_TARGET_OS_API_DIR="windows"
13841   fi
13842 
13843 
13844   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13845       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13846   else
13847       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13848   fi
13849 
13850 
13851   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13852     A_LP64="LP64:="
13853     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13854     # unpack200.exe
13855     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13856       ADD_LP64="-D_LP64=1"
13857     fi
13858   fi
13859   LP64=$A_LP64
13860 
13861 
13862   if test "x$COMPILE_TYPE" = "xcross"; then
13863     # FIXME: ... or should this include reduced builds..?
13864     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13865   else
13866     DEFINE_CROSS_COMPILE_ARCH=""
13867   fi
13868 
13869 
13870   # ZERO_ARCHDEF is used to enable architecture-specific code
13871   case "${OPENJDK_TARGET_CPU}" in
13872     ppc*)    ZERO_ARCHDEF=PPC   ;;
13873     s390*)   ZERO_ARCHDEF=S390  ;;
13874     sparc*)  ZERO_ARCHDEF=SPARC ;;
13875     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13876     x86)     ZERO_ARCHDEF=IA32  ;;
13877     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13878   esac
13879 
13880 
13881 
13882 
13883 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13884 
13885   # Save the current directory this script was started from
13886   CURDIR="$PWD"
13887 
13888   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13889     PATH_SEP=";"
13890 
13891   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13892   if test $SRC_ROOT_LENGTH -gt 100; then
13893     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13894   fi
13895 
13896   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13898 $as_echo_n "checking cygwin release... " >&6; }
13899     CYGWIN_VERSION=`$UNAME -r`
13900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13901 $as_echo "$CYGWIN_VERSION" >&6; }
13902     WINDOWS_ENV_VENDOR='cygwin'
13903     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13904 
13905     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13906     if test "x$CYGWIN_VERSION_OK" = x; then
13907       { $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
13908 $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;}
13909       as_fn_error $? "Cannot continue" "$LINENO" 5
13910     fi
13911     if test "x$CYGPATH" = x; then
13912       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13913     fi
13914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13915 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13916     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13917     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13918     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13919     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13921 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13922     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13923     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13924     if test "x$test_cygdrive_prefix" = x; then
13925       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13926     fi
13927   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13929 $as_echo_n "checking msys release... " >&6; }
13930     MSYS_VERSION=`$UNAME -r`
13931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13932 $as_echo "$MSYS_VERSION" >&6; }
13933 
13934     WINDOWS_ENV_VENDOR='msys'
13935     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13936 
13937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13938 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13939     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13940     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13941 
13942   windows_path="$MSYS_ROOT_PATH"
13943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13944     unix_path=`$CYGPATH -u "$windows_path"`
13945     MSYS_ROOT_PATH="$unix_path"
13946   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13947     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13948     MSYS_ROOT_PATH="$unix_path"
13949   fi
13950 
13951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13952 $as_echo "$MSYS_ROOT_PATH" >&6; }
13953     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13954   else
13955     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13956   fi
13957 
13958   # Test if windows or unix (cygwin/msys) find is first in path.
13959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13960 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13961   FIND_BINARY_OUTPUT=`find --version 2>&1`
13962   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13964 $as_echo "unix style" >&6; }
13965   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13967 $as_echo "Windows" >&6; }
13968     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13969 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13970     { $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
13971 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13972     as_fn_error $? "Cannot continue" "$LINENO" 5
13973   else
13974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13975 $as_echo "unknown" >&6; }
13976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13977 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13978   fi
13979 
13980   else
13981     PATH_SEP=":"
13982   fi
13983 
13984 
13985   # We get the top-level directory from the supporting wrappers.
13986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
13987 $as_echo_n "checking for top-level directory... " >&6; }
13988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
13989 $as_echo "$TOPDIR" >&6; }
13990 
13991 
13992   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
13993 
13994   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13995 
13996   # Input might be given as Windows format, start by converting to
13997   # unix format.
13998   path="$CURDIR"
13999   new_path=`$CYGPATH -u "$path"`
14000 
14001   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14002   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14003   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14004   # "foo.exe" is OK but "foo" is an error.
14005   #
14006   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14007   # It is also a way to make sure we got the proper file name for the real test later on.
14008   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14009   if test "x$test_shortpath" = x; then
14010     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14011 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14012     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14013   fi
14014 
14015   # Call helper function which possibly converts this using DOS-style short mode.
14016   # If so, the updated path is stored in $new_path.
14017 
14018   input_path="$new_path"
14019   # Check if we need to convert this using DOS-style short mode. If the path
14020   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14021   # take no chances and rewrite it.
14022   # Note: m4 eats our [], so we need to use [ and ] instead.
14023   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14024   if test "x$has_forbidden_chars" != x; then
14025     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14026     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14027     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14028     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14029       # Going to short mode and back again did indeed matter. Since short mode is
14030       # case insensitive, let's make it lowercase to improve readability.
14031       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14032       # Now convert it back to Unix-stile (cygpath)
14033       input_path=`$CYGPATH -u "$shortmode_path"`
14034       new_path="$input_path"
14035     fi
14036   fi
14037 
14038   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14039   if test "x$test_cygdrive_prefix" = x; then
14040     # As a simple fix, exclude /usr/bin since it's not a real path.
14041     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14042       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14043       # a path prefixed by /cygdrive for fixpath to work.
14044       new_path="$CYGWIN_ROOT_PATH$input_path"
14045     fi
14046   fi
14047 
14048 
14049   if test "x$path" != "x$new_path"; then
14050     CURDIR="$new_path"
14051     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14052 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14053   fi
14054 
14055   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14056 
14057   path="$CURDIR"
14058   has_colon=`$ECHO $path | $GREP ^.:`
14059   new_path="$path"
14060   if test "x$has_colon" = x; then
14061     # Not in mixed or Windows style, start by that.
14062     new_path=`cmd //c echo $path`
14063   fi
14064 
14065 
14066   input_path="$new_path"
14067   # Check if we need to convert this using DOS-style short mode. If the path
14068   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14069   # take no chances and rewrite it.
14070   # Note: m4 eats our [], so we need to use [ and ] instead.
14071   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14072   if test "x$has_forbidden_chars" != x; then
14073     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14074     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14075   fi
14076 
14077 
14078   windows_path="$new_path"
14079   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14080     unix_path=`$CYGPATH -u "$windows_path"`
14081     new_path="$unix_path"
14082   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14083     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14084     new_path="$unix_path"
14085   fi
14086 
14087   if test "x$path" != "x$new_path"; then
14088     CURDIR="$new_path"
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14090 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14091   fi
14092 
14093   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14094   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14095 
14096   else
14097     # We're on a posix platform. Hooray! :)
14098     path="$CURDIR"
14099     has_space=`$ECHO "$path" | $GREP " "`
14100     if test "x$has_space" != x; then
14101       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14102 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14103       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14104     fi
14105 
14106     # Use eval to expand a potential ~
14107     eval path="$path"
14108     if test ! -f "$path" && test ! -d "$path"; then
14109       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14110     fi
14111 
14112     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14113   fi
14114 
14115 
14116   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14117 
14118   # Input might be given as Windows format, start by converting to
14119   # unix format.
14120   path="$TOPDIR"
14121   new_path=`$CYGPATH -u "$path"`
14122 
14123   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14124   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14125   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14126   # "foo.exe" is OK but "foo" is an error.
14127   #
14128   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14129   # It is also a way to make sure we got the proper file name for the real test later on.
14130   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14131   if test "x$test_shortpath" = x; then
14132     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14133 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14134     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14135   fi
14136 
14137   # Call helper function which possibly converts this using DOS-style short mode.
14138   # If so, the updated path is stored in $new_path.
14139 
14140   input_path="$new_path"
14141   # Check if we need to convert this using DOS-style short mode. If the path
14142   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14143   # take no chances and rewrite it.
14144   # Note: m4 eats our [], so we need to use [ and ] instead.
14145   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14146   if test "x$has_forbidden_chars" != x; then
14147     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14148     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14149     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14150     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14151       # Going to short mode and back again did indeed matter. Since short mode is
14152       # case insensitive, let's make it lowercase to improve readability.
14153       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14154       # Now convert it back to Unix-stile (cygpath)
14155       input_path=`$CYGPATH -u "$shortmode_path"`
14156       new_path="$input_path"
14157     fi
14158   fi
14159 
14160   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14161   if test "x$test_cygdrive_prefix" = x; then
14162     # As a simple fix, exclude /usr/bin since it's not a real path.
14163     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14164       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14165       # a path prefixed by /cygdrive for fixpath to work.
14166       new_path="$CYGWIN_ROOT_PATH$input_path"
14167     fi
14168   fi
14169 
14170 
14171   if test "x$path" != "x$new_path"; then
14172     TOPDIR="$new_path"
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14174 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14175   fi
14176 
14177   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14178 
14179   path="$TOPDIR"
14180   has_colon=`$ECHO $path | $GREP ^.:`
14181   new_path="$path"
14182   if test "x$has_colon" = x; then
14183     # Not in mixed or Windows style, start by that.
14184     new_path=`cmd //c echo $path`
14185   fi
14186 
14187 
14188   input_path="$new_path"
14189   # Check if we need to convert this using DOS-style short mode. If the path
14190   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14191   # take no chances and rewrite it.
14192   # Note: m4 eats our [], so we need to use [ and ] instead.
14193   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14194   if test "x$has_forbidden_chars" != x; then
14195     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14196     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14197   fi
14198 
14199 
14200   windows_path="$new_path"
14201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14202     unix_path=`$CYGPATH -u "$windows_path"`
14203     new_path="$unix_path"
14204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14206     new_path="$unix_path"
14207   fi
14208 
14209   if test "x$path" != "x$new_path"; then
14210     TOPDIR="$new_path"
14211     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14212 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14213   fi
14214 
14215   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14216   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14217 
14218   else
14219     # We're on a posix platform. Hooray! :)
14220     path="$TOPDIR"
14221     has_space=`$ECHO "$path" | $GREP " "`
14222     if test "x$has_space" != x; then
14223       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14224 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14225       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14226     fi
14227 
14228     # Use eval to expand a potential ~
14229     eval path="$path"
14230     if test ! -f "$path" && test ! -d "$path"; then
14231       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14232     fi
14233 
14234     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14235   fi
14236 
14237   # SRC_ROOT is a traditional alias for TOPDIR.
14238   SRC_ROOT=$TOPDIR
14239 
14240   # Locate the directory of this script.
14241   AUTOCONF_DIR=$TOPDIR/common/autoconf
14242 
14243   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14244     # Add extra search paths on solaris for utilities like ar and as etc...
14245     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14246   fi
14247 
14248   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14249   # is not correct.
14250 
14251 # Check whether --with-sys-root was given.
14252 if test "${with_sys_root+set}" = set; then :
14253   withval=$with_sys_root;
14254 fi
14255 
14256 
14257   if test "x$with_sys_root" != x; then
14258     SYS_ROOT=$with_sys_root
14259   else
14260     SYS_ROOT=/
14261   fi
14262 
14263 
14264 
14265 # Check whether --with-tools-dir was given.
14266 if test "${with_tools_dir+set}" = set; then :
14267   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14268 
14269 fi
14270 
14271 
14272 
14273 # Check whether --with-devkit was given.
14274 if test "${with_devkit+set}" = set; then :
14275   withval=$with_devkit;
14276         if test "x$with_sys_root" != x; then
14277           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14278         fi
14279 
14280   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14281 
14282   # Input might be given as Windows format, start by converting to
14283   # unix format.
14284   path="$with_devkit"
14285   new_path=`$CYGPATH -u "$path"`
14286 
14287   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14288   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14289   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14290   # "foo.exe" is OK but "foo" is an error.
14291   #
14292   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14293   # It is also a way to make sure we got the proper file name for the real test later on.
14294   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14295   if test "x$test_shortpath" = x; then
14296     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14297 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14298     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14299   fi
14300 
14301   # Call helper function which possibly converts this using DOS-style short mode.
14302   # If so, the updated path is stored in $new_path.
14303 
14304   input_path="$new_path"
14305   # Check if we need to convert this using DOS-style short mode. If the path
14306   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14307   # take no chances and rewrite it.
14308   # Note: m4 eats our [], so we need to use [ and ] instead.
14309   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14310   if test "x$has_forbidden_chars" != x; then
14311     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14312     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14313     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14314     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14315       # Going to short mode and back again did indeed matter. Since short mode is
14316       # case insensitive, let's make it lowercase to improve readability.
14317       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14318       # Now convert it back to Unix-stile (cygpath)
14319       input_path=`$CYGPATH -u "$shortmode_path"`
14320       new_path="$input_path"
14321     fi
14322   fi
14323 
14324   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14325   if test "x$test_cygdrive_prefix" = x; then
14326     # As a simple fix, exclude /usr/bin since it's not a real path.
14327     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14328       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14329       # a path prefixed by /cygdrive for fixpath to work.
14330       new_path="$CYGWIN_ROOT_PATH$input_path"
14331     fi
14332   fi
14333 
14334 
14335   if test "x$path" != "x$new_path"; then
14336     with_devkit="$new_path"
14337     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14338 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14339   fi
14340 
14341   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14342 
14343   path="$with_devkit"
14344   has_colon=`$ECHO $path | $GREP ^.:`
14345   new_path="$path"
14346   if test "x$has_colon" = x; then
14347     # Not in mixed or Windows style, start by that.
14348     new_path=`cmd //c echo $path`
14349   fi
14350 
14351 
14352   input_path="$new_path"
14353   # Check if we need to convert this using DOS-style short mode. If the path
14354   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14355   # take no chances and rewrite it.
14356   # Note: m4 eats our [], so we need to use [ and ] instead.
14357   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14358   if test "x$has_forbidden_chars" != x; then
14359     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14360     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14361   fi
14362 
14363 
14364   windows_path="$new_path"
14365   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14366     unix_path=`$CYGPATH -u "$windows_path"`
14367     new_path="$unix_path"
14368   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14369     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14370     new_path="$unix_path"
14371   fi
14372 
14373   if test "x$path" != "x$new_path"; then
14374     with_devkit="$new_path"
14375     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14376 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14377   fi
14378 
14379   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14380   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14381 
14382   else
14383     # We're on a posix platform. Hooray! :)
14384     path="$with_devkit"
14385     has_space=`$ECHO "$path" | $GREP " "`
14386     if test "x$has_space" != x; then
14387       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14388 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14389       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14390     fi
14391 
14392     # Use eval to expand a potential ~
14393     eval path="$path"
14394     if test ! -f "$path" && test ! -d "$path"; then
14395       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14396     fi
14397 
14398     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14399   fi
14400 
14401 
14402   if test "x$TOOLS_DIR" = x; then
14403     TOOLS_DIR="$with_devkit/bin"
14404   else
14405     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14406   fi
14407 
14408         if test -d "$with_devkit/$host_alias/libc"; then
14409           SYS_ROOT=$with_devkit/$host_alias/libc
14410         elif test -d "$with_devkit/$host/sys-root"; then
14411           SYS_ROOT=$with_devkit/$host/sys-root
14412         fi
14413 
14414 fi
14415 
14416 
14417 
14418   # Setup default logging of stdout and stderr to build.log in the output root.
14419   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14420   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14421   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14422 
14423 
14424 
14425 
14426 
14427 # Check if it's a pure open build or if custom sources are to be used.
14428 
14429   # Check whether --enable-openjdk-only was given.
14430 if test "${enable_openjdk_only+set}" = set; then :
14431   enableval=$enable_openjdk_only;
14432 else
14433   enable_openjdk_only="no"
14434 fi
14435 
14436 
14437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14438 $as_echo_n "checking for presence of closed sources... " >&6; }
14439   if test -d "$SRC_ROOT/jdk/src/closed"; then
14440     CLOSED_SOURCE_PRESENT=yes
14441   else
14442     CLOSED_SOURCE_PRESENT=no
14443   fi
14444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14445 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14446 
14447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14448 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14449   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14451 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14452 
14453   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14454     OPENJDK=true
14455     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14456       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14457 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14458     fi
14459   else
14460     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14461       OPENJDK=true
14462     else
14463       OPENJDK=false
14464     fi
14465   fi
14466 
14467   if test "x$OPENJDK" = "xtrue"; then
14468     SET_OPENJDK="OPENJDK=true"
14469   fi
14470 
14471 
14472 
14473   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14474   # the IncludeCustomExtension macro.
14475 
14476 
14477 # Check whether --with-custom-make-dir was given.
14478 if test "${with_custom_make_dir+set}" = set; then :
14479   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
14480 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14481 fi
14482 
14483 
14484 
14485 
14486 # These are needed to be able to create a configuration name (and thus the output directory)
14487 
14488   ###############################################################################
14489   #
14490   # Check which variant of the JDK that we want to build.
14491   # Currently we have:
14492   #    normal:   standard edition
14493   # but the custom make system may add other variants
14494   #
14495   # Effectively the JDK variant gives a name to a specific set of
14496   # modules to compile into the JDK. In the future, these modules
14497   # might even be Jigsaw modules.
14498   #
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14500 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14501 
14502 # Check whether --with-jdk-variant was given.
14503 if test "${with_jdk_variant+set}" = set; then :
14504   withval=$with_jdk_variant;
14505 fi
14506 
14507 
14508   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14509     JDK_VARIANT="normal"
14510   else
14511     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14512   fi
14513 
14514 
14515 
14516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14517 $as_echo "$JDK_VARIANT" >&6; }
14518 
14519 
14520 ###############################################################################
14521 #
14522 # Check which interpreter of the JVM we want to build.
14523 # Currently we have:
14524 #    template: Template interpreter (the default)
14525 #    cpp     : C++ interpreter
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14527 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14528 
14529 # Check whether --with-jvm-interpreter was given.
14530 if test "${with_jvm_interpreter+set}" = set; then :
14531   withval=$with_jvm_interpreter;
14532 fi
14533 
14534 
14535 if test "x$with_jvm_interpreter" = x; then
14536      with_jvm_interpreter="template"
14537 fi
14538 
14539 JVM_INTERPRETER="$with_jvm_interpreter"
14540 
14541 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14542    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14543 fi
14544 
14545 
14546 
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14548 $as_echo "$with_jvm_interpreter" >&6; }
14549 
14550 
14551 
14552   ###############################################################################
14553   #
14554   # Check which variants of the JVM that we want to build.
14555   # Currently we have:
14556   #    server: normal interpreter and a tiered C1/C2 compiler
14557   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14558   #    minimal1: reduced form of client with optional VM services and features stripped out
14559   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14560   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14561   #    zero: no machine code interpreter, no compiler
14562   #    zeroshark: zero interpreter and shark/llvm compiler backend
14563 #    core: interpreter only, no compiler (only works on some platforms)
14564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14565 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14566 
14567 # Check whether --with-jvm-variants was given.
14568 if test "${with_jvm_variants+set}" = set; then :
14569   withval=$with_jvm_variants;
14570 fi
14571 
14572 
14573   if test "x$with_jvm_variants" = x; then
14574     with_jvm_variants="server"
14575   fi
14576 
14577   JVM_VARIANTS=",$with_jvm_variants,"
14578   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,//'`
14579 
14580   if test "x$TEST_VARIANTS" != "x,"; then
14581      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14582   fi
14583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14584 $as_echo "$with_jvm_variants" >&6; }
14585 
14586   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14587   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14588   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14589   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14590   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14591   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14592   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14593 
14594   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14595     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14596       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14597     fi
14598   fi
14599   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14600     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14601       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14602     fi
14603   fi
14604   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14605     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14606       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14607     fi
14608   fi
14609 
14610   # Replace the commas with AND for use in the build directory name.
14611   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14612   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/'`
14613   if test "x$COUNT_VARIANTS" != "x,1"; then
14614     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14615   else
14616     BUILDING_MULTIPLE_JVM_VARIANTS=no
14617   fi
14618 
14619 
14620 
14621 
14622 
14623 
14624 
14625 
14626 
14627 
14628   INCLUDE_SA=true
14629   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14630     INCLUDE_SA=false
14631   fi
14632   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14633     INCLUDE_SA=false
14634   fi
14635   if test "x$VAR_CPU" = xppc64 ; then
14636     INCLUDE_SA=false
14637   fi
14638 
14639 
14640   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14641     MACOSX_UNIVERSAL="true"
14642   fi
14643 
14644 
14645 
14646 
14647   ###############################################################################
14648   #
14649   # Set the debug level
14650   #    release: no debug information, all optimizations, no asserts.
14651   #    fastdebug: debug information (-g), all optimizations, all asserts
14652   #    slowdebug: debug information (-g), no optimizations, all asserts
14653   #
14654   DEBUG_LEVEL="release"
14655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14656 $as_echo_n "checking which debug level to use... " >&6; }
14657   # Check whether --enable-debug was given.
14658 if test "${enable_debug+set}" = set; then :
14659   enableval=$enable_debug;
14660         ENABLE_DEBUG="${enableval}"
14661         DEBUG_LEVEL="fastdebug"
14662 
14663 else
14664   ENABLE_DEBUG="no"
14665 fi
14666 
14667 
14668 
14669 # Check whether --with-debug-level was given.
14670 if test "${with_debug_level+set}" = set; then :
14671   withval=$with_debug_level;
14672         DEBUG_LEVEL="${withval}"
14673         if test "x$ENABLE_DEBUG" = xyes; then
14674           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14675         fi
14676 
14677 fi
14678 
14679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14680 $as_echo "$DEBUG_LEVEL" >&6; }
14681 
14682   if test "x$DEBUG_LEVEL" != xrelease && \
14683       test "x$DEBUG_LEVEL" != xfastdebug && \
14684       test "x$DEBUG_LEVEL" != xslowdebug; then
14685     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14686   fi
14687 
14688 
14689   ###############################################################################
14690   #
14691   # Setup legacy vars/targets and new vars to deal with different debug levels.
14692   #
14693 
14694   case $DEBUG_LEVEL in
14695     release )
14696       VARIANT="OPT"
14697       FASTDEBUG="false"
14698       DEBUG_CLASSFILES="false"
14699       BUILD_VARIANT_RELEASE=""
14700       HOTSPOT_DEBUG_LEVEL="product"
14701       HOTSPOT_EXPORT="product"
14702       ;;
14703     fastdebug )
14704       VARIANT="DBG"
14705       FASTDEBUG="true"
14706       DEBUG_CLASSFILES="true"
14707       BUILD_VARIANT_RELEASE="-fastdebug"
14708       HOTSPOT_DEBUG_LEVEL="fastdebug"
14709       HOTSPOT_EXPORT="fastdebug"
14710       ;;
14711     slowdebug )
14712       VARIANT="DBG"
14713       FASTDEBUG="false"
14714       DEBUG_CLASSFILES="true"
14715       BUILD_VARIANT_RELEASE="-debug"
14716       HOTSPOT_DEBUG_LEVEL="jvmg"
14717       HOTSPOT_EXPORT="debug"
14718       ;;
14719   esac
14720 
14721   #####
14722   # Generate the legacy makefile targets for hotspot.
14723   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14724   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14725   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14726   # But until then ...
14727   HOTSPOT_TARGET=""
14728 
14729   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14730     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14731   fi
14732 
14733   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14734     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14735   fi
14736 
14737   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14738     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14739   fi
14740 
14741   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14742     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14743   fi
14744 
14745   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14746     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14747   fi
14748 
14749   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14750     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14751   fi
14752 
14753   if test "x$JVM_VARIANT_CORE" = xtrue; then
14754     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14755   fi
14756 
14757   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14758 
14759   # On Macosx universal binaries are produced, but they only contain
14760   # 64 bit intel. This invalidates control of which jvms are built
14761   # from configure, but only server is valid anyway. Fix this
14762   # when hotspot makefiles are rewritten.
14763   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14764     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14765   fi
14766 
14767   #####
14768 
14769 
14770 
14771 
14772 
14773 
14774 
14775 
14776 # With basic setup done, call the custom early hook.
14777 
14778 
14779 # To properly create a configuration name, we need to have the OpenJDK target
14780 # and options (variants and debug level) parsed.
14781 
14782 
14783 
14784 # Check whether --with-conf-name was given.
14785 if test "${with_conf_name+set}" = set; then :
14786   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14787 fi
14788 
14789 
14790   # Test from where we are running configure, in or outside of src root.
14791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14792 $as_echo_n "checking where to store configuration... " >&6; }
14793   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14794       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14795       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14796     # We are running configure from the src root.
14797     # Create a default ./build/target-variant-debuglevel output root.
14798     if test "x${CONF_NAME}" = x; then
14799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14800 $as_echo "in default location" >&6; }
14801       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14802     else
14803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
14804 $as_echo "in build directory with custom name" >&6; }
14805     fi
14806     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14807     $MKDIR -p "$OUTPUT_ROOT"
14808     if test ! -d "$OUTPUT_ROOT"; then
14809       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14810     fi
14811   else
14812     # We are running configure from outside of the src dir.
14813     # Then use the current directory as output dir!
14814     # If configuration is situated in normal build directory, just use the build
14815     # directory name as configuration name, otherwise use the complete path.
14816     if test "x${CONF_NAME}" = x; then
14817       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14818     fi
14819     OUTPUT_ROOT="$CURDIR"
14820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
14821 $as_echo "in current directory" >&6; }
14822 
14823     # WARNING: This might be a bad thing to do. You need to be sure you want to
14824     # have a configuration in this directory. Do some sanity checks!
14825 
14826     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14827       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14828       # other files
14829       files_present=`$LS $OUTPUT_ROOT`
14830       # Configure has already touched config.log and confdefs.h in the current dir when this check
14831       # is performed.
14832       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14833       | $TR -d '\n'`
14834       if test "x$filtered_files" != x; then
14835         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14836 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14837         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14838 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14839         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14840 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14841         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14842 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14843         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14844 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14845         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14846 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14847         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14848 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14849         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14850       fi
14851     fi
14852   fi
14853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14854 $as_echo_n "checking what configuration name to use... " >&6; }
14855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14856 $as_echo "$CONF_NAME" >&6; }
14857 
14858 
14859   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14860 
14861   # Input might be given as Windows format, start by converting to
14862   # unix format.
14863   path="$OUTPUT_ROOT"
14864   new_path=`$CYGPATH -u "$path"`
14865 
14866   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14867   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14868   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14869   # "foo.exe" is OK but "foo" is an error.
14870   #
14871   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14872   # It is also a way to make sure we got the proper file name for the real test later on.
14873   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14874   if test "x$test_shortpath" = x; then
14875     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14876 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14877     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14878   fi
14879 
14880   # Call helper function which possibly converts this using DOS-style short mode.
14881   # If so, the updated path is stored in $new_path.
14882 
14883   input_path="$new_path"
14884   # Check if we need to convert this using DOS-style short mode. If the path
14885   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14886   # take no chances and rewrite it.
14887   # Note: m4 eats our [], so we need to use [ and ] instead.
14888   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14889   if test "x$has_forbidden_chars" != x; then
14890     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14891     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14892     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14893     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14894       # Going to short mode and back again did indeed matter. Since short mode is
14895       # case insensitive, let's make it lowercase to improve readability.
14896       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14897       # Now convert it back to Unix-stile (cygpath)
14898       input_path=`$CYGPATH -u "$shortmode_path"`
14899       new_path="$input_path"
14900     fi
14901   fi
14902 
14903   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14904   if test "x$test_cygdrive_prefix" = x; then
14905     # As a simple fix, exclude /usr/bin since it's not a real path.
14906     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14907       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14908       # a path prefixed by /cygdrive for fixpath to work.
14909       new_path="$CYGWIN_ROOT_PATH$input_path"
14910     fi
14911   fi
14912 
14913 
14914   if test "x$path" != "x$new_path"; then
14915     OUTPUT_ROOT="$new_path"
14916     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14917 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14918   fi
14919 
14920   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14921 
14922   path="$OUTPUT_ROOT"
14923   has_colon=`$ECHO $path | $GREP ^.:`
14924   new_path="$path"
14925   if test "x$has_colon" = x; then
14926     # Not in mixed or Windows style, start by that.
14927     new_path=`cmd //c echo $path`
14928   fi
14929 
14930 
14931   input_path="$new_path"
14932   # Check if we need to convert this using DOS-style short mode. If the path
14933   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14934   # take no chances and rewrite it.
14935   # Note: m4 eats our [], so we need to use [ and ] instead.
14936   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14937   if test "x$has_forbidden_chars" != x; then
14938     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14939     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14940   fi
14941 
14942 
14943   windows_path="$new_path"
14944   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14945     unix_path=`$CYGPATH -u "$windows_path"`
14946     new_path="$unix_path"
14947   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14948     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14949     new_path="$unix_path"
14950   fi
14951 
14952   if test "x$path" != "x$new_path"; then
14953     OUTPUT_ROOT="$new_path"
14954     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14955 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14956   fi
14957 
14958   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14959   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14960 
14961   else
14962     # We're on a posix platform. Hooray! :)
14963     path="$OUTPUT_ROOT"
14964     has_space=`$ECHO "$path" | $GREP " "`
14965     if test "x$has_space" != x; then
14966       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14967 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14968       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14969     fi
14970 
14971     # Use eval to expand a potential ~
14972     eval path="$path"
14973     if test ! -f "$path" && test ! -d "$path"; then
14974       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14975     fi
14976 
14977     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14978   fi
14979 
14980 
14981   SPEC=$OUTPUT_ROOT/spec.gmk
14982 
14983   CONF_NAME=$CONF_NAME
14984 
14985   OUTPUT_ROOT=$OUTPUT_ROOT
14986 
14987 
14988   # Most of the probed defines are put into config.h
14989   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14990 
14991   # The spec.gmk file contains all variables for the make system.
14992   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14993 
14994   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14995   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14996 
14997   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14998   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14999 
15000   # The compare.sh is used to compare the build output to other builds.
15001   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15002 
15003   # Spec.sh is currently used by compare-objects.sh
15004   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15005 
15006   # The generated Makefile knows where the spec.gmk is and where the source is.
15007   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15008   # which will look for generated configurations
15009   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15010 
15011 
15012 
15013 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15014 
15015   for ac_prog in apt-get yum port pkgutil pkgadd
15016 do
15017   # Extract the first word of "$ac_prog", so it can be a program name with args.
15018 set dummy $ac_prog; ac_word=$2
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15020 $as_echo_n "checking for $ac_word... " >&6; }
15021 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15022   $as_echo_n "(cached) " >&6
15023 else
15024   if test -n "$PKGHANDLER"; then
15025   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15026 else
15027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15028 for as_dir in $PATH
15029 do
15030   IFS=$as_save_IFS
15031   test -z "$as_dir" && as_dir=.
15032     for ac_exec_ext in '' $ac_executable_extensions; do
15033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15034     ac_cv_prog_PKGHANDLER="$ac_prog"
15035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15036     break 2
15037   fi
15038 done
15039   done
15040 IFS=$as_save_IFS
15041 
15042 fi
15043 fi
15044 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15045 if test -n "$PKGHANDLER"; then
15046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15047 $as_echo "$PKGHANDLER" >&6; }
15048 else
15049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15051 fi
15052 
15053 
15054   test -n "$PKGHANDLER" && break
15055 done
15056 
15057 
15058 
15059 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15060 
15061 
15062   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15063   if test "x$MAKE" != x; then
15064     # User has supplied a make, test it.
15065     if test ! -f "$MAKE"; then
15066       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15067     fi
15068 
15069   MAKE_CANDIDATE=""$MAKE""
15070   DESCRIPTION="user supplied MAKE=$MAKE"
15071   if test "x$MAKE_CANDIDATE" != x; then
15072     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15073 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15074     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15075     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15076     if test "x$IS_GNU_MAKE" = x; then
15077       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15078 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15079     else
15080       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15081       if test "x$IS_MODERN_MAKE" = x; then
15082         { $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
15083 $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;}
15084       else
15085         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15086           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15087             MAKE_EXPECTED_ENV='cygwin'
15088           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15089             MAKE_EXPECTED_ENV='msys'
15090           else
15091             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15092           fi
15093           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15094           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15095         else
15096           # Not relevant for non-Windows
15097           IS_MAKE_CORRECT_ENV=true
15098         fi
15099         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15100           { $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
15101 $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;}
15102         else
15103           FOUND_MAKE=$MAKE_CANDIDATE
15104 
15105   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15106 
15107   # First separate the path from the arguments. This will split at the first
15108   # space.
15109   complete="$FOUND_MAKE"
15110   path="${complete%% *}"
15111   tmp="$complete EOL"
15112   arguments="${tmp#* }"
15113 
15114   # Input might be given as Windows format, start by converting to
15115   # unix format.
15116   new_path=`$CYGPATH -u "$path"`
15117 
15118   # Now try to locate executable using which
15119   new_path=`$WHICH "$new_path" 2> /dev/null`
15120   # bat and cmd files are not always considered executable in cygwin causing which
15121   # to not find them
15122   if test "x$new_path" = x \
15123       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15124       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15125     new_path=`$CYGPATH -u "$path"`
15126   fi
15127   if test "x$new_path" = x; then
15128     # Oops. Which didn't find the executable.
15129     # The splitting of arguments from the executable at a space might have been incorrect,
15130     # since paths with space are more likely in Windows. Give it another try with the whole
15131     # argument.
15132     path="$complete"
15133     arguments="EOL"
15134     new_path=`$CYGPATH -u "$path"`
15135     new_path=`$WHICH "$new_path" 2> /dev/null`
15136     # bat and cmd files are not always considered executable in cygwin causing which
15137     # to not find them
15138     if test "x$new_path" = x \
15139         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15140         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15141       new_path=`$CYGPATH -u "$path"`
15142     fi
15143     if test "x$new_path" = x; then
15144       # It's still not found. Now this is an unrecoverable error.
15145       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15146 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15147       has_space=`$ECHO "$complete" | $GREP " "`
15148       if test "x$has_space" != x; then
15149         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15150 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15151       fi
15152       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15153     fi
15154   fi
15155 
15156   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15157   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15158   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15159   # "foo.exe" is OK but "foo" is an error.
15160   #
15161   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15162   # It is also a way to make sure we got the proper file name for the real test later on.
15163   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15164   if test "x$test_shortpath" = x; then
15165     # Short path failed, file does not exist as specified.
15166     # Try adding .exe or .cmd
15167     if test -f "${new_path}.exe"; then
15168       input_to_shortpath="${new_path}.exe"
15169     elif test -f "${new_path}.cmd"; then
15170       input_to_shortpath="${new_path}.cmd"
15171     else
15172       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15173 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15174       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15175 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15176       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15177     fi
15178   else
15179     input_to_shortpath="$new_path"
15180   fi
15181 
15182   # Call helper function which possibly converts this using DOS-style short mode.
15183   # If so, the updated path is stored in $new_path.
15184   new_path="$input_to_shortpath"
15185 
15186   input_path="$input_to_shortpath"
15187   # Check if we need to convert this using DOS-style short mode. If the path
15188   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15189   # take no chances and rewrite it.
15190   # Note: m4 eats our [], so we need to use [ and ] instead.
15191   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15192   if test "x$has_forbidden_chars" != x; then
15193     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15194     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15195     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15196     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15197       # Going to short mode and back again did indeed matter. Since short mode is
15198       # case insensitive, let's make it lowercase to improve readability.
15199       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15200       # Now convert it back to Unix-stile (cygpath)
15201       input_path=`$CYGPATH -u "$shortmode_path"`
15202       new_path="$input_path"
15203     fi
15204   fi
15205 
15206   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15207   if test "x$test_cygdrive_prefix" = x; then
15208     # As a simple fix, exclude /usr/bin since it's not a real path.
15209     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15210       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15211       # a path prefixed by /cygdrive for fixpath to work.
15212       new_path="$CYGWIN_ROOT_PATH$input_path"
15213     fi
15214   fi
15215 
15216   # remove trailing .exe if any
15217   new_path="${new_path/%.exe/}"
15218 
15219   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15220 
15221   # First separate the path from the arguments. This will split at the first
15222   # space.
15223   complete="$FOUND_MAKE"
15224   path="${complete%% *}"
15225   tmp="$complete EOL"
15226   arguments="${tmp#* }"
15227 
15228   # Input might be given as Windows format, start by converting to
15229   # unix format.
15230   new_path="$path"
15231 
15232   windows_path="$new_path"
15233   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15234     unix_path=`$CYGPATH -u "$windows_path"`
15235     new_path="$unix_path"
15236   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15237     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15238     new_path="$unix_path"
15239   fi
15240 
15241 
15242   # Now try to locate executable using which
15243   new_path=`$WHICH "$new_path" 2> /dev/null`
15244 
15245   if test "x$new_path" = x; then
15246     # Oops. Which didn't find the executable.
15247     # The splitting of arguments from the executable at a space might have been incorrect,
15248     # since paths with space are more likely in Windows. Give it another try with the whole
15249     # argument.
15250     path="$complete"
15251     arguments="EOL"
15252     new_path="$path"
15253 
15254   windows_path="$new_path"
15255   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15256     unix_path=`$CYGPATH -u "$windows_path"`
15257     new_path="$unix_path"
15258   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15259     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15260     new_path="$unix_path"
15261   fi
15262 
15263 
15264     new_path=`$WHICH "$new_path" 2> /dev/null`
15265 
15266     if test "x$new_path" = x; then
15267       # It's still not found. Now this is an unrecoverable error.
15268       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15269 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15270       has_space=`$ECHO "$complete" | $GREP " "`
15271       if test "x$has_space" != x; then
15272         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15273 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15274       fi
15275       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15276     fi
15277   fi
15278 
15279   # Now new_path has a complete unix path to the binary
15280   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15281     # Keep paths in /bin as-is, but remove trailing .exe if any
15282     new_path="${new_path/%.exe/}"
15283     # Do not save /bin paths to all_fixpath_prefixes!
15284   else
15285     # Not in mixed or Windows style, start by that.
15286     new_path=`cmd //c echo $new_path`
15287 
15288   input_path="$new_path"
15289   # Check if we need to convert this using DOS-style short mode. If the path
15290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15291   # take no chances and rewrite it.
15292   # Note: m4 eats our [], so we need to use [ and ] instead.
15293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15294   if test "x$has_forbidden_chars" != x; then
15295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15296     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15297   fi
15298 
15299     # Output is in $new_path
15300 
15301   windows_path="$new_path"
15302   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15303     unix_path=`$CYGPATH -u "$windows_path"`
15304     new_path="$unix_path"
15305   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15306     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15307     new_path="$unix_path"
15308   fi
15309 
15310     # remove trailing .exe if any
15311     new_path="${new_path/%.exe/}"
15312 
15313     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15314     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15315   fi
15316 
15317   else
15318     # We're on a posix platform. Hooray! :)
15319     # First separate the path from the arguments. This will split at the first
15320     # space.
15321     complete="$FOUND_MAKE"
15322     path="${complete%% *}"
15323     tmp="$complete EOL"
15324     arguments="${tmp#* }"
15325 
15326     # Cannot rely on the command "which" here since it doesn't always work.
15327     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15328     if test -z "$is_absolute_path"; then
15329       # Path to executable is not absolute. Find it.
15330       IFS_save="$IFS"
15331       IFS=:
15332       for p in $PATH; do
15333         if test -f "$p/$path" && test -x "$p/$path"; then
15334           new_path="$p/$path"
15335           break
15336         fi
15337       done
15338       IFS="$IFS_save"
15339     else
15340       # This is an absolute path, we can use it without further modifications.
15341       new_path="$path"
15342     fi
15343 
15344     if test "x$new_path" = x; then
15345       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15346 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15347       has_space=`$ECHO "$complete" | $GREP " "`
15348       if test "x$has_space" != x; then
15349         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15350 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15351       fi
15352       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15353     fi
15354   fi
15355 
15356   # Now join together the path and the arguments once again
15357   if test "x$arguments" != xEOL; then
15358     new_complete="$new_path ${arguments% *}"
15359   else
15360     new_complete="$new_path"
15361   fi
15362 
15363   if test "x$complete" != "x$new_complete"; then
15364     FOUND_MAKE="$new_complete"
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15366 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15367   fi
15368 
15369         fi
15370       fi
15371     fi
15372   fi
15373 
15374     if test "x$FOUND_MAKE" = x; then
15375       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15376     fi
15377   else
15378     # Try our hardest to locate a correct version of GNU make
15379     for ac_prog in gmake
15380 do
15381   # Extract the first word of "$ac_prog", so it can be a program name with args.
15382 set dummy $ac_prog; ac_word=$2
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15384 $as_echo_n "checking for $ac_word... " >&6; }
15385 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15386   $as_echo_n "(cached) " >&6
15387 else
15388   case $CHECK_GMAKE in
15389   [\\/]* | ?:[\\/]*)
15390   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15391   ;;
15392   *)
15393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15394 for as_dir in $PATH
15395 do
15396   IFS=$as_save_IFS
15397   test -z "$as_dir" && as_dir=.
15398     for ac_exec_ext in '' $ac_executable_extensions; do
15399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15400     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15402     break 2
15403   fi
15404 done
15405   done
15406 IFS=$as_save_IFS
15407 
15408   ;;
15409 esac
15410 fi
15411 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15412 if test -n "$CHECK_GMAKE"; then
15413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15414 $as_echo "$CHECK_GMAKE" >&6; }
15415 else
15416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 $as_echo "no" >&6; }
15418 fi
15419 
15420 
15421   test -n "$CHECK_GMAKE" && break
15422 done
15423 
15424 
15425   MAKE_CANDIDATE=""$CHECK_GMAKE""
15426   DESCRIPTION="gmake in PATH"
15427   if test "x$MAKE_CANDIDATE" != x; then
15428     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15429 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15430     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15431     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15432     if test "x$IS_GNU_MAKE" = x; then
15433       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15434 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15435     else
15436       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15437       if test "x$IS_MODERN_MAKE" = x; then
15438         { $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
15439 $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;}
15440       else
15441         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15442           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15443             MAKE_EXPECTED_ENV='cygwin'
15444           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15445             MAKE_EXPECTED_ENV='msys'
15446           else
15447             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15448           fi
15449           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15450           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15451         else
15452           # Not relevant for non-Windows
15453           IS_MAKE_CORRECT_ENV=true
15454         fi
15455         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15456           { $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
15457 $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;}
15458         else
15459           FOUND_MAKE=$MAKE_CANDIDATE
15460 
15461   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15462 
15463   # First separate the path from the arguments. This will split at the first
15464   # space.
15465   complete="$FOUND_MAKE"
15466   path="${complete%% *}"
15467   tmp="$complete EOL"
15468   arguments="${tmp#* }"
15469 
15470   # Input might be given as Windows format, start by converting to
15471   # unix format.
15472   new_path=`$CYGPATH -u "$path"`
15473 
15474   # Now try to locate executable using which
15475   new_path=`$WHICH "$new_path" 2> /dev/null`
15476   # bat and cmd files are not always considered executable in cygwin causing which
15477   # to not find them
15478   if test "x$new_path" = x \
15479       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15480       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15481     new_path=`$CYGPATH -u "$path"`
15482   fi
15483   if test "x$new_path" = x; then
15484     # Oops. Which didn't find the executable.
15485     # The splitting of arguments from the executable at a space might have been incorrect,
15486     # since paths with space are more likely in Windows. Give it another try with the whole
15487     # argument.
15488     path="$complete"
15489     arguments="EOL"
15490     new_path=`$CYGPATH -u "$path"`
15491     new_path=`$WHICH "$new_path" 2> /dev/null`
15492     # bat and cmd files are not always considered executable in cygwin causing which
15493     # to not find them
15494     if test "x$new_path" = x \
15495         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15496         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15497       new_path=`$CYGPATH -u "$path"`
15498     fi
15499     if test "x$new_path" = x; then
15500       # It's still not found. Now this is an unrecoverable error.
15501       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15502 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15503       has_space=`$ECHO "$complete" | $GREP " "`
15504       if test "x$has_space" != x; then
15505         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15506 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15507       fi
15508       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15509     fi
15510   fi
15511 
15512   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15513   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15514   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15515   # "foo.exe" is OK but "foo" is an error.
15516   #
15517   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15518   # It is also a way to make sure we got the proper file name for the real test later on.
15519   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15520   if test "x$test_shortpath" = x; then
15521     # Short path failed, file does not exist as specified.
15522     # Try adding .exe or .cmd
15523     if test -f "${new_path}.exe"; then
15524       input_to_shortpath="${new_path}.exe"
15525     elif test -f "${new_path}.cmd"; then
15526       input_to_shortpath="${new_path}.cmd"
15527     else
15528       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15529 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15530       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15531 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15532       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15533     fi
15534   else
15535     input_to_shortpath="$new_path"
15536   fi
15537 
15538   # Call helper function which possibly converts this using DOS-style short mode.
15539   # If so, the updated path is stored in $new_path.
15540   new_path="$input_to_shortpath"
15541 
15542   input_path="$input_to_shortpath"
15543   # Check if we need to convert this using DOS-style short mode. If the path
15544   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15545   # take no chances and rewrite it.
15546   # Note: m4 eats our [], so we need to use [ and ] instead.
15547   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15548   if test "x$has_forbidden_chars" != x; then
15549     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15550     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15551     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15552     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15553       # Going to short mode and back again did indeed matter. Since short mode is
15554       # case insensitive, let's make it lowercase to improve readability.
15555       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15556       # Now convert it back to Unix-stile (cygpath)
15557       input_path=`$CYGPATH -u "$shortmode_path"`
15558       new_path="$input_path"
15559     fi
15560   fi
15561 
15562   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15563   if test "x$test_cygdrive_prefix" = x; then
15564     # As a simple fix, exclude /usr/bin since it's not a real path.
15565     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15566       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15567       # a path prefixed by /cygdrive for fixpath to work.
15568       new_path="$CYGWIN_ROOT_PATH$input_path"
15569     fi
15570   fi
15571 
15572   # remove trailing .exe if any
15573   new_path="${new_path/%.exe/}"
15574 
15575   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15576 
15577   # First separate the path from the arguments. This will split at the first
15578   # space.
15579   complete="$FOUND_MAKE"
15580   path="${complete%% *}"
15581   tmp="$complete EOL"
15582   arguments="${tmp#* }"
15583 
15584   # Input might be given as Windows format, start by converting to
15585   # unix format.
15586   new_path="$path"
15587 
15588   windows_path="$new_path"
15589   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15590     unix_path=`$CYGPATH -u "$windows_path"`
15591     new_path="$unix_path"
15592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15593     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15594     new_path="$unix_path"
15595   fi
15596 
15597 
15598   # Now try to locate executable using which
15599   new_path=`$WHICH "$new_path" 2> /dev/null`
15600 
15601   if test "x$new_path" = x; then
15602     # Oops. Which didn't find the executable.
15603     # The splitting of arguments from the executable at a space might have been incorrect,
15604     # since paths with space are more likely in Windows. Give it another try with the whole
15605     # argument.
15606     path="$complete"
15607     arguments="EOL"
15608     new_path="$path"
15609 
15610   windows_path="$new_path"
15611   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15612     unix_path=`$CYGPATH -u "$windows_path"`
15613     new_path="$unix_path"
15614   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15615     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15616     new_path="$unix_path"
15617   fi
15618 
15619 
15620     new_path=`$WHICH "$new_path" 2> /dev/null`
15621 
15622     if test "x$new_path" = x; then
15623       # It's still not found. Now this is an unrecoverable error.
15624       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15625 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15626       has_space=`$ECHO "$complete" | $GREP " "`
15627       if test "x$has_space" != x; then
15628         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15629 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15630       fi
15631       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15632     fi
15633   fi
15634 
15635   # Now new_path has a complete unix path to the binary
15636   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15637     # Keep paths in /bin as-is, but remove trailing .exe if any
15638     new_path="${new_path/%.exe/}"
15639     # Do not save /bin paths to all_fixpath_prefixes!
15640   else
15641     # Not in mixed or Windows style, start by that.
15642     new_path=`cmd //c echo $new_path`
15643 
15644   input_path="$new_path"
15645   # Check if we need to convert this using DOS-style short mode. If the path
15646   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15647   # take no chances and rewrite it.
15648   # Note: m4 eats our [], so we need to use [ and ] instead.
15649   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15650   if test "x$has_forbidden_chars" != x; then
15651     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15652     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15653   fi
15654 
15655     # Output is in $new_path
15656 
15657   windows_path="$new_path"
15658   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15659     unix_path=`$CYGPATH -u "$windows_path"`
15660     new_path="$unix_path"
15661   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15662     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15663     new_path="$unix_path"
15664   fi
15665 
15666     # remove trailing .exe if any
15667     new_path="${new_path/%.exe/}"
15668 
15669     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15670     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15671   fi
15672 
15673   else
15674     # We're on a posix platform. Hooray! :)
15675     # First separate the path from the arguments. This will split at the first
15676     # space.
15677     complete="$FOUND_MAKE"
15678     path="${complete%% *}"
15679     tmp="$complete EOL"
15680     arguments="${tmp#* }"
15681 
15682     # Cannot rely on the command "which" here since it doesn't always work.
15683     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15684     if test -z "$is_absolute_path"; then
15685       # Path to executable is not absolute. Find it.
15686       IFS_save="$IFS"
15687       IFS=:
15688       for p in $PATH; do
15689         if test -f "$p/$path" && test -x "$p/$path"; then
15690           new_path="$p/$path"
15691           break
15692         fi
15693       done
15694       IFS="$IFS_save"
15695     else
15696       # This is an absolute path, we can use it without further modifications.
15697       new_path="$path"
15698     fi
15699 
15700     if test "x$new_path" = x; then
15701       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15702 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15703       has_space=`$ECHO "$complete" | $GREP " "`
15704       if test "x$has_space" != x; then
15705         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15706 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15707       fi
15708       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15709     fi
15710   fi
15711 
15712   # Now join together the path and the arguments once again
15713   if test "x$arguments" != xEOL; then
15714     new_complete="$new_path ${arguments% *}"
15715   else
15716     new_complete="$new_path"
15717   fi
15718 
15719   if test "x$complete" != "x$new_complete"; then
15720     FOUND_MAKE="$new_complete"
15721     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15722 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15723   fi
15724 
15725         fi
15726       fi
15727     fi
15728   fi
15729 
15730 
15731     if test "x$FOUND_MAKE" = x; then
15732       for ac_prog in make
15733 do
15734   # Extract the first word of "$ac_prog", so it can be a program name with args.
15735 set dummy $ac_prog; ac_word=$2
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15737 $as_echo_n "checking for $ac_word... " >&6; }
15738 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15739   $as_echo_n "(cached) " >&6
15740 else
15741   case $CHECK_MAKE in
15742   [\\/]* | ?:[\\/]*)
15743   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15744   ;;
15745   *)
15746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15747 for as_dir in $PATH
15748 do
15749   IFS=$as_save_IFS
15750   test -z "$as_dir" && as_dir=.
15751     for ac_exec_ext in '' $ac_executable_extensions; do
15752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15753     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15755     break 2
15756   fi
15757 done
15758   done
15759 IFS=$as_save_IFS
15760 
15761   ;;
15762 esac
15763 fi
15764 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15765 if test -n "$CHECK_MAKE"; then
15766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15767 $as_echo "$CHECK_MAKE" >&6; }
15768 else
15769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770 $as_echo "no" >&6; }
15771 fi
15772 
15773 
15774   test -n "$CHECK_MAKE" && break
15775 done
15776 
15777 
15778   MAKE_CANDIDATE=""$CHECK_MAKE""
15779   DESCRIPTION="make in PATH"
15780   if test "x$MAKE_CANDIDATE" != x; then
15781     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15782 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15783     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15784     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15785     if test "x$IS_GNU_MAKE" = x; then
15786       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15787 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15788     else
15789       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15790       if test "x$IS_MODERN_MAKE" = x; then
15791         { $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
15792 $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;}
15793       else
15794         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15795           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15796             MAKE_EXPECTED_ENV='cygwin'
15797           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15798             MAKE_EXPECTED_ENV='msys'
15799           else
15800             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15801           fi
15802           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15803           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15804         else
15805           # Not relevant for non-Windows
15806           IS_MAKE_CORRECT_ENV=true
15807         fi
15808         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15809           { $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
15810 $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;}
15811         else
15812           FOUND_MAKE=$MAKE_CANDIDATE
15813 
15814   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15815 
15816   # First separate the path from the arguments. This will split at the first
15817   # space.
15818   complete="$FOUND_MAKE"
15819   path="${complete%% *}"
15820   tmp="$complete EOL"
15821   arguments="${tmp#* }"
15822 
15823   # Input might be given as Windows format, start by converting to
15824   # unix format.
15825   new_path=`$CYGPATH -u "$path"`
15826 
15827   # Now try to locate executable using which
15828   new_path=`$WHICH "$new_path" 2> /dev/null`
15829   # bat and cmd files are not always considered executable in cygwin causing which
15830   # to not find them
15831   if test "x$new_path" = x \
15832       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15833       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15834     new_path=`$CYGPATH -u "$path"`
15835   fi
15836   if test "x$new_path" = x; then
15837     # Oops. Which didn't find the executable.
15838     # The splitting of arguments from the executable at a space might have been incorrect,
15839     # since paths with space are more likely in Windows. Give it another try with the whole
15840     # argument.
15841     path="$complete"
15842     arguments="EOL"
15843     new_path=`$CYGPATH -u "$path"`
15844     new_path=`$WHICH "$new_path" 2> /dev/null`
15845     # bat and cmd files are not always considered executable in cygwin causing which
15846     # to not find them
15847     if test "x$new_path" = x \
15848         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15849         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15850       new_path=`$CYGPATH -u "$path"`
15851     fi
15852     if test "x$new_path" = x; then
15853       # It's still not found. Now this is an unrecoverable error.
15854       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15855 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15856       has_space=`$ECHO "$complete" | $GREP " "`
15857       if test "x$has_space" != x; then
15858         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15859 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15860       fi
15861       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15862     fi
15863   fi
15864 
15865   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15866   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15867   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15868   # "foo.exe" is OK but "foo" is an error.
15869   #
15870   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15871   # It is also a way to make sure we got the proper file name for the real test later on.
15872   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15873   if test "x$test_shortpath" = x; then
15874     # Short path failed, file does not exist as specified.
15875     # Try adding .exe or .cmd
15876     if test -f "${new_path}.exe"; then
15877       input_to_shortpath="${new_path}.exe"
15878     elif test -f "${new_path}.cmd"; then
15879       input_to_shortpath="${new_path}.cmd"
15880     else
15881       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15882 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15883       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15884 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15885       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15886     fi
15887   else
15888     input_to_shortpath="$new_path"
15889   fi
15890 
15891   # Call helper function which possibly converts this using DOS-style short mode.
15892   # If so, the updated path is stored in $new_path.
15893   new_path="$input_to_shortpath"
15894 
15895   input_path="$input_to_shortpath"
15896   # Check if we need to convert this using DOS-style short mode. If the path
15897   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15898   # take no chances and rewrite it.
15899   # Note: m4 eats our [], so we need to use [ and ] instead.
15900   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15901   if test "x$has_forbidden_chars" != x; then
15902     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15903     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15904     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15905     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15906       # Going to short mode and back again did indeed matter. Since short mode is
15907       # case insensitive, let's make it lowercase to improve readability.
15908       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15909       # Now convert it back to Unix-stile (cygpath)
15910       input_path=`$CYGPATH -u "$shortmode_path"`
15911       new_path="$input_path"
15912     fi
15913   fi
15914 
15915   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15916   if test "x$test_cygdrive_prefix" = x; then
15917     # As a simple fix, exclude /usr/bin since it's not a real path.
15918     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15919       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15920       # a path prefixed by /cygdrive for fixpath to work.
15921       new_path="$CYGWIN_ROOT_PATH$input_path"
15922     fi
15923   fi
15924 
15925   # remove trailing .exe if any
15926   new_path="${new_path/%.exe/}"
15927 
15928   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15929 
15930   # First separate the path from the arguments. This will split at the first
15931   # space.
15932   complete="$FOUND_MAKE"
15933   path="${complete%% *}"
15934   tmp="$complete EOL"
15935   arguments="${tmp#* }"
15936 
15937   # Input might be given as Windows format, start by converting to
15938   # unix format.
15939   new_path="$path"
15940 
15941   windows_path="$new_path"
15942   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15943     unix_path=`$CYGPATH -u "$windows_path"`
15944     new_path="$unix_path"
15945   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15946     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15947     new_path="$unix_path"
15948   fi
15949 
15950 
15951   # Now try to locate executable using which
15952   new_path=`$WHICH "$new_path" 2> /dev/null`
15953 
15954   if test "x$new_path" = x; then
15955     # Oops. Which didn't find the executable.
15956     # The splitting of arguments from the executable at a space might have been incorrect,
15957     # since paths with space are more likely in Windows. Give it another try with the whole
15958     # argument.
15959     path="$complete"
15960     arguments="EOL"
15961     new_path="$path"
15962 
15963   windows_path="$new_path"
15964   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15965     unix_path=`$CYGPATH -u "$windows_path"`
15966     new_path="$unix_path"
15967   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15968     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15969     new_path="$unix_path"
15970   fi
15971 
15972 
15973     new_path=`$WHICH "$new_path" 2> /dev/null`
15974 
15975     if test "x$new_path" = x; then
15976       # It's still not found. Now this is an unrecoverable error.
15977       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15978 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15979       has_space=`$ECHO "$complete" | $GREP " "`
15980       if test "x$has_space" != x; then
15981         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15982 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15983       fi
15984       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15985     fi
15986   fi
15987 
15988   # Now new_path has a complete unix path to the binary
15989   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15990     # Keep paths in /bin as-is, but remove trailing .exe if any
15991     new_path="${new_path/%.exe/}"
15992     # Do not save /bin paths to all_fixpath_prefixes!
15993   else
15994     # Not in mixed or Windows style, start by that.
15995     new_path=`cmd //c echo $new_path`
15996 
15997   input_path="$new_path"
15998   # Check if we need to convert this using DOS-style short mode. If the path
15999   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16000   # take no chances and rewrite it.
16001   # Note: m4 eats our [], so we need to use [ and ] instead.
16002   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16003   if test "x$has_forbidden_chars" != x; then
16004     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16005     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16006   fi
16007 
16008     # Output is in $new_path
16009 
16010   windows_path="$new_path"
16011   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16012     unix_path=`$CYGPATH -u "$windows_path"`
16013     new_path="$unix_path"
16014   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16015     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16016     new_path="$unix_path"
16017   fi
16018 
16019     # remove trailing .exe if any
16020     new_path="${new_path/%.exe/}"
16021 
16022     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16023     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16024   fi
16025 
16026   else
16027     # We're on a posix platform. Hooray! :)
16028     # First separate the path from the arguments. This will split at the first
16029     # space.
16030     complete="$FOUND_MAKE"
16031     path="${complete%% *}"
16032     tmp="$complete EOL"
16033     arguments="${tmp#* }"
16034 
16035     # Cannot rely on the command "which" here since it doesn't always work.
16036     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16037     if test -z "$is_absolute_path"; then
16038       # Path to executable is not absolute. Find it.
16039       IFS_save="$IFS"
16040       IFS=:
16041       for p in $PATH; do
16042         if test -f "$p/$path" && test -x "$p/$path"; then
16043           new_path="$p/$path"
16044           break
16045         fi
16046       done
16047       IFS="$IFS_save"
16048     else
16049       # This is an absolute path, we can use it without further modifications.
16050       new_path="$path"
16051     fi
16052 
16053     if test "x$new_path" = x; then
16054       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16055 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16056       has_space=`$ECHO "$complete" | $GREP " "`
16057       if test "x$has_space" != x; then
16058         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16059 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16060       fi
16061       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16062     fi
16063   fi
16064 
16065   # Now join together the path and the arguments once again
16066   if test "x$arguments" != xEOL; then
16067     new_complete="$new_path ${arguments% *}"
16068   else
16069     new_complete="$new_path"
16070   fi
16071 
16072   if test "x$complete" != "x$new_complete"; then
16073     FOUND_MAKE="$new_complete"
16074     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16075 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16076   fi
16077 
16078         fi
16079       fi
16080     fi
16081   fi
16082 
16083     fi
16084 
16085     if test "x$FOUND_MAKE" = x; then
16086       if test "x$TOOLS_DIR" != x; then
16087         # We have a tools-dir, check that as well before giving up.
16088         OLD_PATH=$PATH
16089         PATH=$TOOLS_DIR:$PATH
16090         for ac_prog in gmake
16091 do
16092   # Extract the first word of "$ac_prog", so it can be a program name with args.
16093 set dummy $ac_prog; ac_word=$2
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16095 $as_echo_n "checking for $ac_word... " >&6; }
16096 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16097   $as_echo_n "(cached) " >&6
16098 else
16099   case $CHECK_TOOLSDIR_GMAKE in
16100   [\\/]* | ?:[\\/]*)
16101   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16102   ;;
16103   *)
16104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105 for as_dir in $PATH
16106 do
16107   IFS=$as_save_IFS
16108   test -z "$as_dir" && as_dir=.
16109     for ac_exec_ext in '' $ac_executable_extensions; do
16110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16111     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16113     break 2
16114   fi
16115 done
16116   done
16117 IFS=$as_save_IFS
16118 
16119   ;;
16120 esac
16121 fi
16122 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16123 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16125 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16126 else
16127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128 $as_echo "no" >&6; }
16129 fi
16130 
16131 
16132   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16133 done
16134 
16135 
16136   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16137   DESCRIPTION="gmake in tools-dir"
16138   if test "x$MAKE_CANDIDATE" != x; then
16139     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16140 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16141     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16142     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16143     if test "x$IS_GNU_MAKE" = x; then
16144       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16145 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16146     else
16147       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16148       if test "x$IS_MODERN_MAKE" = x; then
16149         { $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
16150 $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;}
16151       else
16152         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16153           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16154             MAKE_EXPECTED_ENV='cygwin'
16155           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16156             MAKE_EXPECTED_ENV='msys'
16157           else
16158             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16159           fi
16160           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16161           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16162         else
16163           # Not relevant for non-Windows
16164           IS_MAKE_CORRECT_ENV=true
16165         fi
16166         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16167           { $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
16168 $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;}
16169         else
16170           FOUND_MAKE=$MAKE_CANDIDATE
16171 
16172   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16173 
16174   # First separate the path from the arguments. This will split at the first
16175   # space.
16176   complete="$FOUND_MAKE"
16177   path="${complete%% *}"
16178   tmp="$complete EOL"
16179   arguments="${tmp#* }"
16180 
16181   # Input might be given as Windows format, start by converting to
16182   # unix format.
16183   new_path=`$CYGPATH -u "$path"`
16184 
16185   # Now try to locate executable using which
16186   new_path=`$WHICH "$new_path" 2> /dev/null`
16187   # bat and cmd files are not always considered executable in cygwin causing which
16188   # to not find them
16189   if test "x$new_path" = x \
16190       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16191       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16192     new_path=`$CYGPATH -u "$path"`
16193   fi
16194   if test "x$new_path" = x; then
16195     # Oops. Which didn't find the executable.
16196     # The splitting of arguments from the executable at a space might have been incorrect,
16197     # since paths with space are more likely in Windows. Give it another try with the whole
16198     # argument.
16199     path="$complete"
16200     arguments="EOL"
16201     new_path=`$CYGPATH -u "$path"`
16202     new_path=`$WHICH "$new_path" 2> /dev/null`
16203     # bat and cmd files are not always considered executable in cygwin causing which
16204     # to not find them
16205     if test "x$new_path" = x \
16206         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16207         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16208       new_path=`$CYGPATH -u "$path"`
16209     fi
16210     if test "x$new_path" = x; then
16211       # It's still not found. Now this is an unrecoverable error.
16212       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16213 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16214       has_space=`$ECHO "$complete" | $GREP " "`
16215       if test "x$has_space" != x; then
16216         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16217 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16218       fi
16219       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16220     fi
16221   fi
16222 
16223   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16224   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16225   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16226   # "foo.exe" is OK but "foo" is an error.
16227   #
16228   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16229   # It is also a way to make sure we got the proper file name for the real test later on.
16230   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16231   if test "x$test_shortpath" = x; then
16232     # Short path failed, file does not exist as specified.
16233     # Try adding .exe or .cmd
16234     if test -f "${new_path}.exe"; then
16235       input_to_shortpath="${new_path}.exe"
16236     elif test -f "${new_path}.cmd"; then
16237       input_to_shortpath="${new_path}.cmd"
16238     else
16239       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16240 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16241       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16242 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16243       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16244     fi
16245   else
16246     input_to_shortpath="$new_path"
16247   fi
16248 
16249   # Call helper function which possibly converts this using DOS-style short mode.
16250   # If so, the updated path is stored in $new_path.
16251   new_path="$input_to_shortpath"
16252 
16253   input_path="$input_to_shortpath"
16254   # Check if we need to convert this using DOS-style short mode. If the path
16255   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16256   # take no chances and rewrite it.
16257   # Note: m4 eats our [], so we need to use [ and ] instead.
16258   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16259   if test "x$has_forbidden_chars" != x; then
16260     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16261     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16262     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16263     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16264       # Going to short mode and back again did indeed matter. Since short mode is
16265       # case insensitive, let's make it lowercase to improve readability.
16266       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16267       # Now convert it back to Unix-stile (cygpath)
16268       input_path=`$CYGPATH -u "$shortmode_path"`
16269       new_path="$input_path"
16270     fi
16271   fi
16272 
16273   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16274   if test "x$test_cygdrive_prefix" = x; then
16275     # As a simple fix, exclude /usr/bin since it's not a real path.
16276     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16277       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16278       # a path prefixed by /cygdrive for fixpath to work.
16279       new_path="$CYGWIN_ROOT_PATH$input_path"
16280     fi
16281   fi
16282 
16283   # remove trailing .exe if any
16284   new_path="${new_path/%.exe/}"
16285 
16286   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16287 
16288   # First separate the path from the arguments. This will split at the first
16289   # space.
16290   complete="$FOUND_MAKE"
16291   path="${complete%% *}"
16292   tmp="$complete EOL"
16293   arguments="${tmp#* }"
16294 
16295   # Input might be given as Windows format, start by converting to
16296   # unix format.
16297   new_path="$path"
16298 
16299   windows_path="$new_path"
16300   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16301     unix_path=`$CYGPATH -u "$windows_path"`
16302     new_path="$unix_path"
16303   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16304     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16305     new_path="$unix_path"
16306   fi
16307 
16308 
16309   # Now try to locate executable using which
16310   new_path=`$WHICH "$new_path" 2> /dev/null`
16311 
16312   if test "x$new_path" = x; then
16313     # Oops. Which didn't find the executable.
16314     # The splitting of arguments from the executable at a space might have been incorrect,
16315     # since paths with space are more likely in Windows. Give it another try with the whole
16316     # argument.
16317     path="$complete"
16318     arguments="EOL"
16319     new_path="$path"
16320 
16321   windows_path="$new_path"
16322   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16323     unix_path=`$CYGPATH -u "$windows_path"`
16324     new_path="$unix_path"
16325   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16326     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16327     new_path="$unix_path"
16328   fi
16329 
16330 
16331     new_path=`$WHICH "$new_path" 2> /dev/null`
16332 
16333     if test "x$new_path" = x; then
16334       # It's still not found. Now this is an unrecoverable error.
16335       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16336 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16337       has_space=`$ECHO "$complete" | $GREP " "`
16338       if test "x$has_space" != x; then
16339         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16340 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16341       fi
16342       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16343     fi
16344   fi
16345 
16346   # Now new_path has a complete unix path to the binary
16347   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16348     # Keep paths in /bin as-is, but remove trailing .exe if any
16349     new_path="${new_path/%.exe/}"
16350     # Do not save /bin paths to all_fixpath_prefixes!
16351   else
16352     # Not in mixed or Windows style, start by that.
16353     new_path=`cmd //c echo $new_path`
16354 
16355   input_path="$new_path"
16356   # Check if we need to convert this using DOS-style short mode. If the path
16357   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16358   # take no chances and rewrite it.
16359   # Note: m4 eats our [], so we need to use [ and ] instead.
16360   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16361   if test "x$has_forbidden_chars" != x; then
16362     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16363     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16364   fi
16365 
16366     # Output is in $new_path
16367 
16368   windows_path="$new_path"
16369   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16370     unix_path=`$CYGPATH -u "$windows_path"`
16371     new_path="$unix_path"
16372   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16373     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16374     new_path="$unix_path"
16375   fi
16376 
16377     # remove trailing .exe if any
16378     new_path="${new_path/%.exe/}"
16379 
16380     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16381     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16382   fi
16383 
16384   else
16385     # We're on a posix platform. Hooray! :)
16386     # First separate the path from the arguments. This will split at the first
16387     # space.
16388     complete="$FOUND_MAKE"
16389     path="${complete%% *}"
16390     tmp="$complete EOL"
16391     arguments="${tmp#* }"
16392 
16393     # Cannot rely on the command "which" here since it doesn't always work.
16394     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16395     if test -z "$is_absolute_path"; then
16396       # Path to executable is not absolute. Find it.
16397       IFS_save="$IFS"
16398       IFS=:
16399       for p in $PATH; do
16400         if test -f "$p/$path" && test -x "$p/$path"; then
16401           new_path="$p/$path"
16402           break
16403         fi
16404       done
16405       IFS="$IFS_save"
16406     else
16407       # This is an absolute path, we can use it without further modifications.
16408       new_path="$path"
16409     fi
16410 
16411     if test "x$new_path" = x; then
16412       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16413 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16414       has_space=`$ECHO "$complete" | $GREP " "`
16415       if test "x$has_space" != x; then
16416         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16417 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16418       fi
16419       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16420     fi
16421   fi
16422 
16423   # Now join together the path and the arguments once again
16424   if test "x$arguments" != xEOL; then
16425     new_complete="$new_path ${arguments% *}"
16426   else
16427     new_complete="$new_path"
16428   fi
16429 
16430   if test "x$complete" != "x$new_complete"; then
16431     FOUND_MAKE="$new_complete"
16432     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16433 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16434   fi
16435 
16436         fi
16437       fi
16438     fi
16439   fi
16440 
16441         if test "x$FOUND_MAKE" = x; then
16442           for ac_prog in make
16443 do
16444   # Extract the first word of "$ac_prog", so it can be a program name with args.
16445 set dummy $ac_prog; ac_word=$2
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16447 $as_echo_n "checking for $ac_word... " >&6; }
16448 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16449   $as_echo_n "(cached) " >&6
16450 else
16451   case $CHECK_TOOLSDIR_MAKE in
16452   [\\/]* | ?:[\\/]*)
16453   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16454   ;;
16455   *)
16456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16457 for as_dir in $PATH
16458 do
16459   IFS=$as_save_IFS
16460   test -z "$as_dir" && as_dir=.
16461     for ac_exec_ext in '' $ac_executable_extensions; do
16462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16463     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16465     break 2
16466   fi
16467 done
16468   done
16469 IFS=$as_save_IFS
16470 
16471   ;;
16472 esac
16473 fi
16474 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16475 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16477 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16478 else
16479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16480 $as_echo "no" >&6; }
16481 fi
16482 
16483 
16484   test -n "$CHECK_TOOLSDIR_MAKE" && break
16485 done
16486 
16487 
16488   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16489   DESCRIPTION="make in tools-dir"
16490   if test "x$MAKE_CANDIDATE" != x; then
16491     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16492 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16493     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16494     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16495     if test "x$IS_GNU_MAKE" = x; then
16496       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16497 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16498     else
16499       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16500       if test "x$IS_MODERN_MAKE" = x; then
16501         { $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
16502 $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;}
16503       else
16504         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16505           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16506             MAKE_EXPECTED_ENV='cygwin'
16507           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16508             MAKE_EXPECTED_ENV='msys'
16509           else
16510             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16511           fi
16512           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16513           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16514         else
16515           # Not relevant for non-Windows
16516           IS_MAKE_CORRECT_ENV=true
16517         fi
16518         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16519           { $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
16520 $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;}
16521         else
16522           FOUND_MAKE=$MAKE_CANDIDATE
16523 
16524   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16525 
16526   # First separate the path from the arguments. This will split at the first
16527   # space.
16528   complete="$FOUND_MAKE"
16529   path="${complete%% *}"
16530   tmp="$complete EOL"
16531   arguments="${tmp#* }"
16532 
16533   # Input might be given as Windows format, start by converting to
16534   # unix format.
16535   new_path=`$CYGPATH -u "$path"`
16536 
16537   # Now try to locate executable using which
16538   new_path=`$WHICH "$new_path" 2> /dev/null`
16539   # bat and cmd files are not always considered executable in cygwin causing which
16540   # to not find them
16541   if test "x$new_path" = x \
16542       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16543       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16544     new_path=`$CYGPATH -u "$path"`
16545   fi
16546   if test "x$new_path" = x; then
16547     # Oops. Which didn't find the executable.
16548     # The splitting of arguments from the executable at a space might have been incorrect,
16549     # since paths with space are more likely in Windows. Give it another try with the whole
16550     # argument.
16551     path="$complete"
16552     arguments="EOL"
16553     new_path=`$CYGPATH -u "$path"`
16554     new_path=`$WHICH "$new_path" 2> /dev/null`
16555     # bat and cmd files are not always considered executable in cygwin causing which
16556     # to not find them
16557     if test "x$new_path" = x \
16558         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16559         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16560       new_path=`$CYGPATH -u "$path"`
16561     fi
16562     if test "x$new_path" = x; then
16563       # It's still not found. Now this is an unrecoverable error.
16564       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16565 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16566       has_space=`$ECHO "$complete" | $GREP " "`
16567       if test "x$has_space" != x; then
16568         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16569 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16570       fi
16571       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16572     fi
16573   fi
16574 
16575   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16576   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16577   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16578   # "foo.exe" is OK but "foo" is an error.
16579   #
16580   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16581   # It is also a way to make sure we got the proper file name for the real test later on.
16582   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16583   if test "x$test_shortpath" = x; then
16584     # Short path failed, file does not exist as specified.
16585     # Try adding .exe or .cmd
16586     if test -f "${new_path}.exe"; then
16587       input_to_shortpath="${new_path}.exe"
16588     elif test -f "${new_path}.cmd"; then
16589       input_to_shortpath="${new_path}.cmd"
16590     else
16591       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16592 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16593       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16594 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16595       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16596     fi
16597   else
16598     input_to_shortpath="$new_path"
16599   fi
16600 
16601   # Call helper function which possibly converts this using DOS-style short mode.
16602   # If so, the updated path is stored in $new_path.
16603   new_path="$input_to_shortpath"
16604 
16605   input_path="$input_to_shortpath"
16606   # Check if we need to convert this using DOS-style short mode. If the path
16607   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16608   # take no chances and rewrite it.
16609   # Note: m4 eats our [], so we need to use [ and ] instead.
16610   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16611   if test "x$has_forbidden_chars" != x; then
16612     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16613     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16614     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16615     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16616       # Going to short mode and back again did indeed matter. Since short mode is
16617       # case insensitive, let's make it lowercase to improve readability.
16618       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16619       # Now convert it back to Unix-stile (cygpath)
16620       input_path=`$CYGPATH -u "$shortmode_path"`
16621       new_path="$input_path"
16622     fi
16623   fi
16624 
16625   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16626   if test "x$test_cygdrive_prefix" = x; then
16627     # As a simple fix, exclude /usr/bin since it's not a real path.
16628     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16629       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16630       # a path prefixed by /cygdrive for fixpath to work.
16631       new_path="$CYGWIN_ROOT_PATH$input_path"
16632     fi
16633   fi
16634 
16635   # remove trailing .exe if any
16636   new_path="${new_path/%.exe/}"
16637 
16638   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16639 
16640   # First separate the path from the arguments. This will split at the first
16641   # space.
16642   complete="$FOUND_MAKE"
16643   path="${complete%% *}"
16644   tmp="$complete EOL"
16645   arguments="${tmp#* }"
16646 
16647   # Input might be given as Windows format, start by converting to
16648   # unix format.
16649   new_path="$path"
16650 
16651   windows_path="$new_path"
16652   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16653     unix_path=`$CYGPATH -u "$windows_path"`
16654     new_path="$unix_path"
16655   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16656     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16657     new_path="$unix_path"
16658   fi
16659 
16660 
16661   # Now try to locate executable using which
16662   new_path=`$WHICH "$new_path" 2> /dev/null`
16663 
16664   if test "x$new_path" = x; then
16665     # Oops. Which didn't find the executable.
16666     # The splitting of arguments from the executable at a space might have been incorrect,
16667     # since paths with space are more likely in Windows. Give it another try with the whole
16668     # argument.
16669     path="$complete"
16670     arguments="EOL"
16671     new_path="$path"
16672 
16673   windows_path="$new_path"
16674   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16675     unix_path=`$CYGPATH -u "$windows_path"`
16676     new_path="$unix_path"
16677   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16678     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16679     new_path="$unix_path"
16680   fi
16681 
16682 
16683     new_path=`$WHICH "$new_path" 2> /dev/null`
16684 
16685     if test "x$new_path" = x; then
16686       # It's still not found. Now this is an unrecoverable error.
16687       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16688 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16689       has_space=`$ECHO "$complete" | $GREP " "`
16690       if test "x$has_space" != x; then
16691         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16692 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16693       fi
16694       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16695     fi
16696   fi
16697 
16698   # Now new_path has a complete unix path to the binary
16699   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16700     # Keep paths in /bin as-is, but remove trailing .exe if any
16701     new_path="${new_path/%.exe/}"
16702     # Do not save /bin paths to all_fixpath_prefixes!
16703   else
16704     # Not in mixed or Windows style, start by that.
16705     new_path=`cmd //c echo $new_path`
16706 
16707   input_path="$new_path"
16708   # Check if we need to convert this using DOS-style short mode. If the path
16709   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16710   # take no chances and rewrite it.
16711   # Note: m4 eats our [], so we need to use [ and ] instead.
16712   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16713   if test "x$has_forbidden_chars" != x; then
16714     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16715     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16716   fi
16717 
16718     # Output is in $new_path
16719 
16720   windows_path="$new_path"
16721   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16722     unix_path=`$CYGPATH -u "$windows_path"`
16723     new_path="$unix_path"
16724   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16725     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16726     new_path="$unix_path"
16727   fi
16728 
16729     # remove trailing .exe if any
16730     new_path="${new_path/%.exe/}"
16731 
16732     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16733     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16734   fi
16735 
16736   else
16737     # We're on a posix platform. Hooray! :)
16738     # First separate the path from the arguments. This will split at the first
16739     # space.
16740     complete="$FOUND_MAKE"
16741     path="${complete%% *}"
16742     tmp="$complete EOL"
16743     arguments="${tmp#* }"
16744 
16745     # Cannot rely on the command "which" here since it doesn't always work.
16746     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16747     if test -z "$is_absolute_path"; then
16748       # Path to executable is not absolute. Find it.
16749       IFS_save="$IFS"
16750       IFS=:
16751       for p in $PATH; do
16752         if test -f "$p/$path" && test -x "$p/$path"; then
16753           new_path="$p/$path"
16754           break
16755         fi
16756       done
16757       IFS="$IFS_save"
16758     else
16759       # This is an absolute path, we can use it without further modifications.
16760       new_path="$path"
16761     fi
16762 
16763     if test "x$new_path" = x; then
16764       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16765 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16766       has_space=`$ECHO "$complete" | $GREP " "`
16767       if test "x$has_space" != x; then
16768         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16769 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16770       fi
16771       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16772     fi
16773   fi
16774 
16775   # Now join together the path and the arguments once again
16776   if test "x$arguments" != xEOL; then
16777     new_complete="$new_path ${arguments% *}"
16778   else
16779     new_complete="$new_path"
16780   fi
16781 
16782   if test "x$complete" != "x$new_complete"; then
16783     FOUND_MAKE="$new_complete"
16784     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16785 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16786   fi
16787 
16788         fi
16789       fi
16790     fi
16791   fi
16792 
16793         fi
16794         PATH=$OLD_PATH
16795       fi
16796     fi
16797 
16798     if test "x$FOUND_MAKE" = x; then
16799       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
16800     fi
16801   fi
16802 
16803   MAKE=$FOUND_MAKE
16804 
16805   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16806 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16807 
16808 
16809 
16810   # Test if find supports -delete
16811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16812 $as_echo_n "checking if find supports -delete... " >&6; }
16813   FIND_DELETE="-delete"
16814 
16815   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16816 
16817   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16818 
16819   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16820   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16821     # No, it does not.
16822     rm $DELETEDIR/TestIfFindSupportsDelete
16823     FIND_DELETE="-exec rm \{\} \+"
16824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16825 $as_echo "no" >&6; }
16826   else
16827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16829   fi
16830   rmdir $DELETEDIR
16831 
16832 
16833 
16834   # These tools might not be installed by default,
16835   # need hint on how to install them.
16836 
16837 
16838 
16839   # Publish this variable in the help.
16840 
16841 
16842   if test "x$UNZIP" = x; then
16843     # The variable is not set by user, try to locate tool using the code snippet
16844     for ac_prog in unzip
16845 do
16846   # Extract the first word of "$ac_prog", so it can be a program name with args.
16847 set dummy $ac_prog; ac_word=$2
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16849 $as_echo_n "checking for $ac_word... " >&6; }
16850 if ${ac_cv_path_UNZIP+:} false; then :
16851   $as_echo_n "(cached) " >&6
16852 else
16853   case $UNZIP in
16854   [\\/]* | ?:[\\/]*)
16855   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16856   ;;
16857   *)
16858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16859 for as_dir in $PATH
16860 do
16861   IFS=$as_save_IFS
16862   test -z "$as_dir" && as_dir=.
16863     for ac_exec_ext in '' $ac_executable_extensions; do
16864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16865     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16867     break 2
16868   fi
16869 done
16870   done
16871 IFS=$as_save_IFS
16872 
16873   ;;
16874 esac
16875 fi
16876 UNZIP=$ac_cv_path_UNZIP
16877 if test -n "$UNZIP"; then
16878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16879 $as_echo "$UNZIP" >&6; }
16880 else
16881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16882 $as_echo "no" >&6; }
16883 fi
16884 
16885 
16886   test -n "$UNZIP" && break
16887 done
16888 
16889   else
16890     # The variable is set, but is it from the command line or the environment?
16891 
16892     # Try to remove the string !UNZIP! from our list.
16893     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16894     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16895       # If it failed, the variable was not from the command line. Ignore it,
16896       # but warn the user (except for BASH, which is always set by the calling BASH).
16897       if test "xUNZIP" != xBASH; then
16898         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16899 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16900       fi
16901       # Try to locate tool using the code snippet
16902       for ac_prog in unzip
16903 do
16904   # Extract the first word of "$ac_prog", so it can be a program name with args.
16905 set dummy $ac_prog; ac_word=$2
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16907 $as_echo_n "checking for $ac_word... " >&6; }
16908 if ${ac_cv_path_UNZIP+:} false; then :
16909   $as_echo_n "(cached) " >&6
16910 else
16911   case $UNZIP in
16912   [\\/]* | ?:[\\/]*)
16913   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16914   ;;
16915   *)
16916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16917 for as_dir in $PATH
16918 do
16919   IFS=$as_save_IFS
16920   test -z "$as_dir" && as_dir=.
16921     for ac_exec_ext in '' $ac_executable_extensions; do
16922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16923     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16925     break 2
16926   fi
16927 done
16928   done
16929 IFS=$as_save_IFS
16930 
16931   ;;
16932 esac
16933 fi
16934 UNZIP=$ac_cv_path_UNZIP
16935 if test -n "$UNZIP"; then
16936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16937 $as_echo "$UNZIP" >&6; }
16938 else
16939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16940 $as_echo "no" >&6; }
16941 fi
16942 
16943 
16944   test -n "$UNZIP" && break
16945 done
16946 
16947     else
16948       # If it succeeded, then it was overridden by the user. We will use it
16949       # for the tool.
16950 
16951       # First remove it from the list of overridden variables, so we can test
16952       # for unknown variables in the end.
16953       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16954 
16955       # Check if the provided tool contains a complete path.
16956       tool_specified="$UNZIP"
16957       tool_basename="${tool_specified##*/}"
16958       if test "x$tool_basename" = "x$tool_specified"; then
16959         # A command without a complete path is provided, search $PATH.
16960         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16961 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16962         # Extract the first word of "$tool_basename", so it can be a program name with args.
16963 set dummy $tool_basename; ac_word=$2
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16965 $as_echo_n "checking for $ac_word... " >&6; }
16966 if ${ac_cv_path_UNZIP+:} false; then :
16967   $as_echo_n "(cached) " >&6
16968 else
16969   case $UNZIP in
16970   [\\/]* | ?:[\\/]*)
16971   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16972   ;;
16973   *)
16974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16975 for as_dir in $PATH
16976 do
16977   IFS=$as_save_IFS
16978   test -z "$as_dir" && as_dir=.
16979     for ac_exec_ext in '' $ac_executable_extensions; do
16980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16981     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16983     break 2
16984   fi
16985 done
16986   done
16987 IFS=$as_save_IFS
16988 
16989   ;;
16990 esac
16991 fi
16992 UNZIP=$ac_cv_path_UNZIP
16993 if test -n "$UNZIP"; then
16994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16995 $as_echo "$UNZIP" >&6; }
16996 else
16997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16998 $as_echo "no" >&6; }
16999 fi
17000 
17001 
17002         if test "x$UNZIP" = x; then
17003           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17004         fi
17005       else
17006         # Otherwise we believe it is a complete path. Use it as it is.
17007         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17008 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17010 $as_echo_n "checking for UNZIP... " >&6; }
17011         if test ! -x "$tool_specified"; then
17012           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17013 $as_echo "not found" >&6; }
17014           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17015         fi
17016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17017 $as_echo "$tool_specified" >&6; }
17018       fi
17019     fi
17020   fi
17021 
17022 
17023 
17024   if test "x$UNZIP" = x; then
17025     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17026   fi
17027 
17028 
17029 
17030 
17031 
17032   # Publish this variable in the help.
17033 
17034 
17035   if test "x$ZIP" = x; then
17036     # The variable is not set by user, try to locate tool using the code snippet
17037     for ac_prog in zip
17038 do
17039   # Extract the first word of "$ac_prog", so it can be a program name with args.
17040 set dummy $ac_prog; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17042 $as_echo_n "checking for $ac_word... " >&6; }
17043 if ${ac_cv_path_ZIP+:} false; then :
17044   $as_echo_n "(cached) " >&6
17045 else
17046   case $ZIP in
17047   [\\/]* | ?:[\\/]*)
17048   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17049   ;;
17050   *)
17051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 for as_dir in $PATH
17053 do
17054   IFS=$as_save_IFS
17055   test -z "$as_dir" && as_dir=.
17056     for ac_exec_ext in '' $ac_executable_extensions; do
17057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17058     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17060     break 2
17061   fi
17062 done
17063   done
17064 IFS=$as_save_IFS
17065 
17066   ;;
17067 esac
17068 fi
17069 ZIP=$ac_cv_path_ZIP
17070 if test -n "$ZIP"; then
17071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17072 $as_echo "$ZIP" >&6; }
17073 else
17074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17075 $as_echo "no" >&6; }
17076 fi
17077 
17078 
17079   test -n "$ZIP" && break
17080 done
17081 
17082   else
17083     # The variable is set, but is it from the command line or the environment?
17084 
17085     # Try to remove the string !ZIP! from our list.
17086     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17087     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17088       # If it failed, the variable was not from the command line. Ignore it,
17089       # but warn the user (except for BASH, which is always set by the calling BASH).
17090       if test "xZIP" != xBASH; then
17091         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17092 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17093       fi
17094       # Try to locate tool using the code snippet
17095       for ac_prog in zip
17096 do
17097   # Extract the first word of "$ac_prog", so it can be a program name with args.
17098 set dummy $ac_prog; ac_word=$2
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17100 $as_echo_n "checking for $ac_word... " >&6; }
17101 if ${ac_cv_path_ZIP+:} false; then :
17102   $as_echo_n "(cached) " >&6
17103 else
17104   case $ZIP in
17105   [\\/]* | ?:[\\/]*)
17106   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17107   ;;
17108   *)
17109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17110 for as_dir in $PATH
17111 do
17112   IFS=$as_save_IFS
17113   test -z "$as_dir" && as_dir=.
17114     for ac_exec_ext in '' $ac_executable_extensions; do
17115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17116     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17118     break 2
17119   fi
17120 done
17121   done
17122 IFS=$as_save_IFS
17123 
17124   ;;
17125 esac
17126 fi
17127 ZIP=$ac_cv_path_ZIP
17128 if test -n "$ZIP"; then
17129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17130 $as_echo "$ZIP" >&6; }
17131 else
17132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17133 $as_echo "no" >&6; }
17134 fi
17135 
17136 
17137   test -n "$ZIP" && break
17138 done
17139 
17140     else
17141       # If it succeeded, then it was overridden by the user. We will use it
17142       # for the tool.
17143 
17144       # First remove it from the list of overridden variables, so we can test
17145       # for unknown variables in the end.
17146       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17147 
17148       # Check if the provided tool contains a complete path.
17149       tool_specified="$ZIP"
17150       tool_basename="${tool_specified##*/}"
17151       if test "x$tool_basename" = "x$tool_specified"; then
17152         # A command without a complete path is provided, search $PATH.
17153         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17154 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17155         # Extract the first word of "$tool_basename", so it can be a program name with args.
17156 set dummy $tool_basename; ac_word=$2
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17158 $as_echo_n "checking for $ac_word... " >&6; }
17159 if ${ac_cv_path_ZIP+:} false; then :
17160   $as_echo_n "(cached) " >&6
17161 else
17162   case $ZIP in
17163   [\\/]* | ?:[\\/]*)
17164   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17165   ;;
17166   *)
17167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17168 for as_dir in $PATH
17169 do
17170   IFS=$as_save_IFS
17171   test -z "$as_dir" && as_dir=.
17172     for ac_exec_ext in '' $ac_executable_extensions; do
17173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17174     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17176     break 2
17177   fi
17178 done
17179   done
17180 IFS=$as_save_IFS
17181 
17182   ;;
17183 esac
17184 fi
17185 ZIP=$ac_cv_path_ZIP
17186 if test -n "$ZIP"; then
17187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17188 $as_echo "$ZIP" >&6; }
17189 else
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191 $as_echo "no" >&6; }
17192 fi
17193 
17194 
17195         if test "x$ZIP" = x; then
17196           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17197         fi
17198       else
17199         # Otherwise we believe it is a complete path. Use it as it is.
17200         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17201 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17203 $as_echo_n "checking for ZIP... " >&6; }
17204         if test ! -x "$tool_specified"; then
17205           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17206 $as_echo "not found" >&6; }
17207           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17208         fi
17209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17210 $as_echo "$tool_specified" >&6; }
17211       fi
17212     fi
17213   fi
17214 
17215 
17216 
17217   if test "x$ZIP" = x; then
17218     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17219   fi
17220 
17221 
17222 
17223   # Non-required basic tools
17224 
17225 
17226 
17227   # Publish this variable in the help.
17228 
17229 
17230   if test "x$LDD" = x; then
17231     # The variable is not set by user, try to locate tool using the code snippet
17232     for ac_prog in ldd
17233 do
17234   # Extract the first word of "$ac_prog", so it can be a program name with args.
17235 set dummy $ac_prog; ac_word=$2
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17237 $as_echo_n "checking for $ac_word... " >&6; }
17238 if ${ac_cv_path_LDD+:} false; then :
17239   $as_echo_n "(cached) " >&6
17240 else
17241   case $LDD in
17242   [\\/]* | ?:[\\/]*)
17243   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17244   ;;
17245   *)
17246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17247 for as_dir in $PATH
17248 do
17249   IFS=$as_save_IFS
17250   test -z "$as_dir" && as_dir=.
17251     for ac_exec_ext in '' $ac_executable_extensions; do
17252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17253     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17255     break 2
17256   fi
17257 done
17258   done
17259 IFS=$as_save_IFS
17260 
17261   ;;
17262 esac
17263 fi
17264 LDD=$ac_cv_path_LDD
17265 if test -n "$LDD"; then
17266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17267 $as_echo "$LDD" >&6; }
17268 else
17269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17270 $as_echo "no" >&6; }
17271 fi
17272 
17273 
17274   test -n "$LDD" && break
17275 done
17276 
17277   else
17278     # The variable is set, but is it from the command line or the environment?
17279 
17280     # Try to remove the string !LDD! from our list.
17281     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17282     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17283       # If it failed, the variable was not from the command line. Ignore it,
17284       # but warn the user (except for BASH, which is always set by the calling BASH).
17285       if test "xLDD" != xBASH; then
17286         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17287 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17288       fi
17289       # Try to locate tool using the code snippet
17290       for ac_prog in ldd
17291 do
17292   # Extract the first word of "$ac_prog", so it can be a program name with args.
17293 set dummy $ac_prog; ac_word=$2
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17295 $as_echo_n "checking for $ac_word... " >&6; }
17296 if ${ac_cv_path_LDD+:} false; then :
17297   $as_echo_n "(cached) " >&6
17298 else
17299   case $LDD in
17300   [\\/]* | ?:[\\/]*)
17301   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17302   ;;
17303   *)
17304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17305 for as_dir in $PATH
17306 do
17307   IFS=$as_save_IFS
17308   test -z "$as_dir" && as_dir=.
17309     for ac_exec_ext in '' $ac_executable_extensions; do
17310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17311     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17313     break 2
17314   fi
17315 done
17316   done
17317 IFS=$as_save_IFS
17318 
17319   ;;
17320 esac
17321 fi
17322 LDD=$ac_cv_path_LDD
17323 if test -n "$LDD"; then
17324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17325 $as_echo "$LDD" >&6; }
17326 else
17327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17328 $as_echo "no" >&6; }
17329 fi
17330 
17331 
17332   test -n "$LDD" && break
17333 done
17334 
17335     else
17336       # If it succeeded, then it was overridden by the user. We will use it
17337       # for the tool.
17338 
17339       # First remove it from the list of overridden variables, so we can test
17340       # for unknown variables in the end.
17341       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17342 
17343       # Check if the provided tool contains a complete path.
17344       tool_specified="$LDD"
17345       tool_basename="${tool_specified##*/}"
17346       if test "x$tool_basename" = "x$tool_specified"; then
17347         # A command without a complete path is provided, search $PATH.
17348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17349 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17350         # Extract the first word of "$tool_basename", so it can be a program name with args.
17351 set dummy $tool_basename; ac_word=$2
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17353 $as_echo_n "checking for $ac_word... " >&6; }
17354 if ${ac_cv_path_LDD+:} false; then :
17355   $as_echo_n "(cached) " >&6
17356 else
17357   case $LDD in
17358   [\\/]* | ?:[\\/]*)
17359   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17360   ;;
17361   *)
17362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17363 for as_dir in $PATH
17364 do
17365   IFS=$as_save_IFS
17366   test -z "$as_dir" && as_dir=.
17367     for ac_exec_ext in '' $ac_executable_extensions; do
17368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17369     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17371     break 2
17372   fi
17373 done
17374   done
17375 IFS=$as_save_IFS
17376 
17377   ;;
17378 esac
17379 fi
17380 LDD=$ac_cv_path_LDD
17381 if test -n "$LDD"; then
17382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17383 $as_echo "$LDD" >&6; }
17384 else
17385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17386 $as_echo "no" >&6; }
17387 fi
17388 
17389 
17390         if test "x$LDD" = x; then
17391           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17392         fi
17393       else
17394         # Otherwise we believe it is a complete path. Use it as it is.
17395         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17396 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17398 $as_echo_n "checking for LDD... " >&6; }
17399         if test ! -x "$tool_specified"; then
17400           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17401 $as_echo "not found" >&6; }
17402           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17403         fi
17404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17405 $as_echo "$tool_specified" >&6; }
17406       fi
17407     fi
17408   fi
17409 
17410 
17411   if test "x$LDD" = "x"; then
17412     # List shared lib dependencies is used for
17413     # debug output and checking for forbidden dependencies.
17414     # We can build without it.
17415     LDD="true"
17416   fi
17417 
17418 
17419   # Publish this variable in the help.
17420 
17421 
17422   if test "x$OTOOL" = x; then
17423     # The variable is not set by user, try to locate tool using the code snippet
17424     for ac_prog in otool
17425 do
17426   # Extract the first word of "$ac_prog", so it can be a program name with args.
17427 set dummy $ac_prog; ac_word=$2
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17429 $as_echo_n "checking for $ac_word... " >&6; }
17430 if ${ac_cv_path_OTOOL+:} false; then :
17431   $as_echo_n "(cached) " >&6
17432 else
17433   case $OTOOL in
17434   [\\/]* | ?:[\\/]*)
17435   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17436   ;;
17437   *)
17438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17439 for as_dir in $PATH
17440 do
17441   IFS=$as_save_IFS
17442   test -z "$as_dir" && as_dir=.
17443     for ac_exec_ext in '' $ac_executable_extensions; do
17444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17445     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17447     break 2
17448   fi
17449 done
17450   done
17451 IFS=$as_save_IFS
17452 
17453   ;;
17454 esac
17455 fi
17456 OTOOL=$ac_cv_path_OTOOL
17457 if test -n "$OTOOL"; then
17458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17459 $as_echo "$OTOOL" >&6; }
17460 else
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17463 fi
17464 
17465 
17466   test -n "$OTOOL" && break
17467 done
17468 
17469   else
17470     # The variable is set, but is it from the command line or the environment?
17471 
17472     # Try to remove the string !OTOOL! from our list.
17473     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17474     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17475       # If it failed, the variable was not from the command line. Ignore it,
17476       # but warn the user (except for BASH, which is always set by the calling BASH).
17477       if test "xOTOOL" != xBASH; then
17478         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17479 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17480       fi
17481       # Try to locate tool using the code snippet
17482       for ac_prog in otool
17483 do
17484   # Extract the first word of "$ac_prog", so it can be a program name with args.
17485 set dummy $ac_prog; ac_word=$2
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17487 $as_echo_n "checking for $ac_word... " >&6; }
17488 if ${ac_cv_path_OTOOL+:} false; then :
17489   $as_echo_n "(cached) " >&6
17490 else
17491   case $OTOOL in
17492   [\\/]* | ?:[\\/]*)
17493   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17494   ;;
17495   *)
17496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17497 for as_dir in $PATH
17498 do
17499   IFS=$as_save_IFS
17500   test -z "$as_dir" && as_dir=.
17501     for ac_exec_ext in '' $ac_executable_extensions; do
17502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17503     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17505     break 2
17506   fi
17507 done
17508   done
17509 IFS=$as_save_IFS
17510 
17511   ;;
17512 esac
17513 fi
17514 OTOOL=$ac_cv_path_OTOOL
17515 if test -n "$OTOOL"; then
17516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17517 $as_echo "$OTOOL" >&6; }
17518 else
17519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17520 $as_echo "no" >&6; }
17521 fi
17522 
17523 
17524   test -n "$OTOOL" && break
17525 done
17526 
17527     else
17528       # If it succeeded, then it was overridden by the user. We will use it
17529       # for the tool.
17530 
17531       # First remove it from the list of overridden variables, so we can test
17532       # for unknown variables in the end.
17533       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17534 
17535       # Check if the provided tool contains a complete path.
17536       tool_specified="$OTOOL"
17537       tool_basename="${tool_specified##*/}"
17538       if test "x$tool_basename" = "x$tool_specified"; then
17539         # A command without a complete path is provided, search $PATH.
17540         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17541 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17542         # Extract the first word of "$tool_basename", so it can be a program name with args.
17543 set dummy $tool_basename; ac_word=$2
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17545 $as_echo_n "checking for $ac_word... " >&6; }
17546 if ${ac_cv_path_OTOOL+:} false; then :
17547   $as_echo_n "(cached) " >&6
17548 else
17549   case $OTOOL in
17550   [\\/]* | ?:[\\/]*)
17551   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17552   ;;
17553   *)
17554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17555 for as_dir in $PATH
17556 do
17557   IFS=$as_save_IFS
17558   test -z "$as_dir" && as_dir=.
17559     for ac_exec_ext in '' $ac_executable_extensions; do
17560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17561     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17563     break 2
17564   fi
17565 done
17566   done
17567 IFS=$as_save_IFS
17568 
17569   ;;
17570 esac
17571 fi
17572 OTOOL=$ac_cv_path_OTOOL
17573 if test -n "$OTOOL"; then
17574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17575 $as_echo "$OTOOL" >&6; }
17576 else
17577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17578 $as_echo "no" >&6; }
17579 fi
17580 
17581 
17582         if test "x$OTOOL" = x; then
17583           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17584         fi
17585       else
17586         # Otherwise we believe it is a complete path. Use it as it is.
17587         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17588 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17590 $as_echo_n "checking for OTOOL... " >&6; }
17591         if test ! -x "$tool_specified"; then
17592           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17593 $as_echo "not found" >&6; }
17594           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17595         fi
17596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17597 $as_echo "$tool_specified" >&6; }
17598       fi
17599     fi
17600   fi
17601 
17602 
17603   if test "x$OTOOL" = "x"; then
17604     OTOOL="true"
17605   fi
17606 
17607 
17608   # Publish this variable in the help.
17609 
17610 
17611   if test "x$READELF" = x; then
17612     # The variable is not set by user, try to locate tool using the code snippet
17613     for ac_prog in greadelf readelf
17614 do
17615   # Extract the first word of "$ac_prog", so it can be a program name with args.
17616 set dummy $ac_prog; ac_word=$2
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17618 $as_echo_n "checking for $ac_word... " >&6; }
17619 if ${ac_cv_path_READELF+:} false; then :
17620   $as_echo_n "(cached) " >&6
17621 else
17622   case $READELF in
17623   [\\/]* | ?:[\\/]*)
17624   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17625   ;;
17626   *)
17627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17628 for as_dir in $PATH
17629 do
17630   IFS=$as_save_IFS
17631   test -z "$as_dir" && as_dir=.
17632     for ac_exec_ext in '' $ac_executable_extensions; do
17633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17634     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17636     break 2
17637   fi
17638 done
17639   done
17640 IFS=$as_save_IFS
17641 
17642   ;;
17643 esac
17644 fi
17645 READELF=$ac_cv_path_READELF
17646 if test -n "$READELF"; then
17647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17648 $as_echo "$READELF" >&6; }
17649 else
17650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17651 $as_echo "no" >&6; }
17652 fi
17653 
17654 
17655   test -n "$READELF" && break
17656 done
17657 
17658   else
17659     # The variable is set, but is it from the command line or the environment?
17660 
17661     # Try to remove the string !READELF! from our list.
17662     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17663     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17664       # If it failed, the variable was not from the command line. Ignore it,
17665       # but warn the user (except for BASH, which is always set by the calling BASH).
17666       if test "xREADELF" != xBASH; then
17667         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17668 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17669       fi
17670       # Try to locate tool using the code snippet
17671       for ac_prog in greadelf readelf
17672 do
17673   # Extract the first word of "$ac_prog", so it can be a program name with args.
17674 set dummy $ac_prog; ac_word=$2
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17676 $as_echo_n "checking for $ac_word... " >&6; }
17677 if ${ac_cv_path_READELF+:} false; then :
17678   $as_echo_n "(cached) " >&6
17679 else
17680   case $READELF in
17681   [\\/]* | ?:[\\/]*)
17682   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17683   ;;
17684   *)
17685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17686 for as_dir in $PATH
17687 do
17688   IFS=$as_save_IFS
17689   test -z "$as_dir" && as_dir=.
17690     for ac_exec_ext in '' $ac_executable_extensions; do
17691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17692     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17694     break 2
17695   fi
17696 done
17697   done
17698 IFS=$as_save_IFS
17699 
17700   ;;
17701 esac
17702 fi
17703 READELF=$ac_cv_path_READELF
17704 if test -n "$READELF"; then
17705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17706 $as_echo "$READELF" >&6; }
17707 else
17708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17709 $as_echo "no" >&6; }
17710 fi
17711 
17712 
17713   test -n "$READELF" && break
17714 done
17715 
17716     else
17717       # If it succeeded, then it was overridden by the user. We will use it
17718       # for the tool.
17719 
17720       # First remove it from the list of overridden variables, so we can test
17721       # for unknown variables in the end.
17722       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17723 
17724       # Check if the provided tool contains a complete path.
17725       tool_specified="$READELF"
17726       tool_basename="${tool_specified##*/}"
17727       if test "x$tool_basename" = "x$tool_specified"; then
17728         # A command without a complete path is provided, search $PATH.
17729         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17730 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17731         # Extract the first word of "$tool_basename", so it can be a program name with args.
17732 set dummy $tool_basename; ac_word=$2
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17734 $as_echo_n "checking for $ac_word... " >&6; }
17735 if ${ac_cv_path_READELF+:} false; then :
17736   $as_echo_n "(cached) " >&6
17737 else
17738   case $READELF in
17739   [\\/]* | ?:[\\/]*)
17740   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17741   ;;
17742   *)
17743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17744 for as_dir in $PATH
17745 do
17746   IFS=$as_save_IFS
17747   test -z "$as_dir" && as_dir=.
17748     for ac_exec_ext in '' $ac_executable_extensions; do
17749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17750     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17752     break 2
17753   fi
17754 done
17755   done
17756 IFS=$as_save_IFS
17757 
17758   ;;
17759 esac
17760 fi
17761 READELF=$ac_cv_path_READELF
17762 if test -n "$READELF"; then
17763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17764 $as_echo "$READELF" >&6; }
17765 else
17766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17767 $as_echo "no" >&6; }
17768 fi
17769 
17770 
17771         if test "x$READELF" = x; then
17772           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17773         fi
17774       else
17775         # Otherwise we believe it is a complete path. Use it as it is.
17776         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17777 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17779 $as_echo_n "checking for READELF... " >&6; }
17780         if test ! -x "$tool_specified"; then
17781           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17782 $as_echo "not found" >&6; }
17783           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17784         fi
17785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17786 $as_echo "$tool_specified" >&6; }
17787       fi
17788     fi
17789   fi
17790 
17791 
17792 
17793 
17794   # Publish this variable in the help.
17795 
17796 
17797   if test "x$HG" = x; then
17798     # The variable is not set by user, try to locate tool using the code snippet
17799     for ac_prog in hg
17800 do
17801   # Extract the first word of "$ac_prog", so it can be a program name with args.
17802 set dummy $ac_prog; ac_word=$2
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17804 $as_echo_n "checking for $ac_word... " >&6; }
17805 if ${ac_cv_path_HG+:} false; then :
17806   $as_echo_n "(cached) " >&6
17807 else
17808   case $HG in
17809   [\\/]* | ?:[\\/]*)
17810   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17811   ;;
17812   *)
17813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17814 for as_dir in $PATH
17815 do
17816   IFS=$as_save_IFS
17817   test -z "$as_dir" && as_dir=.
17818     for ac_exec_ext in '' $ac_executable_extensions; do
17819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17820     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17822     break 2
17823   fi
17824 done
17825   done
17826 IFS=$as_save_IFS
17827 
17828   ;;
17829 esac
17830 fi
17831 HG=$ac_cv_path_HG
17832 if test -n "$HG"; then
17833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17834 $as_echo "$HG" >&6; }
17835 else
17836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17837 $as_echo "no" >&6; }
17838 fi
17839 
17840 
17841   test -n "$HG" && break
17842 done
17843 
17844   else
17845     # The variable is set, but is it from the command line or the environment?
17846 
17847     # Try to remove the string !HG! from our list.
17848     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17849     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17850       # If it failed, the variable was not from the command line. Ignore it,
17851       # but warn the user (except for BASH, which is always set by the calling BASH).
17852       if test "xHG" != xBASH; then
17853         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17854 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17855       fi
17856       # Try to locate tool using the code snippet
17857       for ac_prog in hg
17858 do
17859   # Extract the first word of "$ac_prog", so it can be a program name with args.
17860 set dummy $ac_prog; ac_word=$2
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17862 $as_echo_n "checking for $ac_word... " >&6; }
17863 if ${ac_cv_path_HG+:} false; then :
17864   $as_echo_n "(cached) " >&6
17865 else
17866   case $HG in
17867   [\\/]* | ?:[\\/]*)
17868   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17869   ;;
17870   *)
17871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17872 for as_dir in $PATH
17873 do
17874   IFS=$as_save_IFS
17875   test -z "$as_dir" && as_dir=.
17876     for ac_exec_ext in '' $ac_executable_extensions; do
17877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17878     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17880     break 2
17881   fi
17882 done
17883   done
17884 IFS=$as_save_IFS
17885 
17886   ;;
17887 esac
17888 fi
17889 HG=$ac_cv_path_HG
17890 if test -n "$HG"; then
17891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17892 $as_echo "$HG" >&6; }
17893 else
17894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895 $as_echo "no" >&6; }
17896 fi
17897 
17898 
17899   test -n "$HG" && break
17900 done
17901 
17902     else
17903       # If it succeeded, then it was overridden by the user. We will use it
17904       # for the tool.
17905 
17906       # First remove it from the list of overridden variables, so we can test
17907       # for unknown variables in the end.
17908       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17909 
17910       # Check if the provided tool contains a complete path.
17911       tool_specified="$HG"
17912       tool_basename="${tool_specified##*/}"
17913       if test "x$tool_basename" = "x$tool_specified"; then
17914         # A command without a complete path is provided, search $PATH.
17915         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17916 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17917         # Extract the first word of "$tool_basename", so it can be a program name with args.
17918 set dummy $tool_basename; ac_word=$2
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17920 $as_echo_n "checking for $ac_word... " >&6; }
17921 if ${ac_cv_path_HG+:} false; then :
17922   $as_echo_n "(cached) " >&6
17923 else
17924   case $HG in
17925   [\\/]* | ?:[\\/]*)
17926   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17927   ;;
17928   *)
17929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17930 for as_dir in $PATH
17931 do
17932   IFS=$as_save_IFS
17933   test -z "$as_dir" && as_dir=.
17934     for ac_exec_ext in '' $ac_executable_extensions; do
17935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17936     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17938     break 2
17939   fi
17940 done
17941   done
17942 IFS=$as_save_IFS
17943 
17944   ;;
17945 esac
17946 fi
17947 HG=$ac_cv_path_HG
17948 if test -n "$HG"; then
17949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17950 $as_echo "$HG" >&6; }
17951 else
17952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953 $as_echo "no" >&6; }
17954 fi
17955 
17956 
17957         if test "x$HG" = x; then
17958           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17959         fi
17960       else
17961         # Otherwise we believe it is a complete path. Use it as it is.
17962         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17963 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17965 $as_echo_n "checking for HG... " >&6; }
17966         if test ! -x "$tool_specified"; then
17967           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17968 $as_echo "not found" >&6; }
17969           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17970         fi
17971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17972 $as_echo "$tool_specified" >&6; }
17973       fi
17974     fi
17975   fi
17976 
17977 
17978 
17979 
17980   # Publish this variable in the help.
17981 
17982 
17983   if test "x$STAT" = x; then
17984     # The variable is not set by user, try to locate tool using the code snippet
17985     for ac_prog in stat
17986 do
17987   # Extract the first word of "$ac_prog", so it can be a program name with args.
17988 set dummy $ac_prog; ac_word=$2
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17990 $as_echo_n "checking for $ac_word... " >&6; }
17991 if ${ac_cv_path_STAT+:} false; then :
17992   $as_echo_n "(cached) " >&6
17993 else
17994   case $STAT in
17995   [\\/]* | ?:[\\/]*)
17996   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17997   ;;
17998   *)
17999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18000 for as_dir in $PATH
18001 do
18002   IFS=$as_save_IFS
18003   test -z "$as_dir" && as_dir=.
18004     for ac_exec_ext in '' $ac_executable_extensions; do
18005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18006     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18008     break 2
18009   fi
18010 done
18011   done
18012 IFS=$as_save_IFS
18013 
18014   ;;
18015 esac
18016 fi
18017 STAT=$ac_cv_path_STAT
18018 if test -n "$STAT"; then
18019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18020 $as_echo "$STAT" >&6; }
18021 else
18022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18023 $as_echo "no" >&6; }
18024 fi
18025 
18026 
18027   test -n "$STAT" && break
18028 done
18029 
18030   else
18031     # The variable is set, but is it from the command line or the environment?
18032 
18033     # Try to remove the string !STAT! from our list.
18034     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18035     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18036       # If it failed, the variable was not from the command line. Ignore it,
18037       # but warn the user (except for BASH, which is always set by the calling BASH).
18038       if test "xSTAT" != xBASH; then
18039         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18040 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18041       fi
18042       # Try to locate tool using the code snippet
18043       for ac_prog in stat
18044 do
18045   # Extract the first word of "$ac_prog", so it can be a program name with args.
18046 set dummy $ac_prog; ac_word=$2
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18048 $as_echo_n "checking for $ac_word... " >&6; }
18049 if ${ac_cv_path_STAT+:} false; then :
18050   $as_echo_n "(cached) " >&6
18051 else
18052   case $STAT in
18053   [\\/]* | ?:[\\/]*)
18054   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18055   ;;
18056   *)
18057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18058 for as_dir in $PATH
18059 do
18060   IFS=$as_save_IFS
18061   test -z "$as_dir" && as_dir=.
18062     for ac_exec_ext in '' $ac_executable_extensions; do
18063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18064     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18066     break 2
18067   fi
18068 done
18069   done
18070 IFS=$as_save_IFS
18071 
18072   ;;
18073 esac
18074 fi
18075 STAT=$ac_cv_path_STAT
18076 if test -n "$STAT"; then
18077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18078 $as_echo "$STAT" >&6; }
18079 else
18080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18081 $as_echo "no" >&6; }
18082 fi
18083 
18084 
18085   test -n "$STAT" && break
18086 done
18087 
18088     else
18089       # If it succeeded, then it was overridden by the user. We will use it
18090       # for the tool.
18091 
18092       # First remove it from the list of overridden variables, so we can test
18093       # for unknown variables in the end.
18094       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18095 
18096       # Check if the provided tool contains a complete path.
18097       tool_specified="$STAT"
18098       tool_basename="${tool_specified##*/}"
18099       if test "x$tool_basename" = "x$tool_specified"; then
18100         # A command without a complete path is provided, search $PATH.
18101         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18102 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18103         # Extract the first word of "$tool_basename", so it can be a program name with args.
18104 set dummy $tool_basename; ac_word=$2
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18106 $as_echo_n "checking for $ac_word... " >&6; }
18107 if ${ac_cv_path_STAT+:} false; then :
18108   $as_echo_n "(cached) " >&6
18109 else
18110   case $STAT in
18111   [\\/]* | ?:[\\/]*)
18112   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18113   ;;
18114   *)
18115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18116 for as_dir in $PATH
18117 do
18118   IFS=$as_save_IFS
18119   test -z "$as_dir" && as_dir=.
18120     for ac_exec_ext in '' $ac_executable_extensions; do
18121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18122     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18124     break 2
18125   fi
18126 done
18127   done
18128 IFS=$as_save_IFS
18129 
18130   ;;
18131 esac
18132 fi
18133 STAT=$ac_cv_path_STAT
18134 if test -n "$STAT"; then
18135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18136 $as_echo "$STAT" >&6; }
18137 else
18138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139 $as_echo "no" >&6; }
18140 fi
18141 
18142 
18143         if test "x$STAT" = x; then
18144           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18145         fi
18146       else
18147         # Otherwise we believe it is a complete path. Use it as it is.
18148         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18149 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18150         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18151 $as_echo_n "checking for STAT... " >&6; }
18152         if test ! -x "$tool_specified"; then
18153           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18154 $as_echo "not found" >&6; }
18155           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18156         fi
18157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18158 $as_echo "$tool_specified" >&6; }
18159       fi
18160     fi
18161   fi
18162 
18163 
18164 
18165 
18166   # Publish this variable in the help.
18167 
18168 
18169   if test "x$TIME" = x; then
18170     # The variable is not set by user, try to locate tool using the code snippet
18171     for ac_prog in time
18172 do
18173   # Extract the first word of "$ac_prog", so it can be a program name with args.
18174 set dummy $ac_prog; ac_word=$2
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18176 $as_echo_n "checking for $ac_word... " >&6; }
18177 if ${ac_cv_path_TIME+:} false; then :
18178   $as_echo_n "(cached) " >&6
18179 else
18180   case $TIME in
18181   [\\/]* | ?:[\\/]*)
18182   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18183   ;;
18184   *)
18185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18186 for as_dir in $PATH
18187 do
18188   IFS=$as_save_IFS
18189   test -z "$as_dir" && as_dir=.
18190     for ac_exec_ext in '' $ac_executable_extensions; do
18191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18192     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18194     break 2
18195   fi
18196 done
18197   done
18198 IFS=$as_save_IFS
18199 
18200   ;;
18201 esac
18202 fi
18203 TIME=$ac_cv_path_TIME
18204 if test -n "$TIME"; then
18205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18206 $as_echo "$TIME" >&6; }
18207 else
18208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18209 $as_echo "no" >&6; }
18210 fi
18211 
18212 
18213   test -n "$TIME" && break
18214 done
18215 
18216   else
18217     # The variable is set, but is it from the command line or the environment?
18218 
18219     # Try to remove the string !TIME! from our list.
18220     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18221     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18222       # If it failed, the variable was not from the command line. Ignore it,
18223       # but warn the user (except for BASH, which is always set by the calling BASH).
18224       if test "xTIME" != xBASH; then
18225         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18226 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18227       fi
18228       # Try to locate tool using the code snippet
18229       for ac_prog in time
18230 do
18231   # Extract the first word of "$ac_prog", so it can be a program name with args.
18232 set dummy $ac_prog; ac_word=$2
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18234 $as_echo_n "checking for $ac_word... " >&6; }
18235 if ${ac_cv_path_TIME+:} false; then :
18236   $as_echo_n "(cached) " >&6
18237 else
18238   case $TIME in
18239   [\\/]* | ?:[\\/]*)
18240   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18241   ;;
18242   *)
18243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18244 for as_dir in $PATH
18245 do
18246   IFS=$as_save_IFS
18247   test -z "$as_dir" && as_dir=.
18248     for ac_exec_ext in '' $ac_executable_extensions; do
18249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18250     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18252     break 2
18253   fi
18254 done
18255   done
18256 IFS=$as_save_IFS
18257 
18258   ;;
18259 esac
18260 fi
18261 TIME=$ac_cv_path_TIME
18262 if test -n "$TIME"; then
18263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18264 $as_echo "$TIME" >&6; }
18265 else
18266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18267 $as_echo "no" >&6; }
18268 fi
18269 
18270 
18271   test -n "$TIME" && break
18272 done
18273 
18274     else
18275       # If it succeeded, then it was overridden by the user. We will use it
18276       # for the tool.
18277 
18278       # First remove it from the list of overridden variables, so we can test
18279       # for unknown variables in the end.
18280       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18281 
18282       # Check if the provided tool contains a complete path.
18283       tool_specified="$TIME"
18284       tool_basename="${tool_specified##*/}"
18285       if test "x$tool_basename" = "x$tool_specified"; then
18286         # A command without a complete path is provided, search $PATH.
18287         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18288 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18289         # Extract the first word of "$tool_basename", so it can be a program name with args.
18290 set dummy $tool_basename; ac_word=$2
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18292 $as_echo_n "checking for $ac_word... " >&6; }
18293 if ${ac_cv_path_TIME+:} false; then :
18294   $as_echo_n "(cached) " >&6
18295 else
18296   case $TIME in
18297   [\\/]* | ?:[\\/]*)
18298   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18299   ;;
18300   *)
18301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18302 for as_dir in $PATH
18303 do
18304   IFS=$as_save_IFS
18305   test -z "$as_dir" && as_dir=.
18306     for ac_exec_ext in '' $ac_executable_extensions; do
18307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18308     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18310     break 2
18311   fi
18312 done
18313   done
18314 IFS=$as_save_IFS
18315 
18316   ;;
18317 esac
18318 fi
18319 TIME=$ac_cv_path_TIME
18320 if test -n "$TIME"; then
18321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18322 $as_echo "$TIME" >&6; }
18323 else
18324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18325 $as_echo "no" >&6; }
18326 fi
18327 
18328 
18329         if test "x$TIME" = x; then
18330           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18331         fi
18332       else
18333         # Otherwise we believe it is a complete path. Use it as it is.
18334         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18335 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18337 $as_echo_n "checking for TIME... " >&6; }
18338         if test ! -x "$tool_specified"; then
18339           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18340 $as_echo "not found" >&6; }
18341           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18342         fi
18343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18344 $as_echo "$tool_specified" >&6; }
18345       fi
18346     fi
18347   fi
18348 
18349 
18350   # Check if it's GNU time
18351   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18352   if test "x$IS_GNU_TIME" != x; then
18353     IS_GNU_TIME=yes
18354   else
18355     IS_GNU_TIME=no
18356   fi
18357 
18358 
18359   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18360 
18361 
18362 
18363   # Publish this variable in the help.
18364 
18365 
18366   if test "x$COMM" = x; then
18367     # The variable is not set by user, try to locate tool using the code snippet
18368     for ac_prog in comm
18369 do
18370   # Extract the first word of "$ac_prog", so it can be a program name with args.
18371 set dummy $ac_prog; ac_word=$2
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18373 $as_echo_n "checking for $ac_word... " >&6; }
18374 if ${ac_cv_path_COMM+:} false; then :
18375   $as_echo_n "(cached) " >&6
18376 else
18377   case $COMM in
18378   [\\/]* | ?:[\\/]*)
18379   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18380   ;;
18381   *)
18382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18383 for as_dir in $PATH
18384 do
18385   IFS=$as_save_IFS
18386   test -z "$as_dir" && as_dir=.
18387     for ac_exec_ext in '' $ac_executable_extensions; do
18388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18389     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18391     break 2
18392   fi
18393 done
18394   done
18395 IFS=$as_save_IFS
18396 
18397   ;;
18398 esac
18399 fi
18400 COMM=$ac_cv_path_COMM
18401 if test -n "$COMM"; then
18402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18403 $as_echo "$COMM" >&6; }
18404 else
18405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18406 $as_echo "no" >&6; }
18407 fi
18408 
18409 
18410   test -n "$COMM" && break
18411 done
18412 
18413   else
18414     # The variable is set, but is it from the command line or the environment?
18415 
18416     # Try to remove the string !COMM! from our list.
18417     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18418     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18419       # If it failed, the variable was not from the command line. Ignore it,
18420       # but warn the user (except for BASH, which is always set by the calling BASH).
18421       if test "xCOMM" != xBASH; then
18422         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18423 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18424       fi
18425       # Try to locate tool using the code snippet
18426       for ac_prog in comm
18427 do
18428   # Extract the first word of "$ac_prog", so it can be a program name with args.
18429 set dummy $ac_prog; ac_word=$2
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18431 $as_echo_n "checking for $ac_word... " >&6; }
18432 if ${ac_cv_path_COMM+:} false; then :
18433   $as_echo_n "(cached) " >&6
18434 else
18435   case $COMM in
18436   [\\/]* | ?:[\\/]*)
18437   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18438   ;;
18439   *)
18440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18441 for as_dir in $PATH
18442 do
18443   IFS=$as_save_IFS
18444   test -z "$as_dir" && as_dir=.
18445     for ac_exec_ext in '' $ac_executable_extensions; do
18446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18447     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18449     break 2
18450   fi
18451 done
18452   done
18453 IFS=$as_save_IFS
18454 
18455   ;;
18456 esac
18457 fi
18458 COMM=$ac_cv_path_COMM
18459 if test -n "$COMM"; then
18460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18461 $as_echo "$COMM" >&6; }
18462 else
18463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464 $as_echo "no" >&6; }
18465 fi
18466 
18467 
18468   test -n "$COMM" && break
18469 done
18470 
18471     else
18472       # If it succeeded, then it was overridden by the user. We will use it
18473       # for the tool.
18474 
18475       # First remove it from the list of overridden variables, so we can test
18476       # for unknown variables in the end.
18477       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18478 
18479       # Check if the provided tool contains a complete path.
18480       tool_specified="$COMM"
18481       tool_basename="${tool_specified##*/}"
18482       if test "x$tool_basename" = "x$tool_specified"; then
18483         # A command without a complete path is provided, search $PATH.
18484         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18485 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18486         # Extract the first word of "$tool_basename", so it can be a program name with args.
18487 set dummy $tool_basename; ac_word=$2
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18489 $as_echo_n "checking for $ac_word... " >&6; }
18490 if ${ac_cv_path_COMM+:} false; then :
18491   $as_echo_n "(cached) " >&6
18492 else
18493   case $COMM in
18494   [\\/]* | ?:[\\/]*)
18495   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18496   ;;
18497   *)
18498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18499 for as_dir in $PATH
18500 do
18501   IFS=$as_save_IFS
18502   test -z "$as_dir" && as_dir=.
18503     for ac_exec_ext in '' $ac_executable_extensions; do
18504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18505     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18507     break 2
18508   fi
18509 done
18510   done
18511 IFS=$as_save_IFS
18512 
18513   ;;
18514 esac
18515 fi
18516 COMM=$ac_cv_path_COMM
18517 if test -n "$COMM"; then
18518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18519 $as_echo "$COMM" >&6; }
18520 else
18521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18523 fi
18524 
18525 
18526         if test "x$COMM" = x; then
18527           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18528         fi
18529       else
18530         # Otherwise we believe it is a complete path. Use it as it is.
18531         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18532 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18534 $as_echo_n "checking for COMM... " >&6; }
18535         if test ! -x "$tool_specified"; then
18536           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18537 $as_echo "not found" >&6; }
18538           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18539         fi
18540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18541 $as_echo "$tool_specified" >&6; }
18542       fi
18543     fi
18544   fi
18545 
18546 
18547 
18548   if test "x$COMM" = x; then
18549     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18550   fi
18551 
18552 
18553   fi
18554 
18555   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18556 
18557 
18558 
18559   # Publish this variable in the help.
18560 
18561 
18562   if test "x$DSYMUTIL" = x; then
18563     # The variable is not set by user, try to locate tool using the code snippet
18564     for ac_prog in dsymutil
18565 do
18566   # Extract the first word of "$ac_prog", so it can be a program name with args.
18567 set dummy $ac_prog; ac_word=$2
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18569 $as_echo_n "checking for $ac_word... " >&6; }
18570 if ${ac_cv_path_DSYMUTIL+:} false; then :
18571   $as_echo_n "(cached) " >&6
18572 else
18573   case $DSYMUTIL in
18574   [\\/]* | ?:[\\/]*)
18575   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18576   ;;
18577   *)
18578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18579 for as_dir in $PATH
18580 do
18581   IFS=$as_save_IFS
18582   test -z "$as_dir" && as_dir=.
18583     for ac_exec_ext in '' $ac_executable_extensions; do
18584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18585     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18587     break 2
18588   fi
18589 done
18590   done
18591 IFS=$as_save_IFS
18592 
18593   ;;
18594 esac
18595 fi
18596 DSYMUTIL=$ac_cv_path_DSYMUTIL
18597 if test -n "$DSYMUTIL"; then
18598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18599 $as_echo "$DSYMUTIL" >&6; }
18600 else
18601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18603 fi
18604 
18605 
18606   test -n "$DSYMUTIL" && break
18607 done
18608 
18609   else
18610     # The variable is set, but is it from the command line or the environment?
18611 
18612     # Try to remove the string !DSYMUTIL! from our list.
18613     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18614     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18615       # If it failed, the variable was not from the command line. Ignore it,
18616       # but warn the user (except for BASH, which is always set by the calling BASH).
18617       if test "xDSYMUTIL" != xBASH; then
18618         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18619 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18620       fi
18621       # Try to locate tool using the code snippet
18622       for ac_prog in dsymutil
18623 do
18624   # Extract the first word of "$ac_prog", so it can be a program name with args.
18625 set dummy $ac_prog; ac_word=$2
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18627 $as_echo_n "checking for $ac_word... " >&6; }
18628 if ${ac_cv_path_DSYMUTIL+:} false; then :
18629   $as_echo_n "(cached) " >&6
18630 else
18631   case $DSYMUTIL in
18632   [\\/]* | ?:[\\/]*)
18633   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18634   ;;
18635   *)
18636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18637 for as_dir in $PATH
18638 do
18639   IFS=$as_save_IFS
18640   test -z "$as_dir" && as_dir=.
18641     for ac_exec_ext in '' $ac_executable_extensions; do
18642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18643     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18645     break 2
18646   fi
18647 done
18648   done
18649 IFS=$as_save_IFS
18650 
18651   ;;
18652 esac
18653 fi
18654 DSYMUTIL=$ac_cv_path_DSYMUTIL
18655 if test -n "$DSYMUTIL"; then
18656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18657 $as_echo "$DSYMUTIL" >&6; }
18658 else
18659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18660 $as_echo "no" >&6; }
18661 fi
18662 
18663 
18664   test -n "$DSYMUTIL" && break
18665 done
18666 
18667     else
18668       # If it succeeded, then it was overridden by the user. We will use it
18669       # for the tool.
18670 
18671       # First remove it from the list of overridden variables, so we can test
18672       # for unknown variables in the end.
18673       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18674 
18675       # Check if the provided tool contains a complete path.
18676       tool_specified="$DSYMUTIL"
18677       tool_basename="${tool_specified##*/}"
18678       if test "x$tool_basename" = "x$tool_specified"; then
18679         # A command without a complete path is provided, search $PATH.
18680         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18681 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18682         # Extract the first word of "$tool_basename", so it can be a program name with args.
18683 set dummy $tool_basename; ac_word=$2
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18685 $as_echo_n "checking for $ac_word... " >&6; }
18686 if ${ac_cv_path_DSYMUTIL+:} false; then :
18687   $as_echo_n "(cached) " >&6
18688 else
18689   case $DSYMUTIL in
18690   [\\/]* | ?:[\\/]*)
18691   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18692   ;;
18693   *)
18694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18695 for as_dir in $PATH
18696 do
18697   IFS=$as_save_IFS
18698   test -z "$as_dir" && as_dir=.
18699     for ac_exec_ext in '' $ac_executable_extensions; do
18700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18701     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18703     break 2
18704   fi
18705 done
18706   done
18707 IFS=$as_save_IFS
18708 
18709   ;;
18710 esac
18711 fi
18712 DSYMUTIL=$ac_cv_path_DSYMUTIL
18713 if test -n "$DSYMUTIL"; then
18714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18715 $as_echo "$DSYMUTIL" >&6; }
18716 else
18717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 $as_echo "no" >&6; }
18719 fi
18720 
18721 
18722         if test "x$DSYMUTIL" = x; then
18723           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18724         fi
18725       else
18726         # Otherwise we believe it is a complete path. Use it as it is.
18727         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18728 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18730 $as_echo_n "checking for DSYMUTIL... " >&6; }
18731         if test ! -x "$tool_specified"; then
18732           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18733 $as_echo "not found" >&6; }
18734           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18735         fi
18736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18737 $as_echo "$tool_specified" >&6; }
18738       fi
18739     fi
18740   fi
18741 
18742 
18743 
18744   if test "x$DSYMUTIL" = x; then
18745     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18746   fi
18747 
18748 
18749 
18750 
18751 
18752   # Publish this variable in the help.
18753 
18754 
18755   if test "x$XATTR" = x; then
18756     # The variable is not set by user, try to locate tool using the code snippet
18757     for ac_prog in xattr
18758 do
18759   # Extract the first word of "$ac_prog", so it can be a program name with args.
18760 set dummy $ac_prog; ac_word=$2
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18762 $as_echo_n "checking for $ac_word... " >&6; }
18763 if ${ac_cv_path_XATTR+:} false; then :
18764   $as_echo_n "(cached) " >&6
18765 else
18766   case $XATTR in
18767   [\\/]* | ?:[\\/]*)
18768   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18769   ;;
18770   *)
18771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18772 for as_dir in $PATH
18773 do
18774   IFS=$as_save_IFS
18775   test -z "$as_dir" && as_dir=.
18776     for ac_exec_ext in '' $ac_executable_extensions; do
18777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18778     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18780     break 2
18781   fi
18782 done
18783   done
18784 IFS=$as_save_IFS
18785 
18786   ;;
18787 esac
18788 fi
18789 XATTR=$ac_cv_path_XATTR
18790 if test -n "$XATTR"; then
18791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18792 $as_echo "$XATTR" >&6; }
18793 else
18794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18795 $as_echo "no" >&6; }
18796 fi
18797 
18798 
18799   test -n "$XATTR" && break
18800 done
18801 
18802   else
18803     # The variable is set, but is it from the command line or the environment?
18804 
18805     # Try to remove the string !XATTR! from our list.
18806     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18807     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18808       # If it failed, the variable was not from the command line. Ignore it,
18809       # but warn the user (except for BASH, which is always set by the calling BASH).
18810       if test "xXATTR" != xBASH; then
18811         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18812 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18813       fi
18814       # Try to locate tool using the code snippet
18815       for ac_prog in xattr
18816 do
18817   # Extract the first word of "$ac_prog", so it can be a program name with args.
18818 set dummy $ac_prog; ac_word=$2
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18820 $as_echo_n "checking for $ac_word... " >&6; }
18821 if ${ac_cv_path_XATTR+:} false; then :
18822   $as_echo_n "(cached) " >&6
18823 else
18824   case $XATTR in
18825   [\\/]* | ?:[\\/]*)
18826   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18827   ;;
18828   *)
18829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18830 for as_dir in $PATH
18831 do
18832   IFS=$as_save_IFS
18833   test -z "$as_dir" && as_dir=.
18834     for ac_exec_ext in '' $ac_executable_extensions; do
18835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18836     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18838     break 2
18839   fi
18840 done
18841   done
18842 IFS=$as_save_IFS
18843 
18844   ;;
18845 esac
18846 fi
18847 XATTR=$ac_cv_path_XATTR
18848 if test -n "$XATTR"; then
18849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18850 $as_echo "$XATTR" >&6; }
18851 else
18852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853 $as_echo "no" >&6; }
18854 fi
18855 
18856 
18857   test -n "$XATTR" && break
18858 done
18859 
18860     else
18861       # If it succeeded, then it was overridden by the user. We will use it
18862       # for the tool.
18863 
18864       # First remove it from the list of overridden variables, so we can test
18865       # for unknown variables in the end.
18866       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18867 
18868       # Check if the provided tool contains a complete path.
18869       tool_specified="$XATTR"
18870       tool_basename="${tool_specified##*/}"
18871       if test "x$tool_basename" = "x$tool_specified"; then
18872         # A command without a complete path is provided, search $PATH.
18873         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18874 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18875         # Extract the first word of "$tool_basename", so it can be a program name with args.
18876 set dummy $tool_basename; ac_word=$2
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18878 $as_echo_n "checking for $ac_word... " >&6; }
18879 if ${ac_cv_path_XATTR+:} false; then :
18880   $as_echo_n "(cached) " >&6
18881 else
18882   case $XATTR in
18883   [\\/]* | ?:[\\/]*)
18884   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18885   ;;
18886   *)
18887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18889 do
18890   IFS=$as_save_IFS
18891   test -z "$as_dir" && as_dir=.
18892     for ac_exec_ext in '' $ac_executable_extensions; do
18893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18894     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18896     break 2
18897   fi
18898 done
18899   done
18900 IFS=$as_save_IFS
18901 
18902   ;;
18903 esac
18904 fi
18905 XATTR=$ac_cv_path_XATTR
18906 if test -n "$XATTR"; then
18907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18908 $as_echo "$XATTR" >&6; }
18909 else
18910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911 $as_echo "no" >&6; }
18912 fi
18913 
18914 
18915         if test "x$XATTR" = x; then
18916           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18917         fi
18918       else
18919         # Otherwise we believe it is a complete path. Use it as it is.
18920         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18921 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18923 $as_echo_n "checking for XATTR... " >&6; }
18924         if test ! -x "$tool_specified"; then
18925           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18926 $as_echo "not found" >&6; }
18927           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18928         fi
18929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18930 $as_echo "$tool_specified" >&6; }
18931       fi
18932     fi
18933   fi
18934 
18935 
18936 
18937   if test "x$XATTR" = x; then
18938     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18939   fi
18940 
18941 
18942 
18943 
18944   # Publish this variable in the help.
18945 
18946 
18947   if test "x$CODESIGN" = x; then
18948     # The variable is not set by user, try to locate tool using the code snippet
18949     for ac_prog in codesign
18950 do
18951   # Extract the first word of "$ac_prog", so it can be a program name with args.
18952 set dummy $ac_prog; ac_word=$2
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18954 $as_echo_n "checking for $ac_word... " >&6; }
18955 if ${ac_cv_path_CODESIGN+:} false; then :
18956   $as_echo_n "(cached) " >&6
18957 else
18958   case $CODESIGN in
18959   [\\/]* | ?:[\\/]*)
18960   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18961   ;;
18962   *)
18963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18964 for as_dir in $PATH
18965 do
18966   IFS=$as_save_IFS
18967   test -z "$as_dir" && as_dir=.
18968     for ac_exec_ext in '' $ac_executable_extensions; do
18969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18970     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18972     break 2
18973   fi
18974 done
18975   done
18976 IFS=$as_save_IFS
18977 
18978   ;;
18979 esac
18980 fi
18981 CODESIGN=$ac_cv_path_CODESIGN
18982 if test -n "$CODESIGN"; then
18983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18984 $as_echo "$CODESIGN" >&6; }
18985 else
18986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18987 $as_echo "no" >&6; }
18988 fi
18989 
18990 
18991   test -n "$CODESIGN" && break
18992 done
18993 
18994   else
18995     # The variable is set, but is it from the command line or the environment?
18996 
18997     # Try to remove the string !CODESIGN! from our list.
18998     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18999     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19000       # If it failed, the variable was not from the command line. Ignore it,
19001       # but warn the user (except for BASH, which is always set by the calling BASH).
19002       if test "xCODESIGN" != xBASH; then
19003         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19004 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19005       fi
19006       # Try to locate tool using the code snippet
19007       for ac_prog in codesign
19008 do
19009   # Extract the first word of "$ac_prog", so it can be a program name with args.
19010 set dummy $ac_prog; ac_word=$2
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19012 $as_echo_n "checking for $ac_word... " >&6; }
19013 if ${ac_cv_path_CODESIGN+:} false; then :
19014   $as_echo_n "(cached) " >&6
19015 else
19016   case $CODESIGN in
19017   [\\/]* | ?:[\\/]*)
19018   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19019   ;;
19020   *)
19021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19022 for as_dir in $PATH
19023 do
19024   IFS=$as_save_IFS
19025   test -z "$as_dir" && as_dir=.
19026     for ac_exec_ext in '' $ac_executable_extensions; do
19027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19028     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19030     break 2
19031   fi
19032 done
19033   done
19034 IFS=$as_save_IFS
19035 
19036   ;;
19037 esac
19038 fi
19039 CODESIGN=$ac_cv_path_CODESIGN
19040 if test -n "$CODESIGN"; then
19041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19042 $as_echo "$CODESIGN" >&6; }
19043 else
19044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19045 $as_echo "no" >&6; }
19046 fi
19047 
19048 
19049   test -n "$CODESIGN" && break
19050 done
19051 
19052     else
19053       # If it succeeded, then it was overridden by the user. We will use it
19054       # for the tool.
19055 
19056       # First remove it from the list of overridden variables, so we can test
19057       # for unknown variables in the end.
19058       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19059 
19060       # Check if the provided tool contains a complete path.
19061       tool_specified="$CODESIGN"
19062       tool_basename="${tool_specified##*/}"
19063       if test "x$tool_basename" = "x$tool_specified"; then
19064         # A command without a complete path is provided, search $PATH.
19065         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19066 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19067         # Extract the first word of "$tool_basename", so it can be a program name with args.
19068 set dummy $tool_basename; ac_word=$2
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19070 $as_echo_n "checking for $ac_word... " >&6; }
19071 if ${ac_cv_path_CODESIGN+:} false; then :
19072   $as_echo_n "(cached) " >&6
19073 else
19074   case $CODESIGN in
19075   [\\/]* | ?:[\\/]*)
19076   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19077   ;;
19078   *)
19079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19080 for as_dir in $PATH
19081 do
19082   IFS=$as_save_IFS
19083   test -z "$as_dir" && as_dir=.
19084     for ac_exec_ext in '' $ac_executable_extensions; do
19085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19086     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19088     break 2
19089   fi
19090 done
19091   done
19092 IFS=$as_save_IFS
19093 
19094   ;;
19095 esac
19096 fi
19097 CODESIGN=$ac_cv_path_CODESIGN
19098 if test -n "$CODESIGN"; then
19099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19100 $as_echo "$CODESIGN" >&6; }
19101 else
19102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19104 fi
19105 
19106 
19107         if test "x$CODESIGN" = x; then
19108           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19109         fi
19110       else
19111         # Otherwise we believe it is a complete path. Use it as it is.
19112         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19113 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19115 $as_echo_n "checking for CODESIGN... " >&6; }
19116         if test ! -x "$tool_specified"; then
19117           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19118 $as_echo "not found" >&6; }
19119           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19120         fi
19121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19122 $as_echo "$tool_specified" >&6; }
19123       fi
19124     fi
19125   fi
19126 
19127 
19128     if test "x$CODESIGN" != "x"; then
19129       # Verify that the openjdk_codesign certificate is present
19130       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19131 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19132       rm -f codesign-testfile
19133       touch codesign-testfile
19134       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19135       rm -f codesign-testfile
19136       if test "x$CODESIGN" = x; then
19137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19138 $as_echo "no" >&6; }
19139       else
19140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19141 $as_echo "yes" >&6; }
19142       fi
19143     fi
19144   fi
19145 
19146 
19147 # Check if pkg-config is available.
19148 
19149 
19150 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19151         if test -n "$ac_tool_prefix"; then
19152   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19153 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19155 $as_echo_n "checking for $ac_word... " >&6; }
19156 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19157   $as_echo_n "(cached) " >&6
19158 else
19159   case $PKG_CONFIG in
19160   [\\/]* | ?:[\\/]*)
19161   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19162   ;;
19163   *)
19164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19165 for as_dir in $PATH
19166 do
19167   IFS=$as_save_IFS
19168   test -z "$as_dir" && as_dir=.
19169     for ac_exec_ext in '' $ac_executable_extensions; do
19170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19171     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19173     break 2
19174   fi
19175 done
19176   done
19177 IFS=$as_save_IFS
19178 
19179   ;;
19180 esac
19181 fi
19182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19183 if test -n "$PKG_CONFIG"; then
19184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19185 $as_echo "$PKG_CONFIG" >&6; }
19186 else
19187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19188 $as_echo "no" >&6; }
19189 fi
19190 
19191 
19192 fi
19193 if test -z "$ac_cv_path_PKG_CONFIG"; then
19194   ac_pt_PKG_CONFIG=$PKG_CONFIG
19195   # Extract the first word of "pkg-config", so it can be a program name with args.
19196 set dummy pkg-config; ac_word=$2
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19198 $as_echo_n "checking for $ac_word... " >&6; }
19199 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19200   $as_echo_n "(cached) " >&6
19201 else
19202   case $ac_pt_PKG_CONFIG in
19203   [\\/]* | ?:[\\/]*)
19204   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19205   ;;
19206   *)
19207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19208 for as_dir in $PATH
19209 do
19210   IFS=$as_save_IFS
19211   test -z "$as_dir" && as_dir=.
19212     for ac_exec_ext in '' $ac_executable_extensions; do
19213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19214     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19216     break 2
19217   fi
19218 done
19219   done
19220 IFS=$as_save_IFS
19221 
19222   ;;
19223 esac
19224 fi
19225 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19226 if test -n "$ac_pt_PKG_CONFIG"; then
19227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19228 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19229 else
19230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 $as_echo "no" >&6; }
19232 fi
19233 
19234   if test "x$ac_pt_PKG_CONFIG" = x; then
19235     PKG_CONFIG=""
19236   else
19237     case $cross_compiling:$ac_tool_warned in
19238 yes:)
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19241 ac_tool_warned=yes ;;
19242 esac
19243     PKG_CONFIG=$ac_pt_PKG_CONFIG
19244   fi
19245 else
19246   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19247 fi
19248 
19249 fi
19250 if test -n "$PKG_CONFIG"; then
19251         _pkg_min_version=0.9.0
19252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19253 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19254         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19255                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19256 $as_echo "yes" >&6; }
19257         else
19258                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259 $as_echo "no" >&6; }
19260                 PKG_CONFIG=""
19261         fi
19262 
19263 fi
19264 
19265 # After basic tools have been setup, we can check build os specific details.
19266 
19267   ###############################################################################
19268 
19269   # Note that this is the build platform OS version!
19270 
19271   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19272   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19273   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19274   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19275 
19276 
19277 
19278 
19279 
19280 # Setup builddeps, for automatic downloading of tools we need.
19281 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19282 # boot-jdk setup, but we need to have basic tools setup first.
19283 
19284 
19285 # Check whether --with-builddeps-conf was given.
19286 if test "${with_builddeps_conf+set}" = set; then :
19287   withval=$with_builddeps_conf;
19288 fi
19289 
19290 
19291 
19292 # Check whether --with-builddeps-server was given.
19293 if test "${with_builddeps_server+set}" = set; then :
19294   withval=$with_builddeps_server;
19295 fi
19296 
19297 
19298 
19299 # Check whether --with-builddeps-dir was given.
19300 if test "${with_builddeps_dir+set}" = set; then :
19301   withval=$with_builddeps_dir;
19302 else
19303   with_builddeps_dir=/localhome/builddeps
19304 fi
19305 
19306 
19307 
19308 # Check whether --with-builddeps-group was given.
19309 if test "${with_builddeps_group+set}" = set; then :
19310   withval=$with_builddeps_group;
19311 fi
19312 
19313 
19314 
19315 
19316   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19317     if test "x$with_builddeps_conf" != x; then
19318       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19319 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19320       builddepsfile=$with_builddeps_conf
19321       if test -s $builddepsfile; then
19322         . $builddepsfile
19323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19324 $as_echo "loaded!" >&6; }
19325       else
19326         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19327       fi
19328     else
19329       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19330 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19331       builddepsfile=`mktemp`
19332       touch $builddepsfile
19333       # Put all found confs into a single file.
19334       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19335       # Source the file to acquire the variables
19336       if test -s $builddepsfile; then
19337         . $builddepsfile
19338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19339 $as_echo "found at least one!" >&6; }
19340       else
19341         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19342       fi
19343     fi
19344     # Create build and target names that use _ instead of "-" and ".".
19345     # This is necessary to use them in variable names.
19346     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19347     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19348     # Extract rewrite information for build and target
19349     eval rewritten_build=\${REWRITE_${build_var}}
19350     if test "x$rewritten_build" = x; then
19351       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19352       echo Build stays the same $rewritten_build
19353     else
19354       echo Rewriting build for builddeps into $rewritten_build
19355     fi
19356     eval rewritten_target=\${REWRITE_${target_var}}
19357     if test "x$rewritten_target" = x; then
19358       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19359       echo Target stays the same $rewritten_target
19360     else
19361       echo Rewriting target for builddeps into $rewritten_target
19362     fi
19363     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19364     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19365   fi
19366   for ac_prog in 7z unzip
19367 do
19368   # Extract the first word of "$ac_prog", so it can be a program name with args.
19369 set dummy $ac_prog; ac_word=$2
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19371 $as_echo_n "checking for $ac_word... " >&6; }
19372 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19373   $as_echo_n "(cached) " >&6
19374 else
19375   if test -n "$BDEPS_UNZIP"; then
19376   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19377 else
19378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19379 for as_dir in $PATH
19380 do
19381   IFS=$as_save_IFS
19382   test -z "$as_dir" && as_dir=.
19383     for ac_exec_ext in '' $ac_executable_extensions; do
19384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19385     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19387     break 2
19388   fi
19389 done
19390   done
19391 IFS=$as_save_IFS
19392 
19393 fi
19394 fi
19395 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19396 if test -n "$BDEPS_UNZIP"; then
19397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19398 $as_echo "$BDEPS_UNZIP" >&6; }
19399 else
19400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19401 $as_echo "no" >&6; }
19402 fi
19403 
19404 
19405   test -n "$BDEPS_UNZIP" && break
19406 done
19407 
19408   if test "x$BDEPS_UNZIP" = x7z; then
19409     BDEPS_UNZIP="7z x"
19410   fi
19411 
19412   for ac_prog in wget lftp ftp
19413 do
19414   # Extract the first word of "$ac_prog", so it can be a program name with args.
19415 set dummy $ac_prog; ac_word=$2
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19417 $as_echo_n "checking for $ac_word... " >&6; }
19418 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19419   $as_echo_n "(cached) " >&6
19420 else
19421   if test -n "$BDEPS_FTP"; then
19422   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19423 else
19424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19425 for as_dir in $PATH
19426 do
19427   IFS=$as_save_IFS
19428   test -z "$as_dir" && as_dir=.
19429     for ac_exec_ext in '' $ac_executable_extensions; do
19430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19431     ac_cv_prog_BDEPS_FTP="$ac_prog"
19432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19433     break 2
19434   fi
19435 done
19436   done
19437 IFS=$as_save_IFS
19438 
19439 fi
19440 fi
19441 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19442 if test -n "$BDEPS_FTP"; then
19443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19444 $as_echo "$BDEPS_FTP" >&6; }
19445 else
19446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19447 $as_echo "no" >&6; }
19448 fi
19449 
19450 
19451   test -n "$BDEPS_FTP" && break
19452 done
19453 
19454 
19455 
19456 ###############################################################################
19457 #
19458 # Determine OpenJDK variants, options and version numbers.
19459 #
19460 ###############################################################################
19461 
19462 # We need build & target for this.
19463 
19464 
19465   ###############################################################################
19466   #
19467   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19468   # We always build headless support.
19469   #
19470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19471 $as_echo_n "checking headful support... " >&6; }
19472   # Check whether --enable-headful was given.
19473 if test "${enable_headful+set}" = set; then :
19474   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19475 else
19476   SUPPORT_HEADFUL=yes
19477 fi
19478 
19479 
19480   SUPPORT_HEADLESS=yes
19481   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19482 
19483   if test "x$SUPPORT_HEADFUL" = xyes; then
19484     # We are building both headful and headless.
19485     headful_msg="include support for both headful and headless"
19486   fi
19487 
19488   if test "x$SUPPORT_HEADFUL" = xno; then
19489     # Thus we are building headless only.
19490     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19491     headful_msg="headless only"
19492   fi
19493 
19494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19495 $as_echo "$headful_msg" >&6; }
19496 
19497 
19498 
19499 
19500 
19501   # Control wether Hotspot runs Queens test after build.
19502   # Check whether --enable-hotspot-test-in-build was given.
19503 if test "${enable_hotspot_test_in_build+set}" = set; then :
19504   enableval=$enable_hotspot_test_in_build;
19505 else
19506   enable_hotspot_test_in_build=no
19507 fi
19508 
19509   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19510     TEST_IN_BUILD=true
19511   else
19512     TEST_IN_BUILD=false
19513   fi
19514 
19515 
19516   ###############################################################################
19517   #
19518   # Choose cacerts source file
19519   #
19520 
19521 # Check whether --with-cacerts-file was given.
19522 if test "${with_cacerts_file+set}" = set; then :
19523   withval=$with_cacerts_file;
19524 fi
19525 
19526   if test "x$with_cacerts_file" != x; then
19527     CACERTS_FILE=$with_cacerts_file
19528   else
19529     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19530   fi
19531 
19532 
19533   ###############################################################################
19534   #
19535   # Enable or disable unlimited crypto
19536   #
19537   # Check whether --enable-unlimited-crypto was given.
19538 if test "${enable_unlimited_crypto+set}" = set; then :
19539   enableval=$enable_unlimited_crypto;
19540 else
19541   enable_unlimited_crypto=no
19542 fi
19543 
19544   if test "x$enable_unlimited_crypto" = "xyes"; then
19545     UNLIMITED_CRYPTO=true
19546   else
19547     UNLIMITED_CRYPTO=false
19548   fi
19549 
19550 
19551   ###############################################################################
19552   #
19553   # Enable or disable the elliptic curve crypto implementation
19554   #
19555 
19556 
19557   ###############################################################################
19558   #
19559   # --enable-rmiconnector-iiop
19560   #
19561   # Check whether --enable-rmiconnector-iiop was given.
19562 if test "${enable_rmiconnector_iiop+set}" = set; then :
19563   enableval=$enable_rmiconnector_iiop;
19564 fi
19565 
19566   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19567     RMICONNECTOR_IIOP=true
19568   else
19569     RMICONNECTOR_IIOP=false
19570   fi
19571 
19572 
19573   ###############################################################################
19574   #
19575   # Compress jars
19576   #
19577   COMPRESS_JARS=false
19578 
19579 
19580 
19581 
19582   # Source the version numbers
19583   . $AUTOCONF_DIR/version-numbers
19584 
19585   # Get the settings from parameters
19586 
19587 # Check whether --with-milestone was given.
19588 if test "${with_milestone+set}" = set; then :
19589   withval=$with_milestone;
19590 fi
19591 
19592   if test "x$with_milestone" = xyes; then
19593     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19594   elif test "x$with_milestone" != x; then
19595     MILESTONE="$with_milestone"
19596   fi
19597   if test "x$MILESTONE" = x; then
19598     MILESTONE=internal
19599   fi
19600 
19601 
19602 # Check whether --with-update-version was given.
19603 if test "${with_update_version+set}" = set; then :
19604   withval=$with_update_version;
19605 fi
19606 
19607   if test "x$with_update_version" = xyes; then
19608     as_fn_error $? "Update version must have a value" "$LINENO" 5
19609   elif test "x$with_update_version" != x; then
19610     JDK_UPDATE_VERSION="$with_update_version"
19611     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19612     # to a bug in expr (which reduces it to just X). To work around this, we
19613     # always add a 0 to one digit update versions.
19614     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19615       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19616     fi
19617   fi
19618 
19619 
19620 # Check whether --with-user-release-suffix was given.
19621 if test "${with_user_release_suffix+set}" = set; then :
19622   withval=$with_user_release_suffix;
19623 fi
19624 
19625   if test "x$with_user_release_suffix" = xyes; then
19626     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19627   elif test "x$with_user_release_suffix" != x; then
19628     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19629   fi
19630 
19631 
19632 # Check whether --with-build-number was given.
19633 if test "${with_build_number+set}" = set; then :
19634   withval=$with_build_number;
19635 fi
19636 
19637   if test "x$with_build_number" = xyes; then
19638     as_fn_error $? "Build number must have a value" "$LINENO" 5
19639   elif test "x$with_build_number" != x; then
19640     JDK_BUILD_NUMBER="$with_build_number"
19641   fi
19642   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19643   if test "x$JDK_BUILD_NUMBER" = x; then
19644     JDK_BUILD_NUMBER=b00
19645     if test "x$USER_RELEASE_SUFFIX" = x; then
19646       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19647       # Avoid [:alnum:] since it depends on the locale.
19648       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19649       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19650     fi
19651   fi
19652 
19653   # Now set the JDK version, milestone, build number etc.
19654 
19655 
19656 
19657 
19658 
19659 
19660 
19661 
19662 
19663 
19664 
19665 
19666 
19667 
19668 
19669   COPYRIGHT_YEAR=`date +'%Y'`
19670 
19671 
19672   if test "x$JDK_UPDATE_VERSION" != x; then
19673     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19674   else
19675     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19676   fi
19677 
19678 
19679   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19680 
19681 
19682 
19683 ###############################################################################
19684 #
19685 # Setup BootJDK, used to bootstrap the build.
19686 #
19687 ###############################################################################
19688 
19689 
19690   BOOT_JDK_FOUND=no
19691 
19692 # Check whether --with-boot-jdk was given.
19693 if test "${with_boot_jdk+set}" = set; then :
19694   withval=$with_boot_jdk;
19695 fi
19696 
19697 
19698   # We look for the Boot JDK through various means, going from more certain to
19699   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19700   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19701   # must check if this is indeed valid; otherwise we'll continue looking.
19702 
19703   # Test: Is bootjdk explicitely set by command line arguments?
19704 
19705   if test "x$BOOT_JDK_FOUND" = xno; then
19706     # Now execute the test
19707 
19708   if test "x$with_boot_jdk" != x; then
19709     BOOT_JDK=$with_boot_jdk
19710     BOOT_JDK_FOUND=maybe
19711     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19712 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19713   fi
19714 
19715 
19716     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19717     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19718       # Do we have a bin/java?
19719       if test ! -x "$BOOT_JDK/bin/java"; then
19720         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19722         BOOT_JDK_FOUND=no
19723       else
19724         # Do we have a bin/javac?
19725         if test ! -x "$BOOT_JDK/bin/javac"; then
19726           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19728           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19729 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19730           BOOT_JDK_FOUND=no
19731         else
19732           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19733           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19734             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19735 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19736             BOOT_JDK_FOUND=no
19737           else
19738             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19739             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19740 
19741             # Extra M4 quote needed to protect [] in grep expression.
19742             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19743             if test "x$FOUND_CORRECT_VERSION" = x; then
19744               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19746               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19747 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19748               BOOT_JDK_FOUND=no
19749             else
19750               # We're done! :-)
19751               BOOT_JDK_FOUND=yes
19752 
19753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19754 
19755   # Input might be given as Windows format, start by converting to
19756   # unix format.
19757   path="$BOOT_JDK"
19758   new_path=`$CYGPATH -u "$path"`
19759 
19760   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19761   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19762   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19763   # "foo.exe" is OK but "foo" is an error.
19764   #
19765   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19766   # It is also a way to make sure we got the proper file name for the real test later on.
19767   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19768   if test "x$test_shortpath" = x; then
19769     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19770 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19771     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19772   fi
19773 
19774   # Call helper function which possibly converts this using DOS-style short mode.
19775   # If so, the updated path is stored in $new_path.
19776 
19777   input_path="$new_path"
19778   # Check if we need to convert this using DOS-style short mode. If the path
19779   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19780   # take no chances and rewrite it.
19781   # Note: m4 eats our [], so we need to use [ and ] instead.
19782   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19783   if test "x$has_forbidden_chars" != x; then
19784     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19785     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19786     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19787     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19788       # Going to short mode and back again did indeed matter. Since short mode is
19789       # case insensitive, let's make it lowercase to improve readability.
19790       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19791       # Now convert it back to Unix-stile (cygpath)
19792       input_path=`$CYGPATH -u "$shortmode_path"`
19793       new_path="$input_path"
19794     fi
19795   fi
19796 
19797   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19798   if test "x$test_cygdrive_prefix" = x; then
19799     # As a simple fix, exclude /usr/bin since it's not a real path.
19800     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19801       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19802       # a path prefixed by /cygdrive for fixpath to work.
19803       new_path="$CYGWIN_ROOT_PATH$input_path"
19804     fi
19805   fi
19806 
19807 
19808   if test "x$path" != "x$new_path"; then
19809     BOOT_JDK="$new_path"
19810     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19811 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19812   fi
19813 
19814   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19815 
19816   path="$BOOT_JDK"
19817   has_colon=`$ECHO $path | $GREP ^.:`
19818   new_path="$path"
19819   if test "x$has_colon" = x; then
19820     # Not in mixed or Windows style, start by that.
19821     new_path=`cmd //c echo $path`
19822   fi
19823 
19824 
19825   input_path="$new_path"
19826   # Check if we need to convert this using DOS-style short mode. If the path
19827   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19828   # take no chances and rewrite it.
19829   # Note: m4 eats our [], so we need to use [ and ] instead.
19830   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19831   if test "x$has_forbidden_chars" != x; then
19832     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19833     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19834   fi
19835 
19836 
19837   windows_path="$new_path"
19838   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19839     unix_path=`$CYGPATH -u "$windows_path"`
19840     new_path="$unix_path"
19841   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19842     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19843     new_path="$unix_path"
19844   fi
19845 
19846   if test "x$path" != "x$new_path"; then
19847     BOOT_JDK="$new_path"
19848     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19849 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19850   fi
19851 
19852   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19853   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19854 
19855   else
19856     # We're on a posix platform. Hooray! :)
19857     path="$BOOT_JDK"
19858     has_space=`$ECHO "$path" | $GREP " "`
19859     if test "x$has_space" != x; then
19860       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19862       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19863     fi
19864 
19865     # Use eval to expand a potential ~
19866     eval path="$path"
19867     if test ! -f "$path" && test ! -d "$path"; then
19868       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19869     fi
19870 
19871     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19872   fi
19873 
19874               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19875 $as_echo_n "checking for Boot JDK... " >&6; }
19876               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19877 $as_echo "$BOOT_JDK" >&6; }
19878               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19879 $as_echo_n "checking Boot JDK version... " >&6; }
19880               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19881               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19882 $as_echo "$BOOT_JDK_VERSION" >&6; }
19883             fi # end check jdk version
19884           fi # end check rt.jar
19885         fi # end check javac
19886       fi # end check java
19887     fi # end check boot jdk found
19888   fi
19889 
19890   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19891     # Having specified an argument which is incorrect will produce an instant failure;
19892     # we should not go on looking
19893     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19894   fi
19895 
19896   # Test: Is bootjdk available from builddeps?
19897 
19898   if test "x$BOOT_JDK_FOUND" = xno; then
19899     # Now execute the test
19900 
19901 
19902 
19903   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19904     # Source the builddeps file again, to make sure it uses the latest variables!
19905     . $builddepsfile
19906     # Look for a target and build machine specific resource!
19907     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19908     if test "x$resource" = x; then
19909       # Ok, lets instead look for a target specific resource
19910       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19911     fi
19912     if test "x$resource" = x; then
19913       # Ok, lets instead look for a build specific resource
19914       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19915     fi
19916     if test "x$resource" = x; then
19917       # Ok, lets instead look for a generic resource
19918       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19919       resource=${builddep_bootjdk}
19920     fi
19921     if test "x$resource" != x; then
19922       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19923 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19924       # If the resource in the builddeps.conf file is an existing directory,
19925       # for example /java/linux/cups
19926       if test -d ${resource}; then
19927         depdir=${resource}
19928       else
19929 
19930   # bootjdk is for example mymodule
19931   # $resource is for example libs/general/libmymod_1_2_3.zip
19932   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19933   # $with_builddeps_dir is for example /localhome/builddeps
19934   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19935   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19936   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19937   filename=`basename $resource`
19938   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19939   filebase=${filename%%.*}
19940   extension=${filename#*.}
19941   installdir=$with_builddeps_dir/$filebase
19942   if test ! -f $installdir/$filename.unpacked; then
19943     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19944 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19945     if test ! -d $installdir; then
19946       mkdir -p $installdir
19947     fi
19948     if test ! -d $installdir; then
19949       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19950     fi
19951     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19952     touch $tmpfile
19953     if test ! -f $tmpfile; then
19954       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19955     fi
19956 
19957   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19958   # $tmpfile is the local file name for the downloaded file.
19959   VALID_TOOL=no
19960   if test "x$BDEPS_FTP" = xwget; then
19961     VALID_TOOL=yes
19962     wget -O $tmpfile $with_builddeps_server/$resource
19963   fi
19964   if test "x$BDEPS_FTP" = xlftp; then
19965     VALID_TOOL=yes
19966     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19967   fi
19968   if test "x$BDEPS_FTP" = xftp; then
19969     VALID_TOOL=yes
19970     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19971     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19972     FTPUSERPWD=${FTPSERVER%%@*}
19973     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19974       FTPUSER=${userpwd%%:*}
19975       FTPPWD=${userpwd#*@}
19976       FTPSERVER=${FTPSERVER#*@}
19977     else
19978       FTPUSER=ftp
19979       FTPPWD=ftp
19980     fi
19981     # the "pass" command does not work on some
19982     # ftp clients (read ftp.exe) but if it works,
19983     # passive mode is better!
19984     ( \
19985         echo "user $FTPUSER $FTPPWD"        ; \
19986         echo "pass"                         ; \
19987         echo "bin"                          ; \
19988         echo "get $FTPPATH $tmpfile"              ; \
19989     ) | ftp -in $FTPSERVER
19990   fi
19991   if test "x$VALID_TOOL" != xyes; then
19992     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19993   fi
19994 
19995     mv $tmpfile $installdir/$filename
19996     if test ! -s $installdir/$filename; then
19997       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19998     fi
19999     case "$extension" in
20000       zip)  echo "Unzipping $installdir/$filename..."
20001         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20002         ;;
20003       tar.gz) echo "Untaring $installdir/$filename..."
20004         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20005         ;;
20006       tgz) echo "Untaring $installdir/$filename..."
20007         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20008         ;;
20009       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20010         ;;
20011     esac
20012   fi
20013   if test -f $installdir/$filename.unpacked; then
20014     depdir=$installdir
20015   fi
20016 
20017       fi
20018       # Source the builddeps file again, because in the previous command, the depdir
20019       # was updated to point at the current build dependency install directory.
20020       . $builddepsfile
20021       # Now extract variables from the builddeps.conf files.
20022       theroot=${builddep_bootjdk_ROOT}
20023       thecflags=${builddep_bootjdk_CFLAGS}
20024       thelibs=${builddep_bootjdk_LIBS}
20025       if test "x$depdir" = x; then
20026         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20027       fi
20028       BOOT_JDK=$depdir
20029       if test "x$theroot" != x; then
20030         BOOT_JDK="$theroot"
20031       fi
20032       if test "x$thecflags" != x; then
20033         BOOT_JDK_CFLAGS="$thecflags"
20034       fi
20035       if test "x$thelibs" != x; then
20036         BOOT_JDK_LIBS="$thelibs"
20037       fi
20038       BOOT_JDK_FOUND=maybe
20039       else BOOT_JDK_FOUND=no
20040 
20041     fi
20042     else BOOT_JDK_FOUND=no
20043 
20044   fi
20045 
20046 
20047 
20048     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20049     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20050       # Do we have a bin/java?
20051       if test ! -x "$BOOT_JDK/bin/java"; then
20052         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20054         BOOT_JDK_FOUND=no
20055       else
20056         # Do we have a bin/javac?
20057         if test ! -x "$BOOT_JDK/bin/javac"; then
20058           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20060           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20061 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20062           BOOT_JDK_FOUND=no
20063         else
20064           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20065           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20066             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20067 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20068             BOOT_JDK_FOUND=no
20069           else
20070             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20071             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20072 
20073             # Extra M4 quote needed to protect [] in grep expression.
20074             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20075             if test "x$FOUND_CORRECT_VERSION" = x; then
20076               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20077 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20078               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20079 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20080               BOOT_JDK_FOUND=no
20081             else
20082               # We're done! :-)
20083               BOOT_JDK_FOUND=yes
20084 
20085   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20086 
20087   # Input might be given as Windows format, start by converting to
20088   # unix format.
20089   path="$BOOT_JDK"
20090   new_path=`$CYGPATH -u "$path"`
20091 
20092   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20093   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20094   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20095   # "foo.exe" is OK but "foo" is an error.
20096   #
20097   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20098   # It is also a way to make sure we got the proper file name for the real test later on.
20099   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20100   if test "x$test_shortpath" = x; then
20101     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20102 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20103     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20104   fi
20105 
20106   # Call helper function which possibly converts this using DOS-style short mode.
20107   # If so, the updated path is stored in $new_path.
20108 
20109   input_path="$new_path"
20110   # Check if we need to convert this using DOS-style short mode. If the path
20111   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20112   # take no chances and rewrite it.
20113   # Note: m4 eats our [], so we need to use [ and ] instead.
20114   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20115   if test "x$has_forbidden_chars" != x; then
20116     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20117     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20118     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20119     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20120       # Going to short mode and back again did indeed matter. Since short mode is
20121       # case insensitive, let's make it lowercase to improve readability.
20122       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20123       # Now convert it back to Unix-stile (cygpath)
20124       input_path=`$CYGPATH -u "$shortmode_path"`
20125       new_path="$input_path"
20126     fi
20127   fi
20128 
20129   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20130   if test "x$test_cygdrive_prefix" = x; then
20131     # As a simple fix, exclude /usr/bin since it's not a real path.
20132     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20133       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20134       # a path prefixed by /cygdrive for fixpath to work.
20135       new_path="$CYGWIN_ROOT_PATH$input_path"
20136     fi
20137   fi
20138 
20139 
20140   if test "x$path" != "x$new_path"; then
20141     BOOT_JDK="$new_path"
20142     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20143 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20144   fi
20145 
20146   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20147 
20148   path="$BOOT_JDK"
20149   has_colon=`$ECHO $path | $GREP ^.:`
20150   new_path="$path"
20151   if test "x$has_colon" = x; then
20152     # Not in mixed or Windows style, start by that.
20153     new_path=`cmd //c echo $path`
20154   fi
20155 
20156 
20157   input_path="$new_path"
20158   # Check if we need to convert this using DOS-style short mode. If the path
20159   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20160   # take no chances and rewrite it.
20161   # Note: m4 eats our [], so we need to use [ and ] instead.
20162   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20163   if test "x$has_forbidden_chars" != x; then
20164     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20165     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20166   fi
20167 
20168 
20169   windows_path="$new_path"
20170   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20171     unix_path=`$CYGPATH -u "$windows_path"`
20172     new_path="$unix_path"
20173   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20174     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20175     new_path="$unix_path"
20176   fi
20177 
20178   if test "x$path" != "x$new_path"; then
20179     BOOT_JDK="$new_path"
20180     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20181 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20182   fi
20183 
20184   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20185   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20186 
20187   else
20188     # We're on a posix platform. Hooray! :)
20189     path="$BOOT_JDK"
20190     has_space=`$ECHO "$path" | $GREP " "`
20191     if test "x$has_space" != x; then
20192       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20193 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20194       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20195     fi
20196 
20197     # Use eval to expand a potential ~
20198     eval path="$path"
20199     if test ! -f "$path" && test ! -d "$path"; then
20200       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20201     fi
20202 
20203     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20204   fi
20205 
20206               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20207 $as_echo_n "checking for Boot JDK... " >&6; }
20208               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20209 $as_echo "$BOOT_JDK" >&6; }
20210               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20211 $as_echo_n "checking Boot JDK version... " >&6; }
20212               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20213               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20214 $as_echo "$BOOT_JDK_VERSION" >&6; }
20215             fi # end check jdk version
20216           fi # end check rt.jar
20217         fi # end check javac
20218       fi # end check java
20219     fi # end check boot jdk found
20220   fi
20221 
20222 
20223   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20224 
20225   if test "x$BOOT_JDK_FOUND" = xno; then
20226     # Now execute the test
20227 
20228   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20229     # First check at user selected default
20230 
20231   if test "x$BOOT_JDK_FOUND" = xno; then
20232     # Now execute the test
20233 
20234   if test -x /usr/libexec/java_home; then
20235     BOOT_JDK=`/usr/libexec/java_home `
20236     BOOT_JDK_FOUND=maybe
20237     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20238 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20239   fi
20240 
20241 
20242     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20243     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20244       # Do we have a bin/java?
20245       if test ! -x "$BOOT_JDK/bin/java"; then
20246         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20248         BOOT_JDK_FOUND=no
20249       else
20250         # Do we have a bin/javac?
20251         if test ! -x "$BOOT_JDK/bin/javac"; then
20252           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20254           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20255 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20256           BOOT_JDK_FOUND=no
20257         else
20258           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20259           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20260             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20262             BOOT_JDK_FOUND=no
20263           else
20264             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20265             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20266 
20267             # Extra M4 quote needed to protect [] in grep expression.
20268             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20269             if test "x$FOUND_CORRECT_VERSION" = x; then
20270               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20272               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20273 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20274               BOOT_JDK_FOUND=no
20275             else
20276               # We're done! :-)
20277               BOOT_JDK_FOUND=yes
20278 
20279   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20280 
20281   # Input might be given as Windows format, start by converting to
20282   # unix format.
20283   path="$BOOT_JDK"
20284   new_path=`$CYGPATH -u "$path"`
20285 
20286   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20287   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20288   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20289   # "foo.exe" is OK but "foo" is an error.
20290   #
20291   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20292   # It is also a way to make sure we got the proper file name for the real test later on.
20293   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20294   if test "x$test_shortpath" = x; then
20295     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20296 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20297     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20298   fi
20299 
20300   # Call helper function which possibly converts this using DOS-style short mode.
20301   # If so, the updated path is stored in $new_path.
20302 
20303   input_path="$new_path"
20304   # Check if we need to convert this using DOS-style short mode. If the path
20305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20306   # take no chances and rewrite it.
20307   # Note: m4 eats our [], so we need to use [ and ] instead.
20308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20309   if test "x$has_forbidden_chars" != x; then
20310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20311     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20312     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20313     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20314       # Going to short mode and back again did indeed matter. Since short mode is
20315       # case insensitive, let's make it lowercase to improve readability.
20316       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20317       # Now convert it back to Unix-stile (cygpath)
20318       input_path=`$CYGPATH -u "$shortmode_path"`
20319       new_path="$input_path"
20320     fi
20321   fi
20322 
20323   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20324   if test "x$test_cygdrive_prefix" = x; then
20325     # As a simple fix, exclude /usr/bin since it's not a real path.
20326     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20327       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20328       # a path prefixed by /cygdrive for fixpath to work.
20329       new_path="$CYGWIN_ROOT_PATH$input_path"
20330     fi
20331   fi
20332 
20333 
20334   if test "x$path" != "x$new_path"; then
20335     BOOT_JDK="$new_path"
20336     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20337 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20338   fi
20339 
20340   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20341 
20342   path="$BOOT_JDK"
20343   has_colon=`$ECHO $path | $GREP ^.:`
20344   new_path="$path"
20345   if test "x$has_colon" = x; then
20346     # Not in mixed or Windows style, start by that.
20347     new_path=`cmd //c echo $path`
20348   fi
20349 
20350 
20351   input_path="$new_path"
20352   # Check if we need to convert this using DOS-style short mode. If the path
20353   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20354   # take no chances and rewrite it.
20355   # Note: m4 eats our [], so we need to use [ and ] instead.
20356   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20357   if test "x$has_forbidden_chars" != x; then
20358     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20359     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20360   fi
20361 
20362 
20363   windows_path="$new_path"
20364   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20365     unix_path=`$CYGPATH -u "$windows_path"`
20366     new_path="$unix_path"
20367   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20368     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20369     new_path="$unix_path"
20370   fi
20371 
20372   if test "x$path" != "x$new_path"; then
20373     BOOT_JDK="$new_path"
20374     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20375 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20376   fi
20377 
20378   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20379   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20380 
20381   else
20382     # We're on a posix platform. Hooray! :)
20383     path="$BOOT_JDK"
20384     has_space=`$ECHO "$path" | $GREP " "`
20385     if test "x$has_space" != x; then
20386       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20388       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20389     fi
20390 
20391     # Use eval to expand a potential ~
20392     eval path="$path"
20393     if test ! -f "$path" && test ! -d "$path"; then
20394       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20395     fi
20396 
20397     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20398   fi
20399 
20400               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20401 $as_echo_n "checking for Boot JDK... " >&6; }
20402               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20403 $as_echo "$BOOT_JDK" >&6; }
20404               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20405 $as_echo_n "checking Boot JDK version... " >&6; }
20406               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20407               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20408 $as_echo "$BOOT_JDK_VERSION" >&6; }
20409             fi # end check jdk version
20410           fi # end check rt.jar
20411         fi # end check javac
20412       fi # end check java
20413     fi # end check boot jdk found
20414   fi
20415 
20416     # If that did not work out (e.g. too old), try explicit versions instead
20417 
20418   if test "x$BOOT_JDK_FOUND" = xno; then
20419     # Now execute the test
20420 
20421   if test -x /usr/libexec/java_home; then
20422     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20423     BOOT_JDK_FOUND=maybe
20424     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20425 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20426   fi
20427 
20428 
20429     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20430     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20431       # Do we have a bin/java?
20432       if test ! -x "$BOOT_JDK/bin/java"; then
20433         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20435         BOOT_JDK_FOUND=no
20436       else
20437         # Do we have a bin/javac?
20438         if test ! -x "$BOOT_JDK/bin/javac"; then
20439           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20441           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20442 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20443           BOOT_JDK_FOUND=no
20444         else
20445           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20446           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20447             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20449             BOOT_JDK_FOUND=no
20450           else
20451             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20452             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20453 
20454             # Extra M4 quote needed to protect [] in grep expression.
20455             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20456             if test "x$FOUND_CORRECT_VERSION" = x; then
20457               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20458 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20459               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20460 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20461               BOOT_JDK_FOUND=no
20462             else
20463               # We're done! :-)
20464               BOOT_JDK_FOUND=yes
20465 
20466   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20467 
20468   # Input might be given as Windows format, start by converting to
20469   # unix format.
20470   path="$BOOT_JDK"
20471   new_path=`$CYGPATH -u "$path"`
20472 
20473   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20474   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20475   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20476   # "foo.exe" is OK but "foo" is an error.
20477   #
20478   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20479   # It is also a way to make sure we got the proper file name for the real test later on.
20480   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20481   if test "x$test_shortpath" = x; then
20482     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20483 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20484     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20485   fi
20486 
20487   # Call helper function which possibly converts this using DOS-style short mode.
20488   # If so, the updated path is stored in $new_path.
20489 
20490   input_path="$new_path"
20491   # Check if we need to convert this using DOS-style short mode. If the path
20492   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20493   # take no chances and rewrite it.
20494   # Note: m4 eats our [], so we need to use [ and ] instead.
20495   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20496   if test "x$has_forbidden_chars" != x; then
20497     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20498     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20499     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20500     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20501       # Going to short mode and back again did indeed matter. Since short mode is
20502       # case insensitive, let's make it lowercase to improve readability.
20503       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20504       # Now convert it back to Unix-stile (cygpath)
20505       input_path=`$CYGPATH -u "$shortmode_path"`
20506       new_path="$input_path"
20507     fi
20508   fi
20509 
20510   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20511   if test "x$test_cygdrive_prefix" = x; then
20512     # As a simple fix, exclude /usr/bin since it's not a real path.
20513     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20514       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20515       # a path prefixed by /cygdrive for fixpath to work.
20516       new_path="$CYGWIN_ROOT_PATH$input_path"
20517     fi
20518   fi
20519 
20520 
20521   if test "x$path" != "x$new_path"; then
20522     BOOT_JDK="$new_path"
20523     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20524 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20525   fi
20526 
20527   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20528 
20529   path="$BOOT_JDK"
20530   has_colon=`$ECHO $path | $GREP ^.:`
20531   new_path="$path"
20532   if test "x$has_colon" = x; then
20533     # Not in mixed or Windows style, start by that.
20534     new_path=`cmd //c echo $path`
20535   fi
20536 
20537 
20538   input_path="$new_path"
20539   # Check if we need to convert this using DOS-style short mode. If the path
20540   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20541   # take no chances and rewrite it.
20542   # Note: m4 eats our [], so we need to use [ and ] instead.
20543   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20544   if test "x$has_forbidden_chars" != x; then
20545     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20546     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20547   fi
20548 
20549 
20550   windows_path="$new_path"
20551   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20552     unix_path=`$CYGPATH -u "$windows_path"`
20553     new_path="$unix_path"
20554   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20555     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20556     new_path="$unix_path"
20557   fi
20558 
20559   if test "x$path" != "x$new_path"; then
20560     BOOT_JDK="$new_path"
20561     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20562 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20563   fi
20564 
20565   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20566   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20567 
20568   else
20569     # We're on a posix platform. Hooray! :)
20570     path="$BOOT_JDK"
20571     has_space=`$ECHO "$path" | $GREP " "`
20572     if test "x$has_space" != x; then
20573       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20574 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20575       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20576     fi
20577 
20578     # Use eval to expand a potential ~
20579     eval path="$path"
20580     if test ! -f "$path" && test ! -d "$path"; then
20581       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20582     fi
20583 
20584     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20585   fi
20586 
20587               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20588 $as_echo_n "checking for Boot JDK... " >&6; }
20589               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20590 $as_echo "$BOOT_JDK" >&6; }
20591               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20592 $as_echo_n "checking Boot JDK version... " >&6; }
20593               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20594               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20595 $as_echo "$BOOT_JDK_VERSION" >&6; }
20596             fi # end check jdk version
20597           fi # end check rt.jar
20598         fi # end check javac
20599       fi # end check java
20600     fi # end check boot jdk found
20601   fi
20602 
20603 
20604   if test "x$BOOT_JDK_FOUND" = xno; then
20605     # Now execute the test
20606 
20607   if test -x /usr/libexec/java_home; then
20608     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20609     BOOT_JDK_FOUND=maybe
20610     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20611 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20612   fi
20613 
20614 
20615     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20616     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20617       # Do we have a bin/java?
20618       if test ! -x "$BOOT_JDK/bin/java"; then
20619         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20621         BOOT_JDK_FOUND=no
20622       else
20623         # Do we have a bin/javac?
20624         if test ! -x "$BOOT_JDK/bin/javac"; then
20625           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20627           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20628 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20629           BOOT_JDK_FOUND=no
20630         else
20631           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20632           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20633             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20635             BOOT_JDK_FOUND=no
20636           else
20637             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20638             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20639 
20640             # Extra M4 quote needed to protect [] in grep expression.
20641             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20642             if test "x$FOUND_CORRECT_VERSION" = x; then
20643               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20645               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20646 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20647               BOOT_JDK_FOUND=no
20648             else
20649               # We're done! :-)
20650               BOOT_JDK_FOUND=yes
20651 
20652   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20653 
20654   # Input might be given as Windows format, start by converting to
20655   # unix format.
20656   path="$BOOT_JDK"
20657   new_path=`$CYGPATH -u "$path"`
20658 
20659   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20660   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20661   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20662   # "foo.exe" is OK but "foo" is an error.
20663   #
20664   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20665   # It is also a way to make sure we got the proper file name for the real test later on.
20666   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20667   if test "x$test_shortpath" = x; then
20668     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20670     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20671   fi
20672 
20673   # Call helper function which possibly converts this using DOS-style short mode.
20674   # If so, the updated path is stored in $new_path.
20675 
20676   input_path="$new_path"
20677   # Check if we need to convert this using DOS-style short mode. If the path
20678   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20679   # take no chances and rewrite it.
20680   # Note: m4 eats our [], so we need to use [ and ] instead.
20681   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20682   if test "x$has_forbidden_chars" != x; then
20683     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20684     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20685     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20686     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20687       # Going to short mode and back again did indeed matter. Since short mode is
20688       # case insensitive, let's make it lowercase to improve readability.
20689       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20690       # Now convert it back to Unix-stile (cygpath)
20691       input_path=`$CYGPATH -u "$shortmode_path"`
20692       new_path="$input_path"
20693     fi
20694   fi
20695 
20696   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20697   if test "x$test_cygdrive_prefix" = x; then
20698     # As a simple fix, exclude /usr/bin since it's not a real path.
20699     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20700       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20701       # a path prefixed by /cygdrive for fixpath to work.
20702       new_path="$CYGWIN_ROOT_PATH$input_path"
20703     fi
20704   fi
20705 
20706 
20707   if test "x$path" != "x$new_path"; then
20708     BOOT_JDK="$new_path"
20709     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20711   fi
20712 
20713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20714 
20715   path="$BOOT_JDK"
20716   has_colon=`$ECHO $path | $GREP ^.:`
20717   new_path="$path"
20718   if test "x$has_colon" = x; then
20719     # Not in mixed or Windows style, start by that.
20720     new_path=`cmd //c echo $path`
20721   fi
20722 
20723 
20724   input_path="$new_path"
20725   # Check if we need to convert this using DOS-style short mode. If the path
20726   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20727   # take no chances and rewrite it.
20728   # Note: m4 eats our [], so we need to use [ and ] instead.
20729   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20730   if test "x$has_forbidden_chars" != x; then
20731     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20732     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20733   fi
20734 
20735 
20736   windows_path="$new_path"
20737   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20738     unix_path=`$CYGPATH -u "$windows_path"`
20739     new_path="$unix_path"
20740   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20741     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20742     new_path="$unix_path"
20743   fi
20744 
20745   if test "x$path" != "x$new_path"; then
20746     BOOT_JDK="$new_path"
20747     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20749   fi
20750 
20751   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20752   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20753 
20754   else
20755     # We're on a posix platform. Hooray! :)
20756     path="$BOOT_JDK"
20757     has_space=`$ECHO "$path" | $GREP " "`
20758     if test "x$has_space" != x; then
20759       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20761       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20762     fi
20763 
20764     # Use eval to expand a potential ~
20765     eval path="$path"
20766     if test ! -f "$path" && test ! -d "$path"; then
20767       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20768     fi
20769 
20770     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20771   fi
20772 
20773               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20774 $as_echo_n "checking for Boot JDK... " >&6; }
20775               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20776 $as_echo "$BOOT_JDK" >&6; }
20777               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20778 $as_echo_n "checking Boot JDK version... " >&6; }
20779               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20780               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20781 $as_echo "$BOOT_JDK_VERSION" >&6; }
20782             fi # end check jdk version
20783           fi # end check rt.jar
20784         fi # end check javac
20785       fi # end check java
20786     fi # end check boot jdk found
20787   fi
20788 
20789 
20790   if test "x$BOOT_JDK_FOUND" = xno; then
20791     # Now execute the test
20792 
20793   if test -x /usr/libexec/java_home; then
20794     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20795     BOOT_JDK_FOUND=maybe
20796     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20797 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20798   fi
20799 
20800 
20801     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20802     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20803       # Do we have a bin/java?
20804       if test ! -x "$BOOT_JDK/bin/java"; then
20805         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20807         BOOT_JDK_FOUND=no
20808       else
20809         # Do we have a bin/javac?
20810         if test ! -x "$BOOT_JDK/bin/javac"; then
20811           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20812 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20813           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20814 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20815           BOOT_JDK_FOUND=no
20816         else
20817           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20818           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20819             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20821             BOOT_JDK_FOUND=no
20822           else
20823             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20824             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20825 
20826             # Extra M4 quote needed to protect [] in grep expression.
20827             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20828             if test "x$FOUND_CORRECT_VERSION" = x; then
20829               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20831               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20832 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20833               BOOT_JDK_FOUND=no
20834             else
20835               # We're done! :-)
20836               BOOT_JDK_FOUND=yes
20837 
20838   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20839 
20840   # Input might be given as Windows format, start by converting to
20841   # unix format.
20842   path="$BOOT_JDK"
20843   new_path=`$CYGPATH -u "$path"`
20844 
20845   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20846   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20847   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20848   # "foo.exe" is OK but "foo" is an error.
20849   #
20850   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20851   # It is also a way to make sure we got the proper file name for the real test later on.
20852   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20853   if test "x$test_shortpath" = x; then
20854     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20855 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20856     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20857   fi
20858 
20859   # Call helper function which possibly converts this using DOS-style short mode.
20860   # If so, the updated path is stored in $new_path.
20861 
20862   input_path="$new_path"
20863   # Check if we need to convert this using DOS-style short mode. If the path
20864   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20865   # take no chances and rewrite it.
20866   # Note: m4 eats our [], so we need to use [ and ] instead.
20867   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20868   if test "x$has_forbidden_chars" != x; then
20869     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20870     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20871     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20872     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20873       # Going to short mode and back again did indeed matter. Since short mode is
20874       # case insensitive, let's make it lowercase to improve readability.
20875       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20876       # Now convert it back to Unix-stile (cygpath)
20877       input_path=`$CYGPATH -u "$shortmode_path"`
20878       new_path="$input_path"
20879     fi
20880   fi
20881 
20882   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20883   if test "x$test_cygdrive_prefix" = x; then
20884     # As a simple fix, exclude /usr/bin since it's not a real path.
20885     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20886       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20887       # a path prefixed by /cygdrive for fixpath to work.
20888       new_path="$CYGWIN_ROOT_PATH$input_path"
20889     fi
20890   fi
20891 
20892 
20893   if test "x$path" != "x$new_path"; then
20894     BOOT_JDK="$new_path"
20895     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20896 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20897   fi
20898 
20899   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20900 
20901   path="$BOOT_JDK"
20902   has_colon=`$ECHO $path | $GREP ^.:`
20903   new_path="$path"
20904   if test "x$has_colon" = x; then
20905     # Not in mixed or Windows style, start by that.
20906     new_path=`cmd //c echo $path`
20907   fi
20908 
20909 
20910   input_path="$new_path"
20911   # Check if we need to convert this using DOS-style short mode. If the path
20912   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20913   # take no chances and rewrite it.
20914   # Note: m4 eats our [], so we need to use [ and ] instead.
20915   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20916   if test "x$has_forbidden_chars" != x; then
20917     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20918     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20919   fi
20920 
20921 
20922   windows_path="$new_path"
20923   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20924     unix_path=`$CYGPATH -u "$windows_path"`
20925     new_path="$unix_path"
20926   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20927     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20928     new_path="$unix_path"
20929   fi
20930 
20931   if test "x$path" != "x$new_path"; then
20932     BOOT_JDK="$new_path"
20933     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20935   fi
20936 
20937   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20938   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20939 
20940   else
20941     # We're on a posix platform. Hooray! :)
20942     path="$BOOT_JDK"
20943     has_space=`$ECHO "$path" | $GREP " "`
20944     if test "x$has_space" != x; then
20945       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20946 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20947       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20948     fi
20949 
20950     # Use eval to expand a potential ~
20951     eval path="$path"
20952     if test ! -f "$path" && test ! -d "$path"; then
20953       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20954     fi
20955 
20956     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20957   fi
20958 
20959               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20960 $as_echo_n "checking for Boot JDK... " >&6; }
20961               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20962 $as_echo "$BOOT_JDK" >&6; }
20963               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20964 $as_echo_n "checking Boot JDK version... " >&6; }
20965               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20966               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20967 $as_echo "$BOOT_JDK_VERSION" >&6; }
20968             fi # end check jdk version
20969           fi # end check rt.jar
20970         fi # end check javac
20971       fi # end check java
20972     fi # end check boot jdk found
20973   fi
20974 
20975   fi
20976 
20977 
20978     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20979     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20980       # Do we have a bin/java?
20981       if test ! -x "$BOOT_JDK/bin/java"; then
20982         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20983 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20984         BOOT_JDK_FOUND=no
20985       else
20986         # Do we have a bin/javac?
20987         if test ! -x "$BOOT_JDK/bin/javac"; then
20988           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20989 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20990           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20991 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20992           BOOT_JDK_FOUND=no
20993         else
20994           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20995           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20996             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20998             BOOT_JDK_FOUND=no
20999           else
21000             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21001             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21002 
21003             # Extra M4 quote needed to protect [] in grep expression.
21004             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21005             if test "x$FOUND_CORRECT_VERSION" = x; then
21006               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21008               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21009 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21010               BOOT_JDK_FOUND=no
21011             else
21012               # We're done! :-)
21013               BOOT_JDK_FOUND=yes
21014 
21015   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21016 
21017   # Input might be given as Windows format, start by converting to
21018   # unix format.
21019   path="$BOOT_JDK"
21020   new_path=`$CYGPATH -u "$path"`
21021 
21022   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21023   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21024   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21025   # "foo.exe" is OK but "foo" is an error.
21026   #
21027   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21028   # It is also a way to make sure we got the proper file name for the real test later on.
21029   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21030   if test "x$test_shortpath" = x; then
21031     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21032 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21033     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21034   fi
21035 
21036   # Call helper function which possibly converts this using DOS-style short mode.
21037   # If so, the updated path is stored in $new_path.
21038 
21039   input_path="$new_path"
21040   # Check if we need to convert this using DOS-style short mode. If the path
21041   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21042   # take no chances and rewrite it.
21043   # Note: m4 eats our [], so we need to use [ and ] instead.
21044   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21045   if test "x$has_forbidden_chars" != x; then
21046     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21047     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21048     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21049     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21050       # Going to short mode and back again did indeed matter. Since short mode is
21051       # case insensitive, let's make it lowercase to improve readability.
21052       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21053       # Now convert it back to Unix-stile (cygpath)
21054       input_path=`$CYGPATH -u "$shortmode_path"`
21055       new_path="$input_path"
21056     fi
21057   fi
21058 
21059   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21060   if test "x$test_cygdrive_prefix" = x; then
21061     # As a simple fix, exclude /usr/bin since it's not a real path.
21062     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21063       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21064       # a path prefixed by /cygdrive for fixpath to work.
21065       new_path="$CYGWIN_ROOT_PATH$input_path"
21066     fi
21067   fi
21068 
21069 
21070   if test "x$path" != "x$new_path"; then
21071     BOOT_JDK="$new_path"
21072     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21073 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21074   fi
21075 
21076   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21077 
21078   path="$BOOT_JDK"
21079   has_colon=`$ECHO $path | $GREP ^.:`
21080   new_path="$path"
21081   if test "x$has_colon" = x; then
21082     # Not in mixed or Windows style, start by that.
21083     new_path=`cmd //c echo $path`
21084   fi
21085 
21086 
21087   input_path="$new_path"
21088   # Check if we need to convert this using DOS-style short mode. If the path
21089   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21090   # take no chances and rewrite it.
21091   # Note: m4 eats our [], so we need to use [ and ] instead.
21092   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21093   if test "x$has_forbidden_chars" != x; then
21094     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21095     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21096   fi
21097 
21098 
21099   windows_path="$new_path"
21100   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21101     unix_path=`$CYGPATH -u "$windows_path"`
21102     new_path="$unix_path"
21103   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21104     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21105     new_path="$unix_path"
21106   fi
21107 
21108   if test "x$path" != "x$new_path"; then
21109     BOOT_JDK="$new_path"
21110     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21111 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21112   fi
21113 
21114   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21115   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21116 
21117   else
21118     # We're on a posix platform. Hooray! :)
21119     path="$BOOT_JDK"
21120     has_space=`$ECHO "$path" | $GREP " "`
21121     if test "x$has_space" != x; then
21122       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21123 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21124       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21125     fi
21126 
21127     # Use eval to expand a potential ~
21128     eval path="$path"
21129     if test ! -f "$path" && test ! -d "$path"; then
21130       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21131     fi
21132 
21133     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21134   fi
21135 
21136               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21137 $as_echo_n "checking for Boot JDK... " >&6; }
21138               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21139 $as_echo "$BOOT_JDK" >&6; }
21140               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21141 $as_echo_n "checking Boot JDK version... " >&6; }
21142               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21143               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21144 $as_echo "$BOOT_JDK_VERSION" >&6; }
21145             fi # end check jdk version
21146           fi # end check rt.jar
21147         fi # end check javac
21148       fi # end check java
21149     fi # end check boot jdk found
21150   fi
21151 
21152 
21153   # Test: Is $JAVA_HOME set?
21154 
21155   if test "x$BOOT_JDK_FOUND" = xno; then
21156     # Now execute the test
21157 
21158   if test "x$JAVA_HOME" != x; then
21159     JAVA_HOME_PROCESSED="$JAVA_HOME"
21160 
21161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21162 
21163   # Input might be given as Windows format, start by converting to
21164   # unix format.
21165   path="$JAVA_HOME_PROCESSED"
21166   new_path=`$CYGPATH -u "$path"`
21167 
21168   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21169   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21170   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21171   # "foo.exe" is OK but "foo" is an error.
21172   #
21173   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21174   # It is also a way to make sure we got the proper file name for the real test later on.
21175   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21176   if test "x$test_shortpath" = x; then
21177     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21178 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21179     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21180   fi
21181 
21182   # Call helper function which possibly converts this using DOS-style short mode.
21183   # If so, the updated path is stored in $new_path.
21184 
21185   input_path="$new_path"
21186   # Check if we need to convert this using DOS-style short mode. If the path
21187   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21188   # take no chances and rewrite it.
21189   # Note: m4 eats our [], so we need to use [ and ] instead.
21190   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21191   if test "x$has_forbidden_chars" != x; then
21192     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21193     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21194     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21195     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21196       # Going to short mode and back again did indeed matter. Since short mode is
21197       # case insensitive, let's make it lowercase to improve readability.
21198       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21199       # Now convert it back to Unix-stile (cygpath)
21200       input_path=`$CYGPATH -u "$shortmode_path"`
21201       new_path="$input_path"
21202     fi
21203   fi
21204 
21205   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21206   if test "x$test_cygdrive_prefix" = x; then
21207     # As a simple fix, exclude /usr/bin since it's not a real path.
21208     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21209       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21210       # a path prefixed by /cygdrive for fixpath to work.
21211       new_path="$CYGWIN_ROOT_PATH$input_path"
21212     fi
21213   fi
21214 
21215 
21216   if test "x$path" != "x$new_path"; then
21217     JAVA_HOME_PROCESSED="$new_path"
21218     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21219 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21220   fi
21221 
21222   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21223 
21224   path="$JAVA_HOME_PROCESSED"
21225   has_colon=`$ECHO $path | $GREP ^.:`
21226   new_path="$path"
21227   if test "x$has_colon" = x; then
21228     # Not in mixed or Windows style, start by that.
21229     new_path=`cmd //c echo $path`
21230   fi
21231 
21232 
21233   input_path="$new_path"
21234   # Check if we need to convert this using DOS-style short mode. If the path
21235   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21236   # take no chances and rewrite it.
21237   # Note: m4 eats our [], so we need to use [ and ] instead.
21238   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21239   if test "x$has_forbidden_chars" != x; then
21240     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21241     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21242   fi
21243 
21244 
21245   windows_path="$new_path"
21246   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21247     unix_path=`$CYGPATH -u "$windows_path"`
21248     new_path="$unix_path"
21249   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21250     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21251     new_path="$unix_path"
21252   fi
21253 
21254   if test "x$path" != "x$new_path"; then
21255     JAVA_HOME_PROCESSED="$new_path"
21256     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21257 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21258   fi
21259 
21260   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21261   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21262 
21263   else
21264     # We're on a posix platform. Hooray! :)
21265     path="$JAVA_HOME_PROCESSED"
21266     has_space=`$ECHO "$path" | $GREP " "`
21267     if test "x$has_space" != x; then
21268       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21269 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21270       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21271     fi
21272 
21273     # Use eval to expand a potential ~
21274     eval path="$path"
21275     if test ! -f "$path" && test ! -d "$path"; then
21276       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21277     fi
21278 
21279     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21280   fi
21281 
21282     if test ! -d "$JAVA_HOME_PROCESSED"; then
21283       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21284 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21285     else
21286       # Aha, the user has set a JAVA_HOME
21287       # let us use that as the Boot JDK.
21288       BOOT_JDK="$JAVA_HOME_PROCESSED"
21289       BOOT_JDK_FOUND=maybe
21290       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21291 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21292     fi
21293   fi
21294 
21295 
21296     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21297     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21298       # Do we have a bin/java?
21299       if test ! -x "$BOOT_JDK/bin/java"; then
21300         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21301 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21302         BOOT_JDK_FOUND=no
21303       else
21304         # Do we have a bin/javac?
21305         if test ! -x "$BOOT_JDK/bin/javac"; then
21306           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21307 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21308           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21309 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21310           BOOT_JDK_FOUND=no
21311         else
21312           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21313           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21314             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21315 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21316             BOOT_JDK_FOUND=no
21317           else
21318             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21319             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21320 
21321             # Extra M4 quote needed to protect [] in grep expression.
21322             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21323             if test "x$FOUND_CORRECT_VERSION" = x; then
21324               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21325 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21326               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21327 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21328               BOOT_JDK_FOUND=no
21329             else
21330               # We're done! :-)
21331               BOOT_JDK_FOUND=yes
21332 
21333   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21334 
21335   # Input might be given as Windows format, start by converting to
21336   # unix format.
21337   path="$BOOT_JDK"
21338   new_path=`$CYGPATH -u "$path"`
21339 
21340   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21341   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21342   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21343   # "foo.exe" is OK but "foo" is an error.
21344   #
21345   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21346   # It is also a way to make sure we got the proper file name for the real test later on.
21347   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21348   if test "x$test_shortpath" = x; then
21349     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21350 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21351     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21352   fi
21353 
21354   # Call helper function which possibly converts this using DOS-style short mode.
21355   # If so, the updated path is stored in $new_path.
21356 
21357   input_path="$new_path"
21358   # Check if we need to convert this using DOS-style short mode. If the path
21359   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21360   # take no chances and rewrite it.
21361   # Note: m4 eats our [], so we need to use [ and ] instead.
21362   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21363   if test "x$has_forbidden_chars" != x; then
21364     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21365     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21366     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21367     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21368       # Going to short mode and back again did indeed matter. Since short mode is
21369       # case insensitive, let's make it lowercase to improve readability.
21370       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21371       # Now convert it back to Unix-stile (cygpath)
21372       input_path=`$CYGPATH -u "$shortmode_path"`
21373       new_path="$input_path"
21374     fi
21375   fi
21376 
21377   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21378   if test "x$test_cygdrive_prefix" = x; then
21379     # As a simple fix, exclude /usr/bin since it's not a real path.
21380     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21381       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21382       # a path prefixed by /cygdrive for fixpath to work.
21383       new_path="$CYGWIN_ROOT_PATH$input_path"
21384     fi
21385   fi
21386 
21387 
21388   if test "x$path" != "x$new_path"; then
21389     BOOT_JDK="$new_path"
21390     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21391 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21392   fi
21393 
21394   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21395 
21396   path="$BOOT_JDK"
21397   has_colon=`$ECHO $path | $GREP ^.:`
21398   new_path="$path"
21399   if test "x$has_colon" = x; then
21400     # Not in mixed or Windows style, start by that.
21401     new_path=`cmd //c echo $path`
21402   fi
21403 
21404 
21405   input_path="$new_path"
21406   # Check if we need to convert this using DOS-style short mode. If the path
21407   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21408   # take no chances and rewrite it.
21409   # Note: m4 eats our [], so we need to use [ and ] instead.
21410   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21411   if test "x$has_forbidden_chars" != x; then
21412     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21413     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21414   fi
21415 
21416 
21417   windows_path="$new_path"
21418   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21419     unix_path=`$CYGPATH -u "$windows_path"`
21420     new_path="$unix_path"
21421   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21422     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21423     new_path="$unix_path"
21424   fi
21425 
21426   if test "x$path" != "x$new_path"; then
21427     BOOT_JDK="$new_path"
21428     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21429 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21430   fi
21431 
21432   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21433   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21434 
21435   else
21436     # We're on a posix platform. Hooray! :)
21437     path="$BOOT_JDK"
21438     has_space=`$ECHO "$path" | $GREP " "`
21439     if test "x$has_space" != x; then
21440       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21441 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21442       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21443     fi
21444 
21445     # Use eval to expand a potential ~
21446     eval path="$path"
21447     if test ! -f "$path" && test ! -d "$path"; then
21448       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21449     fi
21450 
21451     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21452   fi
21453 
21454               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21455 $as_echo_n "checking for Boot JDK... " >&6; }
21456               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21457 $as_echo "$BOOT_JDK" >&6; }
21458               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21459 $as_echo_n "checking Boot JDK version... " >&6; }
21460               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21461               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21462 $as_echo "$BOOT_JDK_VERSION" >&6; }
21463             fi # end check jdk version
21464           fi # end check rt.jar
21465         fi # end check javac
21466       fi # end check java
21467     fi # end check boot jdk found
21468   fi
21469 
21470 
21471   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21472 
21473   if test "x$BOOT_JDK_FOUND" = xno; then
21474     # Now execute the test
21475 
21476   # Extract the first word of "javac", so it can be a program name with args.
21477 set dummy javac; ac_word=$2
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21479 $as_echo_n "checking for $ac_word... " >&6; }
21480 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21481   $as_echo_n "(cached) " >&6
21482 else
21483   case $JAVAC_CHECK in
21484   [\\/]* | ?:[\\/]*)
21485   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21486   ;;
21487   *)
21488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21489 for as_dir in $PATH
21490 do
21491   IFS=$as_save_IFS
21492   test -z "$as_dir" && as_dir=.
21493     for ac_exec_ext in '' $ac_executable_extensions; do
21494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21495     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21497     break 2
21498   fi
21499 done
21500   done
21501 IFS=$as_save_IFS
21502 
21503   ;;
21504 esac
21505 fi
21506 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21507 if test -n "$JAVAC_CHECK"; then
21508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21509 $as_echo "$JAVAC_CHECK" >&6; }
21510 else
21511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21512 $as_echo "no" >&6; }
21513 fi
21514 
21515 
21516   # Extract the first word of "java", so it can be a program name with args.
21517 set dummy java; ac_word=$2
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21519 $as_echo_n "checking for $ac_word... " >&6; }
21520 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21521   $as_echo_n "(cached) " >&6
21522 else
21523   case $JAVA_CHECK in
21524   [\\/]* | ?:[\\/]*)
21525   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21526   ;;
21527   *)
21528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21529 for as_dir in $PATH
21530 do
21531   IFS=$as_save_IFS
21532   test -z "$as_dir" && as_dir=.
21533     for ac_exec_ext in '' $ac_executable_extensions; do
21534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21535     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21537     break 2
21538   fi
21539 done
21540   done
21541 IFS=$as_save_IFS
21542 
21543   ;;
21544 esac
21545 fi
21546 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21547 if test -n "$JAVA_CHECK"; then
21548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21549 $as_echo "$JAVA_CHECK" >&6; }
21550 else
21551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21552 $as_echo "no" >&6; }
21553 fi
21554 
21555 
21556   BINARY="$JAVAC_CHECK"
21557   if test "x$JAVAC_CHECK" = x; then
21558     BINARY="$JAVA_CHECK"
21559   fi
21560   if test "x$BINARY" != x; then
21561     # So there is a java(c) binary, it might be part of a JDK.
21562     # Lets find the JDK/JRE directory by following symbolic links.
21563     # Linux/GNU systems often have links from /usr/bin/java to
21564     # /etc/alternatives/java to the real JDK binary.
21565 
21566   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21567     # Follow a chain of symbolic links. Use readlink
21568     # where it exists, else fall back to horribly
21569     # complicated shell code.
21570     if test "x$READLINK_TESTED" != yes; then
21571       # On MacOSX there is a readlink tool with a different
21572       # purpose than the GNU readlink tool. Check the found readlink.
21573       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21574       if test "x$ISGNU" = x; then
21575         # A readlink that we do not know how to use.
21576         # Are there other non-GNU readlinks out there?
21577         READLINK_TESTED=yes
21578         READLINK=
21579       fi
21580     fi
21581 
21582     if test "x$READLINK" != x; then
21583       BINARY=`$READLINK -f $BINARY`
21584     else
21585       # Save the current directory for restoring afterwards
21586       STARTDIR=$PWD
21587       COUNTER=0
21588       sym_link_dir=`$DIRNAME $BINARY`
21589       sym_link_file=`$BASENAME $BINARY`
21590       cd $sym_link_dir
21591       # Use -P flag to resolve symlinks in directories.
21592       cd `$THEPWDCMD -P`
21593       sym_link_dir=`$THEPWDCMD -P`
21594       # Resolve file symlinks
21595       while test $COUNTER -lt 20; do
21596         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21597         if test "x$ISLINK" == x; then
21598           # This is not a symbolic link! We are done!
21599           break
21600         fi
21601         # Again resolve directory symlinks since the target of the just found
21602         # link could be in a different directory
21603         cd `$DIRNAME $ISLINK`
21604         sym_link_dir=`$THEPWDCMD -P`
21605         sym_link_file=`$BASENAME $ISLINK`
21606         let COUNTER=COUNTER+1
21607       done
21608       cd $STARTDIR
21609       BINARY=$sym_link_dir/$sym_link_file
21610     fi
21611   fi
21612 
21613     BOOT_JDK=`dirname "$BINARY"`
21614     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21615     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21616       # Looks like we found ourselves an JDK
21617       BOOT_JDK_FOUND=maybe
21618       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21619 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21620     fi
21621   fi
21622 
21623 
21624     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21625     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21626       # Do we have a bin/java?
21627       if test ! -x "$BOOT_JDK/bin/java"; then
21628         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21630         BOOT_JDK_FOUND=no
21631       else
21632         # Do we have a bin/javac?
21633         if test ! -x "$BOOT_JDK/bin/javac"; then
21634           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21636           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21637 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21638           BOOT_JDK_FOUND=no
21639         else
21640           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21641           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21642             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21644             BOOT_JDK_FOUND=no
21645           else
21646             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21647             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21648 
21649             # Extra M4 quote needed to protect [] in grep expression.
21650             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21651             if test "x$FOUND_CORRECT_VERSION" = x; then
21652               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21654               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21655 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21656               BOOT_JDK_FOUND=no
21657             else
21658               # We're done! :-)
21659               BOOT_JDK_FOUND=yes
21660 
21661   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21662 
21663   # Input might be given as Windows format, start by converting to
21664   # unix format.
21665   path="$BOOT_JDK"
21666   new_path=`$CYGPATH -u "$path"`
21667 
21668   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21669   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21670   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21671   # "foo.exe" is OK but "foo" is an error.
21672   #
21673   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21674   # It is also a way to make sure we got the proper file name for the real test later on.
21675   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21676   if test "x$test_shortpath" = x; then
21677     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21678 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21679     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21680   fi
21681 
21682   # Call helper function which possibly converts this using DOS-style short mode.
21683   # If so, the updated path is stored in $new_path.
21684 
21685   input_path="$new_path"
21686   # Check if we need to convert this using DOS-style short mode. If the path
21687   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21688   # take no chances and rewrite it.
21689   # Note: m4 eats our [], so we need to use [ and ] instead.
21690   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21691   if test "x$has_forbidden_chars" != x; then
21692     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21693     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21694     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21695     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21696       # Going to short mode and back again did indeed matter. Since short mode is
21697       # case insensitive, let's make it lowercase to improve readability.
21698       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21699       # Now convert it back to Unix-stile (cygpath)
21700       input_path=`$CYGPATH -u "$shortmode_path"`
21701       new_path="$input_path"
21702     fi
21703   fi
21704 
21705   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21706   if test "x$test_cygdrive_prefix" = x; then
21707     # As a simple fix, exclude /usr/bin since it's not a real path.
21708     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21709       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21710       # a path prefixed by /cygdrive for fixpath to work.
21711       new_path="$CYGWIN_ROOT_PATH$input_path"
21712     fi
21713   fi
21714 
21715 
21716   if test "x$path" != "x$new_path"; then
21717     BOOT_JDK="$new_path"
21718     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21720   fi
21721 
21722   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21723 
21724   path="$BOOT_JDK"
21725   has_colon=`$ECHO $path | $GREP ^.:`
21726   new_path="$path"
21727   if test "x$has_colon" = x; then
21728     # Not in mixed or Windows style, start by that.
21729     new_path=`cmd //c echo $path`
21730   fi
21731 
21732 
21733   input_path="$new_path"
21734   # Check if we need to convert this using DOS-style short mode. If the path
21735   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21736   # take no chances and rewrite it.
21737   # Note: m4 eats our [], so we need to use [ and ] instead.
21738   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21739   if test "x$has_forbidden_chars" != x; then
21740     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21741     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21742   fi
21743 
21744 
21745   windows_path="$new_path"
21746   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21747     unix_path=`$CYGPATH -u "$windows_path"`
21748     new_path="$unix_path"
21749   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21750     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21751     new_path="$unix_path"
21752   fi
21753 
21754   if test "x$path" != "x$new_path"; then
21755     BOOT_JDK="$new_path"
21756     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21758   fi
21759 
21760   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21761   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21762 
21763   else
21764     # We're on a posix platform. Hooray! :)
21765     path="$BOOT_JDK"
21766     has_space=`$ECHO "$path" | $GREP " "`
21767     if test "x$has_space" != x; then
21768       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21770       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21771     fi
21772 
21773     # Use eval to expand a potential ~
21774     eval path="$path"
21775     if test ! -f "$path" && test ! -d "$path"; then
21776       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21777     fi
21778 
21779     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21780   fi
21781 
21782               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21783 $as_echo_n "checking for Boot JDK... " >&6; }
21784               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21785 $as_echo "$BOOT_JDK" >&6; }
21786               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21787 $as_echo_n "checking Boot JDK version... " >&6; }
21788               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21789               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21790 $as_echo "$BOOT_JDK_VERSION" >&6; }
21791             fi # end check jdk version
21792           fi # end check rt.jar
21793         fi # end check javac
21794       fi # end check java
21795     fi # end check boot jdk found
21796   fi
21797 
21798 
21799   # Test: Is there a JDK installed in default, well-known locations?
21800 
21801   if test "x$BOOT_JDK_FOUND" = xno; then
21802     # Now execute the test
21803 
21804   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21805 
21806   if test "x$BOOT_JDK_FOUND" = xno; then
21807     # Now execute the test
21808 
21809   if test "x$ProgramW6432" != x; then
21810     VIRTUAL_DIR="$ProgramW6432/Java"
21811 
21812   windows_path="$VIRTUAL_DIR"
21813   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21814     unix_path=`$CYGPATH -u "$windows_path"`
21815     VIRTUAL_DIR="$unix_path"
21816   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21817     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21818     VIRTUAL_DIR="$unix_path"
21819   fi
21820 
21821 
21822   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21823   BOOT_JDK_SUFFIX=""
21824   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21825   if test "x$ALL_JDKS_FOUND" != x; then
21826     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21827 
21828   if test "x$BOOT_JDK_FOUND" = xno; then
21829     # Now execute the test
21830 
21831         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21832         if test -d "$BOOT_JDK"; then
21833           BOOT_JDK_FOUND=maybe
21834           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21835 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21836         fi
21837 
21838 
21839     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21840     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21841       # Do we have a bin/java?
21842       if test ! -x "$BOOT_JDK/bin/java"; then
21843         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21844 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21845         BOOT_JDK_FOUND=no
21846       else
21847         # Do we have a bin/javac?
21848         if test ! -x "$BOOT_JDK/bin/javac"; then
21849           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21850 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21851           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21852 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21853           BOOT_JDK_FOUND=no
21854         else
21855           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21856           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21857             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21859             BOOT_JDK_FOUND=no
21860           else
21861             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21862             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21863 
21864             # Extra M4 quote needed to protect [] in grep expression.
21865             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21866             if test "x$FOUND_CORRECT_VERSION" = x; then
21867               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21869               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21870 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21871               BOOT_JDK_FOUND=no
21872             else
21873               # We're done! :-)
21874               BOOT_JDK_FOUND=yes
21875 
21876   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21877 
21878   # Input might be given as Windows format, start by converting to
21879   # unix format.
21880   path="$BOOT_JDK"
21881   new_path=`$CYGPATH -u "$path"`
21882 
21883   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21884   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21885   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21886   # "foo.exe" is OK but "foo" is an error.
21887   #
21888   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21889   # It is also a way to make sure we got the proper file name for the real test later on.
21890   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21891   if test "x$test_shortpath" = x; then
21892     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21893 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21894     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21895   fi
21896 
21897   # Call helper function which possibly converts this using DOS-style short mode.
21898   # If so, the updated path is stored in $new_path.
21899 
21900   input_path="$new_path"
21901   # Check if we need to convert this using DOS-style short mode. If the path
21902   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21903   # take no chances and rewrite it.
21904   # Note: m4 eats our [], so we need to use [ and ] instead.
21905   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21906   if test "x$has_forbidden_chars" != x; then
21907     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21908     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21909     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21910     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21911       # Going to short mode and back again did indeed matter. Since short mode is
21912       # case insensitive, let's make it lowercase to improve readability.
21913       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21914       # Now convert it back to Unix-stile (cygpath)
21915       input_path=`$CYGPATH -u "$shortmode_path"`
21916       new_path="$input_path"
21917     fi
21918   fi
21919 
21920   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21921   if test "x$test_cygdrive_prefix" = x; then
21922     # As a simple fix, exclude /usr/bin since it's not a real path.
21923     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21924       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21925       # a path prefixed by /cygdrive for fixpath to work.
21926       new_path="$CYGWIN_ROOT_PATH$input_path"
21927     fi
21928   fi
21929 
21930 
21931   if test "x$path" != "x$new_path"; then
21932     BOOT_JDK="$new_path"
21933     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21935   fi
21936 
21937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21938 
21939   path="$BOOT_JDK"
21940   has_colon=`$ECHO $path | $GREP ^.:`
21941   new_path="$path"
21942   if test "x$has_colon" = x; then
21943     # Not in mixed or Windows style, start by that.
21944     new_path=`cmd //c echo $path`
21945   fi
21946 
21947 
21948   input_path="$new_path"
21949   # Check if we need to convert this using DOS-style short mode. If the path
21950   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21951   # take no chances and rewrite it.
21952   # Note: m4 eats our [], so we need to use [ and ] instead.
21953   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21954   if test "x$has_forbidden_chars" != x; then
21955     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21956     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21957   fi
21958 
21959 
21960   windows_path="$new_path"
21961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21962     unix_path=`$CYGPATH -u "$windows_path"`
21963     new_path="$unix_path"
21964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21965     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21966     new_path="$unix_path"
21967   fi
21968 
21969   if test "x$path" != "x$new_path"; then
21970     BOOT_JDK="$new_path"
21971     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21972 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21973   fi
21974 
21975   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21976   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21977 
21978   else
21979     # We're on a posix platform. Hooray! :)
21980     path="$BOOT_JDK"
21981     has_space=`$ECHO "$path" | $GREP " "`
21982     if test "x$has_space" != x; then
21983       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21984 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21985       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21986     fi
21987 
21988     # Use eval to expand a potential ~
21989     eval path="$path"
21990     if test ! -f "$path" && test ! -d "$path"; then
21991       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21992     fi
21993 
21994     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21995   fi
21996 
21997               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21998 $as_echo_n "checking for Boot JDK... " >&6; }
21999               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22000 $as_echo "$BOOT_JDK" >&6; }
22001               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22002 $as_echo_n "checking Boot JDK version... " >&6; }
22003               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22004               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22005 $as_echo "$BOOT_JDK_VERSION" >&6; }
22006             fi # end check jdk version
22007           fi # end check rt.jar
22008         fi # end check javac
22009       fi # end check java
22010     fi # end check boot jdk found
22011   fi
22012 
22013     done
22014   fi
22015 
22016   fi
22017 
22018 
22019     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22020     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22021       # Do we have a bin/java?
22022       if test ! -x "$BOOT_JDK/bin/java"; then
22023         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22024 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22025         BOOT_JDK_FOUND=no
22026       else
22027         # Do we have a bin/javac?
22028         if test ! -x "$BOOT_JDK/bin/javac"; then
22029           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22031           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22032 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22033           BOOT_JDK_FOUND=no
22034         else
22035           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22036           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22037             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22039             BOOT_JDK_FOUND=no
22040           else
22041             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22042             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22043 
22044             # Extra M4 quote needed to protect [] in grep expression.
22045             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22046             if test "x$FOUND_CORRECT_VERSION" = x; then
22047               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22048 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22049               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22050 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22051               BOOT_JDK_FOUND=no
22052             else
22053               # We're done! :-)
22054               BOOT_JDK_FOUND=yes
22055 
22056   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22057 
22058   # Input might be given as Windows format, start by converting to
22059   # unix format.
22060   path="$BOOT_JDK"
22061   new_path=`$CYGPATH -u "$path"`
22062 
22063   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22064   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22065   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22066   # "foo.exe" is OK but "foo" is an error.
22067   #
22068   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22069   # It is also a way to make sure we got the proper file name for the real test later on.
22070   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22071   if test "x$test_shortpath" = x; then
22072     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22073 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22074     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22075   fi
22076 
22077   # Call helper function which possibly converts this using DOS-style short mode.
22078   # If so, the updated path is stored in $new_path.
22079 
22080   input_path="$new_path"
22081   # Check if we need to convert this using DOS-style short mode. If the path
22082   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22083   # take no chances and rewrite it.
22084   # Note: m4 eats our [], so we need to use [ and ] instead.
22085   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22086   if test "x$has_forbidden_chars" != x; then
22087     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22088     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22089     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22090     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22091       # Going to short mode and back again did indeed matter. Since short mode is
22092       # case insensitive, let's make it lowercase to improve readability.
22093       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22094       # Now convert it back to Unix-stile (cygpath)
22095       input_path=`$CYGPATH -u "$shortmode_path"`
22096       new_path="$input_path"
22097     fi
22098   fi
22099 
22100   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22101   if test "x$test_cygdrive_prefix" = x; then
22102     # As a simple fix, exclude /usr/bin since it's not a real path.
22103     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22104       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22105       # a path prefixed by /cygdrive for fixpath to work.
22106       new_path="$CYGWIN_ROOT_PATH$input_path"
22107     fi
22108   fi
22109 
22110 
22111   if test "x$path" != "x$new_path"; then
22112     BOOT_JDK="$new_path"
22113     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22114 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22115   fi
22116 
22117   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22118 
22119   path="$BOOT_JDK"
22120   has_colon=`$ECHO $path | $GREP ^.:`
22121   new_path="$path"
22122   if test "x$has_colon" = x; then
22123     # Not in mixed or Windows style, start by that.
22124     new_path=`cmd //c echo $path`
22125   fi
22126 
22127 
22128   input_path="$new_path"
22129   # Check if we need to convert this using DOS-style short mode. If the path
22130   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22131   # take no chances and rewrite it.
22132   # Note: m4 eats our [], so we need to use [ and ] instead.
22133   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22134   if test "x$has_forbidden_chars" != x; then
22135     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22136     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22137   fi
22138 
22139 
22140   windows_path="$new_path"
22141   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22142     unix_path=`$CYGPATH -u "$windows_path"`
22143     new_path="$unix_path"
22144   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22145     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22146     new_path="$unix_path"
22147   fi
22148 
22149   if test "x$path" != "x$new_path"; then
22150     BOOT_JDK="$new_path"
22151     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22153   fi
22154 
22155   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22156   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22157 
22158   else
22159     # We're on a posix platform. Hooray! :)
22160     path="$BOOT_JDK"
22161     has_space=`$ECHO "$path" | $GREP " "`
22162     if test "x$has_space" != x; then
22163       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22164 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22165       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22166     fi
22167 
22168     # Use eval to expand a potential ~
22169     eval path="$path"
22170     if test ! -f "$path" && test ! -d "$path"; then
22171       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22172     fi
22173 
22174     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22175   fi
22176 
22177               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22178 $as_echo_n "checking for Boot JDK... " >&6; }
22179               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22180 $as_echo "$BOOT_JDK" >&6; }
22181               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22182 $as_echo_n "checking Boot JDK version... " >&6; }
22183               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22184               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22185 $as_echo "$BOOT_JDK_VERSION" >&6; }
22186             fi # end check jdk version
22187           fi # end check rt.jar
22188         fi # end check javac
22189       fi # end check java
22190     fi # end check boot jdk found
22191   fi
22192 
22193 
22194   if test "x$BOOT_JDK_FOUND" = xno; then
22195     # Now execute the test
22196 
22197   if test "x$PROGRAMW6432" != x; then
22198     VIRTUAL_DIR="$PROGRAMW6432/Java"
22199 
22200   windows_path="$VIRTUAL_DIR"
22201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22202     unix_path=`$CYGPATH -u "$windows_path"`
22203     VIRTUAL_DIR="$unix_path"
22204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22206     VIRTUAL_DIR="$unix_path"
22207   fi
22208 
22209 
22210   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22211   BOOT_JDK_SUFFIX=""
22212   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22213   if test "x$ALL_JDKS_FOUND" != x; then
22214     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22215 
22216   if test "x$BOOT_JDK_FOUND" = xno; then
22217     # Now execute the test
22218 
22219         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22220         if test -d "$BOOT_JDK"; then
22221           BOOT_JDK_FOUND=maybe
22222           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22223 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22224         fi
22225 
22226 
22227     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22228     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22229       # Do we have a bin/java?
22230       if test ! -x "$BOOT_JDK/bin/java"; then
22231         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22233         BOOT_JDK_FOUND=no
22234       else
22235         # Do we have a bin/javac?
22236         if test ! -x "$BOOT_JDK/bin/javac"; then
22237           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22239           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22240 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22241           BOOT_JDK_FOUND=no
22242         else
22243           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22244           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22245             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22247             BOOT_JDK_FOUND=no
22248           else
22249             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22250             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22251 
22252             # Extra M4 quote needed to protect [] in grep expression.
22253             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22254             if test "x$FOUND_CORRECT_VERSION" = x; then
22255               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22257               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22258 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22259               BOOT_JDK_FOUND=no
22260             else
22261               # We're done! :-)
22262               BOOT_JDK_FOUND=yes
22263 
22264   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22265 
22266   # Input might be given as Windows format, start by converting to
22267   # unix format.
22268   path="$BOOT_JDK"
22269   new_path=`$CYGPATH -u "$path"`
22270 
22271   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22272   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22273   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22274   # "foo.exe" is OK but "foo" is an error.
22275   #
22276   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22277   # It is also a way to make sure we got the proper file name for the real test later on.
22278   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22279   if test "x$test_shortpath" = x; then
22280     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22282     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22283   fi
22284 
22285   # Call helper function which possibly converts this using DOS-style short mode.
22286   # If so, the updated path is stored in $new_path.
22287 
22288   input_path="$new_path"
22289   # Check if we need to convert this using DOS-style short mode. If the path
22290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22291   # take no chances and rewrite it.
22292   # Note: m4 eats our [], so we need to use [ and ] instead.
22293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22294   if test "x$has_forbidden_chars" != x; then
22295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22296     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22297     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22298     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22299       # Going to short mode and back again did indeed matter. Since short mode is
22300       # case insensitive, let's make it lowercase to improve readability.
22301       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22302       # Now convert it back to Unix-stile (cygpath)
22303       input_path=`$CYGPATH -u "$shortmode_path"`
22304       new_path="$input_path"
22305     fi
22306   fi
22307 
22308   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22309   if test "x$test_cygdrive_prefix" = x; then
22310     # As a simple fix, exclude /usr/bin since it's not a real path.
22311     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22312       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22313       # a path prefixed by /cygdrive for fixpath to work.
22314       new_path="$CYGWIN_ROOT_PATH$input_path"
22315     fi
22316   fi
22317 
22318 
22319   if test "x$path" != "x$new_path"; then
22320     BOOT_JDK="$new_path"
22321     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22323   fi
22324 
22325   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22326 
22327   path="$BOOT_JDK"
22328   has_colon=`$ECHO $path | $GREP ^.:`
22329   new_path="$path"
22330   if test "x$has_colon" = x; then
22331     # Not in mixed or Windows style, start by that.
22332     new_path=`cmd //c echo $path`
22333   fi
22334 
22335 
22336   input_path="$new_path"
22337   # Check if we need to convert this using DOS-style short mode. If the path
22338   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22339   # take no chances and rewrite it.
22340   # Note: m4 eats our [], so we need to use [ and ] instead.
22341   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22342   if test "x$has_forbidden_chars" != x; then
22343     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22344     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22345   fi
22346 
22347 
22348   windows_path="$new_path"
22349   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22350     unix_path=`$CYGPATH -u "$windows_path"`
22351     new_path="$unix_path"
22352   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22353     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22354     new_path="$unix_path"
22355   fi
22356 
22357   if test "x$path" != "x$new_path"; then
22358     BOOT_JDK="$new_path"
22359     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22361   fi
22362 
22363   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22364   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22365 
22366   else
22367     # We're on a posix platform. Hooray! :)
22368     path="$BOOT_JDK"
22369     has_space=`$ECHO "$path" | $GREP " "`
22370     if test "x$has_space" != x; then
22371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22372 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22373       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22374     fi
22375 
22376     # Use eval to expand a potential ~
22377     eval path="$path"
22378     if test ! -f "$path" && test ! -d "$path"; then
22379       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22380     fi
22381 
22382     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22383   fi
22384 
22385               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22386 $as_echo_n "checking for Boot JDK... " >&6; }
22387               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22388 $as_echo "$BOOT_JDK" >&6; }
22389               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22390 $as_echo_n "checking Boot JDK version... " >&6; }
22391               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22392               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22393 $as_echo "$BOOT_JDK_VERSION" >&6; }
22394             fi # end check jdk version
22395           fi # end check rt.jar
22396         fi # end check javac
22397       fi # end check java
22398     fi # end check boot jdk found
22399   fi
22400 
22401     done
22402   fi
22403 
22404   fi
22405 
22406 
22407     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22408     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22409       # Do we have a bin/java?
22410       if test ! -x "$BOOT_JDK/bin/java"; then
22411         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22412 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22413         BOOT_JDK_FOUND=no
22414       else
22415         # Do we have a bin/javac?
22416         if test ! -x "$BOOT_JDK/bin/javac"; then
22417           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22418 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22419           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22420 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22421           BOOT_JDK_FOUND=no
22422         else
22423           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22424           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22425             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22427             BOOT_JDK_FOUND=no
22428           else
22429             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22430             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22431 
22432             # Extra M4 quote needed to protect [] in grep expression.
22433             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22434             if test "x$FOUND_CORRECT_VERSION" = x; then
22435               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22436 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22437               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22438 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22439               BOOT_JDK_FOUND=no
22440             else
22441               # We're done! :-)
22442               BOOT_JDK_FOUND=yes
22443 
22444   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22445 
22446   # Input might be given as Windows format, start by converting to
22447   # unix format.
22448   path="$BOOT_JDK"
22449   new_path=`$CYGPATH -u "$path"`
22450 
22451   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22452   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22453   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22454   # "foo.exe" is OK but "foo" is an error.
22455   #
22456   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22457   # It is also a way to make sure we got the proper file name for the real test later on.
22458   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22459   if test "x$test_shortpath" = x; then
22460     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22461 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22462     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22463   fi
22464 
22465   # Call helper function which possibly converts this using DOS-style short mode.
22466   # If so, the updated path is stored in $new_path.
22467 
22468   input_path="$new_path"
22469   # Check if we need to convert this using DOS-style short mode. If the path
22470   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22471   # take no chances and rewrite it.
22472   # Note: m4 eats our [], so we need to use [ and ] instead.
22473   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22474   if test "x$has_forbidden_chars" != x; then
22475     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22476     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22477     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22478     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22479       # Going to short mode and back again did indeed matter. Since short mode is
22480       # case insensitive, let's make it lowercase to improve readability.
22481       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22482       # Now convert it back to Unix-stile (cygpath)
22483       input_path=`$CYGPATH -u "$shortmode_path"`
22484       new_path="$input_path"
22485     fi
22486   fi
22487 
22488   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22489   if test "x$test_cygdrive_prefix" = x; then
22490     # As a simple fix, exclude /usr/bin since it's not a real path.
22491     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22492       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22493       # a path prefixed by /cygdrive for fixpath to work.
22494       new_path="$CYGWIN_ROOT_PATH$input_path"
22495     fi
22496   fi
22497 
22498 
22499   if test "x$path" != "x$new_path"; then
22500     BOOT_JDK="$new_path"
22501     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22502 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22503   fi
22504 
22505   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22506 
22507   path="$BOOT_JDK"
22508   has_colon=`$ECHO $path | $GREP ^.:`
22509   new_path="$path"
22510   if test "x$has_colon" = x; then
22511     # Not in mixed or Windows style, start by that.
22512     new_path=`cmd //c echo $path`
22513   fi
22514 
22515 
22516   input_path="$new_path"
22517   # Check if we need to convert this using DOS-style short mode. If the path
22518   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22519   # take no chances and rewrite it.
22520   # Note: m4 eats our [], so we need to use [ and ] instead.
22521   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22522   if test "x$has_forbidden_chars" != x; then
22523     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22524     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22525   fi
22526 
22527 
22528   windows_path="$new_path"
22529   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22530     unix_path=`$CYGPATH -u "$windows_path"`
22531     new_path="$unix_path"
22532   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22533     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22534     new_path="$unix_path"
22535   fi
22536 
22537   if test "x$path" != "x$new_path"; then
22538     BOOT_JDK="$new_path"
22539     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22540 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22541   fi
22542 
22543   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22544   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22545 
22546   else
22547     # We're on a posix platform. Hooray! :)
22548     path="$BOOT_JDK"
22549     has_space=`$ECHO "$path" | $GREP " "`
22550     if test "x$has_space" != x; then
22551       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22552 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22553       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22554     fi
22555 
22556     # Use eval to expand a potential ~
22557     eval path="$path"
22558     if test ! -f "$path" && test ! -d "$path"; then
22559       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22560     fi
22561 
22562     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22563   fi
22564 
22565               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22566 $as_echo_n "checking for Boot JDK... " >&6; }
22567               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22568 $as_echo "$BOOT_JDK" >&6; }
22569               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22570 $as_echo_n "checking Boot JDK version... " >&6; }
22571               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22572               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22573 $as_echo "$BOOT_JDK_VERSION" >&6; }
22574             fi # end check jdk version
22575           fi # end check rt.jar
22576         fi # end check javac
22577       fi # end check java
22578     fi # end check boot jdk found
22579   fi
22580 
22581 
22582   if test "x$BOOT_JDK_FOUND" = xno; then
22583     # Now execute the test
22584 
22585   if test "x$PROGRAMFILES" != x; then
22586     VIRTUAL_DIR="$PROGRAMFILES/Java"
22587 
22588   windows_path="$VIRTUAL_DIR"
22589   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22590     unix_path=`$CYGPATH -u "$windows_path"`
22591     VIRTUAL_DIR="$unix_path"
22592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22593     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22594     VIRTUAL_DIR="$unix_path"
22595   fi
22596 
22597 
22598   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22599   BOOT_JDK_SUFFIX=""
22600   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22601   if test "x$ALL_JDKS_FOUND" != x; then
22602     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22603 
22604   if test "x$BOOT_JDK_FOUND" = xno; then
22605     # Now execute the test
22606 
22607         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22608         if test -d "$BOOT_JDK"; then
22609           BOOT_JDK_FOUND=maybe
22610           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22611 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22612         fi
22613 
22614 
22615     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22616     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22617       # Do we have a bin/java?
22618       if test ! -x "$BOOT_JDK/bin/java"; then
22619         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22621         BOOT_JDK_FOUND=no
22622       else
22623         # Do we have a bin/javac?
22624         if test ! -x "$BOOT_JDK/bin/javac"; then
22625           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22627           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22628 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22629           BOOT_JDK_FOUND=no
22630         else
22631           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22632           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22633             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22635             BOOT_JDK_FOUND=no
22636           else
22637             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22638             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22639 
22640             # Extra M4 quote needed to protect [] in grep expression.
22641             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22642             if test "x$FOUND_CORRECT_VERSION" = x; then
22643               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22645               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22646 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22647               BOOT_JDK_FOUND=no
22648             else
22649               # We're done! :-)
22650               BOOT_JDK_FOUND=yes
22651 
22652   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22653 
22654   # Input might be given as Windows format, start by converting to
22655   # unix format.
22656   path="$BOOT_JDK"
22657   new_path=`$CYGPATH -u "$path"`
22658 
22659   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22660   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22661   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22662   # "foo.exe" is OK but "foo" is an error.
22663   #
22664   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22665   # It is also a way to make sure we got the proper file name for the real test later on.
22666   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22667   if test "x$test_shortpath" = x; then
22668     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22670     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22671   fi
22672 
22673   # Call helper function which possibly converts this using DOS-style short mode.
22674   # If so, the updated path is stored in $new_path.
22675 
22676   input_path="$new_path"
22677   # Check if we need to convert this using DOS-style short mode. If the path
22678   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22679   # take no chances and rewrite it.
22680   # Note: m4 eats our [], so we need to use [ and ] instead.
22681   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22682   if test "x$has_forbidden_chars" != x; then
22683     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22684     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22685     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22686     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22687       # Going to short mode and back again did indeed matter. Since short mode is
22688       # case insensitive, let's make it lowercase to improve readability.
22689       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22690       # Now convert it back to Unix-stile (cygpath)
22691       input_path=`$CYGPATH -u "$shortmode_path"`
22692       new_path="$input_path"
22693     fi
22694   fi
22695 
22696   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22697   if test "x$test_cygdrive_prefix" = x; then
22698     # As a simple fix, exclude /usr/bin since it's not a real path.
22699     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22700       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22701       # a path prefixed by /cygdrive for fixpath to work.
22702       new_path="$CYGWIN_ROOT_PATH$input_path"
22703     fi
22704   fi
22705 
22706 
22707   if test "x$path" != "x$new_path"; then
22708     BOOT_JDK="$new_path"
22709     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22711   fi
22712 
22713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22714 
22715   path="$BOOT_JDK"
22716   has_colon=`$ECHO $path | $GREP ^.:`
22717   new_path="$path"
22718   if test "x$has_colon" = x; then
22719     # Not in mixed or Windows style, start by that.
22720     new_path=`cmd //c echo $path`
22721   fi
22722 
22723 
22724   input_path="$new_path"
22725   # Check if we need to convert this using DOS-style short mode. If the path
22726   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22727   # take no chances and rewrite it.
22728   # Note: m4 eats our [], so we need to use [ and ] instead.
22729   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22730   if test "x$has_forbidden_chars" != x; then
22731     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22732     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22733   fi
22734 
22735 
22736   windows_path="$new_path"
22737   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22738     unix_path=`$CYGPATH -u "$windows_path"`
22739     new_path="$unix_path"
22740   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22741     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22742     new_path="$unix_path"
22743   fi
22744 
22745   if test "x$path" != "x$new_path"; then
22746     BOOT_JDK="$new_path"
22747     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22749   fi
22750 
22751   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22752   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22753 
22754   else
22755     # We're on a posix platform. Hooray! :)
22756     path="$BOOT_JDK"
22757     has_space=`$ECHO "$path" | $GREP " "`
22758     if test "x$has_space" != x; then
22759       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22761       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22762     fi
22763 
22764     # Use eval to expand a potential ~
22765     eval path="$path"
22766     if test ! -f "$path" && test ! -d "$path"; then
22767       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22768     fi
22769 
22770     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22771   fi
22772 
22773               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22774 $as_echo_n "checking for Boot JDK... " >&6; }
22775               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22776 $as_echo "$BOOT_JDK" >&6; }
22777               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22778 $as_echo_n "checking Boot JDK version... " >&6; }
22779               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22780               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22781 $as_echo "$BOOT_JDK_VERSION" >&6; }
22782             fi # end check jdk version
22783           fi # end check rt.jar
22784         fi # end check javac
22785       fi # end check java
22786     fi # end check boot jdk found
22787   fi
22788 
22789     done
22790   fi
22791 
22792   fi
22793 
22794 
22795     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22796     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22797       # Do we have a bin/java?
22798       if test ! -x "$BOOT_JDK/bin/java"; then
22799         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22801         BOOT_JDK_FOUND=no
22802       else
22803         # Do we have a bin/javac?
22804         if test ! -x "$BOOT_JDK/bin/javac"; then
22805           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22807           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22808 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22809           BOOT_JDK_FOUND=no
22810         else
22811           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22812           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22813             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22815             BOOT_JDK_FOUND=no
22816           else
22817             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22818             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22819 
22820             # Extra M4 quote needed to protect [] in grep expression.
22821             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22822             if test "x$FOUND_CORRECT_VERSION" = x; then
22823               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22825               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22826 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22827               BOOT_JDK_FOUND=no
22828             else
22829               # We're done! :-)
22830               BOOT_JDK_FOUND=yes
22831 
22832   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22833 
22834   # Input might be given as Windows format, start by converting to
22835   # unix format.
22836   path="$BOOT_JDK"
22837   new_path=`$CYGPATH -u "$path"`
22838 
22839   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22840   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22841   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22842   # "foo.exe" is OK but "foo" is an error.
22843   #
22844   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22845   # It is also a way to make sure we got the proper file name for the real test later on.
22846   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22847   if test "x$test_shortpath" = x; then
22848     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22849 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22850     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22851   fi
22852 
22853   # Call helper function which possibly converts this using DOS-style short mode.
22854   # If so, the updated path is stored in $new_path.
22855 
22856   input_path="$new_path"
22857   # Check if we need to convert this using DOS-style short mode. If the path
22858   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22859   # take no chances and rewrite it.
22860   # Note: m4 eats our [], so we need to use [ and ] instead.
22861   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22862   if test "x$has_forbidden_chars" != x; then
22863     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22864     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22865     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22866     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22867       # Going to short mode and back again did indeed matter. Since short mode is
22868       # case insensitive, let's make it lowercase to improve readability.
22869       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22870       # Now convert it back to Unix-stile (cygpath)
22871       input_path=`$CYGPATH -u "$shortmode_path"`
22872       new_path="$input_path"
22873     fi
22874   fi
22875 
22876   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22877   if test "x$test_cygdrive_prefix" = x; then
22878     # As a simple fix, exclude /usr/bin since it's not a real path.
22879     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22880       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22881       # a path prefixed by /cygdrive for fixpath to work.
22882       new_path="$CYGWIN_ROOT_PATH$input_path"
22883     fi
22884   fi
22885 
22886 
22887   if test "x$path" != "x$new_path"; then
22888     BOOT_JDK="$new_path"
22889     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22890 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22891   fi
22892 
22893   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22894 
22895   path="$BOOT_JDK"
22896   has_colon=`$ECHO $path | $GREP ^.:`
22897   new_path="$path"
22898   if test "x$has_colon" = x; then
22899     # Not in mixed or Windows style, start by that.
22900     new_path=`cmd //c echo $path`
22901   fi
22902 
22903 
22904   input_path="$new_path"
22905   # Check if we need to convert this using DOS-style short mode. If the path
22906   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22907   # take no chances and rewrite it.
22908   # Note: m4 eats our [], so we need to use [ and ] instead.
22909   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22910   if test "x$has_forbidden_chars" != x; then
22911     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22912     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22913   fi
22914 
22915 
22916   windows_path="$new_path"
22917   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22918     unix_path=`$CYGPATH -u "$windows_path"`
22919     new_path="$unix_path"
22920   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22921     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22922     new_path="$unix_path"
22923   fi
22924 
22925   if test "x$path" != "x$new_path"; then
22926     BOOT_JDK="$new_path"
22927     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22928 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22929   fi
22930 
22931   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22932   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22933 
22934   else
22935     # We're on a posix platform. Hooray! :)
22936     path="$BOOT_JDK"
22937     has_space=`$ECHO "$path" | $GREP " "`
22938     if test "x$has_space" != x; then
22939       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22940 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22941       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22942     fi
22943 
22944     # Use eval to expand a potential ~
22945     eval path="$path"
22946     if test ! -f "$path" && test ! -d "$path"; then
22947       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22948     fi
22949 
22950     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22951   fi
22952 
22953               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22954 $as_echo_n "checking for Boot JDK... " >&6; }
22955               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22956 $as_echo "$BOOT_JDK" >&6; }
22957               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22958 $as_echo_n "checking Boot JDK version... " >&6; }
22959               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22960               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22961 $as_echo "$BOOT_JDK_VERSION" >&6; }
22962             fi # end check jdk version
22963           fi # end check rt.jar
22964         fi # end check javac
22965       fi # end check java
22966     fi # end check boot jdk found
22967   fi
22968 
22969 
22970   if test "x$BOOT_JDK_FOUND" = xno; then
22971     # Now execute the test
22972 
22973   if test "x$ProgramFiles" != x; then
22974     VIRTUAL_DIR="$ProgramFiles/Java"
22975 
22976   windows_path="$VIRTUAL_DIR"
22977   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22978     unix_path=`$CYGPATH -u "$windows_path"`
22979     VIRTUAL_DIR="$unix_path"
22980   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22981     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22982     VIRTUAL_DIR="$unix_path"
22983   fi
22984 
22985 
22986   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22987   BOOT_JDK_SUFFIX=""
22988   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22989   if test "x$ALL_JDKS_FOUND" != x; then
22990     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22991 
22992   if test "x$BOOT_JDK_FOUND" = xno; then
22993     # Now execute the test
22994 
22995         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22996         if test -d "$BOOT_JDK"; then
22997           BOOT_JDK_FOUND=maybe
22998           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22999 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23000         fi
23001 
23002 
23003     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23004     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23005       # Do we have a bin/java?
23006       if test ! -x "$BOOT_JDK/bin/java"; then
23007         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23009         BOOT_JDK_FOUND=no
23010       else
23011         # Do we have a bin/javac?
23012         if test ! -x "$BOOT_JDK/bin/javac"; then
23013           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23014 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23015           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23016 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23017           BOOT_JDK_FOUND=no
23018         else
23019           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23020           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23021             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23022 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23023             BOOT_JDK_FOUND=no
23024           else
23025             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23026             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23027 
23028             # Extra M4 quote needed to protect [] in grep expression.
23029             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23030             if test "x$FOUND_CORRECT_VERSION" = x; then
23031               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23032 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23033               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23034 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23035               BOOT_JDK_FOUND=no
23036             else
23037               # We're done! :-)
23038               BOOT_JDK_FOUND=yes
23039 
23040   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23041 
23042   # Input might be given as Windows format, start by converting to
23043   # unix format.
23044   path="$BOOT_JDK"
23045   new_path=`$CYGPATH -u "$path"`
23046 
23047   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23048   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23049   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23050   # "foo.exe" is OK but "foo" is an error.
23051   #
23052   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23053   # It is also a way to make sure we got the proper file name for the real test later on.
23054   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23055   if test "x$test_shortpath" = x; then
23056     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23057 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23058     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23059   fi
23060 
23061   # Call helper function which possibly converts this using DOS-style short mode.
23062   # If so, the updated path is stored in $new_path.
23063 
23064   input_path="$new_path"
23065   # Check if we need to convert this using DOS-style short mode. If the path
23066   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23067   # take no chances and rewrite it.
23068   # Note: m4 eats our [], so we need to use [ and ] instead.
23069   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23070   if test "x$has_forbidden_chars" != x; then
23071     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23072     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23073     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23074     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23075       # Going to short mode and back again did indeed matter. Since short mode is
23076       # case insensitive, let's make it lowercase to improve readability.
23077       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23078       # Now convert it back to Unix-stile (cygpath)
23079       input_path=`$CYGPATH -u "$shortmode_path"`
23080       new_path="$input_path"
23081     fi
23082   fi
23083 
23084   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23085   if test "x$test_cygdrive_prefix" = x; then
23086     # As a simple fix, exclude /usr/bin since it's not a real path.
23087     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23088       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23089       # a path prefixed by /cygdrive for fixpath to work.
23090       new_path="$CYGWIN_ROOT_PATH$input_path"
23091     fi
23092   fi
23093 
23094 
23095   if test "x$path" != "x$new_path"; then
23096     BOOT_JDK="$new_path"
23097     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23098 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23099   fi
23100 
23101   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23102 
23103   path="$BOOT_JDK"
23104   has_colon=`$ECHO $path | $GREP ^.:`
23105   new_path="$path"
23106   if test "x$has_colon" = x; then
23107     # Not in mixed or Windows style, start by that.
23108     new_path=`cmd //c echo $path`
23109   fi
23110 
23111 
23112   input_path="$new_path"
23113   # Check if we need to convert this using DOS-style short mode. If the path
23114   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23115   # take no chances and rewrite it.
23116   # Note: m4 eats our [], so we need to use [ and ] instead.
23117   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23118   if test "x$has_forbidden_chars" != x; then
23119     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23120     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23121   fi
23122 
23123 
23124   windows_path="$new_path"
23125   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23126     unix_path=`$CYGPATH -u "$windows_path"`
23127     new_path="$unix_path"
23128   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23129     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23130     new_path="$unix_path"
23131   fi
23132 
23133   if test "x$path" != "x$new_path"; then
23134     BOOT_JDK="$new_path"
23135     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23136 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23137   fi
23138 
23139   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23140   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23141 
23142   else
23143     # We're on a posix platform. Hooray! :)
23144     path="$BOOT_JDK"
23145     has_space=`$ECHO "$path" | $GREP " "`
23146     if test "x$has_space" != x; then
23147       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23148 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23149       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23150     fi
23151 
23152     # Use eval to expand a potential ~
23153     eval path="$path"
23154     if test ! -f "$path" && test ! -d "$path"; then
23155       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23156     fi
23157 
23158     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23159   fi
23160 
23161               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23162 $as_echo_n "checking for Boot JDK... " >&6; }
23163               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23164 $as_echo "$BOOT_JDK" >&6; }
23165               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23166 $as_echo_n "checking Boot JDK version... " >&6; }
23167               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23168               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23169 $as_echo "$BOOT_JDK_VERSION" >&6; }
23170             fi # end check jdk version
23171           fi # end check rt.jar
23172         fi # end check javac
23173       fi # end check java
23174     fi # end check boot jdk found
23175   fi
23176 
23177     done
23178   fi
23179 
23180   fi
23181 
23182 
23183     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23184     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23185       # Do we have a bin/java?
23186       if test ! -x "$BOOT_JDK/bin/java"; then
23187         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23189         BOOT_JDK_FOUND=no
23190       else
23191         # Do we have a bin/javac?
23192         if test ! -x "$BOOT_JDK/bin/javac"; then
23193           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23194 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23195           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23196 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23197           BOOT_JDK_FOUND=no
23198         else
23199           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23200           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23201             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23202 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23203             BOOT_JDK_FOUND=no
23204           else
23205             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23206             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23207 
23208             # Extra M4 quote needed to protect [] in grep expression.
23209             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23210             if test "x$FOUND_CORRECT_VERSION" = x; then
23211               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23212 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23213               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23214 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23215               BOOT_JDK_FOUND=no
23216             else
23217               # We're done! :-)
23218               BOOT_JDK_FOUND=yes
23219 
23220   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23221 
23222   # Input might be given as Windows format, start by converting to
23223   # unix format.
23224   path="$BOOT_JDK"
23225   new_path=`$CYGPATH -u "$path"`
23226 
23227   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23228   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23229   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23230   # "foo.exe" is OK but "foo" is an error.
23231   #
23232   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23233   # It is also a way to make sure we got the proper file name for the real test later on.
23234   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23235   if test "x$test_shortpath" = x; then
23236     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23238     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23239   fi
23240 
23241   # Call helper function which possibly converts this using DOS-style short mode.
23242   # If so, the updated path is stored in $new_path.
23243 
23244   input_path="$new_path"
23245   # Check if we need to convert this using DOS-style short mode. If the path
23246   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23247   # take no chances and rewrite it.
23248   # Note: m4 eats our [], so we need to use [ and ] instead.
23249   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23250   if test "x$has_forbidden_chars" != x; then
23251     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23252     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23253     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23254     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23255       # Going to short mode and back again did indeed matter. Since short mode is
23256       # case insensitive, let's make it lowercase to improve readability.
23257       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23258       # Now convert it back to Unix-stile (cygpath)
23259       input_path=`$CYGPATH -u "$shortmode_path"`
23260       new_path="$input_path"
23261     fi
23262   fi
23263 
23264   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23265   if test "x$test_cygdrive_prefix" = x; then
23266     # As a simple fix, exclude /usr/bin since it's not a real path.
23267     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23268       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23269       # a path prefixed by /cygdrive for fixpath to work.
23270       new_path="$CYGWIN_ROOT_PATH$input_path"
23271     fi
23272   fi
23273 
23274 
23275   if test "x$path" != "x$new_path"; then
23276     BOOT_JDK="$new_path"
23277     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23278 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23279   fi
23280 
23281   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23282 
23283   path="$BOOT_JDK"
23284   has_colon=`$ECHO $path | $GREP ^.:`
23285   new_path="$path"
23286   if test "x$has_colon" = x; then
23287     # Not in mixed or Windows style, start by that.
23288     new_path=`cmd //c echo $path`
23289   fi
23290 
23291 
23292   input_path="$new_path"
23293   # Check if we need to convert this using DOS-style short mode. If the path
23294   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23295   # take no chances and rewrite it.
23296   # Note: m4 eats our [], so we need to use [ and ] instead.
23297   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23298   if test "x$has_forbidden_chars" != x; then
23299     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23300     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23301   fi
23302 
23303 
23304   windows_path="$new_path"
23305   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23306     unix_path=`$CYGPATH -u "$windows_path"`
23307     new_path="$unix_path"
23308   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23309     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23310     new_path="$unix_path"
23311   fi
23312 
23313   if test "x$path" != "x$new_path"; then
23314     BOOT_JDK="$new_path"
23315     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23316 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23317   fi
23318 
23319   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23320   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23321 
23322   else
23323     # We're on a posix platform. Hooray! :)
23324     path="$BOOT_JDK"
23325     has_space=`$ECHO "$path" | $GREP " "`
23326     if test "x$has_space" != x; then
23327       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23328 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23329       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23330     fi
23331 
23332     # Use eval to expand a potential ~
23333     eval path="$path"
23334     if test ! -f "$path" && test ! -d "$path"; then
23335       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23336     fi
23337 
23338     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23339   fi
23340 
23341               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23342 $as_echo_n "checking for Boot JDK... " >&6; }
23343               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23344 $as_echo "$BOOT_JDK" >&6; }
23345               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23346 $as_echo_n "checking Boot JDK version... " >&6; }
23347               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23348               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23349 $as_echo "$BOOT_JDK_VERSION" >&6; }
23350             fi # end check jdk version
23351           fi # end check rt.jar
23352         fi # end check javac
23353       fi # end check java
23354     fi # end check boot jdk found
23355   fi
23356 
23357 
23358   if test "x$BOOT_JDK_FOUND" = xno; then
23359     # Now execute the test
23360 
23361   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23362   BOOT_JDK_SUFFIX=""
23363   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23364   if test "x$ALL_JDKS_FOUND" != x; then
23365     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23366 
23367   if test "x$BOOT_JDK_FOUND" = xno; then
23368     # Now execute the test
23369 
23370         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23371         if test -d "$BOOT_JDK"; then
23372           BOOT_JDK_FOUND=maybe
23373           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23374 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23375         fi
23376 
23377 
23378     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23379     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23380       # Do we have a bin/java?
23381       if test ! -x "$BOOT_JDK/bin/java"; then
23382         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23384         BOOT_JDK_FOUND=no
23385       else
23386         # Do we have a bin/javac?
23387         if test ! -x "$BOOT_JDK/bin/javac"; then
23388           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23390           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23391 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23392           BOOT_JDK_FOUND=no
23393         else
23394           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23395           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23396             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23397 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23398             BOOT_JDK_FOUND=no
23399           else
23400             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23401             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23402 
23403             # Extra M4 quote needed to protect [] in grep expression.
23404             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23405             if test "x$FOUND_CORRECT_VERSION" = x; then
23406               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23407 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23408               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23409 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23410               BOOT_JDK_FOUND=no
23411             else
23412               # We're done! :-)
23413               BOOT_JDK_FOUND=yes
23414 
23415   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23416 
23417   # Input might be given as Windows format, start by converting to
23418   # unix format.
23419   path="$BOOT_JDK"
23420   new_path=`$CYGPATH -u "$path"`
23421 
23422   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23423   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23424   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23425   # "foo.exe" is OK but "foo" is an error.
23426   #
23427   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23428   # It is also a way to make sure we got the proper file name for the real test later on.
23429   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23430   if test "x$test_shortpath" = x; then
23431     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23432 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23433     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23434   fi
23435 
23436   # Call helper function which possibly converts this using DOS-style short mode.
23437   # If so, the updated path is stored in $new_path.
23438 
23439   input_path="$new_path"
23440   # Check if we need to convert this using DOS-style short mode. If the path
23441   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23442   # take no chances and rewrite it.
23443   # Note: m4 eats our [], so we need to use [ and ] instead.
23444   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23445   if test "x$has_forbidden_chars" != x; then
23446     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23447     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23448     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23449     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23450       # Going to short mode and back again did indeed matter. Since short mode is
23451       # case insensitive, let's make it lowercase to improve readability.
23452       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23453       # Now convert it back to Unix-stile (cygpath)
23454       input_path=`$CYGPATH -u "$shortmode_path"`
23455       new_path="$input_path"
23456     fi
23457   fi
23458 
23459   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23460   if test "x$test_cygdrive_prefix" = x; then
23461     # As a simple fix, exclude /usr/bin since it's not a real path.
23462     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23463       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23464       # a path prefixed by /cygdrive for fixpath to work.
23465       new_path="$CYGWIN_ROOT_PATH$input_path"
23466     fi
23467   fi
23468 
23469 
23470   if test "x$path" != "x$new_path"; then
23471     BOOT_JDK="$new_path"
23472     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23473 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23474   fi
23475 
23476   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23477 
23478   path="$BOOT_JDK"
23479   has_colon=`$ECHO $path | $GREP ^.:`
23480   new_path="$path"
23481   if test "x$has_colon" = x; then
23482     # Not in mixed or Windows style, start by that.
23483     new_path=`cmd //c echo $path`
23484   fi
23485 
23486 
23487   input_path="$new_path"
23488   # Check if we need to convert this using DOS-style short mode. If the path
23489   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23490   # take no chances and rewrite it.
23491   # Note: m4 eats our [], so we need to use [ and ] instead.
23492   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23493   if test "x$has_forbidden_chars" != x; then
23494     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23495     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23496   fi
23497 
23498 
23499   windows_path="$new_path"
23500   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23501     unix_path=`$CYGPATH -u "$windows_path"`
23502     new_path="$unix_path"
23503   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23504     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23505     new_path="$unix_path"
23506   fi
23507 
23508   if test "x$path" != "x$new_path"; then
23509     BOOT_JDK="$new_path"
23510     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23511 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23512   fi
23513 
23514   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23515   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23516 
23517   else
23518     # We're on a posix platform. Hooray! :)
23519     path="$BOOT_JDK"
23520     has_space=`$ECHO "$path" | $GREP " "`
23521     if test "x$has_space" != x; then
23522       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23523 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23524       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23525     fi
23526 
23527     # Use eval to expand a potential ~
23528     eval path="$path"
23529     if test ! -f "$path" && test ! -d "$path"; then
23530       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23531     fi
23532 
23533     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23534   fi
23535 
23536               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23537 $as_echo_n "checking for Boot JDK... " >&6; }
23538               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23539 $as_echo "$BOOT_JDK" >&6; }
23540               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23541 $as_echo_n "checking Boot JDK version... " >&6; }
23542               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23543               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23544 $as_echo "$BOOT_JDK_VERSION" >&6; }
23545             fi # end check jdk version
23546           fi # end check rt.jar
23547         fi # end check javac
23548       fi # end check java
23549     fi # end check boot jdk found
23550   fi
23551 
23552     done
23553   fi
23554 
23555 
23556     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23557     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23558       # Do we have a bin/java?
23559       if test ! -x "$BOOT_JDK/bin/java"; then
23560         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23562         BOOT_JDK_FOUND=no
23563       else
23564         # Do we have a bin/javac?
23565         if test ! -x "$BOOT_JDK/bin/javac"; then
23566           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23567 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23568           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23569 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23570           BOOT_JDK_FOUND=no
23571         else
23572           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23573           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23574             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23575 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23576             BOOT_JDK_FOUND=no
23577           else
23578             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23579             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23580 
23581             # Extra M4 quote needed to protect [] in grep expression.
23582             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23583             if test "x$FOUND_CORRECT_VERSION" = x; then
23584               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23585 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23586               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23587 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23588               BOOT_JDK_FOUND=no
23589             else
23590               # We're done! :-)
23591               BOOT_JDK_FOUND=yes
23592 
23593   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23594 
23595   # Input might be given as Windows format, start by converting to
23596   # unix format.
23597   path="$BOOT_JDK"
23598   new_path=`$CYGPATH -u "$path"`
23599 
23600   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23601   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23602   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23603   # "foo.exe" is OK but "foo" is an error.
23604   #
23605   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23606   # It is also a way to make sure we got the proper file name for the real test later on.
23607   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23608   if test "x$test_shortpath" = x; then
23609     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23610 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23611     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23612   fi
23613 
23614   # Call helper function which possibly converts this using DOS-style short mode.
23615   # If so, the updated path is stored in $new_path.
23616 
23617   input_path="$new_path"
23618   # Check if we need to convert this using DOS-style short mode. If the path
23619   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23620   # take no chances and rewrite it.
23621   # Note: m4 eats our [], so we need to use [ and ] instead.
23622   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23623   if test "x$has_forbidden_chars" != x; then
23624     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23625     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23626     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23627     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23628       # Going to short mode and back again did indeed matter. Since short mode is
23629       # case insensitive, let's make it lowercase to improve readability.
23630       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23631       # Now convert it back to Unix-stile (cygpath)
23632       input_path=`$CYGPATH -u "$shortmode_path"`
23633       new_path="$input_path"
23634     fi
23635   fi
23636 
23637   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23638   if test "x$test_cygdrive_prefix" = x; then
23639     # As a simple fix, exclude /usr/bin since it's not a real path.
23640     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23641       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23642       # a path prefixed by /cygdrive for fixpath to work.
23643       new_path="$CYGWIN_ROOT_PATH$input_path"
23644     fi
23645   fi
23646 
23647 
23648   if test "x$path" != "x$new_path"; then
23649     BOOT_JDK="$new_path"
23650     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23651 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23652   fi
23653 
23654   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23655 
23656   path="$BOOT_JDK"
23657   has_colon=`$ECHO $path | $GREP ^.:`
23658   new_path="$path"
23659   if test "x$has_colon" = x; then
23660     # Not in mixed or Windows style, start by that.
23661     new_path=`cmd //c echo $path`
23662   fi
23663 
23664 
23665   input_path="$new_path"
23666   # Check if we need to convert this using DOS-style short mode. If the path
23667   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23668   # take no chances and rewrite it.
23669   # Note: m4 eats our [], so we need to use [ and ] instead.
23670   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23671   if test "x$has_forbidden_chars" != x; then
23672     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23673     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23674   fi
23675 
23676 
23677   windows_path="$new_path"
23678   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23679     unix_path=`$CYGPATH -u "$windows_path"`
23680     new_path="$unix_path"
23681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23682     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23683     new_path="$unix_path"
23684   fi
23685 
23686   if test "x$path" != "x$new_path"; then
23687     BOOT_JDK="$new_path"
23688     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23689 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23690   fi
23691 
23692   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23693   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23694 
23695   else
23696     # We're on a posix platform. Hooray! :)
23697     path="$BOOT_JDK"
23698     has_space=`$ECHO "$path" | $GREP " "`
23699     if test "x$has_space" != x; then
23700       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23701 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23702       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23703     fi
23704 
23705     # Use eval to expand a potential ~
23706     eval path="$path"
23707     if test ! -f "$path" && test ! -d "$path"; then
23708       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23709     fi
23710 
23711     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23712   fi
23713 
23714               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23715 $as_echo_n "checking for Boot JDK... " >&6; }
23716               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23717 $as_echo "$BOOT_JDK" >&6; }
23718               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23719 $as_echo_n "checking Boot JDK version... " >&6; }
23720               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23721               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23722 $as_echo "$BOOT_JDK_VERSION" >&6; }
23723             fi # end check jdk version
23724           fi # end check rt.jar
23725         fi # end check javac
23726       fi # end check java
23727     fi # end check boot jdk found
23728   fi
23729 
23730   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23731 
23732   if test "x$BOOT_JDK_FOUND" = xno; then
23733     # Now execute the test
23734 
23735   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23736   BOOT_JDK_SUFFIX="/Contents/Home"
23737   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23738   if test "x$ALL_JDKS_FOUND" != x; then
23739     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23740 
23741   if test "x$BOOT_JDK_FOUND" = xno; then
23742     # Now execute the test
23743 
23744         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23745         if test -d "$BOOT_JDK"; then
23746           BOOT_JDK_FOUND=maybe
23747           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23748 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23749         fi
23750 
23751 
23752     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23753     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23754       # Do we have a bin/java?
23755       if test ! -x "$BOOT_JDK/bin/java"; then
23756         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23758         BOOT_JDK_FOUND=no
23759       else
23760         # Do we have a bin/javac?
23761         if test ! -x "$BOOT_JDK/bin/javac"; then
23762           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23763 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23764           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23765 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23766           BOOT_JDK_FOUND=no
23767         else
23768           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23769           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23770             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23771 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23772             BOOT_JDK_FOUND=no
23773           else
23774             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23775             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23776 
23777             # Extra M4 quote needed to protect [] in grep expression.
23778             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23779             if test "x$FOUND_CORRECT_VERSION" = x; then
23780               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23781 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23782               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23783 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23784               BOOT_JDK_FOUND=no
23785             else
23786               # We're done! :-)
23787               BOOT_JDK_FOUND=yes
23788 
23789   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23790 
23791   # Input might be given as Windows format, start by converting to
23792   # unix format.
23793   path="$BOOT_JDK"
23794   new_path=`$CYGPATH -u "$path"`
23795 
23796   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23797   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23798   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23799   # "foo.exe" is OK but "foo" is an error.
23800   #
23801   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23802   # It is also a way to make sure we got the proper file name for the real test later on.
23803   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23804   if test "x$test_shortpath" = x; then
23805     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23806 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23807     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23808   fi
23809 
23810   # Call helper function which possibly converts this using DOS-style short mode.
23811   # If so, the updated path is stored in $new_path.
23812 
23813   input_path="$new_path"
23814   # Check if we need to convert this using DOS-style short mode. If the path
23815   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23816   # take no chances and rewrite it.
23817   # Note: m4 eats our [], so we need to use [ and ] instead.
23818   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23819   if test "x$has_forbidden_chars" != x; then
23820     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23821     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23822     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23823     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23824       # Going to short mode and back again did indeed matter. Since short mode is
23825       # case insensitive, let's make it lowercase to improve readability.
23826       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23827       # Now convert it back to Unix-stile (cygpath)
23828       input_path=`$CYGPATH -u "$shortmode_path"`
23829       new_path="$input_path"
23830     fi
23831   fi
23832 
23833   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23834   if test "x$test_cygdrive_prefix" = x; then
23835     # As a simple fix, exclude /usr/bin since it's not a real path.
23836     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23837       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23838       # a path prefixed by /cygdrive for fixpath to work.
23839       new_path="$CYGWIN_ROOT_PATH$input_path"
23840     fi
23841   fi
23842 
23843 
23844   if test "x$path" != "x$new_path"; then
23845     BOOT_JDK="$new_path"
23846     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23847 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23848   fi
23849 
23850   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23851 
23852   path="$BOOT_JDK"
23853   has_colon=`$ECHO $path | $GREP ^.:`
23854   new_path="$path"
23855   if test "x$has_colon" = x; then
23856     # Not in mixed or Windows style, start by that.
23857     new_path=`cmd //c echo $path`
23858   fi
23859 
23860 
23861   input_path="$new_path"
23862   # Check if we need to convert this using DOS-style short mode. If the path
23863   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23864   # take no chances and rewrite it.
23865   # Note: m4 eats our [], so we need to use [ and ] instead.
23866   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23867   if test "x$has_forbidden_chars" != x; then
23868     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23869     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23870   fi
23871 
23872 
23873   windows_path="$new_path"
23874   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23875     unix_path=`$CYGPATH -u "$windows_path"`
23876     new_path="$unix_path"
23877   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23878     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23879     new_path="$unix_path"
23880   fi
23881 
23882   if test "x$path" != "x$new_path"; then
23883     BOOT_JDK="$new_path"
23884     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23885 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23886   fi
23887 
23888   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23889   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23890 
23891   else
23892     # We're on a posix platform. Hooray! :)
23893     path="$BOOT_JDK"
23894     has_space=`$ECHO "$path" | $GREP " "`
23895     if test "x$has_space" != x; then
23896       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23897 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23898       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23899     fi
23900 
23901     # Use eval to expand a potential ~
23902     eval path="$path"
23903     if test ! -f "$path" && test ! -d "$path"; then
23904       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23905     fi
23906 
23907     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23908   fi
23909 
23910               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23911 $as_echo_n "checking for Boot JDK... " >&6; }
23912               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23913 $as_echo "$BOOT_JDK" >&6; }
23914               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23915 $as_echo_n "checking Boot JDK version... " >&6; }
23916               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23917               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23918 $as_echo "$BOOT_JDK_VERSION" >&6; }
23919             fi # end check jdk version
23920           fi # end check rt.jar
23921         fi # end check javac
23922       fi # end check java
23923     fi # end check boot jdk found
23924   fi
23925 
23926     done
23927   fi
23928 
23929 
23930     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23931     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23932       # Do we have a bin/java?
23933       if test ! -x "$BOOT_JDK/bin/java"; then
23934         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23935 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23936         BOOT_JDK_FOUND=no
23937       else
23938         # Do we have a bin/javac?
23939         if test ! -x "$BOOT_JDK/bin/javac"; then
23940           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23941 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23942           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23943 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23944           BOOT_JDK_FOUND=no
23945         else
23946           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23947           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23948             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23949 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23950             BOOT_JDK_FOUND=no
23951           else
23952             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23953             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23954 
23955             # Extra M4 quote needed to protect [] in grep expression.
23956             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23957             if test "x$FOUND_CORRECT_VERSION" = x; then
23958               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23959 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23960               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23961 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23962               BOOT_JDK_FOUND=no
23963             else
23964               # We're done! :-)
23965               BOOT_JDK_FOUND=yes
23966 
23967   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23968 
23969   # Input might be given as Windows format, start by converting to
23970   # unix format.
23971   path="$BOOT_JDK"
23972   new_path=`$CYGPATH -u "$path"`
23973 
23974   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23975   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23976   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23977   # "foo.exe" is OK but "foo" is an error.
23978   #
23979   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23980   # It is also a way to make sure we got the proper file name for the real test later on.
23981   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23982   if test "x$test_shortpath" = x; then
23983     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23984 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23985     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23986   fi
23987 
23988   # Call helper function which possibly converts this using DOS-style short mode.
23989   # If so, the updated path is stored in $new_path.
23990 
23991   input_path="$new_path"
23992   # Check if we need to convert this using DOS-style short mode. If the path
23993   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23994   # take no chances and rewrite it.
23995   # Note: m4 eats our [], so we need to use [ and ] instead.
23996   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23997   if test "x$has_forbidden_chars" != x; then
23998     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23999     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24000     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24001     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24002       # Going to short mode and back again did indeed matter. Since short mode is
24003       # case insensitive, let's make it lowercase to improve readability.
24004       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24005       # Now convert it back to Unix-stile (cygpath)
24006       input_path=`$CYGPATH -u "$shortmode_path"`
24007       new_path="$input_path"
24008     fi
24009   fi
24010 
24011   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24012   if test "x$test_cygdrive_prefix" = x; then
24013     # As a simple fix, exclude /usr/bin since it's not a real path.
24014     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24015       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24016       # a path prefixed by /cygdrive for fixpath to work.
24017       new_path="$CYGWIN_ROOT_PATH$input_path"
24018     fi
24019   fi
24020 
24021 
24022   if test "x$path" != "x$new_path"; then
24023     BOOT_JDK="$new_path"
24024     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24025 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24026   fi
24027 
24028   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24029 
24030   path="$BOOT_JDK"
24031   has_colon=`$ECHO $path | $GREP ^.:`
24032   new_path="$path"
24033   if test "x$has_colon" = x; then
24034     # Not in mixed or Windows style, start by that.
24035     new_path=`cmd //c echo $path`
24036   fi
24037 
24038 
24039   input_path="$new_path"
24040   # Check if we need to convert this using DOS-style short mode. If the path
24041   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24042   # take no chances and rewrite it.
24043   # Note: m4 eats our [], so we need to use [ and ] instead.
24044   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24045   if test "x$has_forbidden_chars" != x; then
24046     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24047     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24048   fi
24049 
24050 
24051   windows_path="$new_path"
24052   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24053     unix_path=`$CYGPATH -u "$windows_path"`
24054     new_path="$unix_path"
24055   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24056     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24057     new_path="$unix_path"
24058   fi
24059 
24060   if test "x$path" != "x$new_path"; then
24061     BOOT_JDK="$new_path"
24062     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24063 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24064   fi
24065 
24066   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24067   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24068 
24069   else
24070     # We're on a posix platform. Hooray! :)
24071     path="$BOOT_JDK"
24072     has_space=`$ECHO "$path" | $GREP " "`
24073     if test "x$has_space" != x; then
24074       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24075 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24076       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24077     fi
24078 
24079     # Use eval to expand a potential ~
24080     eval path="$path"
24081     if test ! -f "$path" && test ! -d "$path"; then
24082       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24083     fi
24084 
24085     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24086   fi
24087 
24088               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24089 $as_echo_n "checking for Boot JDK... " >&6; }
24090               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24091 $as_echo "$BOOT_JDK" >&6; }
24092               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24093 $as_echo_n "checking Boot JDK version... " >&6; }
24094               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24095               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24096 $as_echo "$BOOT_JDK_VERSION" >&6; }
24097             fi # end check jdk version
24098           fi # end check rt.jar
24099         fi # end check javac
24100       fi # end check java
24101     fi # end check boot jdk found
24102   fi
24103 
24104 
24105   if test "x$BOOT_JDK_FOUND" = xno; then
24106     # Now execute the test
24107 
24108   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24109   BOOT_JDK_SUFFIX="/Contents/Home"
24110   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24111   if test "x$ALL_JDKS_FOUND" != x; then
24112     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24113 
24114   if test "x$BOOT_JDK_FOUND" = xno; then
24115     # Now execute the test
24116 
24117         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24118         if test -d "$BOOT_JDK"; then
24119           BOOT_JDK_FOUND=maybe
24120           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24121 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24122         fi
24123 
24124 
24125     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24126     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24127       # Do we have a bin/java?
24128       if test ! -x "$BOOT_JDK/bin/java"; then
24129         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24130 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24131         BOOT_JDK_FOUND=no
24132       else
24133         # Do we have a bin/javac?
24134         if test ! -x "$BOOT_JDK/bin/javac"; then
24135           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24136 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24137           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24138 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24139           BOOT_JDK_FOUND=no
24140         else
24141           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24142           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24143             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24144 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24145             BOOT_JDK_FOUND=no
24146           else
24147             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24148             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24149 
24150             # Extra M4 quote needed to protect [] in grep expression.
24151             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24152             if test "x$FOUND_CORRECT_VERSION" = x; then
24153               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24154 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24155               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24156 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24157               BOOT_JDK_FOUND=no
24158             else
24159               # We're done! :-)
24160               BOOT_JDK_FOUND=yes
24161 
24162   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24163 
24164   # Input might be given as Windows format, start by converting to
24165   # unix format.
24166   path="$BOOT_JDK"
24167   new_path=`$CYGPATH -u "$path"`
24168 
24169   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24170   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24171   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24172   # "foo.exe" is OK but "foo" is an error.
24173   #
24174   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24175   # It is also a way to make sure we got the proper file name for the real test later on.
24176   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24177   if test "x$test_shortpath" = x; then
24178     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24179 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24180     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24181   fi
24182 
24183   # Call helper function which possibly converts this using DOS-style short mode.
24184   # If so, the updated path is stored in $new_path.
24185 
24186   input_path="$new_path"
24187   # Check if we need to convert this using DOS-style short mode. If the path
24188   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24189   # take no chances and rewrite it.
24190   # Note: m4 eats our [], so we need to use [ and ] instead.
24191   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24192   if test "x$has_forbidden_chars" != x; then
24193     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24194     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24195     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24196     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24197       # Going to short mode and back again did indeed matter. Since short mode is
24198       # case insensitive, let's make it lowercase to improve readability.
24199       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24200       # Now convert it back to Unix-stile (cygpath)
24201       input_path=`$CYGPATH -u "$shortmode_path"`
24202       new_path="$input_path"
24203     fi
24204   fi
24205 
24206   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24207   if test "x$test_cygdrive_prefix" = x; then
24208     # As a simple fix, exclude /usr/bin since it's not a real path.
24209     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24210       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24211       # a path prefixed by /cygdrive for fixpath to work.
24212       new_path="$CYGWIN_ROOT_PATH$input_path"
24213     fi
24214   fi
24215 
24216 
24217   if test "x$path" != "x$new_path"; then
24218     BOOT_JDK="$new_path"
24219     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24220 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24221   fi
24222 
24223   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24224 
24225   path="$BOOT_JDK"
24226   has_colon=`$ECHO $path | $GREP ^.:`
24227   new_path="$path"
24228   if test "x$has_colon" = x; then
24229     # Not in mixed or Windows style, start by that.
24230     new_path=`cmd //c echo $path`
24231   fi
24232 
24233 
24234   input_path="$new_path"
24235   # Check if we need to convert this using DOS-style short mode. If the path
24236   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24237   # take no chances and rewrite it.
24238   # Note: m4 eats our [], so we need to use [ and ] instead.
24239   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24240   if test "x$has_forbidden_chars" != x; then
24241     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24242     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24243   fi
24244 
24245 
24246   windows_path="$new_path"
24247   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24248     unix_path=`$CYGPATH -u "$windows_path"`
24249     new_path="$unix_path"
24250   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24251     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24252     new_path="$unix_path"
24253   fi
24254 
24255   if test "x$path" != "x$new_path"; then
24256     BOOT_JDK="$new_path"
24257     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24258 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24259   fi
24260 
24261   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24262   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24263 
24264   else
24265     # We're on a posix platform. Hooray! :)
24266     path="$BOOT_JDK"
24267     has_space=`$ECHO "$path" | $GREP " "`
24268     if test "x$has_space" != x; then
24269       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24270 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24271       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24272     fi
24273 
24274     # Use eval to expand a potential ~
24275     eval path="$path"
24276     if test ! -f "$path" && test ! -d "$path"; then
24277       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24278     fi
24279 
24280     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24281   fi
24282 
24283               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24284 $as_echo_n "checking for Boot JDK... " >&6; }
24285               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24286 $as_echo "$BOOT_JDK" >&6; }
24287               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24288 $as_echo_n "checking Boot JDK version... " >&6; }
24289               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24290               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24291 $as_echo "$BOOT_JDK_VERSION" >&6; }
24292             fi # end check jdk version
24293           fi # end check rt.jar
24294         fi # end check javac
24295       fi # end check java
24296     fi # end check boot jdk found
24297   fi
24298 
24299     done
24300   fi
24301 
24302 
24303     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24304     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24305       # Do we have a bin/java?
24306       if test ! -x "$BOOT_JDK/bin/java"; then
24307         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24309         BOOT_JDK_FOUND=no
24310       else
24311         # Do we have a bin/javac?
24312         if test ! -x "$BOOT_JDK/bin/javac"; then
24313           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24314 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24315           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24316 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24317           BOOT_JDK_FOUND=no
24318         else
24319           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24320           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24321             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24322 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24323             BOOT_JDK_FOUND=no
24324           else
24325             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24326             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24327 
24328             # Extra M4 quote needed to protect [] in grep expression.
24329             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24330             if test "x$FOUND_CORRECT_VERSION" = x; then
24331               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24332 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24333               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24334 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24335               BOOT_JDK_FOUND=no
24336             else
24337               # We're done! :-)
24338               BOOT_JDK_FOUND=yes
24339 
24340   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24341 
24342   # Input might be given as Windows format, start by converting to
24343   # unix format.
24344   path="$BOOT_JDK"
24345   new_path=`$CYGPATH -u "$path"`
24346 
24347   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24348   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24349   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24350   # "foo.exe" is OK but "foo" is an error.
24351   #
24352   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24353   # It is also a way to make sure we got the proper file name for the real test later on.
24354   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24355   if test "x$test_shortpath" = x; then
24356     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24357 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24358     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24359   fi
24360 
24361   # Call helper function which possibly converts this using DOS-style short mode.
24362   # If so, the updated path is stored in $new_path.
24363 
24364   input_path="$new_path"
24365   # Check if we need to convert this using DOS-style short mode. If the path
24366   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24367   # take no chances and rewrite it.
24368   # Note: m4 eats our [], so we need to use [ and ] instead.
24369   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24370   if test "x$has_forbidden_chars" != x; then
24371     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24372     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24373     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24374     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24375       # Going to short mode and back again did indeed matter. Since short mode is
24376       # case insensitive, let's make it lowercase to improve readability.
24377       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24378       # Now convert it back to Unix-stile (cygpath)
24379       input_path=`$CYGPATH -u "$shortmode_path"`
24380       new_path="$input_path"
24381     fi
24382   fi
24383 
24384   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24385   if test "x$test_cygdrive_prefix" = x; then
24386     # As a simple fix, exclude /usr/bin since it's not a real path.
24387     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24388       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24389       # a path prefixed by /cygdrive for fixpath to work.
24390       new_path="$CYGWIN_ROOT_PATH$input_path"
24391     fi
24392   fi
24393 
24394 
24395   if test "x$path" != "x$new_path"; then
24396     BOOT_JDK="$new_path"
24397     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24398 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24399   fi
24400 
24401   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24402 
24403   path="$BOOT_JDK"
24404   has_colon=`$ECHO $path | $GREP ^.:`
24405   new_path="$path"
24406   if test "x$has_colon" = x; then
24407     # Not in mixed or Windows style, start by that.
24408     new_path=`cmd //c echo $path`
24409   fi
24410 
24411 
24412   input_path="$new_path"
24413   # Check if we need to convert this using DOS-style short mode. If the path
24414   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24415   # take no chances and rewrite it.
24416   # Note: m4 eats our [], so we need to use [ and ] instead.
24417   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24418   if test "x$has_forbidden_chars" != x; then
24419     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24420     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24421   fi
24422 
24423 
24424   windows_path="$new_path"
24425   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24426     unix_path=`$CYGPATH -u "$windows_path"`
24427     new_path="$unix_path"
24428   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24429     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24430     new_path="$unix_path"
24431   fi
24432 
24433   if test "x$path" != "x$new_path"; then
24434     BOOT_JDK="$new_path"
24435     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24436 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24437   fi
24438 
24439   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24440   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24441 
24442   else
24443     # We're on a posix platform. Hooray! :)
24444     path="$BOOT_JDK"
24445     has_space=`$ECHO "$path" | $GREP " "`
24446     if test "x$has_space" != x; then
24447       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24448 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24449       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24450     fi
24451 
24452     # Use eval to expand a potential ~
24453     eval path="$path"
24454     if test ! -f "$path" && test ! -d "$path"; then
24455       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24456     fi
24457 
24458     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24459   fi
24460 
24461               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24462 $as_echo_n "checking for Boot JDK... " >&6; }
24463               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24464 $as_echo "$BOOT_JDK" >&6; }
24465               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24466 $as_echo_n "checking Boot JDK version... " >&6; }
24467               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24468               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24469 $as_echo "$BOOT_JDK_VERSION" >&6; }
24470             fi # end check jdk version
24471           fi # end check rt.jar
24472         fi # end check javac
24473       fi # end check java
24474     fi # end check boot jdk found
24475   fi
24476 
24477   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24478 
24479   if test "x$BOOT_JDK_FOUND" = xno; then
24480     # Now execute the test
24481 
24482   BOOT_JDK_PREFIX="/usr/lib/jvm"
24483   BOOT_JDK_SUFFIX=""
24484   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24485   if test "x$ALL_JDKS_FOUND" != x; then
24486     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24487 
24488   if test "x$BOOT_JDK_FOUND" = xno; then
24489     # Now execute the test
24490 
24491         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24492         if test -d "$BOOT_JDK"; then
24493           BOOT_JDK_FOUND=maybe
24494           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24495 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24496         fi
24497 
24498 
24499     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24500     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24501       # Do we have a bin/java?
24502       if test ! -x "$BOOT_JDK/bin/java"; then
24503         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24505         BOOT_JDK_FOUND=no
24506       else
24507         # Do we have a bin/javac?
24508         if test ! -x "$BOOT_JDK/bin/javac"; then
24509           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24510 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24511           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24512 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24513           BOOT_JDK_FOUND=no
24514         else
24515           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24516           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24517             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24518 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24519             BOOT_JDK_FOUND=no
24520           else
24521             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24522             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24523 
24524             # Extra M4 quote needed to protect [] in grep expression.
24525             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24526             if test "x$FOUND_CORRECT_VERSION" = x; then
24527               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24528 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24529               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24530 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24531               BOOT_JDK_FOUND=no
24532             else
24533               # We're done! :-)
24534               BOOT_JDK_FOUND=yes
24535 
24536   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24537 
24538   # Input might be given as Windows format, start by converting to
24539   # unix format.
24540   path="$BOOT_JDK"
24541   new_path=`$CYGPATH -u "$path"`
24542 
24543   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24544   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24545   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24546   # "foo.exe" is OK but "foo" is an error.
24547   #
24548   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24549   # It is also a way to make sure we got the proper file name for the real test later on.
24550   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24551   if test "x$test_shortpath" = x; then
24552     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24553 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24554     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24555   fi
24556 
24557   # Call helper function which possibly converts this using DOS-style short mode.
24558   # If so, the updated path is stored in $new_path.
24559 
24560   input_path="$new_path"
24561   # Check if we need to convert this using DOS-style short mode. If the path
24562   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24563   # take no chances and rewrite it.
24564   # Note: m4 eats our [], so we need to use [ and ] instead.
24565   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24566   if test "x$has_forbidden_chars" != x; then
24567     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24568     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24569     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24570     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24571       # Going to short mode and back again did indeed matter. Since short mode is
24572       # case insensitive, let's make it lowercase to improve readability.
24573       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24574       # Now convert it back to Unix-stile (cygpath)
24575       input_path=`$CYGPATH -u "$shortmode_path"`
24576       new_path="$input_path"
24577     fi
24578   fi
24579 
24580   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24581   if test "x$test_cygdrive_prefix" = x; then
24582     # As a simple fix, exclude /usr/bin since it's not a real path.
24583     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24584       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24585       # a path prefixed by /cygdrive for fixpath to work.
24586       new_path="$CYGWIN_ROOT_PATH$input_path"
24587     fi
24588   fi
24589 
24590 
24591   if test "x$path" != "x$new_path"; then
24592     BOOT_JDK="$new_path"
24593     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24594 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24595   fi
24596 
24597   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24598 
24599   path="$BOOT_JDK"
24600   has_colon=`$ECHO $path | $GREP ^.:`
24601   new_path="$path"
24602   if test "x$has_colon" = x; then
24603     # Not in mixed or Windows style, start by that.
24604     new_path=`cmd //c echo $path`
24605   fi
24606 
24607 
24608   input_path="$new_path"
24609   # Check if we need to convert this using DOS-style short mode. If the path
24610   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24611   # take no chances and rewrite it.
24612   # Note: m4 eats our [], so we need to use [ and ] instead.
24613   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24614   if test "x$has_forbidden_chars" != x; then
24615     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24616     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24617   fi
24618 
24619 
24620   windows_path="$new_path"
24621   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24622     unix_path=`$CYGPATH -u "$windows_path"`
24623     new_path="$unix_path"
24624   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24625     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24626     new_path="$unix_path"
24627   fi
24628 
24629   if test "x$path" != "x$new_path"; then
24630     BOOT_JDK="$new_path"
24631     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24632 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24633   fi
24634 
24635   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24636   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24637 
24638   else
24639     # We're on a posix platform. Hooray! :)
24640     path="$BOOT_JDK"
24641     has_space=`$ECHO "$path" | $GREP " "`
24642     if test "x$has_space" != x; then
24643       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24644 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24645       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24646     fi
24647 
24648     # Use eval to expand a potential ~
24649     eval path="$path"
24650     if test ! -f "$path" && test ! -d "$path"; then
24651       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24652     fi
24653 
24654     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24655   fi
24656 
24657               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24658 $as_echo_n "checking for Boot JDK... " >&6; }
24659               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24660 $as_echo "$BOOT_JDK" >&6; }
24661               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24662 $as_echo_n "checking Boot JDK version... " >&6; }
24663               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24664               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24665 $as_echo "$BOOT_JDK_VERSION" >&6; }
24666             fi # end check jdk version
24667           fi # end check rt.jar
24668         fi # end check javac
24669       fi # end check java
24670     fi # end check boot jdk found
24671   fi
24672 
24673     done
24674   fi
24675 
24676 
24677     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24678     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24679       # Do we have a bin/java?
24680       if test ! -x "$BOOT_JDK/bin/java"; then
24681         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24682 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24683         BOOT_JDK_FOUND=no
24684       else
24685         # Do we have a bin/javac?
24686         if test ! -x "$BOOT_JDK/bin/javac"; then
24687           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24688 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24689           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24690 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24691           BOOT_JDK_FOUND=no
24692         else
24693           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24694           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24695             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24696 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24697             BOOT_JDK_FOUND=no
24698           else
24699             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24700             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24701 
24702             # Extra M4 quote needed to protect [] in grep expression.
24703             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1