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 X_EXTRA_LIBS
 668 X_LIBS
 669 X_PRE_LIBS
 670 X_CFLAGS
 671 XMKMF
 672 FIXPATH
 673 ZIP_DEBUGINFO_FILES
 674 ENABLE_DEBUG_SYMBOLS
 675 CFLAGS_WARNINGS_ARE_ERRORS
 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 SYSROOT_LDFLAGS
 711 SYSROOT_CFLAGS
 712 RC_FLAGS
 713 AR_OUT_OPTION
 714 LD_OUT_OPTION
 715 EXE_OUT_OPTION
 716 CC_OUT_OPTION
 717 POST_MCS_CMD
 718 POST_STRIP_CMD
 719 ARFLAGS
 720 COMPILER_TARGET_BITS_FLAG
 721 JT_HOME
 722 JTREGEXE
 723 USING_BROKEN_SUSE_LD
 724 PACKAGE_PATH
 725 LDEXECXX
 726 LDEXE
 727 USE_CLANG
 728 HOTSPOT_LD
 729 HOTSPOT_CXX
 730 HOTSPOT_RC
 731 HOTSPOT_MT
 732 BUILD_LD
 733 BUILD_CXX
 734 BUILD_CC
 735 ac_ct_OBJDUMP
 736 OBJDUMP
 737 ac_ct_OBJCOPY
 738 OBJCOPY
 739 ac_ct_NM
 740 ac_ct_STRIP
 741 MCS
 742 GNM
 743 NM
 744 STRIP
 745 DUMPBIN
 746 RC
 747 MT
 748 LIPO
 749 ac_ct_OBJC
 750 OBJCFLAGS
 751 OBJC
 752 ac_ct_AR
 753 AR
 754 AS
 755 LDCXX
 756 LD
 757 CXXCPP
 758 CPP
 759 ac_ct_CXX
 760 CXXFLAGS
 761 CXX
 762 ac_ct_PROPER_COMPILER_CXX
 763 PROPER_COMPILER_CXX
 764 TOOLCHAIN_PATH_CXX
 765 POTENTIAL_CXX
 766 OBJEXT
 767 EXEEXT
 768 ac_ct_CC
 769 CPPFLAGS
 770 LDFLAGS
 771 CFLAGS
 772 CC
 773 ac_ct_PROPER_COMPILER_CC
 774 PROPER_COMPILER_CC
 775 TOOLCHAIN_PATH_CC
 776 POTENTIAL_CC
 777 VS_PATH
 778 VS_LIB
 779 VS_INCLUDE
 780 CYGWIN_LINK
 781 EXE_SUFFIX
 782 OBJ_SUFFIX
 783 STATIC_LIBRARY
 784 SHARED_LIBRARY
 785 STATIC_LIBRARY_SUFFIX
 786 SHARED_LIBRARY_SUFFIX
 787 LIBRARY_PREFIX
 788 TOOLCHAIN_TYPE
 789 BUILD_HOTSPOT
 790 HOTSPOT_DIST
 791 BUILD_OUTPUT
 792 OVERRIDE_SRC_ROOT
 793 ADD_SRC_ROOT
 794 JDK_TOPDIR
 795 NASHORN_TOPDIR
 796 HOTSPOT_TOPDIR
 797 JAXWS_TOPDIR
 798 JAXP_TOPDIR
 799 CORBA_TOPDIR
 800 LANGTOOLS_TOPDIR
 801 JAVA_FLAGS_SMALL
 802 JAVA_FLAGS_BIG
 803 JAVA_FLAGS
 804 JAVAC_FLAGS
 805 BOOT_JDK_SOURCETARGET
 806 JARSIGNER
 807 NATIVE2ASCII
 808 JAR
 809 JAVAH
 810 JAVAC
 811 JAVA
 812 BOOT_JDK
 813 BOOT_TOOLSJAR
 814 BOOT_RTJAR
 815 JAVA_CHECK
 816 JAVAC_CHECK
 817 COOKED_BUILD_NUMBER
 818 JDK_VERSION
 819 COPYRIGHT_YEAR
 820 MACOSX_BUNDLE_ID_BASE
 821 MACOSX_BUNDLE_NAME_BASE
 822 COMPANY_NAME
 823 JDK_RC_PLATFORM_NAME
 824 PRODUCT_SUFFIX
 825 PRODUCT_NAME
 826 LAUNCHER_NAME
 827 MILESTONE
 828 JDK_BUILD_NUMBER
 829 JDK_UPDATE_VERSION
 830 JDK_MICRO_VERSION
 831 JDK_MINOR_VERSION
 832 JDK_MAJOR_VERSION
 833 USER_RELEASE_SUFFIX
 834 COMPRESS_JARS
 835 RMICONNECTOR_IIOP
 836 UNLIMITED_CRYPTO
 837 CACERTS_FILE
 838 TEST_IN_BUILD
 839 BUILD_HEADLESS
 840 SUPPORT_HEADFUL
 841 SUPPORT_HEADLESS
 842 BDEPS_FTP
 843 BDEPS_UNZIP
 844 OS_VERSION_MICRO
 845 OS_VERSION_MINOR
 846 OS_VERSION_MAJOR
 847 PKG_CONFIG
 848 CODESIGN
 849 XATTR
 850 DSYMUTIL
 851 IS_GNU_TIME
 852 TIME
 853 STAT
 854 HG
 855 READELF
 856 OTOOL
 857 LDD
 858 ZIP
 859 UNZIP
 860 FIND_DELETE
 861 MAKE
 862 CHECK_TOOLSDIR_MAKE
 863 CHECK_TOOLSDIR_GMAKE
 864 CHECK_MAKE
 865 CHECK_GMAKE
 866 PKGHANDLER
 867 OUTPUT_ROOT
 868 CONF_NAME
 869 SPEC
 870 BUILD_VARIANT_RELEASE
 871 DEBUG_CLASSFILES
 872 FASTDEBUG
 873 VARIANT
 874 DEBUG_LEVEL
 875 MACOSX_UNIVERSAL
 876 INCLUDE_SA
 877 JVM_VARIANT_CORE
 878 JVM_VARIANT_ZEROSHARK
 879 JVM_VARIANT_ZERO
 880 JVM_VARIANT_KERNEL
 881 JVM_VARIANT_MINIMAL1
 882 JVM_VARIANT_CLIENT
 883 JVM_VARIANT_SERVER
 884 JVM_VARIANTS
 885 JVM_INTERPRETER
 886 JDK_VARIANT
 887 SET_OPENJDK
 888 BUILD_LOG_WRAPPER
 889 BUILD_LOG_PREVIOUS
 890 BUILD_LOG
 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_devkit
1024 with_sys_root
1025 with_sysroot
1026 with_tools_dir
1027 with_toolchain_path
1028 with_extra_path
1029 enable_openjdk_only
1030 with_custom_make_dir
1031 with_jdk_variant
1032 with_jvm_interpreter
1033 with_jvm_variants
1034 enable_debug
1035 with_debug_level
1036 with_conf_name
1037 with_builddeps_conf
1038 with_builddeps_server
1039 with_builddeps_dir
1040 with_builddeps_group
1041 enable_headful
1042 enable_hotspot_test_in_build
1043 with_cacerts_file
1044 enable_unlimited_crypto
1045 enable_rmiconnector_iiop
1046 with_milestone
1047 with_update_version
1048 with_user_release_suffix
1049 with_build_number
1050 with_boot_jdk
1051 with_boot_jdk_jvmargs
1052 with_add_source_root
1053 with_override_source_root
1054 with_adds_and_overrides
1055 with_override_langtools
1056 with_override_corba
1057 with_override_jaxp
1058 with_override_jaxws
1059 with_override_hotspot
1060 with_override_nashorn
1061 with_override_jdk
1062 with_import_hotspot
1063 with_toolchain_type
1064 with_jtreg
1065 with_extra_cflags
1066 with_extra_cxxflags
1067 with_extra_ldflags
1068 enable_debug_symbols
1069 enable_zip_debug_info
1070 enable_macosx_runtime_support
1071 with_x
1072 with_cups
1073 with_cups_include
1074 with_freetype
1075 with_freetype_include
1076 with_freetype_lib
1077 enable_freetype_bundling
1078 with_alsa
1079 with_alsa_include
1080 with_alsa_lib
1081 with_giflib
1082 with_libpng
1083 with_zlib
1084 with_stdc__lib
1085 with_msvcr_dll
1086 with_dxsdk
1087 with_dxsdk_lib
1088 with_dxsdk_include
1089 with_num_cores
1090 with_memory_size
1091 with_jobs
1092 with_sjavac_server_java
1093 enable_sjavac
1094 enable_precompiled_headers
1095 enable_ccache
1096 with_ccache_dir
1097 '
1098       ac_precious_vars='build_alias
1099 host_alias
1100 target_alias
1101 BASENAME
1102 BASH
1103 CAT
1104 CHMOD
1105 CMP
1106 COMM
1107 CP
1108 CPIO
1109 CUT
1110 DATE
1111 DIFF
1112 DIRNAME
1113 ECHO
1114 EXPR
1115 FILE
1116 FIND
1117 HEAD
1118 LN
1119 LS
1120 MKDIR
1121 MKTEMP
1122 MV
1123 NAWK
1124 PRINTF
1125 RM
1126 SH
1127 SORT
1128 TAIL
1129 TAR
1130 TEE
1131 TOUCH
1132 TR
1133 UNAME
1134 UNIQ
1135 WC
1136 WHICH
1137 XARGS
1138 AWK
1139 GREP
1140 EGREP
1141 FGREP
1142 SED
1143 CYGPATH
1144 READLINK
1145 DF
1146 SETFILE
1147 UNZIP
1148 ZIP
1149 LDD
1150 OTOOL
1151 READELF
1152 HG
1153 STAT
1154 TIME
1155 DSYMUTIL
1156 XATTR
1157 CODESIGN
1158 PKG_CONFIG
1159 JAVA
1160 JAVAC
1161 JAVAH
1162 JAR
1163 NATIVE2ASCII
1164 JARSIGNER
1165 CC
1166 CFLAGS
1167 LDFLAGS
1168 LIBS
1169 CPPFLAGS
1170 CXX
1171 CXXFLAGS
1172 CCC
1173 CPP
1174 CXXCPP
1175 AS
1176 AR
1177 OBJC
1178 OBJCFLAGS
1179 LIPO
1180 STRIP
1181 NM
1182 GNM
1183 MCS
1184 OBJCOPY
1185 OBJDUMP
1186 BUILD_CC
1187 BUILD_CXX
1188 BUILD_LD
1189 JTREGEXE
1190 XMKMF
1191 FREETYPE_CFLAGS
1192 FREETYPE_LIBS
1193 ALSA_CFLAGS
1194 ALSA_LIBS
1195 PNG_CFLAGS
1196 PNG_LIBS
1197 LIBFFI_CFLAGS
1198 LIBFFI_LIBS
1199 CCACHE'
1200 
1201 
1202 # Initialize some variables set by options.
1203 ac_init_help=
1204 ac_init_version=false
1205 ac_unrecognized_opts=
1206 ac_unrecognized_sep=
1207 # The variables have the same names as the options, with
1208 # dashes changed to underlines.
1209 cache_file=/dev/null
1210 exec_prefix=NONE
1211 no_create=
1212 no_recursion=
1213 prefix=NONE
1214 program_prefix=NONE
1215 program_suffix=NONE
1216 program_transform_name=s,x,x,
1217 silent=
1218 site=
1219 srcdir=
1220 verbose=
1221 x_includes=NONE
1222 x_libraries=NONE
1223 
1224 # Installation directory options.
1225 # These are left unexpanded so users can "make install exec_prefix=/foo"
1226 # and all the variables that are supposed to be based on exec_prefix
1227 # by default will actually change.
1228 # Use braces instead of parens because sh, perl, etc. also accept them.
1229 # (The list follows the same order as the GNU Coding Standards.)
1230 bindir='${exec_prefix}/bin'
1231 sbindir='${exec_prefix}/sbin'
1232 libexecdir='${exec_prefix}/libexec'
1233 datarootdir='${prefix}/share'
1234 datadir='${datarootdir}'
1235 sysconfdir='${prefix}/etc'
1236 sharedstatedir='${prefix}/com'
1237 localstatedir='${prefix}/var'
1238 includedir='${prefix}/include'
1239 oldincludedir='/usr/include'
1240 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1241 infodir='${datarootdir}/info'
1242 htmldir='${docdir}'
1243 dvidir='${docdir}'
1244 pdfdir='${docdir}'
1245 psdir='${docdir}'
1246 libdir='${exec_prefix}/lib'
1247 localedir='${datarootdir}/locale'
1248 mandir='${datarootdir}/man'
1249 
1250 ac_prev=
1251 ac_dashdash=
1252 for ac_option
1253 do
1254   # If the previous option needs an argument, assign it.
1255   if test -n "$ac_prev"; then
1256     eval $ac_prev=\$ac_option
1257     ac_prev=
1258     continue
1259   fi
1260 
1261   case $ac_option in
1262   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1263   *=)   ac_optarg= ;;
1264   *)    ac_optarg=yes ;;
1265   esac
1266 
1267   # Accept the important Cygnus configure options, so we can diagnose typos.
1268 
1269   case $ac_dashdash$ac_option in
1270   --)
1271     ac_dashdash=yes ;;
1272 
1273   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1274     ac_prev=bindir ;;
1275   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1276     bindir=$ac_optarg ;;
1277 
1278   -build | --build | --buil | --bui | --bu)
1279     ac_prev=build_alias ;;
1280   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1281     build_alias=$ac_optarg ;;
1282 
1283   -cache-file | --cache-file | --cache-fil | --cache-fi \
1284   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1285     ac_prev=cache_file ;;
1286   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1287   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1288     cache_file=$ac_optarg ;;
1289 
1290   --config-cache | -C)
1291     cache_file=config.cache ;;
1292 
1293   -datadir | --datadir | --datadi | --datad)
1294     ac_prev=datadir ;;
1295   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1296     datadir=$ac_optarg ;;
1297 
1298   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1299   | --dataroo | --dataro | --datar)
1300     ac_prev=datarootdir ;;
1301   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1302   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1303     datarootdir=$ac_optarg ;;
1304 
1305   -disable-* | --disable-*)
1306     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309       as_fn_error $? "invalid feature name: $ac_useropt"
1310     ac_useropt_orig=$ac_useropt
1311     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312     case $ac_user_opts in
1313       *"
1314 "enable_$ac_useropt"
1315 "*) ;;
1316       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1317          ac_unrecognized_sep=', ';;
1318     esac
1319     eval enable_$ac_useropt=no ;;
1320 
1321   -docdir | --docdir | --docdi | --doc | --do)
1322     ac_prev=docdir ;;
1323   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1324     docdir=$ac_optarg ;;
1325 
1326   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1327     ac_prev=dvidir ;;
1328   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1329     dvidir=$ac_optarg ;;
1330 
1331   -enable-* | --enable-*)
1332     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1333     # Reject names that are not valid shell variable names.
1334     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335       as_fn_error $? "invalid feature name: $ac_useropt"
1336     ac_useropt_orig=$ac_useropt
1337     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338     case $ac_user_opts in
1339       *"
1340 "enable_$ac_useropt"
1341 "*) ;;
1342       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1343          ac_unrecognized_sep=', ';;
1344     esac
1345     eval enable_$ac_useropt=\$ac_optarg ;;
1346 
1347   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1348   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1349   | --exec | --exe | --ex)
1350     ac_prev=exec_prefix ;;
1351   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1352   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1353   | --exec=* | --exe=* | --ex=*)
1354     exec_prefix=$ac_optarg ;;
1355 
1356   -gas | --gas | --ga | --g)
1357     # Obsolete; use --with-gas.
1358     with_gas=yes ;;
1359 
1360   -help | --help | --hel | --he | -h)
1361     ac_init_help=long ;;
1362   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1363     ac_init_help=recursive ;;
1364   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1365     ac_init_help=short ;;
1366 
1367   -host | --host | --hos | --ho)
1368     ac_prev=host_alias ;;
1369   -host=* | --host=* | --hos=* | --ho=*)
1370     host_alias=$ac_optarg ;;
1371 
1372   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1373     ac_prev=htmldir ;;
1374   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1375   | --ht=*)
1376     htmldir=$ac_optarg ;;
1377 
1378   -includedir | --includedir | --includedi | --included | --include \
1379   | --includ | --inclu | --incl | --inc)
1380     ac_prev=includedir ;;
1381   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1382   | --includ=* | --inclu=* | --incl=* | --inc=*)
1383     includedir=$ac_optarg ;;
1384 
1385   -infodir | --infodir | --infodi | --infod | --info | --inf)
1386     ac_prev=infodir ;;
1387   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1388     infodir=$ac_optarg ;;
1389 
1390   -libdir | --libdir | --libdi | --libd)
1391     ac_prev=libdir ;;
1392   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1393     libdir=$ac_optarg ;;
1394 
1395   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1396   | --libexe | --libex | --libe)
1397     ac_prev=libexecdir ;;
1398   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1399   | --libexe=* | --libex=* | --libe=*)
1400     libexecdir=$ac_optarg ;;
1401 
1402   -localedir | --localedir | --localedi | --localed | --locale)
1403     ac_prev=localedir ;;
1404   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1405     localedir=$ac_optarg ;;
1406 
1407   -localstatedir | --localstatedir | --localstatedi | --localstated \
1408   | --localstate | --localstat | --localsta | --localst | --locals)
1409     ac_prev=localstatedir ;;
1410   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1411   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1412     localstatedir=$ac_optarg ;;
1413 
1414   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1415     ac_prev=mandir ;;
1416   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1417     mandir=$ac_optarg ;;
1418 
1419   -nfp | --nfp | --nf)
1420     # Obsolete; use --without-fp.
1421     with_fp=no ;;
1422 
1423   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1424   | --no-cr | --no-c | -n)
1425     no_create=yes ;;
1426 
1427   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1428   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1429     no_recursion=yes ;;
1430 
1431   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1432   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1433   | --oldin | --oldi | --old | --ol | --o)
1434     ac_prev=oldincludedir ;;
1435   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1436   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1437   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1438     oldincludedir=$ac_optarg ;;
1439 
1440   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1441     ac_prev=prefix ;;
1442   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1443     prefix=$ac_optarg ;;
1444 
1445   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1446   | --program-pre | --program-pr | --program-p)
1447     ac_prev=program_prefix ;;
1448   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1449   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1450     program_prefix=$ac_optarg ;;
1451 
1452   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1453   | --program-suf | --program-su | --program-s)
1454     ac_prev=program_suffix ;;
1455   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1456   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1457     program_suffix=$ac_optarg ;;
1458 
1459   -program-transform-name | --program-transform-name \
1460   | --program-transform-nam | --program-transform-na \
1461   | --program-transform-n | --program-transform- \
1462   | --program-transform | --program-transfor \
1463   | --program-transfo | --program-transf \
1464   | --program-trans | --program-tran \
1465   | --progr-tra | --program-tr | --program-t)
1466     ac_prev=program_transform_name ;;
1467   -program-transform-name=* | --program-transform-name=* \
1468   | --program-transform-nam=* | --program-transform-na=* \
1469   | --program-transform-n=* | --program-transform-=* \
1470   | --program-transform=* | --program-transfor=* \
1471   | --program-transfo=* | --program-transf=* \
1472   | --program-trans=* | --program-tran=* \
1473   | --progr-tra=* | --program-tr=* | --program-t=*)
1474     program_transform_name=$ac_optarg ;;
1475 
1476   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1477     ac_prev=pdfdir ;;
1478   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1479     pdfdir=$ac_optarg ;;
1480 
1481   -psdir | --psdir | --psdi | --psd | --ps)
1482     ac_prev=psdir ;;
1483   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1484     psdir=$ac_optarg ;;
1485 
1486   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1487   | -silent | --silent | --silen | --sile | --sil)
1488     silent=yes ;;
1489 
1490   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1491     ac_prev=sbindir ;;
1492   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1493   | --sbi=* | --sb=*)
1494     sbindir=$ac_optarg ;;
1495 
1496   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1497   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1498   | --sharedst | --shareds | --shared | --share | --shar \
1499   | --sha | --sh)
1500     ac_prev=sharedstatedir ;;
1501   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1502   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1503   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1504   | --sha=* | --sh=*)
1505     sharedstatedir=$ac_optarg ;;
1506 
1507   -site | --site | --sit)
1508     ac_prev=site ;;
1509   -site=* | --site=* | --sit=*)
1510     site=$ac_optarg ;;
1511 
1512   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1513     ac_prev=srcdir ;;
1514   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1515     srcdir=$ac_optarg ;;
1516 
1517   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1518   | --syscon | --sysco | --sysc | --sys | --sy)
1519     ac_prev=sysconfdir ;;
1520   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1521   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1522     sysconfdir=$ac_optarg ;;
1523 
1524   -target | --target | --targe | --targ | --tar | --ta | --t)
1525     ac_prev=target_alias ;;
1526   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1527     target_alias=$ac_optarg ;;
1528 
1529   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1530     verbose=yes ;;
1531 
1532   -version | --version | --versio | --versi | --vers | -V)
1533     ac_init_version=: ;;
1534 
1535   -with-* | --with-*)
1536     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1537     # Reject names that are not valid shell variable names.
1538     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1539       as_fn_error $? "invalid package name: $ac_useropt"
1540     ac_useropt_orig=$ac_useropt
1541     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1542     case $ac_user_opts in
1543       *"
1544 "with_$ac_useropt"
1545 "*) ;;
1546       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1547          ac_unrecognized_sep=', ';;
1548     esac
1549     eval with_$ac_useropt=\$ac_optarg ;;
1550 
1551   -without-* | --without-*)
1552     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1553     # Reject names that are not valid shell variable names.
1554     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1555       as_fn_error $? "invalid package name: $ac_useropt"
1556     ac_useropt_orig=$ac_useropt
1557     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1558     case $ac_user_opts in
1559       *"
1560 "with_$ac_useropt"
1561 "*) ;;
1562       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1563          ac_unrecognized_sep=', ';;
1564     esac
1565     eval with_$ac_useropt=no ;;
1566 
1567   --x)
1568     # Obsolete; use --with-x.
1569     with_x=yes ;;
1570 
1571   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1572   | --x-incl | --x-inc | --x-in | --x-i)
1573     ac_prev=x_includes ;;
1574   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1575   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1576     x_includes=$ac_optarg ;;
1577 
1578   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1579   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1580     ac_prev=x_libraries ;;
1581   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1582   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1583     x_libraries=$ac_optarg ;;
1584 
1585   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1586 Try \`$0 --help' for more information"
1587     ;;
1588 
1589   *=*)
1590     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1591     # Reject names that are not valid shell variable names.
1592     case $ac_envvar in #(
1593       '' | [0-9]* | *[!_$as_cr_alnum]* )
1594       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1595     esac
1596     eval $ac_envvar=\$ac_optarg
1597     export $ac_envvar ;;
1598 
1599   *)
1600     # FIXME: should be removed in autoconf 3.0.
1601     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1602     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1603       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1604     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1605     ;;
1606 
1607   esac
1608 done
1609 
1610 if test -n "$ac_prev"; then
1611   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1612   as_fn_error $? "missing argument to $ac_option"
1613 fi
1614 
1615 if test -n "$ac_unrecognized_opts"; then
1616   case $enable_option_checking in
1617     no) ;;
1618     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1619     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1620   esac
1621 fi
1622 
1623 # Check all directory arguments for consistency.
1624 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1625                 datadir sysconfdir sharedstatedir localstatedir includedir \
1626                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1627                 libdir localedir mandir
1628 do
1629   eval ac_val=\$$ac_var
1630   # Remove trailing slashes.
1631   case $ac_val in
1632     */ )
1633       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1634       eval $ac_var=\$ac_val;;
1635   esac
1636   # Be sure to have absolute directory names.
1637   case $ac_val in
1638     [\\/$]* | ?:[\\/]* )  continue;;
1639     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1640   esac
1641   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1642 done
1643 
1644 # There might be people who depend on the old broken behavior: `$host'
1645 # used to hold the argument of --host etc.
1646 # FIXME: To remove some day.
1647 build=$build_alias
1648 host=$host_alias
1649 target=$target_alias
1650 
1651 # FIXME: To remove some day.
1652 if test "x$host_alias" != x; then
1653   if test "x$build_alias" = x; then
1654     cross_compiling=maybe
1655   elif test "x$build_alias" != "x$host_alias"; then
1656     cross_compiling=yes
1657   fi
1658 fi
1659 
1660 ac_tool_prefix=
1661 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1662 
1663 test "$silent" = yes && exec 6>/dev/null
1664 
1665 
1666 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1667 ac_ls_di=`ls -di .` &&
1668 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1669   as_fn_error $? "working directory cannot be determined"
1670 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1671   as_fn_error $? "pwd does not report name of working directory"
1672 
1673 
1674 # Find the source files, if location was not specified.
1675 if test -z "$srcdir"; then
1676   ac_srcdir_defaulted=yes
1677   # Try the directory containing this script, then the parent directory.
1678   ac_confdir=`$as_dirname -- "$as_myself" ||
1679 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1680          X"$as_myself" : 'X\(//\)[^/]' \| \
1681          X"$as_myself" : 'X\(//\)$' \| \
1682          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1683 $as_echo X"$as_myself" |
1684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1685             s//\1/
1686             q
1687           }
1688           /^X\(\/\/\)[^/].*/{
1689             s//\1/
1690             q
1691           }
1692           /^X\(\/\/\)$/{
1693             s//\1/
1694             q
1695           }
1696           /^X\(\/\).*/{
1697             s//\1/
1698             q
1699           }
1700           s/.*/./; q'`
1701   srcdir=$ac_confdir
1702   if test ! -r "$srcdir/$ac_unique_file"; then
1703     srcdir=..
1704   fi
1705 else
1706   ac_srcdir_defaulted=no
1707 fi
1708 if test ! -r "$srcdir/$ac_unique_file"; then
1709   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1710   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1711 fi
1712 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1713 ac_abs_confdir=`(
1714         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1715         pwd)`
1716 # When building in place, set srcdir=.
1717 if test "$ac_abs_confdir" = "$ac_pwd"; then
1718   srcdir=.
1719 fi
1720 # Remove unnecessary trailing slashes from srcdir.
1721 # Double slashes in file names in object file debugging info
1722 # mess up M-x gdb in Emacs.
1723 case $srcdir in
1724 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1725 esac
1726 for ac_var in $ac_precious_vars; do
1727   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1728   eval ac_env_${ac_var}_value=\$${ac_var}
1729   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1730   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1731 done
1732 
1733 #
1734 # Report the --help message.
1735 #
1736 if test "$ac_init_help" = "long"; then
1737   # Omit some internal or obsolete options to make the list less imposing.
1738   # This message is too long to be a string in the A/UX 3.1 sh.
1739   cat <<_ACEOF
1740 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1741 
1742 Usage: $0 [OPTION]... [VAR=VALUE]...
1743 
1744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1745 VAR=VALUE.  See below for descriptions of some of the useful variables.
1746 
1747 Defaults for the options are specified in brackets.
1748 
1749 Configuration:
1750   -h, --help              display this help and exit
1751       --help=short        display options specific to this package
1752       --help=recursive    display the short help of all the included packages
1753   -V, --version           display version information and exit
1754   -q, --quiet, --silent   do not print \`checking ...' messages
1755       --cache-file=FILE   cache test results in FILE [disabled]
1756   -C, --config-cache      alias for \`--cache-file=config.cache'
1757   -n, --no-create         do not create output files
1758       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1759 
1760 Installation directories:
1761   --prefix=PREFIX         install architecture-independent files in PREFIX
1762                           [$ac_default_prefix]
1763   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1764                           [PREFIX]
1765 
1766 By default, \`make install' will install all the files in
1767 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1768 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1769 for instance \`--prefix=\$HOME'.
1770 
1771 For better control, use the options below.
1772 
1773 Fine tuning of the installation directories:
1774   --bindir=DIR            user executables [EPREFIX/bin]
1775   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1776   --libexecdir=DIR        program executables [EPREFIX/libexec]
1777   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1778   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1779   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1780   --libdir=DIR            object code libraries [EPREFIX/lib]
1781   --includedir=DIR        C header files [PREFIX/include]
1782   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1783   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1784   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1785   --infodir=DIR           info documentation [DATAROOTDIR/info]
1786   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1787   --mandir=DIR            man documentation [DATAROOTDIR/man]
1788   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1789   --htmldir=DIR           html documentation [DOCDIR]
1790   --dvidir=DIR            dvi documentation [DOCDIR]
1791   --pdfdir=DIR            pdf documentation [DOCDIR]
1792   --psdir=DIR             ps documentation [DOCDIR]
1793 _ACEOF
1794 
1795   cat <<\_ACEOF
1796 
1797 X features:
1798   --x-includes=DIR    X include files are in DIR
1799   --x-libraries=DIR   X library files are in DIR
1800 
1801 System types:
1802   --build=BUILD     configure for building on BUILD [guessed]
1803   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1804   --target=TARGET   configure for building compilers for TARGET [HOST]
1805 _ACEOF
1806 fi
1807 
1808 if test -n "$ac_init_help"; then
1809   case $ac_init_help in
1810      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1811    esac
1812   cat <<\_ACEOF
1813 
1814 Optional Features:
1815   --disable-option-checking  ignore unrecognized --enable/--with options
1816   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1817   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1818   --enable-openjdk-only   suppress building custom source even if present
1819                           [disabled]
1820   --enable-debug          set the debug level to fastdebug (shorthand for
1821                           --with-debug-level=fastdebug) [disabled]
1822   --disable-headful       disable building headful support (graphical UI
1823                           support) [enabled]
1824   --enable-hotspot-test-in-build
1825                           run the Queens test after Hotspot build [disabled]
1826   --enable-unlimited-crypto
1827                           Enable unlimited crypto policy [disabled]
1828   --enable-rmiconnector-iiop
1829                           enable the JMX RMIConnector iiop transport
1830                           [disabled]
1831   --disable-debug-symbols disable generation of debug symbols [enabled]
1832   --disable-zip-debug-info
1833                           disable zipping of debug-info files [enabled]
1834   --enable-macosx-runtime-support
1835                           Deprecated. Option is kept for backwards
1836                           compatibility and is ignored
1837   --disable-freetype-bundling
1838                           disable bundling of the freetype library with the
1839                           build result [enabled on Windows or when using
1840                           --with-freetype, disabled otherwise]
1841   --enable-sjavac         use sjavac to do fast incremental compiles
1842                           [disabled]
1843   --disable-precompiled-headers
1844                           disable using precompiled headers when compiling C++
1845                           [enabled]
1846   --enable-ccache         enable using ccache to speed up recompilations
1847                           [disabled]
1848 
1849 Optional Packages:
1850   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1851   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1852   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1853                           support it), e.g. --with-target-bits=32 [guessed]
1854   --with-devkit           use this directory as base for tools-dir and
1855                           sys-root (for cross-compiling)
1856   --with-sys-root         alias for --with-sysroot for backwards compatability
1857   --with-sysroot          use this directory as sysroot)
1858   --with-tools-dir        alias for --with-toolchain-path for backwards
1859                           compatibility
1860   --with-toolchain-path   prepend these directories when searching for
1861                           toolchain binaries (compilers etc)
1862   --with-extra-path       prepend these directories to the default path
1863   --with-custom-make-dir  Deprecated. Option is kept for backwards
1864                           compatibility and is ignored
1865   --with-jdk-variant      JDK variant to build (normal) [normal]
1866   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1867   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1868                           client, minimal1, kernel, zero, zeroshark, core)
1869                           [server]
1870   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1871                           optimized (HotSpot build only)) [release]
1872   --with-conf-name        use this as the name of the configuration [generated
1873                           from important configuration options]
1874   --with-builddeps-conf   use this configuration file for the builddeps
1875   --with-builddeps-server download and use build dependencies from this server
1876                           url
1877   --with-builddeps-dir    store downloaded build dependencies here
1878                           [/localhome/builddeps]
1879   --with-builddeps-group  chgrp the downloaded build dependencies to this
1880                           group
1881   --with-cacerts-file     specify alternative cacerts file
1882   --with-milestone        Set milestone value for build [internal]
1883   --with-update-version   Set update version value for build [b00]
1884   --with-user-release-suffix
1885                           Add a custom string to the version string if build
1886                           number is not set.[username_builddateb00]
1887   --with-build-number     Set build number value for build [b00]
1888   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1889   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
1890                           invocations of boot JDK, overriding the default
1891                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1892                           -enableassertions"
1893   --with-add-source-root  for each and every source directory, look in this
1894                           additional source root for the same directory; if it
1895                           exists and have files in it, include it in the build
1896   --with-override-source-root
1897                           for each and every source directory, look in this
1898                           override source root for the same directory; if it
1899                           exists, use that directory instead and ignore the
1900                           directory in the original source root
1901   --with-adds-and-overrides
1902                           use the subdirs 'adds' and 'overrides' in the
1903                           specified directory as add-source-root and
1904                           override-source-root
1905   --with-override-langtools
1906                           use this langtools dir for the build
1907   --with-override-corba   use this corba dir for the build
1908   --with-override-jaxp    use this jaxp dir for the build
1909   --with-override-jaxws   use this jaxws dir for the build
1910   --with-override-hotspot use this hotspot dir for the build
1911   --with-override-nashorn use this nashorn dir for the build
1912   --with-override-jdk     use this jdk dir for the build
1913   --with-import-hotspot   import hotspot binaries from this jdk image or
1914                           hotspot build dist dir instead of building from
1915                           source
1916   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1917                           to show possible values [platform dependent]
1918   --with-jtreg            Regression Test Harness [probed]
1919   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1920   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1921   --with-extra-ldflags    extra flags to be used when linking jdk
1922   --with-x                use the X Window System
1923   --with-cups             specify prefix directory for the cups package
1924                           (expecting the headers under PATH/include)
1925   --with-cups-include     specify directory for the cups include files
1926   --with-freetype         specify prefix directory for the freetype package
1927                           (expecting the libraries under PATH/lib and the
1928                           headers under PATH/include)
1929   --with-freetype-include specify directory for the freetype include files
1930   --with-freetype-lib     specify directory for the freetype library
1931   --with-alsa             specify prefix directory for the alsa package
1932                           (expecting the libraries under PATH/lib and the
1933                           headers under PATH/include)
1934   --with-alsa-include     specify directory for the alsa include files
1935   --with-alsa-lib         specify directory for the alsa library
1936   --with-giflib           use giflib from build system or OpenJDK source
1937                           (system, bundled) [bundled]
1938   --with-libpng           use libpng from build system or OpenJDK source
1939                           (system, bundled) [bundled]
1940   --with-zlib             use zlib from build system or OpenJDK source
1941                           (system, bundled) [bundled]
1942   --with-stdc++lib=<static>,<dynamic>,<default>
1943                           force linking of the C++ runtime on Linux to either
1944                           static or dynamic, default is static with dynamic as
1945                           fallback
1946   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1947                           only) [probed]
1948   --with-dxsdk            Deprecated. Option is kept for backwards
1949                           compatibility and is ignored
1950   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1951                           compatibility and is ignored
1952   --with-dxsdk-include    Deprecated. Option is kept for backwards
1953                           compatibility and is ignored
1954   --with-num-cores        number of cores in the build system, e.g.
1955                           --with-num-cores=8 [probed]
1956   --with-memory-size      memory (in MB) available in the build system, e.g.
1957                           --with-memory-size=1024 [probed]
1958   --with-jobs             number of parallel jobs to let make run [calculated
1959                           based on cores and memory]
1960   --with-sjavac-server-java
1961                           use this java binary for running the sjavac
1962                           background server [Boot JDK java]
1963   --with-ccache-dir       where to store ccache files [~/.ccache]
1964 
1965 Some influential environment variables:
1966   BASENAME    Override default value for BASENAME
1967   BASH        Override default value for BASH
1968   CAT         Override default value for CAT
1969   CHMOD       Override default value for CHMOD
1970   CMP         Override default value for CMP
1971   COMM        Override default value for COMM
1972   CP          Override default value for CP
1973   CPIO        Override default value for CPIO
1974   CUT         Override default value for CUT
1975   DATE        Override default value for DATE
1976   DIFF        Override default value for DIFF
1977   DIRNAME     Override default value for DIRNAME
1978   ECHO        Override default value for ECHO
1979   EXPR        Override default value for EXPR
1980   FILE        Override default value for FILE
1981   FIND        Override default value for FIND
1982   HEAD        Override default value for HEAD
1983   LN          Override default value for LN
1984   LS          Override default value for LS
1985   MKDIR       Override default value for MKDIR
1986   MKTEMP      Override default value for MKTEMP
1987   MV          Override default value for MV
1988   NAWK        Override default value for NAWK
1989   PRINTF      Override default value for PRINTF
1990   RM          Override default value for RM
1991   SH          Override default value for SH
1992   SORT        Override default value for SORT
1993   TAIL        Override default value for TAIL
1994   TAR         Override default value for TAR
1995   TEE         Override default value for TEE
1996   TOUCH       Override default value for TOUCH
1997   TR          Override default value for TR
1998   UNAME       Override default value for UNAME
1999   UNIQ        Override default value for UNIQ
2000   WC          Override default value for WC
2001   WHICH       Override default value for WHICH
2002   XARGS       Override default value for XARGS
2003   AWK         Override default value for AWK
2004   GREP        Override default value for GREP
2005   EGREP       Override default value for EGREP
2006   FGREP       Override default value for FGREP
2007   SED         Override default value for SED
2008   CYGPATH     Override default value for CYGPATH
2009   READLINK    Override default value for READLINK
2010   DF          Override default value for DF
2011   SETFILE     Override default value for SETFILE
2012   UNZIP       Override default value for UNZIP
2013   ZIP         Override default value for ZIP
2014   LDD         Override default value for LDD
2015   OTOOL       Override default value for OTOOL
2016   READELF     Override default value for READELF
2017   HG          Override default value for HG
2018   STAT        Override default value for STAT
2019   TIME        Override default value for TIME
2020   DSYMUTIL    Override default value for DSYMUTIL
2021   XATTR       Override default value for XATTR
2022   CODESIGN    Override default value for CODESIGN
2023   PKG_CONFIG  path to pkg-config utility
2024   JAVA        Override default value for JAVA
2025   JAVAC       Override default value for JAVAC
2026   JAVAH       Override default value for JAVAH
2027   JAR         Override default value for JAR
2028   NATIVE2ASCII
2029               Override default value for NATIVE2ASCII
2030   JARSIGNER   Override default value for JARSIGNER
2031   CC          C compiler command
2032   CFLAGS      C compiler flags
2033   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2034               nonstandard directory <lib dir>
2035   LIBS        libraries to pass to the linker, e.g. -l<library>
2036   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2037               you have headers in a nonstandard directory <include dir>
2038   CXX         C++ compiler command
2039   CXXFLAGS    C++ compiler flags
2040   CPP         C preprocessor
2041   CXXCPP      C++ preprocessor
2042   AS          Override default value for AS
2043   AR          Override default value for AR
2044   OBJC        Objective C compiler command
2045   OBJCFLAGS   Objective C compiler flags
2046   LIPO        Override default value for LIPO
2047   STRIP       Override default value for STRIP
2048   NM          Override default value for NM
2049   GNM         Override default value for GNM
2050   MCS         Override default value for MCS
2051   OBJCOPY     Override default value for OBJCOPY
2052   OBJDUMP     Override default value for OBJDUMP
2053   BUILD_CC    Override default value for BUILD_CC
2054   BUILD_CXX   Override default value for BUILD_CXX
2055   BUILD_LD    Override default value for BUILD_LD
2056   JTREGEXE    Override default value for JTREGEXE
2057   XMKMF       Path to xmkmf, Makefile generator for X Window System
2058   FREETYPE_CFLAGS
2059               C compiler flags for FREETYPE, overriding pkg-config
2060   FREETYPE_LIBS
2061               linker flags for FREETYPE, overriding pkg-config
2062   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2063   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2064   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2065   PNG_LIBS    linker flags for PNG, overriding pkg-config
2066   LIBFFI_CFLAGS
2067               C compiler flags for LIBFFI, overriding pkg-config
2068   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2069   CCACHE      Override default value for CCACHE
2070 
2071 Use these variables to override the choices made by `configure' or to help
2072 it to find libraries and programs with nonstandard names/locations.
2073 
2074 Report bugs to <build-dev@openjdk.java.net>.
2075 OpenJDK home page: <http://openjdk.java.net>.
2076 _ACEOF
2077 ac_status=$?
2078 fi
2079 
2080 if test "$ac_init_help" = "recursive"; then
2081   # If there are subdirs, report their specific --help.
2082   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2083     test -d "$ac_dir" ||
2084       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2085       continue
2086     ac_builddir=.
2087 
2088 case "$ac_dir" in
2089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2090 *)
2091   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2092   # A ".." for each directory in $ac_dir_suffix.
2093   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2094   case $ac_top_builddir_sub in
2095   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2096   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2097   esac ;;
2098 esac
2099 ac_abs_top_builddir=$ac_pwd
2100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2101 # for backward compatibility:
2102 ac_top_builddir=$ac_top_build_prefix
2103 
2104 case $srcdir in
2105   .)  # We are building in place.
2106     ac_srcdir=.
2107     ac_top_srcdir=$ac_top_builddir_sub
2108     ac_abs_top_srcdir=$ac_pwd ;;
2109   [\\/]* | ?:[\\/]* )  # Absolute name.
2110     ac_srcdir=$srcdir$ac_dir_suffix;
2111     ac_top_srcdir=$srcdir
2112     ac_abs_top_srcdir=$srcdir ;;
2113   *) # Relative name.
2114     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2115     ac_top_srcdir=$ac_top_build_prefix$srcdir
2116     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2117 esac
2118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2119 
2120     cd "$ac_dir" || { ac_status=$?; continue; }
2121     # Check for guested configure.
2122     if test -f "$ac_srcdir/configure.gnu"; then
2123       echo &&
2124       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2125     elif test -f "$ac_srcdir/configure"; then
2126       echo &&
2127       $SHELL "$ac_srcdir/configure" --help=recursive
2128     else
2129       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2130     fi || ac_status=$?
2131     cd "$ac_pwd" || { ac_status=$?; break; }
2132   done
2133 fi
2134 
2135 test -n "$ac_init_help" && exit $ac_status
2136 if $ac_init_version; then
2137   cat <<\_ACEOF
2138 OpenJDK configure jdk9
2139 generated by GNU Autoconf 2.69
2140 
2141 Copyright (C) 2012 Free Software Foundation, Inc.
2142 This configure script is free software; the Free Software Foundation
2143 gives unlimited permission to copy, distribute and modify it.
2144 _ACEOF
2145   exit
2146 fi
2147 
2148 ## ------------------------ ##
2149 ## Autoconf initialization. ##
2150 ## ------------------------ ##
2151 
2152 # ac_fn_c_try_compile LINENO
2153 # --------------------------
2154 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2155 ac_fn_c_try_compile ()
2156 {
2157   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158   rm -f conftest.$ac_objext
2159   if { { ac_try="$ac_compile"
2160 case "(($ac_try" in
2161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162   *) ac_try_echo=$ac_try;;
2163 esac
2164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165 $as_echo "$ac_try_echo"; } >&5
2166   (eval "$ac_compile") 2>conftest.err
2167   ac_status=$?
2168   if test -s conftest.err; then
2169     grep -v '^ *+' conftest.err >conftest.er1
2170     cat conftest.er1 >&5
2171     mv -f conftest.er1 conftest.err
2172   fi
2173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2174   test $ac_status = 0; } && {
2175          test -z "$ac_c_werror_flag" ||
2176          test ! -s conftest.err
2177        } && test -s conftest.$ac_objext; then :
2178   ac_retval=0
2179 else
2180   $as_echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2182 
2183         ac_retval=1
2184 fi
2185   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186   as_fn_set_status $ac_retval
2187 
2188 } # ac_fn_c_try_compile
2189 
2190 # ac_fn_cxx_try_compile LINENO
2191 # ----------------------------
2192 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_cxx_try_compile ()
2194 {
2195   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196   rm -f conftest.$ac_objext
2197   if { { ac_try="$ac_compile"
2198 case "(($ac_try" in
2199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200   *) ac_try_echo=$ac_try;;
2201 esac
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204   (eval "$ac_compile") 2>conftest.err
2205   ac_status=$?
2206   if test -s conftest.err; then
2207     grep -v '^ *+' conftest.err >conftest.er1
2208     cat conftest.er1 >&5
2209     mv -f conftest.er1 conftest.err
2210   fi
2211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212   test $ac_status = 0; } && {
2213          test -z "$ac_cxx_werror_flag" ||
2214          test ! -s conftest.err
2215        } && test -s conftest.$ac_objext; then :
2216   ac_retval=0
2217 else
2218   $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220 
2221         ac_retval=1
2222 fi
2223   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224   as_fn_set_status $ac_retval
2225 
2226 } # ac_fn_cxx_try_compile
2227 
2228 # ac_fn_c_try_cpp LINENO
2229 # ----------------------
2230 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2231 ac_fn_c_try_cpp ()
2232 {
2233   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234   if { { ac_try="$ac_cpp conftest.$ac_ext"
2235 case "(($ac_try" in
2236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237   *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2242   ac_status=$?
2243   if test -s conftest.err; then
2244     grep -v '^ *+' conftest.err >conftest.er1
2245     cat conftest.er1 >&5
2246     mv -f conftest.er1 conftest.err
2247   fi
2248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249   test $ac_status = 0; } > conftest.i && {
2250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2251          test ! -s conftest.err
2252        }; then :
2253   ac_retval=0
2254 else
2255   $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257 
2258     ac_retval=1
2259 fi
2260   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261   as_fn_set_status $ac_retval
2262 
2263 } # ac_fn_c_try_cpp
2264 
2265 # ac_fn_cxx_try_cpp LINENO
2266 # ------------------------
2267 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2268 ac_fn_cxx_try_cpp ()
2269 {
2270   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271   if { { ac_try="$ac_cpp conftest.$ac_ext"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277 $as_echo "$ac_try_echo"; } >&5
2278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2279   ac_status=$?
2280   if test -s conftest.err; then
2281     grep -v '^ *+' conftest.err >conftest.er1
2282     cat conftest.er1 >&5
2283     mv -f conftest.er1 conftest.err
2284   fi
2285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286   test $ac_status = 0; } > conftest.i && {
2287          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2288          test ! -s conftest.err
2289        }; then :
2290   ac_retval=0
2291 else
2292   $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294 
2295     ac_retval=1
2296 fi
2297   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298   as_fn_set_status $ac_retval
2299 
2300 } # ac_fn_cxx_try_cpp
2301 
2302 # ac_fn_objc_try_compile LINENO
2303 # -----------------------------
2304 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2305 ac_fn_objc_try_compile ()
2306 {
2307   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308   rm -f conftest.$ac_objext
2309   if { { ac_try="$ac_compile"
2310 case "(($ac_try" in
2311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312   *) ac_try_echo=$ac_try;;
2313 esac
2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 $as_echo "$ac_try_echo"; } >&5
2316   (eval "$ac_compile") 2>conftest.err
2317   ac_status=$?
2318   if test -s conftest.err; then
2319     grep -v '^ *+' conftest.err >conftest.er1
2320     cat conftest.er1 >&5
2321     mv -f conftest.er1 conftest.err
2322   fi
2323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324   test $ac_status = 0; } && {
2325          test -z "$ac_objc_werror_flag" ||
2326          test ! -s conftest.err
2327        } && test -s conftest.$ac_objext; then :
2328   ac_retval=0
2329 else
2330   $as_echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332 
2333         ac_retval=1
2334 fi
2335   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336   as_fn_set_status $ac_retval
2337 
2338 } # ac_fn_objc_try_compile
2339 
2340 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2341 # ---------------------------------------------------------
2342 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2343 # the include files in INCLUDES and setting the cache variable VAR
2344 # accordingly.
2345 ac_fn_cxx_check_header_mongrel ()
2346 {
2347   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348   if eval \${$3+:} false; then :
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if eval \${$3+:} false; then :
2352   $as_echo_n "(cached) " >&6
2353 fi
2354 eval ac_res=\$$3
2355                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 else
2358   # Is the header compilable?
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2360 $as_echo_n "checking $2 usability... " >&6; }
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $4
2364 #include <$2>
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367   ac_header_compiler=yes
2368 else
2369   ac_header_compiler=no
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2373 $as_echo "$ac_header_compiler" >&6; }
2374 
2375 # Is the header present?
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2377 $as_echo_n "checking $2 presence... " >&6; }
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h.  */
2380 #include <$2>
2381 _ACEOF
2382 if ac_fn_cxx_try_cpp "$LINENO"; then :
2383   ac_header_preproc=yes
2384 else
2385   ac_header_preproc=no
2386 fi
2387 rm -f conftest.err conftest.i conftest.$ac_ext
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2389 $as_echo "$ac_header_preproc" >&6; }
2390 
2391 # So?  What about this header?
2392 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2393   yes:no: )
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2395 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2397 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2398     ;;
2399   no:yes:* )
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2401 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2402     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2403 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2404     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2405 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2407 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2409 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2410 ( $as_echo "## ----------------------------------------- ##
2411 ## Report this to build-dev@openjdk.java.net ##
2412 ## ----------------------------------------- ##"
2413      ) | sed "s/^/$as_me: WARNING:     /" >&2
2414     ;;
2415 esac
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if eval \${$3+:} false; then :
2419   $as_echo_n "(cached) " >&6
2420 else
2421   eval "$3=\$ac_header_compiler"
2422 fi
2423 eval ac_res=\$$3
2424                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2425 $as_echo "$ac_res" >&6; }
2426 fi
2427   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428 
2429 } # ac_fn_cxx_check_header_mongrel
2430 
2431 # ac_fn_cxx_try_run LINENO
2432 # ------------------------
2433 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2434 # that executables *can* be run.
2435 ac_fn_cxx_try_run ()
2436 {
2437   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438   if { { ac_try="$ac_link"
2439 case "(($ac_try" in
2440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441   *) ac_try_echo=$ac_try;;
2442 esac
2443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2444 $as_echo "$ac_try_echo"; } >&5
2445   (eval "$ac_link") 2>&5
2446   ac_status=$?
2447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2448   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2449   { { case "(($ac_try" in
2450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451   *) ac_try_echo=$ac_try;;
2452 esac
2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455   (eval "$ac_try") 2>&5
2456   ac_status=$?
2457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2458   test $ac_status = 0; }; }; then :
2459   ac_retval=0
2460 else
2461   $as_echo "$as_me: program exited with status $ac_status" >&5
2462        $as_echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2464 
2465        ac_retval=$ac_status
2466 fi
2467   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2468   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2469   as_fn_set_status $ac_retval
2470 
2471 } # ac_fn_cxx_try_run
2472 
2473 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2474 # ---------------------------------------------------------
2475 # Tests whether HEADER exists and can be compiled using the include files in
2476 # INCLUDES, setting the cache variable VAR accordingly.
2477 ac_fn_cxx_check_header_compile ()
2478 {
2479   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2481 $as_echo_n "checking for $2... " >&6; }
2482 if eval \${$3+:} false; then :
2483   $as_echo_n "(cached) " >&6
2484 else
2485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h.  */
2487 $4
2488 #include <$2>
2489 _ACEOF
2490 if ac_fn_cxx_try_compile "$LINENO"; then :
2491   eval "$3=yes"
2492 else
2493   eval "$3=no"
2494 fi
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 fi
2497 eval ac_res=\$$3
2498                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 
2502 } # ac_fn_cxx_check_header_compile
2503 
2504 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2505 # ----------------------------------------------
2506 # Tries to find the compile-time value of EXPR in a program that includes
2507 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2508 # computed
2509 ac_fn_cxx_compute_int ()
2510 {
2511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512   if test "$cross_compiling" = yes; then
2513     # Depending upon the size, compute the lo and hi bounds.
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h.  */
2516 $4
2517 int
2518 main ()
2519 {
2520 static int test_array [1 - 2 * !(($2) >= 0)];
2521 test_array [0] = 0;
2522 return test_array [0];
2523 
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_cxx_try_compile "$LINENO"; then :
2529   ac_lo=0 ac_mid=0
2530   while :; do
2531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 $4
2534 int
2535 main ()
2536 {
2537 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2538 test_array [0] = 0;
2539 return test_array [0];
2540 
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_cxx_try_compile "$LINENO"; then :
2546   ac_hi=$ac_mid; break
2547 else
2548   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2549                         if test $ac_lo -le $ac_mid; then
2550                           ac_lo= ac_hi=
2551                           break
2552                         fi
2553                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2554 fi
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556   done
2557 else
2558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h.  */
2560 $4
2561 int
2562 main ()
2563 {
2564 static int test_array [1 - 2 * !(($2) < 0)];
2565 test_array [0] = 0;
2566 return test_array [0];
2567 
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_cxx_try_compile "$LINENO"; then :
2573   ac_hi=-1 ac_mid=-1
2574   while :; do
2575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h.  */
2577 $4
2578 int
2579 main ()
2580 {
2581 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2582 test_array [0] = 0;
2583 return test_array [0];
2584 
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 if ac_fn_cxx_try_compile "$LINENO"; then :
2590   ac_lo=$ac_mid; break
2591 else
2592   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2593                         if test $ac_mid -le $ac_hi; then
2594                           ac_lo= ac_hi=
2595                           break
2596                         fi
2597                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600   done
2601 else
2602   ac_lo= ac_hi=
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 # Binary search between lo and hi bounds.
2608 while test "x$ac_lo" != "x$ac_hi"; do
2609   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h.  */
2612 $4
2613 int
2614 main ()
2615 {
2616 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2617 test_array [0] = 0;
2618 return test_array [0];
2619 
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 if ac_fn_cxx_try_compile "$LINENO"; then :
2625   ac_hi=$ac_mid
2626 else
2627   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 done
2631 case $ac_lo in #((
2632 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2633 '') ac_retval=1 ;;
2634 esac
2635   else
2636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h.  */
2638 $4
2639 static long int longval () { return $2; }
2640 static unsigned long int ulongval () { return $2; }
2641 #include <stdio.h>
2642 #include <stdlib.h>
2643 int
2644 main ()
2645 {
2646 
2647   FILE *f = fopen ("conftest.val", "w");
2648   if (! f)
2649     return 1;
2650   if (($2) < 0)
2651     {
2652       long int i = longval ();
2653       if (i != ($2))
2654         return 1;
2655       fprintf (f, "%ld", i);
2656     }
2657   else
2658     {
2659       unsigned long int i = ulongval ();
2660       if (i != ($2))
2661         return 1;
2662       fprintf (f, "%lu", i);
2663     }
2664   /* Do not output a trailing newline, as this causes \r\n confusion
2665      on some platforms.  */
2666   return ferror (f) || fclose (f) != 0;
2667 
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 if ac_fn_cxx_try_run "$LINENO"; then :
2673   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2674 else
2675   ac_retval=1
2676 fi
2677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2678   conftest.$ac_objext conftest.beam conftest.$ac_ext
2679 rm -f conftest.val
2680 
2681   fi
2682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2683   as_fn_set_status $ac_retval
2684 
2685 } # ac_fn_cxx_compute_int
2686 
2687 # ac_fn_cxx_try_link LINENO
2688 # -------------------------
2689 # Try to link conftest.$ac_ext, and return whether this succeeded.
2690 ac_fn_cxx_try_link ()
2691 {
2692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693   rm -f conftest.$ac_objext conftest$ac_exeext
2694   if { { ac_try="$ac_link"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2700 $as_echo "$ac_try_echo"; } >&5
2701   (eval "$ac_link") 2>conftest.err
2702   ac_status=$?
2703   if test -s conftest.err; then
2704     grep -v '^ *+' conftest.err >conftest.er1
2705     cat conftest.er1 >&5
2706     mv -f conftest.er1 conftest.err
2707   fi
2708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709   test $ac_status = 0; } && {
2710          test -z "$ac_cxx_werror_flag" ||
2711          test ! -s conftest.err
2712        } && test -s conftest$ac_exeext && {
2713          test "$cross_compiling" = yes ||
2714          test -x conftest$ac_exeext
2715        }; then :
2716   ac_retval=0
2717 else
2718   $as_echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720 
2721         ac_retval=1
2722 fi
2723   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2724   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2725   # interfere with the next link command; also delete a directory that is
2726   # left behind by Apple's compiler.  We do this before executing the actions.
2727   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2729   as_fn_set_status $ac_retval
2730 
2731 } # ac_fn_cxx_try_link
2732 
2733 # ac_fn_cxx_check_func LINENO FUNC VAR
2734 # ------------------------------------
2735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2736 ac_fn_cxx_check_func ()
2737 {
2738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2740 $as_echo_n "checking for $2... " >&6; }
2741 if eval \${$3+:} false; then :
2742   $as_echo_n "(cached) " >&6
2743 else
2744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h.  */
2746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2748 #define $2 innocuous_$2
2749 
2750 /* System header to define __stub macros and hopefully few prototypes,
2751     which can conflict with char $2 (); below.
2752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2753     <limits.h> exists even on freestanding compilers.  */
2754 
2755 #ifdef __STDC__
2756 # include <limits.h>
2757 #else
2758 # include <assert.h>
2759 #endif
2760 
2761 #undef $2
2762 
2763 /* Override any GCC internal prototype to avoid an error.
2764    Use char because int might match the return type of a GCC
2765    builtin and then its argument prototype would still apply.  */
2766 #ifdef __cplusplus
2767 extern "C"
2768 #endif
2769 char $2 ();
2770 /* The GNU C library defines this for functions which it implements
2771     to always fail with ENOSYS.  Some functions are actually named
2772     something starting with __ and the normal name is an alias.  */
2773 #if defined __stub_$2 || defined __stub___$2
2774 choke me
2775 #endif
2776 
2777 int
2778 main ()
2779 {
2780 return $2 ();
2781   ;
2782   return 0;
2783 }
2784 _ACEOF
2785 if ac_fn_cxx_try_link "$LINENO"; then :
2786   eval "$3=yes"
2787 else
2788   eval "$3=no"
2789 fi
2790 rm -f core conftest.err conftest.$ac_objext \
2791     conftest$ac_exeext conftest.$ac_ext
2792 fi
2793 eval ac_res=\$$3
2794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2795 $as_echo "$ac_res" >&6; }
2796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2797 
2798 } # ac_fn_cxx_check_func
2799 
2800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2801 # -------------------------------------------------------
2802 # Tests whether HEADER exists and can be compiled using the include files in
2803 # INCLUDES, setting the cache variable VAR accordingly.
2804 ac_fn_c_check_header_compile ()
2805 {
2806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2808 $as_echo_n "checking for $2... " >&6; }
2809 if eval \${$3+:} false; then :
2810   $as_echo_n "(cached) " >&6
2811 else
2812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813 /* end confdefs.h.  */
2814 $4
2815 #include <$2>
2816 _ACEOF
2817 if ac_fn_c_try_compile "$LINENO"; then :
2818   eval "$3=yes"
2819 else
2820   eval "$3=no"
2821 fi
2822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823 fi
2824 eval ac_res=\$$3
2825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2826 $as_echo "$ac_res" >&6; }
2827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2828 
2829 } # ac_fn_c_check_header_compile
2830 cat >config.log <<_ACEOF
2831 This file contains any messages produced by compilers while
2832 running configure, to aid debugging if configure makes a mistake.
2833 
2834 It was created by OpenJDK $as_me jdk9, which was
2835 generated by GNU Autoconf 2.69.  Invocation command line was
2836 
2837   $ $0 $@
2838 
2839 _ACEOF
2840 exec 5>>config.log
2841 {
2842 cat <<_ASUNAME
2843 ## --------- ##
2844 ## Platform. ##
2845 ## --------- ##
2846 
2847 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2848 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2849 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2850 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2851 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2852 
2853 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2854 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2855 
2856 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2857 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2858 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2859 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2860 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2861 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2862 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2863 
2864 _ASUNAME
2865 
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869   IFS=$as_save_IFS
2870   test -z "$as_dir" && as_dir=.
2871     $as_echo "PATH: $as_dir"
2872   done
2873 IFS=$as_save_IFS
2874 
2875 } >&5
2876 
2877 cat >&5 <<_ACEOF
2878 
2879 
2880 ## ----------- ##
2881 ## Core tests. ##
2882 ## ----------- ##
2883 
2884 _ACEOF
2885 
2886 
2887 # Keep a trace of the command line.
2888 # Strip out --no-create and --no-recursion so they do not pile up.
2889 # Strip out --silent because we don't want to record it for future runs.
2890 # Also quote any args containing shell meta-characters.
2891 # Make two passes to allow for proper duplicate-argument suppression.
2892 ac_configure_args=
2893 ac_configure_args0=
2894 ac_configure_args1=
2895 ac_must_keep_next=false
2896 for ac_pass in 1 2
2897 do
2898   for ac_arg
2899   do
2900     case $ac_arg in
2901     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2902     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2903     | -silent | --silent | --silen | --sile | --sil)
2904       continue ;;
2905     *\'*)
2906       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2907     esac
2908     case $ac_pass in
2909     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2910     2)
2911       as_fn_append ac_configure_args1 " '$ac_arg'"
2912       if test $ac_must_keep_next = true; then
2913         ac_must_keep_next=false # Got value, back to normal.
2914       else
2915         case $ac_arg in
2916           *=* | --config-cache | -C | -disable-* | --disable-* \
2917           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2918           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2919           | -with-* | --with-* | -without-* | --without-* | --x)
2920             case "$ac_configure_args0 " in
2921               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2922             esac
2923             ;;
2924           -* ) ac_must_keep_next=true ;;
2925         esac
2926       fi
2927       as_fn_append ac_configure_args " '$ac_arg'"
2928       ;;
2929     esac
2930   done
2931 done
2932 { ac_configure_args0=; unset ac_configure_args0;}
2933 { ac_configure_args1=; unset ac_configure_args1;}
2934 
2935 # When interrupted or exit'd, cleanup temporary files, and complete
2936 # config.log.  We remove comments because anyway the quotes in there
2937 # would cause problems or look ugly.
2938 # WARNING: Use '\'' to represent an apostrophe within the trap.
2939 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2940 trap 'exit_status=$?
2941   # Save into config.log some information that might help in debugging.
2942   {
2943     echo
2944 
2945     $as_echo "## ---------------- ##
2946 ## Cache variables. ##
2947 ## ---------------- ##"
2948     echo
2949     # The following way of writing the cache mishandles newlines in values,
2950 (
2951   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2952     eval ac_val=\$$ac_var
2953     case $ac_val in #(
2954     *${as_nl}*)
2955       case $ac_var in #(
2956       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2958       esac
2959       case $ac_var in #(
2960       _ | IFS | as_nl) ;; #(
2961       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2962       *) { eval $ac_var=; unset $ac_var;} ;;
2963       esac ;;
2964     esac
2965   done
2966   (set) 2>&1 |
2967     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2968     *${as_nl}ac_space=\ *)
2969       sed -n \
2970         "s/'\''/'\''\\\\'\'''\''/g;
2971           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2972       ;; #(
2973     *)
2974       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2975       ;;
2976     esac |
2977     sort
2978 )
2979     echo
2980 
2981     $as_echo "## ----------------- ##
2982 ## Output variables. ##
2983 ## ----------------- ##"
2984     echo
2985     for ac_var in $ac_subst_vars
2986     do
2987       eval ac_val=\$$ac_var
2988       case $ac_val in
2989       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2990       esac
2991       $as_echo "$ac_var='\''$ac_val'\''"
2992     done | sort
2993     echo
2994 
2995     if test -n "$ac_subst_files"; then
2996       $as_echo "## ------------------- ##
2997 ## File substitutions. ##
2998 ## ------------------- ##"
2999       echo
3000       for ac_var in $ac_subst_files
3001       do
3002         eval ac_val=\$$ac_var
3003         case $ac_val in
3004         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3005         esac
3006         $as_echo "$ac_var='\''$ac_val'\''"
3007       done | sort
3008       echo
3009     fi
3010 
3011     if test -s confdefs.h; then
3012       $as_echo "## ----------- ##
3013 ## confdefs.h. ##
3014 ## ----------- ##"
3015       echo
3016       cat confdefs.h
3017       echo
3018     fi
3019     test "$ac_signal" != 0 &&
3020       $as_echo "$as_me: caught signal $ac_signal"
3021     $as_echo "$as_me: exit $exit_status"
3022   } >&5
3023   rm -f core *.core core.conftest.* &&
3024     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3025     exit $exit_status
3026 ' 0
3027 for ac_signal in 1 2 13 15; do
3028   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3029 done
3030 ac_signal=0
3031 
3032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3033 rm -f -r conftest* confdefs.h
3034 
3035 $as_echo "/* confdefs.h */" > confdefs.h
3036 
3037 # Predefined preprocessor variables.
3038 
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_NAME "$PACKAGE_NAME"
3041 _ACEOF
3042 
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3045 _ACEOF
3046 
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3049 _ACEOF
3050 
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_STRING "$PACKAGE_STRING"
3053 _ACEOF
3054 
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3057 _ACEOF
3058 
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_URL "$PACKAGE_URL"
3061 _ACEOF
3062 
3063 
3064 # Let the site file select an alternate cache file if it wants to.
3065 # Prefer an explicitly selected file to automatically selected ones.
3066 ac_site_file1=NONE
3067 ac_site_file2=NONE
3068 if test -n "$CONFIG_SITE"; then
3069   # We do not want a PATH search for config.site.
3070   case $CONFIG_SITE in #((
3071     -*)  ac_site_file1=./$CONFIG_SITE;;
3072     */*) ac_site_file1=$CONFIG_SITE;;
3073     *)   ac_site_file1=./$CONFIG_SITE;;
3074   esac
3075 elif test "x$prefix" != xNONE; then
3076   ac_site_file1=$prefix/share/config.site
3077   ac_site_file2=$prefix/etc/config.site
3078 else
3079   ac_site_file1=$ac_default_prefix/share/config.site
3080   ac_site_file2=$ac_default_prefix/etc/config.site
3081 fi
3082 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3083 do
3084   test "x$ac_site_file" = xNONE && continue
3085   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3086     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3087 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3088     sed 's/^/| /' "$ac_site_file" >&5
3089     . "$ac_site_file" \
3090       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error $? "failed to load site script $ac_site_file
3093 See \`config.log' for more details" "$LINENO" 5; }
3094   fi
3095 done
3096 
3097 if test -r "$cache_file"; then
3098   # Some versions of bash will fail to source /dev/null (special files
3099   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3100   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3101     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3102 $as_echo "$as_me: loading cache $cache_file" >&6;}
3103     case $cache_file in
3104       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3105       *)                      . "./$cache_file";;
3106     esac
3107   fi
3108 else
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3110 $as_echo "$as_me: creating cache $cache_file" >&6;}
3111   >$cache_file
3112 fi
3113 
3114 # Check that the precious variables saved in the cache have kept the same
3115 # value.
3116 ac_cache_corrupted=false
3117 for ac_var in $ac_precious_vars; do
3118   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3119   eval ac_new_set=\$ac_env_${ac_var}_set
3120   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3121   eval ac_new_val=\$ac_env_${ac_var}_value
3122   case $ac_old_set,$ac_new_set in
3123     set,)
3124       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3125 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3126       ac_cache_corrupted=: ;;
3127     ,set)
3128       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3129 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3130       ac_cache_corrupted=: ;;
3131     ,);;
3132     *)
3133       if test "x$ac_old_val" != "x$ac_new_val"; then
3134         # differences in whitespace do not lead to failure.
3135         ac_old_val_w=`echo x $ac_old_val`
3136         ac_new_val_w=`echo x $ac_new_val`
3137         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3138           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3139 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3140           ac_cache_corrupted=:
3141         else
3142           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3143 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3144           eval $ac_var=\$ac_old_val
3145         fi
3146         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3147 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3148         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3149 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3150       fi;;
3151   esac
3152   # Pass precious variables to config.status.
3153   if test "$ac_new_set" = set; then
3154     case $ac_new_val in
3155     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3156     *) ac_arg=$ac_var=$ac_new_val ;;
3157     esac
3158     case " $ac_configure_args " in
3159       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3160       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3161     esac
3162   fi
3163 done
3164 if $ac_cache_corrupted; then
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3168 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3169   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3170 fi
3171 ## -------------------- ##
3172 ## Main body of script. ##
3173 ## -------------------- ##
3174 
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 
3181 
3182 
3183 ac_aux_dir=
3184 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3185   if test -f "$ac_dir/install-sh"; then
3186     ac_aux_dir=$ac_dir
3187     ac_install_sh="$ac_aux_dir/install-sh -c"
3188     break
3189   elif test -f "$ac_dir/install.sh"; then
3190     ac_aux_dir=$ac_dir
3191     ac_install_sh="$ac_aux_dir/install.sh -c"
3192     break
3193   elif test -f "$ac_dir/shtool"; then
3194     ac_aux_dir=$ac_dir
3195     ac_install_sh="$ac_aux_dir/shtool install -c"
3196     break
3197   fi
3198 done
3199 if test -z "$ac_aux_dir"; then
3200   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
3201 fi
3202 
3203 # These three variables are undocumented and unsupported,
3204 # and are intended to be withdrawn in a future Autoconf release.
3205 # They can cause serious problems if a builder's source tree is in a directory
3206 # whose full name contains unusual characters.
3207 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3208 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3209 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3210 
3211 
3212 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3213 
3214 #
3215 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3216 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3217 #
3218 # This code is free software; you can redistribute it and/or modify it
3219 # under the terms of the GNU General Public License version 2 only, as
3220 # published by the Free Software Foundation.  Oracle designates this
3221 # particular file as subject to the "Classpath" exception as provided
3222 # by Oracle in the LICENSE file that accompanied this code.
3223 #
3224 # This code is distributed in the hope that it will be useful, but WITHOUT
3225 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3226 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3227 # version 2 for more details (a copy is included in the LICENSE file that
3228 # accompanied this code).
3229 #
3230 # You should have received a copy of the GNU General Public License version
3231 # 2 along with this work; if not, write to the Free Software Foundation,
3232 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3233 #
3234 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3235 # or visit www.oracle.com if you need additional information or have any
3236 # questions.
3237 #
3238 
3239 #
3240 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3241 #
3242 # This program is free software; you can redistribute it and/or modify
3243 # it under the terms of the GNU General Public License as published by
3244 # the Free Software Foundation; either version 2 of the License, or
3245 # (at your option) any later version.
3246 #
3247 # This program is distributed in the hope that it will be useful, but
3248 # WITHOUT ANY WARRANTY; without even the implied warranty of
3249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3250 # General Public License for more details.
3251 #
3252 # You should have received a copy of the GNU General Public License
3253 # along with this program; if not, write to the Free Software
3254 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3255 #
3256 # As a special exception to the GNU General Public License, if you
3257 # distribute this file as part of a program that contains a
3258 # configuration script generated by Autoconf, you may include it under
3259 # the same distribution terms that you use for the rest of that program.
3260 
3261 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3262 # ----------------------------------
3263 # PKG_PROG_PKG_CONFIG
3264 
3265 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3266 #
3267 # Check to see whether a particular set of modules exists.  Similar
3268 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3269 #
3270 #
3271 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3272 # this or PKG_CHECK_MODULES is called, or make sure to call
3273 # PKG_CHECK_EXISTS manually
3274 # --------------------------------------------------------------
3275 
3276 
3277 
3278 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3279 # ---------------------------------------------
3280 # _PKG_CONFIG
3281 
3282 # _PKG_SHORT_ERRORS_SUPPORTED
3283 # -----------------------------
3284 # _PKG_SHORT_ERRORS_SUPPORTED
3285 
3286 
3287 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3288 # [ACTION-IF-NOT-FOUND])
3289 #
3290 #
3291 # Note that if there is a possibility the first call to
3292 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3293 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3294 #
3295 #
3296 # --------------------------------------------------------------
3297 # PKG_CHECK_MODULES
3298 
3299 
3300 # Include these first...
3301 #
3302 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3303 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3304 #
3305 # This code is free software; you can redistribute it and/or modify it
3306 # under the terms of the GNU General Public License version 2 only, as
3307 # published by the Free Software Foundation.  Oracle designates this
3308 # particular file as subject to the "Classpath" exception as provided
3309 # by Oracle in the LICENSE file that accompanied this code.
3310 #
3311 # This code is distributed in the hope that it will be useful, but WITHOUT
3312 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3313 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3314 # version 2 for more details (a copy is included in the LICENSE file that
3315 # accompanied this code).
3316 #
3317 # You should have received a copy of the GNU General Public License version
3318 # 2 along with this work; if not, write to the Free Software Foundation,
3319 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3320 #
3321 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3322 # or visit www.oracle.com if you need additional information or have any
3323 # questions.
3324 #
3325 
3326 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3327 # If so, then append $1 to $2 \
3328 # Also set JVM_ARG_OK to true/false depending on outcome.
3329 
3330 
3331 # Appends a string to a path variable, only adding the : when needed.
3332 
3333 
3334 # Appends a string to a path variable, only adding the : when needed.
3335 
3336 
3337 # This will make sure the given variable points to a full and proper
3338 # path. This means:
3339 # 1) There will be no spaces in the path. On posix platforms,
3340 #    spaces in the path will result in an error. On Windows,
3341 #    the path will be rewritten using short-style to be space-free.
3342 # 2) The path will be absolute, and it will be in unix-style (on
3343 #     cygwin).
3344 # $1: The name of the variable to fix
3345 
3346 
3347 # This will make sure the given variable points to a executable
3348 # with a full and proper path. This means:
3349 # 1) There will be no spaces in the path. On posix platforms,
3350 #    spaces in the path will result in an error. On Windows,
3351 #    the path will be rewritten using short-style to be space-free.
3352 # 2) The path will be absolute, and it will be in unix-style (on
3353 #     cygwin).
3354 # Any arguments given to the executable is preserved.
3355 # If the input variable does not have a directory specification, then
3356 # it need to be in the PATH.
3357 # $1: The name of the variable to fix
3358 
3359 
3360 
3361 
3362 # Register a --with argument but mark it as deprecated
3363 # $1: The name of the with argument to deprecate, not including --with-
3364 
3365 
3366 # Register a --enable argument but mark it as deprecated
3367 # $1: The name of the with argument to deprecate, not including --enable-
3368 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3369 
3370 
3371 
3372 
3373 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3374 # $1: variable to check
3375 
3376 
3377 # Check that there are no unprocessed overridden variables left.
3378 # If so, they are an incorrect argument and we will exit with an error.
3379 
3380 
3381 # Setup a tool for the given variable. If correctly specified by the user,
3382 # use that value, otherwise search for the tool using the supplied code snippet.
3383 # $1: variable to set
3384 # $2: code snippet to call to look for the tool
3385 
3386 
3387 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3388 # $1: variable to set
3389 # $2: executable name (or list of names) to look for
3390 
3391 
3392 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3393 # $1: variable to set
3394 # $2: executable name (or list of names) to look for
3395 
3396 
3397 # Like BASIC_PATH_PROGS but fails if no tool was found.
3398 # $1: variable to set
3399 # $2: executable name (or list of names) to look for
3400 
3401 
3402 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3403 # $1: variable to set
3404 # $2: autoconf macro to call to look for the special tool
3405 
3406 
3407 # Setup the most fundamental tools that relies on not much else to set up,
3408 # but is used by much of the early bootstrap code.
3409 
3410 
3411 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3412 
3413 
3414 
3415 
3416 
3417 
3418 
3419 #%%% Simple tools %%%
3420 
3421 # Check if we have found a usable version of make
3422 # $1: the path to a potential make binary (or empty)
3423 # $2: the description on how we found this
3424 
3425 
3426 # Goes looking for a usable version of GNU make.
3427 
3428 
3429 
3430 
3431 
3432 
3433 # Check if build directory is on local disk. If not possible to determine,
3434 # we prefer to claim it's local.
3435 # Argument 1: directory to test
3436 # Argument 2: what to do if it is on local disk
3437 # Argument 3: what to do otherwise (remote disk or failure)
3438 
3439 
3440 # Check that source files have basic read permissions set. This might
3441 # not be the case in cygwin in certain conditions.
3442 
3443 
3444 
3445 
3446 #
3447 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3448 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3449 #
3450 # This code is free software; you can redistribute it and/or modify it
3451 # under the terms of the GNU General Public License version 2 only, as
3452 # published by the Free Software Foundation.  Oracle designates this
3453 # particular file as subject to the "Classpath" exception as provided
3454 # by Oracle in the LICENSE file that accompanied this code.
3455 #
3456 # This code is distributed in the hope that it will be useful, but WITHOUT
3457 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3458 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3459 # version 2 for more details (a copy is included in the LICENSE file that
3460 # accompanied this code).
3461 #
3462 # You should have received a copy of the GNU General Public License version
3463 # 2 along with this work; if not, write to the Free Software Foundation,
3464 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3465 #
3466 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3467 # or visit www.oracle.com if you need additional information or have any
3468 # questions.
3469 #
3470 
3471 
3472 
3473 
3474 
3475 # Helper function which possibly converts a path using DOS-style short mode.
3476 # If so, the updated path is stored in $new_path.
3477 # $1: The path to check
3478 
3479 
3480 # Helper function which possibly converts a path using DOS-style short mode.
3481 # If so, the updated path is stored in $new_path.
3482 # $1: The path to check
3483 
3484 
3485 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3486 # and could probably be heavily simplified. However, all changes in this
3487 # area tend to need lot of testing in different scenarios, and in lack of
3488 # proper unit testing, cleaning this up has not been deemed worth the effort
3489 # at the moment.
3490 
3491 
3492 
3493 
3494 
3495 
3496 
3497 
3498 
3499 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3500 
3501 
3502 
3503 
3504 #
3505 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3506 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3507 #
3508 # This code is free software; you can redistribute it and/or modify it
3509 # under the terms of the GNU General Public License version 2 only, as
3510 # published by the Free Software Foundation.  Oracle designates this
3511 # particular file as subject to the "Classpath" exception as provided
3512 # by Oracle in the LICENSE file that accompanied this code.
3513 #
3514 # This code is distributed in the hope that it will be useful, but WITHOUT
3515 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3516 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3517 # version 2 for more details (a copy is included in the LICENSE file that
3518 # accompanied this code).
3519 #
3520 # You should have received a copy of the GNU General Public License version
3521 # 2 along with this work; if not, write to the Free Software Foundation,
3522 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3523 #
3524 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3525 # or visit www.oracle.com if you need additional information or have any
3526 # questions.
3527 #
3528 
3529 
3530 
3531 
3532 
3533 
3534 
3535 
3536 
3537 
3538 
3539 # ... then the rest
3540 #
3541 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3542 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3543 #
3544 # This code is free software; you can redistribute it and/or modify it
3545 # under the terms of the GNU General Public License version 2 only, as
3546 # published by the Free Software Foundation.  Oracle designates this
3547 # particular file as subject to the "Classpath" exception as provided
3548 # by Oracle in the LICENSE file that accompanied this code.
3549 #
3550 # This code is distributed in the hope that it will be useful, but WITHOUT
3551 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3552 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3553 # version 2 for more details (a copy is included in the LICENSE file that
3554 # accompanied this code).
3555 #
3556 # You should have received a copy of the GNU General Public License version
3557 # 2 along with this work; if not, write to the Free Software Foundation,
3558 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3559 #
3560 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3561 # or visit www.oracle.com if you need additional information or have any
3562 # questions.
3563 #
3564 
3565 ########################################################################
3566 # This file handles detection of the Boot JDK. The Boot JDK detection
3567 # process has been developed as a response to solve a complex real-world
3568 # problem. Initially, it was simple, but it has grown as platform after
3569 # platform, idiosyncracy after idiosyncracy has been supported.
3570 #
3571 # The basic idea is this:
3572 # 1) You need an acceptable *) JDK to use as a Boot JDK
3573 # 2) There are several ways to locate a JDK, that are mostly platform
3574 #    dependent **)
3575 # 3) You can have multiple JDKs installed
3576 # 4) If possible, configure should try to dig out an acceptable JDK
3577 #    automatically, without having to resort to command-line options
3578 #
3579 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3580 #     javac) and not a JRE, etc.
3581 #
3582 # **) On Windows we typically use a well-known path.
3583 #     On MacOSX we typically use the tool java_home.
3584 #     On Linux we typically find javac in the $PATH, and then follow a
3585 #     chain of symlinks that often ends up in a real JDK.
3586 #
3587 # This leads to the code where we check in different ways to locate a
3588 # JDK, and if one is found, check if it is acceptable. If not, we print
3589 # our reasons for rejecting it (useful when debugging non-working
3590 # configure situations) and continue checking the next one.
3591 ########################################################################
3592 
3593 # Execute the check given as argument, and verify the result
3594 # If the Boot JDK was previously found, do nothing
3595 # $1 A command line (typically autoconf macro) to execute
3596 
3597 
3598 # Test: Is bootjdk explicitely set by command line arguments?
3599 
3600 
3601 # Test: Is bootjdk available from builddeps?
3602 
3603 
3604 # Test: Is $JAVA_HOME set?
3605 
3606 
3607 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3608 
3609 
3610 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3611 # $1: Argument to the java_home binary (optional)
3612 
3613 
3614 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3615 
3616 
3617 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3618 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3619 # $1 = Path to directory containing jdk installations.
3620 # $2 = String to append to the found JDK directory to get the proper JDK home
3621 
3622 
3623 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3624 # environmental variable as base for where to look.
3625 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3626 
3627 
3628 # Test: Is there a JDK installed in default, well-known locations?
3629 
3630 
3631 # Check that a command-line tool in the Boot JDK is correct
3632 # $1 = name of variable to assign
3633 # $2 = name of binary
3634 
3635 
3636 ###############################################################################
3637 #
3638 # We need a Boot JDK to bootstrap the build.
3639 #
3640 
3641 
3642 
3643 
3644 
3645 #
3646 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3647 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3648 #
3649 # This code is free software; you can redistribute it and/or modify it
3650 # under the terms of the GNU General Public License version 2 only, as
3651 # published by the Free Software Foundation.  Oracle designates this
3652 # particular file as subject to the "Classpath" exception as provided
3653 # by Oracle in the LICENSE file that accompanied this code.
3654 #
3655 # This code is distributed in the hope that it will be useful, but WITHOUT
3656 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3657 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3658 # version 2 for more details (a copy is included in the LICENSE file that
3659 # accompanied this code).
3660 #
3661 # You should have received a copy of the GNU General Public License version
3662 # 2 along with this work; if not, write to the Free Software Foundation,
3663 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3664 #
3665 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3666 # or visit www.oracle.com if you need additional information or have any
3667 # questions.
3668 #
3669 
3670 
3671 
3672 
3673 
3674 
3675 
3676 
3677 
3678 
3679 
3680 
3681 
3682 
3683 
3684 
3685 
3686 
3687 
3688 
3689 #
3690 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3691 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3692 #
3693 # This code is free software; you can redistribute it and/or modify it
3694 # under the terms of the GNU General Public License version 2 only, as
3695 # published by the Free Software Foundation.  Oracle designates this
3696 # particular file as subject to the "Classpath" exception as provided
3697 # by Oracle in the LICENSE file that accompanied this code.
3698 #
3699 # This code is distributed in the hope that it will be useful, but WITHOUT
3700 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3701 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3702 # version 2 for more details (a copy is included in the LICENSE file that
3703 # accompanied this code).
3704 #
3705 # You should have received a copy of the GNU General Public License version
3706 # 2 along with this work; if not, write to the Free Software Foundation,
3707 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3708 #
3709 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3710 # or visit www.oracle.com if you need additional information or have any
3711 # questions.
3712 #
3713 
3714 
3715 
3716 
3717 
3718 # Documentation on common flags used for solstudio in HIGHEST.
3719 #
3720 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3721 #          done with care, there are some assumptions below that need to
3722 #          be understood about the use of pointers, and IEEE behavior.
3723 #
3724 # -fns: Use non-standard floating point mode (not IEEE 754)
3725 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3726 # -fsingle: Use single precision floating point with 'float'
3727 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3728 #   (Source with excessing pointer casting and data access with mixed
3729 #    pointer types are not recommended)
3730 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3731 #   (If you expect perfect errno behavior, do not use this)
3732 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3733 # -xrestrict: Pointer parameters to functions do not overlap
3734 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3735 #    If you pass in multiple pointers to the same data, do not use this)
3736 # -xlibmil: Inline some library routines
3737 #   (If you expect perfect errno behavior, do not use this)
3738 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3739 #   (If you expect perfect errno behavior, do not use this)
3740 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3741 
3742     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3743     # Bug?
3744     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3745     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3746     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3747     #fi
3748 
3749 
3750 
3751 
3752 
3753 
3754 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3755 #                                   [RUN-IF-FALSE])
3756 # ------------------------------------------------------------
3757 # Check that the c and c++ compilers support an argument
3758 
3759 
3760 
3761 
3762 #
3763 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3764 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3765 #
3766 # This code is free software; you can redistribute it and/or modify it
3767 # under the terms of the GNU General Public License version 2 only, as
3768 # published by the Free Software Foundation.  Oracle designates this
3769 # particular file as subject to the "Classpath" exception as provided
3770 # by Oracle in the LICENSE file that accompanied this code.
3771 #
3772 # This code is distributed in the hope that it will be useful, but WITHOUT
3773 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3774 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3775 # version 2 for more details (a copy is included in the LICENSE file that
3776 # accompanied this code).
3777 #
3778 # You should have received a copy of the GNU General Public License version
3779 # 2 along with this work; if not, write to the Free Software Foundation,
3780 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3781 #
3782 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3783 # or visit www.oracle.com if you need additional information or have any
3784 # questions.
3785 #
3786 
3787 
3788 
3789 
3790 
3791 cygwin_help() {
3792   case $1 in
3793     unzip)
3794       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3795       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3796       ;;
3797     zip)
3798       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3799       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3800       ;;
3801     make)
3802       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3803       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3804       ;;
3805     freetype)
3806       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3807         HELP_MSG="To install freetype, run:
3808 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3809 chmod +x /tmp/freetype-setup.exe
3810 /tmp/freetype-setup.exe
3811 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3812 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3813       else
3814         HELP_MSG="You need to build a 64-bit version of freetype.
3815 This is not readily available.
3816 You can find source code and build instructions on
3817 http://www.freetype.org/
3818 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3819       fi
3820       ;;
3821   esac
3822 }
3823 
3824 msys_help() {
3825   PKGHANDLER_COMMAND=""
3826 }
3827 
3828 apt_help() {
3829   case $1 in
3830     devkit)
3831       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3832     openjdk)
3833       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3834     alsa)
3835       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3836     cups)
3837       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3838     freetype)
3839       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3840     pulse)
3841       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3842     x11)
3843       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3844     ccache)
3845       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3846   esac
3847 }
3848 
3849 yum_help() {
3850   case $1 in
3851     devkit)
3852       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3853     openjdk)
3854       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3855     alsa)
3856       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3857     cups)
3858       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3859     freetype)
3860       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3861     pulse)
3862       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3863     x11)
3864       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3865     ccache)
3866       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3867   esac
3868 }
3869 
3870 port_help() {
3871   PKGHANDLER_COMMAND=""
3872 }
3873 
3874 pkgutil_help() {
3875   PKGHANDLER_COMMAND=""
3876 }
3877 
3878 pkgadd_help() {
3879   PKGHANDLER_COMMAND=""
3880 }
3881 
3882 # This function will check if we're called from the "configure" wrapper while
3883 # printing --help. If so, we will print out additional information that can
3884 # only be extracted within the autoconf script, and then exit. This must be
3885 # called at the very beginning in configure.ac.
3886 
3887 
3888 
3889 
3890 #
3891 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3892 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3893 #
3894 # This code is free software; you can redistribute it and/or modify it
3895 # under the terms of the GNU General Public License version 2 only, as
3896 # published by the Free Software Foundation.  Oracle designates this
3897 # particular file as subject to the "Classpath" exception as provided
3898 # by Oracle in the LICENSE file that accompanied this code.
3899 #
3900 # This code is distributed in the hope that it will be useful, but WITHOUT
3901 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3902 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3903 # version 2 for more details (a copy is included in the LICENSE file that
3904 # accompanied this code).
3905 #
3906 # You should have received a copy of the GNU General Public License version
3907 # 2 along with this work; if not, write to the Free Software Foundation,
3908 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3909 #
3910 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3911 # or visit www.oracle.com if you need additional information or have any
3912 # questions.
3913 #
3914 
3915 
3916 
3917 
3918 
3919 
3920 
3921 
3922 
3923 
3924 ###############################################################################
3925 #
3926 # Should we build only OpenJDK even if closed sources are present?
3927 #
3928 
3929 
3930 
3931 
3932 ###############################################################################
3933 #
3934 # Setup version numbers
3935 #
3936 
3937 
3938 
3939 
3940 
3941 
3942 #
3943 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3944 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3945 #
3946 # This code is free software; you can redistribute it and/or modify it
3947 # under the terms of the GNU General Public License version 2 only, as
3948 # published by the Free Software Foundation.  Oracle designates this
3949 # particular file as subject to the "Classpath" exception as provided
3950 # by Oracle in the LICENSE file that accompanied this code.
3951 #
3952 # This code is distributed in the hope that it will be useful, but WITHOUT
3953 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3954 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3955 # version 2 for more details (a copy is included in the LICENSE file that
3956 # accompanied this code).
3957 #
3958 # You should have received a copy of the GNU General Public License version
3959 # 2 along with this work; if not, write to the Free Software Foundation,
3960 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3961 #
3962 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3963 # or visit www.oracle.com if you need additional information or have any
3964 # questions.
3965 #
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 
3979 
3980 
3981 
3982 
3983 
3984 
3985 #
3986 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3987 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3988 #
3989 # This code is free software; you can redistribute it and/or modify it
3990 # under the terms of the GNU General Public License version 2 only, as
3991 # published by the Free Software Foundation.  Oracle designates this
3992 # particular file as subject to the "Classpath" exception as provided
3993 # by Oracle in the LICENSE file that accompanied this code.
3994 #
3995 # This code is distributed in the hope that it will be useful, but WITHOUT
3996 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3997 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3998 # version 2 for more details (a copy is included in the LICENSE file that
3999 # accompanied this code).
4000 #
4001 # You should have received a copy of the GNU General Public License version
4002 # 2 along with this work; if not, write to the Free Software Foundation,
4003 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4004 #
4005 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4006 # or visit www.oracle.com if you need additional information or have any
4007 # questions.
4008 #
4009 
4010 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4011 # Converts autoconf style CPU name to OpenJDK style, into
4012 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4013 
4014 
4015 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4016 # Converts autoconf style OS name to OpenJDK style, into
4017 # VAR_OS and VAR_OS_API.
4018 
4019 
4020 # Expects $host_os $host_cpu $build_os and $build_cpu
4021 # and $with_target_bits to have been setup!
4022 #
4023 # Translate the standard triplet(quadruplet) definition
4024 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4025 # OPENJDK_BUILD_OS, etc.
4026 
4027 
4028 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4029 # accordingly. Must be done after setting up build and target system, but before
4030 # doing anything else with these values.
4031 
4032 
4033 # Setup the legacy variables, for controlling the old makefiles.
4034 #
4035 
4036 
4037 
4038 
4039 #%%% Build and target systems %%%
4040 
4041 
4042 
4043 
4044 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4045 # Add -mX to various FLAGS variables.
4046 
4047 
4048 
4049 
4050 
4051 
4052 #
4053 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4054 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4055 #
4056 # This code is free software; you can redistribute it and/or modify it
4057 # under the terms of the GNU General Public License version 2 only, as
4058 # published by the Free Software Foundation.  Oracle designates this
4059 # particular file as subject to the "Classpath" exception as provided
4060 # by Oracle in the LICENSE file that accompanied this code.
4061 #
4062 # This code is distributed in the hope that it will be useful, but WITHOUT
4063 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4064 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4065 # version 2 for more details (a copy is included in the LICENSE file that
4066 # accompanied this code).
4067 #
4068 # You should have received a copy of the GNU General Public License version
4069 # 2 along with this work; if not, write to the Free Software Foundation,
4070 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4071 #
4072 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4073 # or visit www.oracle.com if you need additional information or have any
4074 # questions.
4075 #
4076 
4077 
4078 
4079 
4080 
4081 
4082 
4083 
4084 #
4085 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4086 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4087 #
4088 # This code is free software; you can redistribute it and/or modify it
4089 # under the terms of the GNU General Public License version 2 only, as
4090 # published by the Free Software Foundation.  Oracle designates this
4091 # particular file as subject to the "Classpath" exception as provided
4092 # by Oracle in the LICENSE file that accompanied this code.
4093 #
4094 # This code is distributed in the hope that it will be useful, but WITHOUT
4095 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4096 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4097 # version 2 for more details (a copy is included in the LICENSE file that
4098 # accompanied this code).
4099 #
4100 # You should have received a copy of the GNU General Public License version
4101 # 2 along with this work; if not, write to the Free Software Foundation,
4102 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4103 #
4104 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4105 # or visit www.oracle.com if you need additional information or have any
4106 # questions.
4107 #
4108 
4109 ########################################################################
4110 # This file is responsible for detecting, verifying and setting up the
4111 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4112 # proper paths to the binaries, but it will not setup any flags.
4113 #
4114 # The binaries used is determined by the toolchain type, which is the family of
4115 # compilers and related tools that are used.
4116 ########################################################################
4117 
4118 
4119 # All valid toolchains, regardless of platform (used by help.m4)
4120 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4121 
4122 # These toolchains are valid on different platforms
4123 VALID_TOOLCHAINS_linux="gcc clang"
4124 VALID_TOOLCHAINS_solaris="solstudio"
4125 VALID_TOOLCHAINS_macosx="gcc clang"
4126 VALID_TOOLCHAINS_aix="xlc"
4127 VALID_TOOLCHAINS_windows="microsoft"
4128 
4129 # Toolchain descriptions
4130 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4131 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4132 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4133 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4134 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4135 
4136 # Setup a number of variables describing how native output files are
4137 # named on this platform/toolchain.
4138 
4139 
4140 # Determine which toolchain type to use, and make sure it is valid for this
4141 # platform. Setup various information about the selected toolchain.
4142 
4143 
4144 # Before we start detecting the toolchain executables, we might need some
4145 # special setup, e.g. additional paths etc.
4146 
4147 
4148 # Restore path, etc
4149 
4150 
4151 # Check if a compiler is of the toolchain type we expect, and save the version
4152 # information from it. If the compiler does not match the expected type,
4153 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4154 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4155 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4156 #
4157 # $1 = compiler to test (CC or CXX)
4158 # $2 = human readable name of compiler (C or C++)
4159 
4160 
4161 # Try to locate the given C or C++ compiler in the path, or otherwise.
4162 #
4163 # $1 = compiler to test (CC or CXX)
4164 # $2 = human readable name of compiler (C or C++)
4165 # $3 = list of compiler names to search for
4166 
4167 
4168 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4169 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4170 # archiver (AR). Verify that the compilers are correct according to the
4171 # toolchain type.
4172 
4173 
4174 # Setup additional tools that is considered a part of the toolchain, but not the
4175 # core part. Many of these are highly platform-specific and do not exist,
4176 # and/or are not needed on all platforms.
4177 
4178 
4179 # Setup the build tools (i.e, the compiler and linker used to build programs
4180 # that should be run on the build platform, not the target platform, as a build
4181 # helper). Since the non-cross-compile case uses the normal, target compilers
4182 # for this, we can only do this after these have been setup.
4183 
4184 
4185 # Setup legacy variables that are still needed as alternative ways to refer to
4186 # parts of the toolchain.
4187 
4188 
4189 # Do some additional checks on the detected tools.
4190 
4191 
4192 # Setup the JTReg Regression Test Harness.
4193 
4194 
4195 #
4196 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4197 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4198 #
4199 # This code is free software; you can redistribute it and/or modify it
4200 # under the terms of the GNU General Public License version 2 only, as
4201 # published by the Free Software Foundation.  Oracle designates this
4202 # particular file as subject to the "Classpath" exception as provided
4203 # by Oracle in the LICENSE file that accompanied this code.
4204 #
4205 # This code is distributed in the hope that it will be useful, but WITHOUT
4206 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4207 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4208 # version 2 for more details (a copy is included in the LICENSE file that
4209 # accompanied this code).
4210 #
4211 # You should have received a copy of the GNU General Public License version
4212 # 2 along with this work; if not, write to the Free Software Foundation,
4213 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4214 #
4215 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4216 # or visit www.oracle.com if you need additional information or have any
4217 # questions.
4218 #
4219 
4220 
4221 
4222 
4223 
4224 
4225 
4226 # Check if the VS env variables were setup prior to running configure.
4227 # If not, then find vcvarsall.bat and run it automatically, and integrate
4228 # the set env variables into the spec file.
4229 
4230 
4231 
4232 
4233 
4234 
4235 
4236 
4237 
4238 
4239 # This line needs to be here, verbatim, after all includes and the dummy hook
4240 # definitions. It is replaced with custom functionality when building
4241 # custom sources.
4242 #CUSTOM_AUTOCONF_INCLUDE
4243 
4244 # Do not change or remove the following line, it is needed for consistency checks:
4245 DATE_WHEN_GENERATED=1395753263
4246 
4247 ###############################################################################
4248 #
4249 # Initialization / Boot-strapping
4250 #
4251 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4252 # thus it jumps back and forth, each time gaining something needed later on.
4253 #
4254 ###############################################################################
4255 
4256 # If we are requested to print additional help, do that and then exit.
4257 # This must be the very first call.
4258 
4259   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4260     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4261     $PRINTF "Which are valid to use depends on the build platform.\n"
4262     for toolchain in $VALID_TOOLCHAINS_all; do
4263       # Use indirect variable referencing
4264       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4265       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4266       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4267     done
4268 
4269     # And now exit directly
4270     exit 0
4271   fi
4272 
4273 
4274 # Basic initialization that must happen first of all in the normal process.
4275 
4276   # Save the original command line. This is passed to us by the wrapper configure script.
4277 
4278   DATE_WHEN_CONFIGURED=`LANG=C date`
4279 
4280   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4281 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4283 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4284 
4285 
4286   # Start with tools that do not need have cross compilation support
4287   # and can be expected to be found in the default PATH. These tools are
4288   # used by configure. Nor are these tools expected to be found in the
4289   # devkit from the builddeps server either, since they are
4290   # needed to download the devkit.
4291 
4292   # First are all the simple required tools.
4293 
4294 
4295 
4296   # Publish this variable in the help.
4297 
4298 
4299   if test "x$BASENAME" = x; then
4300     # The variable is not set by user, try to locate tool using the code snippet
4301     for ac_prog in basename
4302 do
4303   # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_path_BASENAME+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   case $BASENAME in
4311   [\\/]* | ?:[\\/]*)
4312   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4313   ;;
4314   *)
4315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320     for ac_exec_ext in '' $ac_executable_extensions; do
4321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324     break 2
4325   fi
4326 done
4327   done
4328 IFS=$as_save_IFS
4329 
4330   ;;
4331 esac
4332 fi
4333 BASENAME=$ac_cv_path_BASENAME
4334 if test -n "$BASENAME"; then
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4336 $as_echo "$BASENAME" >&6; }
4337 else
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341 
4342 
4343   test -n "$BASENAME" && break
4344 done
4345 
4346   else
4347     # The variable is set, but is it from the command line or the environment?
4348 
4349     # Try to remove the string !BASENAME! from our list.
4350     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4351     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4352       # If it failed, the variable was not from the command line. Ignore it,
4353       # but warn the user (except for BASH, which is always set by the calling BASH).
4354       if test "xBASENAME" != xBASH; then
4355         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4356 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4357       fi
4358       # Try to locate tool using the code snippet
4359       for ac_prog in basename
4360 do
4361   # Extract the first word of "$ac_prog", so it can be a program name with args.
4362 set dummy $ac_prog; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_path_BASENAME+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   case $BASENAME in
4369   [\\/]* | ?:[\\/]*)
4370   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4371   ;;
4372   *)
4373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378     for ac_exec_ext in '' $ac_executable_extensions; do
4379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385   done
4386 IFS=$as_save_IFS
4387 
4388   ;;
4389 esac
4390 fi
4391 BASENAME=$ac_cv_path_BASENAME
4392 if test -n "$BASENAME"; then
4393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4394 $as_echo "$BASENAME" >&6; }
4395 else
4396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4398 fi
4399 
4400 
4401   test -n "$BASENAME" && break
4402 done
4403 
4404     else
4405       # If it succeeded, then it was overridden by the user. We will use it
4406       # for the tool.
4407 
4408       # First remove it from the list of overridden variables, so we can test
4409       # for unknown variables in the end.
4410       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4411 
4412       # Check if the provided tool contains a complete path.
4413       tool_specified="$BASENAME"
4414       tool_basename="${tool_specified##*/}"
4415       if test "x$tool_basename" = "x$tool_specified"; then
4416         # A command without a complete path is provided, search $PATH.
4417         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4418 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4419         # Extract the first word of "$tool_basename", so it can be a program name with args.
4420 set dummy $tool_basename; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if ${ac_cv_path_BASENAME+:} false; then :
4424   $as_echo_n "(cached) " >&6
4425 else
4426   case $BASENAME in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436     for ac_exec_ext in '' $ac_executable_extensions; do
4437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443   done
4444 IFS=$as_save_IFS
4445 
4446   ;;
4447 esac
4448 fi
4449 BASENAME=$ac_cv_path_BASENAME
4450 if test -n "$BASENAME"; then
4451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4452 $as_echo "$BASENAME" >&6; }
4453 else
4454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457 
4458 
4459         if test "x$BASENAME" = x; then
4460           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4461         fi
4462       else
4463         # Otherwise we believe it is a complete path. Use it as it is.
4464         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4465 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4467 $as_echo_n "checking for BASENAME... " >&6; }
4468         if test ! -x "$tool_specified"; then
4469           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4470 $as_echo "not found" >&6; }
4471           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4472         fi
4473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4474 $as_echo "$tool_specified" >&6; }
4475       fi
4476     fi
4477   fi
4478 
4479 
4480 
4481   if test "x$BASENAME" = x; then
4482     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4483   fi
4484 
4485 
4486 
4487 
4488 
4489   # Publish this variable in the help.
4490 
4491 
4492   if test "x$BASH" = x; then
4493     # The variable is not set by user, try to locate tool using the code snippet
4494     for ac_prog in bash
4495 do
4496   # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_path_BASH+:} false; then :
4501   $as_echo_n "(cached) " >&6
4502 else
4503   case $BASH in
4504   [\\/]* | ?:[\\/]*)
4505   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4506   ;;
4507   *)
4508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4510 do
4511   IFS=$as_save_IFS
4512   test -z "$as_dir" && as_dir=.
4513     for ac_exec_ext in '' $ac_executable_extensions; do
4514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517     break 2
4518   fi
4519 done
4520   done
4521 IFS=$as_save_IFS
4522 
4523   ;;
4524 esac
4525 fi
4526 BASH=$ac_cv_path_BASH
4527 if test -n "$BASH"; then
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4529 $as_echo "$BASH" >&6; }
4530 else
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534 
4535 
4536   test -n "$BASH" && break
4537 done
4538 
4539   else
4540     # The variable is set, but is it from the command line or the environment?
4541 
4542     # Try to remove the string !BASH! from our list.
4543     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4544     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4545       # If it failed, the variable was not from the command line. Ignore it,
4546       # but warn the user (except for BASH, which is always set by the calling BASH).
4547       if test "xBASH" != xBASH; then
4548         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4549 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4550       fi
4551       # Try to locate tool using the code snippet
4552       for ac_prog in bash
4553 do
4554   # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_path_BASH+:} false; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   case $BASH in
4562   [\\/]* | ?:[\\/]*)
4563   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4564   ;;
4565   *)
4566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571     for ac_exec_ext in '' $ac_executable_extensions; do
4572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578   done
4579 IFS=$as_save_IFS
4580 
4581   ;;
4582 esac
4583 fi
4584 BASH=$ac_cv_path_BASH
4585 if test -n "$BASH"; then
4586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4587 $as_echo "$BASH" >&6; }
4588 else
4589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4591 fi
4592 
4593 
4594   test -n "$BASH" && break
4595 done
4596 
4597     else
4598       # If it succeeded, then it was overridden by the user. We will use it
4599       # for the tool.
4600 
4601       # First remove it from the list of overridden variables, so we can test
4602       # for unknown variables in the end.
4603       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4604 
4605       # Check if the provided tool contains a complete path.
4606       tool_specified="$BASH"
4607       tool_basename="${tool_specified##*/}"
4608       if test "x$tool_basename" = "x$tool_specified"; then
4609         # A command without a complete path is provided, search $PATH.
4610         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4611 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4612         # Extract the first word of "$tool_basename", so it can be a program name with args.
4613 set dummy $tool_basename; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if ${ac_cv_path_BASH+:} false; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619   case $BASH in
4620   [\\/]* | ?:[\\/]*)
4621   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4622   ;;
4623   *)
4624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629     for ac_exec_ext in '' $ac_executable_extensions; do
4630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636   done
4637 IFS=$as_save_IFS
4638 
4639   ;;
4640 esac
4641 fi
4642 BASH=$ac_cv_path_BASH
4643 if test -n "$BASH"; then
4644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4645 $as_echo "$BASH" >&6; }
4646 else
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4649 fi
4650 
4651 
4652         if test "x$BASH" = x; then
4653           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4654         fi
4655       else
4656         # Otherwise we believe it is a complete path. Use it as it is.
4657         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4658 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4659         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4660 $as_echo_n "checking for BASH... " >&6; }
4661         if test ! -x "$tool_specified"; then
4662           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4663 $as_echo "not found" >&6; }
4664           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4665         fi
4666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4667 $as_echo "$tool_specified" >&6; }
4668       fi
4669     fi
4670   fi
4671 
4672 
4673 
4674   if test "x$BASH" = x; then
4675     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4676   fi
4677 
4678 
4679 
4680 
4681 
4682   # Publish this variable in the help.
4683 
4684 
4685   if test "x$CAT" = x; then
4686     # The variable is not set by user, try to locate tool using the code snippet
4687     for ac_prog in cat
4688 do
4689   # Extract the first word of "$ac_prog", so it can be a program name with args.
4690 set dummy $ac_prog; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_path_CAT+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   case $CAT in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706     for ac_exec_ext in '' $ac_executable_extensions; do
4707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713   done
4714 IFS=$as_save_IFS
4715 
4716   ;;
4717 esac
4718 fi
4719 CAT=$ac_cv_path_CAT
4720 if test -n "$CAT"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4722 $as_echo "$CAT" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727 
4728 
4729   test -n "$CAT" && break
4730 done
4731 
4732   else
4733     # The variable is set, but is it from the command line or the environment?
4734 
4735     # Try to remove the string !CAT! from our list.
4736     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4737     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4738       # If it failed, the variable was not from the command line. Ignore it,
4739       # but warn the user (except for BASH, which is always set by the calling BASH).
4740       if test "xCAT" != xBASH; then
4741         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4742 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4743       fi
4744       # Try to locate tool using the code snippet
4745       for ac_prog in cat
4746 do
4747   # Extract the first word of "$ac_prog", so it can be a program name with args.
4748 set dummy $ac_prog; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_path_CAT+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   case $CAT in
4755   [\\/]* | ?:[\\/]*)
4756   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4757   ;;
4758   *)
4759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4761 do
4762   IFS=$as_save_IFS
4763   test -z "$as_dir" && as_dir=.
4764     for ac_exec_ext in '' $ac_executable_extensions; do
4765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768     break 2
4769   fi
4770 done
4771   done
4772 IFS=$as_save_IFS
4773 
4774   ;;
4775 esac
4776 fi
4777 CAT=$ac_cv_path_CAT
4778 if test -n "$CAT"; then
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4780 $as_echo "$CAT" >&6; }
4781 else
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785 
4786 
4787   test -n "$CAT" && break
4788 done
4789 
4790     else
4791       # If it succeeded, then it was overridden by the user. We will use it
4792       # for the tool.
4793 
4794       # First remove it from the list of overridden variables, so we can test
4795       # for unknown variables in the end.
4796       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4797 
4798       # Check if the provided tool contains a complete path.
4799       tool_specified="$CAT"
4800       tool_basename="${tool_specified##*/}"
4801       if test "x$tool_basename" = "x$tool_specified"; then
4802         # A command without a complete path is provided, search $PATH.
4803         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4804 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4805         # Extract the first word of "$tool_basename", so it can be a program name with args.
4806 set dummy $tool_basename; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if ${ac_cv_path_CAT+:} false; then :
4810   $as_echo_n "(cached) " >&6
4811 else
4812   case $CAT in
4813   [\\/]* | ?:[\\/]*)
4814   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4815   ;;
4816   *)
4817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820   IFS=$as_save_IFS
4821   test -z "$as_dir" && as_dir=.
4822     for ac_exec_ext in '' $ac_executable_extensions; do
4823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826     break 2
4827   fi
4828 done
4829   done
4830 IFS=$as_save_IFS
4831 
4832   ;;
4833 esac
4834 fi
4835 CAT=$ac_cv_path_CAT
4836 if test -n "$CAT"; then
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4838 $as_echo "$CAT" >&6; }
4839 else
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843 
4844 
4845         if test "x$CAT" = x; then
4846           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4847         fi
4848       else
4849         # Otherwise we believe it is a complete path. Use it as it is.
4850         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4851 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4853 $as_echo_n "checking for CAT... " >&6; }
4854         if test ! -x "$tool_specified"; then
4855           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4856 $as_echo "not found" >&6; }
4857           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4858         fi
4859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4860 $as_echo "$tool_specified" >&6; }
4861       fi
4862     fi
4863   fi
4864 
4865 
4866 
4867   if test "x$CAT" = x; then
4868     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4869   fi
4870 
4871 
4872 
4873 
4874 
4875   # Publish this variable in the help.
4876 
4877 
4878   if test "x$CHMOD" = x; then
4879     # The variable is not set by user, try to locate tool using the code snippet
4880     for ac_prog in chmod
4881 do
4882   # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_path_CHMOD+:} false; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889   case $CHMOD in
4890   [\\/]* | ?:[\\/]*)
4891   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4892   ;;
4893   *)
4894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897   IFS=$as_save_IFS
4898   test -z "$as_dir" && as_dir=.
4899     for ac_exec_ext in '' $ac_executable_extensions; do
4900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903     break 2
4904   fi
4905 done
4906   done
4907 IFS=$as_save_IFS
4908 
4909   ;;
4910 esac
4911 fi
4912 CHMOD=$ac_cv_path_CHMOD
4913 if test -n "$CHMOD"; then
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4915 $as_echo "$CHMOD" >&6; }
4916 else
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 fi
4920 
4921 
4922   test -n "$CHMOD" && break
4923 done
4924 
4925   else
4926     # The variable is set, but is it from the command line or the environment?
4927 
4928     # Try to remove the string !CHMOD! from our list.
4929     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4930     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4931       # If it failed, the variable was not from the command line. Ignore it,
4932       # but warn the user (except for BASH, which is always set by the calling BASH).
4933       if test "xCHMOD" != xBASH; then
4934         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4935 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4936       fi
4937       # Try to locate tool using the code snippet
4938       for ac_prog in chmod
4939 do
4940   # Extract the first word of "$ac_prog", so it can be a program name with args.
4941 set dummy $ac_prog; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_path_CHMOD+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   case $CHMOD in
4948   [\\/]* | ?:[\\/]*)
4949   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4950   ;;
4951   *)
4952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955   IFS=$as_save_IFS
4956   test -z "$as_dir" && as_dir=.
4957     for ac_exec_ext in '' $ac_executable_extensions; do
4958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961     break 2
4962   fi
4963 done
4964   done
4965 IFS=$as_save_IFS
4966 
4967   ;;
4968 esac
4969 fi
4970 CHMOD=$ac_cv_path_CHMOD
4971 if test -n "$CHMOD"; then
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4973 $as_echo "$CHMOD" >&6; }
4974 else
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978 
4979 
4980   test -n "$CHMOD" && break
4981 done
4982 
4983     else
4984       # If it succeeded, then it was overridden by the user. We will use it
4985       # for the tool.
4986 
4987       # First remove it from the list of overridden variables, so we can test
4988       # for unknown variables in the end.
4989       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4990 
4991       # Check if the provided tool contains a complete path.
4992       tool_specified="$CHMOD"
4993       tool_basename="${tool_specified##*/}"
4994       if test "x$tool_basename" = "x$tool_specified"; then
4995         # A command without a complete path is provided, search $PATH.
4996         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4997 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4998         # Extract the first word of "$tool_basename", so it can be a program name with args.
4999 set dummy $tool_basename; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_path_CHMOD+:} false; then :
5003   $as_echo_n "(cached) " >&6
5004 else
5005   case $CHMOD in
5006   [\\/]* | ?:[\\/]*)
5007   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5008   ;;
5009   *)
5010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015     for ac_exec_ext in '' $ac_executable_extensions; do
5016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022   done
5023 IFS=$as_save_IFS
5024 
5025   ;;
5026 esac
5027 fi
5028 CHMOD=$ac_cv_path_CHMOD
5029 if test -n "$CHMOD"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5031 $as_echo "$CHMOD" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036 
5037 
5038         if test "x$CHMOD" = x; then
5039           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5040         fi
5041       else
5042         # Otherwise we believe it is a complete path. Use it as it is.
5043         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5044 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5046 $as_echo_n "checking for CHMOD... " >&6; }
5047         if test ! -x "$tool_specified"; then
5048           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5049 $as_echo "not found" >&6; }
5050           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5051         fi
5052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5053 $as_echo "$tool_specified" >&6; }
5054       fi
5055     fi
5056   fi
5057 
5058 
5059 
5060   if test "x$CHMOD" = x; then
5061     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5062   fi
5063 
5064 
5065 
5066 
5067 
5068   # Publish this variable in the help.
5069 
5070 
5071   if test "x$CMP" = x; then
5072     # The variable is not set by user, try to locate tool using the code snippet
5073     for ac_prog in cmp
5074 do
5075   # Extract the first word of "$ac_prog", so it can be a program name with args.
5076 set dummy $ac_prog; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if ${ac_cv_path_CMP+:} false; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   case $CMP in
5083   [\\/]* | ?:[\\/]*)
5084   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5085   ;;
5086   *)
5087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090   IFS=$as_save_IFS
5091   test -z "$as_dir" && as_dir=.
5092     for ac_exec_ext in '' $ac_executable_extensions; do
5093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096     break 2
5097   fi
5098 done
5099   done
5100 IFS=$as_save_IFS
5101 
5102   ;;
5103 esac
5104 fi
5105 CMP=$ac_cv_path_CMP
5106 if test -n "$CMP"; then
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5108 $as_echo "$CMP" >&6; }
5109 else
5110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5112 fi
5113 
5114 
5115   test -n "$CMP" && break
5116 done
5117 
5118   else
5119     # The variable is set, but is it from the command line or the environment?
5120 
5121     # Try to remove the string !CMP! from our list.
5122     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5123     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5124       # If it failed, the variable was not from the command line. Ignore it,
5125       # but warn the user (except for BASH, which is always set by the calling BASH).
5126       if test "xCMP" != xBASH; then
5127         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5128 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5129       fi
5130       # Try to locate tool using the code snippet
5131       for ac_prog in cmp
5132 do
5133   # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy $ac_prog; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_path_CMP+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   case $CMP in
5141   [\\/]* | ?:[\\/]*)
5142   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5143   ;;
5144   *)
5145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150     for ac_exec_ext in '' $ac_executable_extensions; do
5151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155   fi
5156 done
5157   done
5158 IFS=$as_save_IFS
5159 
5160   ;;
5161 esac
5162 fi
5163 CMP=$ac_cv_path_CMP
5164 if test -n "$CMP"; then
5165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5166 $as_echo "$CMP" >&6; }
5167 else
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171 
5172 
5173   test -n "$CMP" && break
5174 done
5175 
5176     else
5177       # If it succeeded, then it was overridden by the user. We will use it
5178       # for the tool.
5179 
5180       # First remove it from the list of overridden variables, so we can test
5181       # for unknown variables in the end.
5182       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5183 
5184       # Check if the provided tool contains a complete path.
5185       tool_specified="$CMP"
5186       tool_basename="${tool_specified##*/}"
5187       if test "x$tool_basename" = "x$tool_specified"; then
5188         # A command without a complete path is provided, search $PATH.
5189         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5190 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5191         # Extract the first word of "$tool_basename", so it can be a program name with args.
5192 set dummy $tool_basename; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_CMP+:} false; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   case $CMP in
5199   [\\/]* | ?:[\\/]*)
5200   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5201   ;;
5202   *)
5203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215   done
5216 IFS=$as_save_IFS
5217 
5218   ;;
5219 esac
5220 fi
5221 CMP=$ac_cv_path_CMP
5222 if test -n "$CMP"; then
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5224 $as_echo "$CMP" >&6; }
5225 else
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229 
5230 
5231         if test "x$CMP" = x; then
5232           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5233         fi
5234       else
5235         # Otherwise we believe it is a complete path. Use it as it is.
5236         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5237 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5239 $as_echo_n "checking for CMP... " >&6; }
5240         if test ! -x "$tool_specified"; then
5241           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5242 $as_echo "not found" >&6; }
5243           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5244         fi
5245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5246 $as_echo "$tool_specified" >&6; }
5247       fi
5248     fi
5249   fi
5250 
5251 
5252 
5253   if test "x$CMP" = x; then
5254     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5255   fi
5256 
5257 
5258 
5259 
5260 
5261   # Publish this variable in the help.
5262 
5263 
5264   if test "x$COMM" = x; then
5265     # The variable is not set by user, try to locate tool using the code snippet
5266     for ac_prog in comm
5267 do
5268   # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_path_COMM+:} false; then :
5273   $as_echo_n "(cached) " >&6
5274 else
5275   case $COMM in
5276   [\\/]* | ?:[\\/]*)
5277   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5278   ;;
5279   *)
5280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283   IFS=$as_save_IFS
5284   test -z "$as_dir" && as_dir=.
5285     for ac_exec_ext in '' $ac_executable_extensions; do
5286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289     break 2
5290   fi
5291 done
5292   done
5293 IFS=$as_save_IFS
5294 
5295   ;;
5296 esac
5297 fi
5298 COMM=$ac_cv_path_COMM
5299 if test -n "$COMM"; then
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5301 $as_echo "$COMM" >&6; }
5302 else
5303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 fi
5306 
5307 
5308   test -n "$COMM" && break
5309 done
5310 
5311   else
5312     # The variable is set, but is it from the command line or the environment?
5313 
5314     # Try to remove the string !COMM! from our list.
5315     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5316     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5317       # If it failed, the variable was not from the command line. Ignore it,
5318       # but warn the user (except for BASH, which is always set by the calling BASH).
5319       if test "xCOMM" != xBASH; then
5320         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5321 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5322       fi
5323       # Try to locate tool using the code snippet
5324       for ac_prog in comm
5325 do
5326   # Extract the first word of "$ac_prog", so it can be a program name with args.
5327 set dummy $ac_prog; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if ${ac_cv_path_COMM+:} false; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333   case $COMM in
5334   [\\/]* | ?:[\\/]*)
5335   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5336   ;;
5337   *)
5338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343     for ac_exec_ext in '' $ac_executable_extensions; do
5344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350   done
5351 IFS=$as_save_IFS
5352 
5353   ;;
5354 esac
5355 fi
5356 COMM=$ac_cv_path_COMM
5357 if test -n "$COMM"; then
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5359 $as_echo "$COMM" >&6; }
5360 else
5361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 fi
5364 
5365 
5366   test -n "$COMM" && break
5367 done
5368 
5369     else
5370       # If it succeeded, then it was overridden by the user. We will use it
5371       # for the tool.
5372 
5373       # First remove it from the list of overridden variables, so we can test
5374       # for unknown variables in the end.
5375       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5376 
5377       # Check if the provided tool contains a complete path.
5378       tool_specified="$COMM"
5379       tool_basename="${tool_specified##*/}"
5380       if test "x$tool_basename" = "x$tool_specified"; then
5381         # A command without a complete path is provided, search $PATH.
5382         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5383 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5384         # Extract the first word of "$tool_basename", so it can be a program name with args.
5385 set dummy $tool_basename; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_path_COMM+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   case $COMM in
5392   [\\/]* | ?:[\\/]*)
5393   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5394   ;;
5395   *)
5396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408   done
5409 IFS=$as_save_IFS
5410 
5411   ;;
5412 esac
5413 fi
5414 COMM=$ac_cv_path_COMM
5415 if test -n "$COMM"; then
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5417 $as_echo "$COMM" >&6; }
5418 else
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5422 
5423 
5424         if test "x$COMM" = x; then
5425           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5426         fi
5427       else
5428         # Otherwise we believe it is a complete path. Use it as it is.
5429         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5430 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5432 $as_echo_n "checking for COMM... " >&6; }
5433         if test ! -x "$tool_specified"; then
5434           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5435 $as_echo "not found" >&6; }
5436           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5437         fi
5438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5439 $as_echo "$tool_specified" >&6; }
5440       fi
5441     fi
5442   fi
5443 
5444 
5445 
5446   if test "x$COMM" = x; then
5447     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5448   fi
5449 
5450 
5451 
5452 
5453 
5454   # Publish this variable in the help.
5455 
5456 
5457   if test "x$CP" = x; then
5458     # The variable is not set by user, try to locate tool using the code snippet
5459     for ac_prog in cp
5460 do
5461   # Extract the first word of "$ac_prog", so it can be a program name with args.
5462 set dummy $ac_prog; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_path_CP+:} false; then :
5466   $as_echo_n "(cached) " >&6
5467 else
5468   case $CP in
5469   [\\/]* | ?:[\\/]*)
5470   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5471   ;;
5472   *)
5473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478     for ac_exec_ext in '' $ac_executable_extensions; do
5479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485   done
5486 IFS=$as_save_IFS
5487 
5488   ;;
5489 esac
5490 fi
5491 CP=$ac_cv_path_CP
5492 if test -n "$CP"; then
5493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5494 $as_echo "$CP" >&6; }
5495 else
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499 
5500 
5501   test -n "$CP" && break
5502 done
5503 
5504   else
5505     # The variable is set, but is it from the command line or the environment?
5506 
5507     # Try to remove the string !CP! from our list.
5508     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5509     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5510       # If it failed, the variable was not from the command line. Ignore it,
5511       # but warn the user (except for BASH, which is always set by the calling BASH).
5512       if test "xCP" != xBASH; then
5513         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5514 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5515       fi
5516       # Try to locate tool using the code snippet
5517       for ac_prog in cp
5518 do
5519   # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_path_CP+:} false; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   case $CP in
5527   [\\/]* | ?:[\\/]*)
5528   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5529   ;;
5530   *)
5531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536     for ac_exec_ext in '' $ac_executable_extensions; do
5537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543   done
5544 IFS=$as_save_IFS
5545 
5546   ;;
5547 esac
5548 fi
5549 CP=$ac_cv_path_CP
5550 if test -n "$CP"; then
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5552 $as_echo "$CP" >&6; }
5553 else
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 fi
5557 
5558 
5559   test -n "$CP" && break
5560 done
5561 
5562     else
5563       # If it succeeded, then it was overridden by the user. We will use it
5564       # for the tool.
5565 
5566       # First remove it from the list of overridden variables, so we can test
5567       # for unknown variables in the end.
5568       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5569 
5570       # Check if the provided tool contains a complete path.
5571       tool_specified="$CP"
5572       tool_basename="${tool_specified##*/}"
5573       if test "x$tool_basename" = "x$tool_specified"; then
5574         # A command without a complete path is provided, search $PATH.
5575         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5576 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5577         # Extract the first word of "$tool_basename", so it can be a program name with args.
5578 set dummy $tool_basename; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_path_CP+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   case $CP in
5585   [\\/]* | ?:[\\/]*)
5586   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5587   ;;
5588   *)
5589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594     for ac_exec_ext in '' $ac_executable_extensions; do
5595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601   done
5602 IFS=$as_save_IFS
5603 
5604   ;;
5605 esac
5606 fi
5607 CP=$ac_cv_path_CP
5608 if test -n "$CP"; then
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5610 $as_echo "$CP" >&6; }
5611 else
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615 
5616 
5617         if test "x$CP" = x; then
5618           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5619         fi
5620       else
5621         # Otherwise we believe it is a complete path. Use it as it is.
5622         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5623 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5625 $as_echo_n "checking for CP... " >&6; }
5626         if test ! -x "$tool_specified"; then
5627           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5628 $as_echo "not found" >&6; }
5629           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5630         fi
5631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5632 $as_echo "$tool_specified" >&6; }
5633       fi
5634     fi
5635   fi
5636 
5637 
5638 
5639   if test "x$CP" = x; then
5640     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5641   fi
5642 
5643 
5644 
5645 
5646 
5647   # Publish this variable in the help.
5648 
5649 
5650   if test "x$CPIO" = x; then
5651     # The variable is not set by user, try to locate tool using the code snippet
5652     for ac_prog in cpio
5653 do
5654   # Extract the first word of "$ac_prog", so it can be a program name with args.
5655 set dummy $ac_prog; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_path_CPIO+:} false; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   case $CPIO in
5662   [\\/]* | ?:[\\/]*)
5663   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5664   ;;
5665   *)
5666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678   done
5679 IFS=$as_save_IFS
5680 
5681   ;;
5682 esac
5683 fi
5684 CPIO=$ac_cv_path_CPIO
5685 if test -n "$CPIO"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5687 $as_echo "$CPIO" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 fi
5692 
5693 
5694   test -n "$CPIO" && break
5695 done
5696 
5697   else
5698     # The variable is set, but is it from the command line or the environment?
5699 
5700     # Try to remove the string !CPIO! from our list.
5701     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5702     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5703       # If it failed, the variable was not from the command line. Ignore it,
5704       # but warn the user (except for BASH, which is always set by the calling BASH).
5705       if test "xCPIO" != xBASH; then
5706         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5707 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5708       fi
5709       # Try to locate tool using the code snippet
5710       for ac_prog in cpio
5711 do
5712   # Extract the first word of "$ac_prog", so it can be a program name with args.
5713 set dummy $ac_prog; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_path_CPIO+:} false; then :
5717   $as_echo_n "(cached) " >&6
5718 else
5719   case $CPIO in
5720   [\\/]* | ?:[\\/]*)
5721   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5722   ;;
5723   *)
5724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729     for ac_exec_ext in '' $ac_executable_extensions; do
5730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736   done
5737 IFS=$as_save_IFS
5738 
5739   ;;
5740 esac
5741 fi
5742 CPIO=$ac_cv_path_CPIO
5743 if test -n "$CPIO"; then
5744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5745 $as_echo "$CPIO" >&6; }
5746 else
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750 
5751 
5752   test -n "$CPIO" && break
5753 done
5754 
5755     else
5756       # If it succeeded, then it was overridden by the user. We will use it
5757       # for the tool.
5758 
5759       # First remove it from the list of overridden variables, so we can test
5760       # for unknown variables in the end.
5761       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5762 
5763       # Check if the provided tool contains a complete path.
5764       tool_specified="$CPIO"
5765       tool_basename="${tool_specified##*/}"
5766       if test "x$tool_basename" = "x$tool_specified"; then
5767         # A command without a complete path is provided, search $PATH.
5768         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5769 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5770         # Extract the first word of "$tool_basename", so it can be a program name with args.
5771 set dummy $tool_basename; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_path_CPIO+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   case $CPIO in
5778   [\\/]* | ?:[\\/]*)
5779   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5780   ;;
5781   *)
5782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787     for ac_exec_ext in '' $ac_executable_extensions; do
5788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794   done
5795 IFS=$as_save_IFS
5796 
5797   ;;
5798 esac
5799 fi
5800 CPIO=$ac_cv_path_CPIO
5801 if test -n "$CPIO"; then
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5803 $as_echo "$CPIO" >&6; }
5804 else
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808 
5809 
5810         if test "x$CPIO" = x; then
5811           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5812         fi
5813       else
5814         # Otherwise we believe it is a complete path. Use it as it is.
5815         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5816 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5818 $as_echo_n "checking for CPIO... " >&6; }
5819         if test ! -x "$tool_specified"; then
5820           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5821 $as_echo "not found" >&6; }
5822           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5823         fi
5824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5825 $as_echo "$tool_specified" >&6; }
5826       fi
5827     fi
5828   fi
5829 
5830 
5831 
5832   if test "x$CPIO" = x; then
5833     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5834   fi
5835 
5836 
5837 
5838 
5839 
5840   # Publish this variable in the help.
5841 
5842 
5843   if test "x$CUT" = x; then
5844     # The variable is not set by user, try to locate tool using the code snippet
5845     for ac_prog in cut
5846 do
5847   # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_path_CUT+:} false; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   case $CUT in
5855   [\\/]* | ?:[\\/]*)
5856   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5857   ;;
5858   *)
5859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864     for ac_exec_ext in '' $ac_executable_extensions; do
5865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871   done
5872 IFS=$as_save_IFS
5873 
5874   ;;
5875 esac
5876 fi
5877 CUT=$ac_cv_path_CUT
5878 if test -n "$CUT"; then
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5880 $as_echo "$CUT" >&6; }
5881 else
5882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 fi
5885 
5886 
5887   test -n "$CUT" && break
5888 done
5889 
5890   else
5891     # The variable is set, but is it from the command line or the environment?
5892 
5893     # Try to remove the string !CUT! from our list.
5894     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5895     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5896       # If it failed, the variable was not from the command line. Ignore it,
5897       # but warn the user (except for BASH, which is always set by the calling BASH).
5898       if test "xCUT" != xBASH; then
5899         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5900 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5901       fi
5902       # Try to locate tool using the code snippet
5903       for ac_prog in cut
5904 do
5905   # Extract the first word of "$ac_prog", so it can be a program name with args.
5906 set dummy $ac_prog; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_path_CUT+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   case $CUT in
5913   [\\/]* | ?:[\\/]*)
5914   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5915   ;;
5916   *)
5917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922     for ac_exec_ext in '' $ac_executable_extensions; do
5923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929   done
5930 IFS=$as_save_IFS
5931 
5932   ;;
5933 esac
5934 fi
5935 CUT=$ac_cv_path_CUT
5936 if test -n "$CUT"; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5938 $as_echo "$CUT" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943 
5944 
5945   test -n "$CUT" && break
5946 done
5947 
5948     else
5949       # If it succeeded, then it was overridden by the user. We will use it
5950       # for the tool.
5951 
5952       # First remove it from the list of overridden variables, so we can test
5953       # for unknown variables in the end.
5954       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5955 
5956       # Check if the provided tool contains a complete path.
5957       tool_specified="$CUT"
5958       tool_basename="${tool_specified##*/}"
5959       if test "x$tool_basename" = "x$tool_specified"; then
5960         # A command without a complete path is provided, search $PATH.
5961         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5962 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5963         # Extract the first word of "$tool_basename", so it can be a program name with args.
5964 set dummy $tool_basename; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if ${ac_cv_path_CUT+:} false; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   case $CUT in
5971   [\\/]* | ?:[\\/]*)
5972   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5973   ;;
5974   *)
5975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989 
5990   ;;
5991 esac
5992 fi
5993 CUT=$ac_cv_path_CUT
5994 if test -n "$CUT"; then
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5996 $as_echo "$CUT" >&6; }
5997 else
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001 
6002 
6003         if test "x$CUT" = x; then
6004           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6005         fi
6006       else
6007         # Otherwise we believe it is a complete path. Use it as it is.
6008         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6009 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6011 $as_echo_n "checking for CUT... " >&6; }
6012         if test ! -x "$tool_specified"; then
6013           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6014 $as_echo "not found" >&6; }
6015           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6016         fi
6017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6018 $as_echo "$tool_specified" >&6; }
6019       fi
6020     fi
6021   fi
6022 
6023 
6024 
6025   if test "x$CUT" = x; then
6026     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6027   fi
6028 
6029 
6030 
6031 
6032 
6033   # Publish this variable in the help.
6034 
6035 
6036   if test "x$DATE" = x; then
6037     # The variable is not set by user, try to locate tool using the code snippet
6038     for ac_prog in date
6039 do
6040   # Extract the first word of "$ac_prog", so it can be a program name with args.
6041 set dummy $ac_prog; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_path_DATE+:} false; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   case $DATE in
6048   [\\/]* | ?:[\\/]*)
6049   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6050   ;;
6051   *)
6052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   test -z "$as_dir" && as_dir=.
6057     for ac_exec_ext in '' $ac_executable_extensions; do
6058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6059     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061     break 2
6062   fi
6063 done
6064   done
6065 IFS=$as_save_IFS
6066 
6067   ;;
6068 esac
6069 fi
6070 DATE=$ac_cv_path_DATE
6071 if test -n "$DATE"; then
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6073 $as_echo "$DATE" >&6; }
6074 else
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078 
6079 
6080   test -n "$DATE" && break
6081 done
6082 
6083   else
6084     # The variable is set, but is it from the command line or the environment?
6085 
6086     # Try to remove the string !DATE! from our list.
6087     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6088     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6089       # If it failed, the variable was not from the command line. Ignore it,
6090       # but warn the user (except for BASH, which is always set by the calling BASH).
6091       if test "xDATE" != xBASH; then
6092         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6093 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6094       fi
6095       # Try to locate tool using the code snippet
6096       for ac_prog in date
6097 do
6098   # Extract the first word of "$ac_prog", so it can be a program name with args.
6099 set dummy $ac_prog; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_path_DATE+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   case $DATE in
6106   [\\/]* | ?:[\\/]*)
6107   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6108   ;;
6109   *)
6110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113   IFS=$as_save_IFS
6114   test -z "$as_dir" && as_dir=.
6115     for ac_exec_ext in '' $ac_executable_extensions; do
6116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119     break 2
6120   fi
6121 done
6122   done
6123 IFS=$as_save_IFS
6124 
6125   ;;
6126 esac
6127 fi
6128 DATE=$ac_cv_path_DATE
6129 if test -n "$DATE"; then
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6131 $as_echo "$DATE" >&6; }
6132 else
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136 
6137 
6138   test -n "$DATE" && break
6139 done
6140 
6141     else
6142       # If it succeeded, then it was overridden by the user. We will use it
6143       # for the tool.
6144 
6145       # First remove it from the list of overridden variables, so we can test
6146       # for unknown variables in the end.
6147       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6148 
6149       # Check if the provided tool contains a complete path.
6150       tool_specified="$DATE"
6151       tool_basename="${tool_specified##*/}"
6152       if test "x$tool_basename" = "x$tool_specified"; then
6153         # A command without a complete path is provided, search $PATH.
6154         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6155 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6156         # Extract the first word of "$tool_basename", so it can be a program name with args.
6157 set dummy $tool_basename; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_path_DATE+:} false; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163   case $DATE in
6164   [\\/]* | ?:[\\/]*)
6165   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6166   ;;
6167   *)
6168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173     for ac_exec_ext in '' $ac_executable_extensions; do
6174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177     break 2
6178   fi
6179 done
6180   done
6181 IFS=$as_save_IFS
6182 
6183   ;;
6184 esac
6185 fi
6186 DATE=$ac_cv_path_DATE
6187 if test -n "$DATE"; then
6188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6189 $as_echo "$DATE" >&6; }
6190 else
6191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6193 fi
6194 
6195 
6196         if test "x$DATE" = x; then
6197           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6198         fi
6199       else
6200         # Otherwise we believe it is a complete path. Use it as it is.
6201         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6202 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6204 $as_echo_n "checking for DATE... " >&6; }
6205         if test ! -x "$tool_specified"; then
6206           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6207 $as_echo "not found" >&6; }
6208           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6209         fi
6210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6211 $as_echo "$tool_specified" >&6; }
6212       fi
6213     fi
6214   fi
6215 
6216 
6217 
6218   if test "x$DATE" = x; then
6219     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6220   fi
6221 
6222 
6223 
6224 
6225 
6226   # Publish this variable in the help.
6227 
6228 
6229   if test "x$DIFF" = x; then
6230     # The variable is not set by user, try to locate tool using the code snippet
6231     for ac_prog in gdiff diff
6232 do
6233   # Extract the first word of "$ac_prog", so it can be a program name with args.
6234 set dummy $ac_prog; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_path_DIFF+:} false; then :
6238   $as_echo_n "(cached) " >&6
6239 else
6240   case $DIFF in
6241   [\\/]* | ?:[\\/]*)
6242   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6243   ;;
6244   *)
6245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248   IFS=$as_save_IFS
6249   test -z "$as_dir" && as_dir=.
6250     for ac_exec_ext in '' $ac_executable_extensions; do
6251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254     break 2
6255   fi
6256 done
6257   done
6258 IFS=$as_save_IFS
6259 
6260   ;;
6261 esac
6262 fi
6263 DIFF=$ac_cv_path_DIFF
6264 if test -n "$DIFF"; then
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6266 $as_echo "$DIFF" >&6; }
6267 else
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271 
6272 
6273   test -n "$DIFF" && break
6274 done
6275 
6276   else
6277     # The variable is set, but is it from the command line or the environment?
6278 
6279     # Try to remove the string !DIFF! from our list.
6280     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6281     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6282       # If it failed, the variable was not from the command line. Ignore it,
6283       # but warn the user (except for BASH, which is always set by the calling BASH).
6284       if test "xDIFF" != xBASH; then
6285         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6286 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6287       fi
6288       # Try to locate tool using the code snippet
6289       for ac_prog in gdiff diff
6290 do
6291   # Extract the first word of "$ac_prog", so it can be a program name with args.
6292 set dummy $ac_prog; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_path_DIFF+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298   case $DIFF in
6299   [\\/]* | ?:[\\/]*)
6300   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6301   ;;
6302   *)
6303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306   IFS=$as_save_IFS
6307   test -z "$as_dir" && as_dir=.
6308     for ac_exec_ext in '' $ac_executable_extensions; do
6309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312     break 2
6313   fi
6314 done
6315   done
6316 IFS=$as_save_IFS
6317 
6318   ;;
6319 esac
6320 fi
6321 DIFF=$ac_cv_path_DIFF
6322 if test -n "$DIFF"; then
6323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6324 $as_echo "$DIFF" >&6; }
6325 else
6326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329 
6330 
6331   test -n "$DIFF" && break
6332 done
6333 
6334     else
6335       # If it succeeded, then it was overridden by the user. We will use it
6336       # for the tool.
6337 
6338       # First remove it from the list of overridden variables, so we can test
6339       # for unknown variables in the end.
6340       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6341 
6342       # Check if the provided tool contains a complete path.
6343       tool_specified="$DIFF"
6344       tool_basename="${tool_specified##*/}"
6345       if test "x$tool_basename" = "x$tool_specified"; then
6346         # A command without a complete path is provided, search $PATH.
6347         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6348 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6349         # Extract the first word of "$tool_basename", so it can be a program name with args.
6350 set dummy $tool_basename; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_path_DIFF+:} false; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   case $DIFF in
6357   [\\/]* | ?:[\\/]*)
6358   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6359   ;;
6360   *)
6361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366     for ac_exec_ext in '' $ac_executable_extensions; do
6367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370     break 2
6371   fi
6372 done
6373   done
6374 IFS=$as_save_IFS
6375 
6376   ;;
6377 esac
6378 fi
6379 DIFF=$ac_cv_path_DIFF
6380 if test -n "$DIFF"; then
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6382 $as_echo "$DIFF" >&6; }
6383 else
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387 
6388 
6389         if test "x$DIFF" = x; then
6390           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6391         fi
6392       else
6393         # Otherwise we believe it is a complete path. Use it as it is.
6394         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6395 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6397 $as_echo_n "checking for DIFF... " >&6; }
6398         if test ! -x "$tool_specified"; then
6399           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6400 $as_echo "not found" >&6; }
6401           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6402         fi
6403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6404 $as_echo "$tool_specified" >&6; }
6405       fi
6406     fi
6407   fi
6408 
6409 
6410 
6411   if test "x$DIFF" = x; then
6412     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6413   fi
6414 
6415 
6416 
6417 
6418 
6419   # Publish this variable in the help.
6420 
6421 
6422   if test "x$DIRNAME" = x; then
6423     # The variable is not set by user, try to locate tool using the code snippet
6424     for ac_prog in dirname
6425 do
6426   # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_path_DIRNAME+:} false; then :
6431   $as_echo_n "(cached) " >&6
6432 else
6433   case $DIRNAME in
6434   [\\/]* | ?:[\\/]*)
6435   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6436   ;;
6437   *)
6438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443     for ac_exec_ext in '' $ac_executable_extensions; do
6444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450   done
6451 IFS=$as_save_IFS
6452 
6453   ;;
6454 esac
6455 fi
6456 DIRNAME=$ac_cv_path_DIRNAME
6457 if test -n "$DIRNAME"; then
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6459 $as_echo "$DIRNAME" >&6; }
6460 else
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464 
6465 
6466   test -n "$DIRNAME" && break
6467 done
6468 
6469   else
6470     # The variable is set, but is it from the command line or the environment?
6471 
6472     # Try to remove the string !DIRNAME! from our list.
6473     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6474     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6475       # If it failed, the variable was not from the command line. Ignore it,
6476       # but warn the user (except for BASH, which is always set by the calling BASH).
6477       if test "xDIRNAME" != xBASH; then
6478         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6479 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6480       fi
6481       # Try to locate tool using the code snippet
6482       for ac_prog in dirname
6483 do
6484   # Extract the first word of "$ac_prog", so it can be a program name with args.
6485 set dummy $ac_prog; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_path_DIRNAME+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   case $DIRNAME in
6492   [\\/]* | ?:[\\/]*)
6493   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6494   ;;
6495   *)
6496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510 
6511   ;;
6512 esac
6513 fi
6514 DIRNAME=$ac_cv_path_DIRNAME
6515 if test -n "$DIRNAME"; then
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6517 $as_echo "$DIRNAME" >&6; }
6518 else
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522 
6523 
6524   test -n "$DIRNAME" && break
6525 done
6526 
6527     else
6528       # If it succeeded, then it was overridden by the user. We will use it
6529       # for the tool.
6530 
6531       # First remove it from the list of overridden variables, so we can test
6532       # for unknown variables in the end.
6533       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6534 
6535       # Check if the provided tool contains a complete path.
6536       tool_specified="$DIRNAME"
6537       tool_basename="${tool_specified##*/}"
6538       if test "x$tool_basename" = "x$tool_specified"; then
6539         # A command without a complete path is provided, search $PATH.
6540         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6541 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6542         # Extract the first word of "$tool_basename", so it can be a program name with args.
6543 set dummy $tool_basename; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_path_DIRNAME+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   case $DIRNAME in
6550   [\\/]* | ?:[\\/]*)
6551   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6552   ;;
6553   *)
6554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559     for ac_exec_ext in '' $ac_executable_extensions; do
6560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566   done
6567 IFS=$as_save_IFS
6568 
6569   ;;
6570 esac
6571 fi
6572 DIRNAME=$ac_cv_path_DIRNAME
6573 if test -n "$DIRNAME"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6575 $as_echo "$DIRNAME" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580 
6581 
6582         if test "x$DIRNAME" = x; then
6583           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6584         fi
6585       else
6586         # Otherwise we believe it is a complete path. Use it as it is.
6587         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6588 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6590 $as_echo_n "checking for DIRNAME... " >&6; }
6591         if test ! -x "$tool_specified"; then
6592           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6593 $as_echo "not found" >&6; }
6594           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6595         fi
6596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6597 $as_echo "$tool_specified" >&6; }
6598       fi
6599     fi
6600   fi
6601 
6602 
6603 
6604   if test "x$DIRNAME" = x; then
6605     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6606   fi
6607 
6608 
6609 
6610 
6611 
6612   # Publish this variable in the help.
6613 
6614 
6615   if test "x$ECHO" = x; then
6616     # The variable is not set by user, try to locate tool using the code snippet
6617     for ac_prog in echo
6618 do
6619   # Extract the first word of "$ac_prog", so it can be a program name with args.
6620 set dummy $ac_prog; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_path_ECHO+:} false; then :
6624   $as_echo_n "(cached) " >&6
6625 else
6626   case $ECHO in
6627   [\\/]* | ?:[\\/]*)
6628   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6629   ;;
6630   *)
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636     for ac_exec_ext in '' $ac_executable_extensions; do
6637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643   done
6644 IFS=$as_save_IFS
6645 
6646   ;;
6647 esac
6648 fi
6649 ECHO=$ac_cv_path_ECHO
6650 if test -n "$ECHO"; then
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6652 $as_echo "$ECHO" >&6; }
6653 else
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657 
6658 
6659   test -n "$ECHO" && break
6660 done
6661 
6662   else
6663     # The variable is set, but is it from the command line or the environment?
6664 
6665     # Try to remove the string !ECHO! from our list.
6666     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6667     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6668       # If it failed, the variable was not from the command line. Ignore it,
6669       # but warn the user (except for BASH, which is always set by the calling BASH).
6670       if test "xECHO" != xBASH; then
6671         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6672 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6673       fi
6674       # Try to locate tool using the code snippet
6675       for ac_prog in echo
6676 do
6677   # Extract the first word of "$ac_prog", so it can be a program name with args.
6678 set dummy $ac_prog; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_path_ECHO+:} false; then :
6682   $as_echo_n "(cached) " >&6
6683 else
6684   case $ECHO in
6685   [\\/]* | ?:[\\/]*)
6686   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6687   ;;
6688   *)
6689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694     for ac_exec_ext in '' $ac_executable_extensions; do
6695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701   done
6702 IFS=$as_save_IFS
6703 
6704   ;;
6705 esac
6706 fi
6707 ECHO=$ac_cv_path_ECHO
6708 if test -n "$ECHO"; then
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6710 $as_echo "$ECHO" >&6; }
6711 else
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715 
6716 
6717   test -n "$ECHO" && break
6718 done
6719 
6720     else
6721       # If it succeeded, then it was overridden by the user. We will use it
6722       # for the tool.
6723 
6724       # First remove it from the list of overridden variables, so we can test
6725       # for unknown variables in the end.
6726       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6727 
6728       # Check if the provided tool contains a complete path.
6729       tool_specified="$ECHO"
6730       tool_basename="${tool_specified##*/}"
6731       if test "x$tool_basename" = "x$tool_specified"; then
6732         # A command without a complete path is provided, search $PATH.
6733         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6734 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6735         # Extract the first word of "$tool_basename", so it can be a program name with args.
6736 set dummy $tool_basename; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_path_ECHO+:} false; then :
6740   $as_echo_n "(cached) " >&6
6741 else
6742   case $ECHO in
6743   [\\/]* | ?:[\\/]*)
6744   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6745   ;;
6746   *)
6747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752     for ac_exec_ext in '' $ac_executable_extensions; do
6753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6754     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759   done
6760 IFS=$as_save_IFS
6761 
6762   ;;
6763 esac
6764 fi
6765 ECHO=$ac_cv_path_ECHO
6766 if test -n "$ECHO"; then
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6768 $as_echo "$ECHO" >&6; }
6769 else
6770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773 
6774 
6775         if test "x$ECHO" = x; then
6776           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6777         fi
6778       else
6779         # Otherwise we believe it is a complete path. Use it as it is.
6780         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6781 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6783 $as_echo_n "checking for ECHO... " >&6; }
6784         if test ! -x "$tool_specified"; then
6785           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6786 $as_echo "not found" >&6; }
6787           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6788         fi
6789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6790 $as_echo "$tool_specified" >&6; }
6791       fi
6792     fi
6793   fi
6794 
6795 
6796 
6797   if test "x$ECHO" = x; then
6798     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6799   fi
6800 
6801 
6802 
6803 
6804 
6805   # Publish this variable in the help.
6806 
6807 
6808   if test "x$EXPR" = x; then
6809     # The variable is not set by user, try to locate tool using the code snippet
6810     for ac_prog in expr
6811 do
6812   # Extract the first word of "$ac_prog", so it can be a program name with args.
6813 set dummy $ac_prog; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_path_EXPR+:} false; then :
6817   $as_echo_n "(cached) " >&6
6818 else
6819   case $EXPR in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829     for ac_exec_ext in '' $ac_executable_extensions; do
6830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836   done
6837 IFS=$as_save_IFS
6838 
6839   ;;
6840 esac
6841 fi
6842 EXPR=$ac_cv_path_EXPR
6843 if test -n "$EXPR"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6845 $as_echo "$EXPR" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850 
6851 
6852   test -n "$EXPR" && break
6853 done
6854 
6855   else
6856     # The variable is set, but is it from the command line or the environment?
6857 
6858     # Try to remove the string !EXPR! from our list.
6859     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6860     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6861       # If it failed, the variable was not from the command line. Ignore it,
6862       # but warn the user (except for BASH, which is always set by the calling BASH).
6863       if test "xEXPR" != xBASH; then
6864         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6865 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6866       fi
6867       # Try to locate tool using the code snippet
6868       for ac_prog in expr
6869 do
6870   # Extract the first word of "$ac_prog", so it can be a program name with args.
6871 set dummy $ac_prog; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_path_EXPR+:} false; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   case $EXPR in
6878   [\\/]* | ?:[\\/]*)
6879   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6880   ;;
6881   *)
6882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885   IFS=$as_save_IFS
6886   test -z "$as_dir" && as_dir=.
6887     for ac_exec_ext in '' $ac_executable_extensions; do
6888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891     break 2
6892   fi
6893 done
6894   done
6895 IFS=$as_save_IFS
6896 
6897   ;;
6898 esac
6899 fi
6900 EXPR=$ac_cv_path_EXPR
6901 if test -n "$EXPR"; then
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6903 $as_echo "$EXPR" >&6; }
6904 else
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908 
6909 
6910   test -n "$EXPR" && break
6911 done
6912 
6913     else
6914       # If it succeeded, then it was overridden by the user. We will use it
6915       # for the tool.
6916 
6917       # First remove it from the list of overridden variables, so we can test
6918       # for unknown variables in the end.
6919       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6920 
6921       # Check if the provided tool contains a complete path.
6922       tool_specified="$EXPR"
6923       tool_basename="${tool_specified##*/}"
6924       if test "x$tool_basename" = "x$tool_specified"; then
6925         # A command without a complete path is provided, search $PATH.
6926         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6927 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6928         # Extract the first word of "$tool_basename", so it can be a program name with args.
6929 set dummy $tool_basename; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_path_EXPR+:} false; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935   case $EXPR in
6936   [\\/]* | ?:[\\/]*)
6937   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6938   ;;
6939   *)
6940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945     for ac_exec_ext in '' $ac_executable_extensions; do
6946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952   done
6953 IFS=$as_save_IFS
6954 
6955   ;;
6956 esac
6957 fi
6958 EXPR=$ac_cv_path_EXPR
6959 if test -n "$EXPR"; then
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6961 $as_echo "$EXPR" >&6; }
6962 else
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966 
6967 
6968         if test "x$EXPR" = x; then
6969           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6970         fi
6971       else
6972         # Otherwise we believe it is a complete path. Use it as it is.
6973         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6974 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6975         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6976 $as_echo_n "checking for EXPR... " >&6; }
6977         if test ! -x "$tool_specified"; then
6978           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6979 $as_echo "not found" >&6; }
6980           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6981         fi
6982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6983 $as_echo "$tool_specified" >&6; }
6984       fi
6985     fi
6986   fi
6987 
6988 
6989 
6990   if test "x$EXPR" = x; then
6991     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6992   fi
6993 
6994 
6995 
6996 
6997 
6998   # Publish this variable in the help.
6999 
7000 
7001   if test "x$FILE" = x; then
7002     # The variable is not set by user, try to locate tool using the code snippet
7003     for ac_prog in file
7004 do
7005   # Extract the first word of "$ac_prog", so it can be a program name with args.
7006 set dummy $ac_prog; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_path_FILE+:} false; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   case $FILE in
7013   [\\/]* | ?:[\\/]*)
7014   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7015   ;;
7016   *)
7017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031 
7032   ;;
7033 esac
7034 fi
7035 FILE=$ac_cv_path_FILE
7036 if test -n "$FILE"; then
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7038 $as_echo "$FILE" >&6; }
7039 else
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043 
7044 
7045   test -n "$FILE" && break
7046 done
7047 
7048   else
7049     # The variable is set, but is it from the command line or the environment?
7050 
7051     # Try to remove the string !FILE! from our list.
7052     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7053     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7054       # If it failed, the variable was not from the command line. Ignore it,
7055       # but warn the user (except for BASH, which is always set by the calling BASH).
7056       if test "xFILE" != xBASH; then
7057         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7058 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7059       fi
7060       # Try to locate tool using the code snippet
7061       for ac_prog in file
7062 do
7063   # Extract the first word of "$ac_prog", so it can be a program name with args.
7064 set dummy $ac_prog; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_path_FILE+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   case $FILE in
7071   [\\/]* | ?:[\\/]*)
7072   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7073   ;;
7074   *)
7075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080     for ac_exec_ext in '' $ac_executable_extensions; do
7081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087   done
7088 IFS=$as_save_IFS
7089 
7090   ;;
7091 esac
7092 fi
7093 FILE=$ac_cv_path_FILE
7094 if test -n "$FILE"; then
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7096 $as_echo "$FILE" >&6; }
7097 else
7098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101 
7102 
7103   test -n "$FILE" && break
7104 done
7105 
7106     else
7107       # If it succeeded, then it was overridden by the user. We will use it
7108       # for the tool.
7109 
7110       # First remove it from the list of overridden variables, so we can test
7111       # for unknown variables in the end.
7112       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7113 
7114       # Check if the provided tool contains a complete path.
7115       tool_specified="$FILE"
7116       tool_basename="${tool_specified##*/}"
7117       if test "x$tool_basename" = "x$tool_specified"; then
7118         # A command without a complete path is provided, search $PATH.
7119         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7120 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7121         # Extract the first word of "$tool_basename", so it can be a program name with args.
7122 set dummy $tool_basename; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_path_FILE+:} false; then :
7126   $as_echo_n "(cached) " >&6
7127 else
7128   case $FILE in
7129   [\\/]* | ?:[\\/]*)
7130   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7131   ;;
7132   *)
7133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138     for ac_exec_ext in '' $ac_executable_extensions; do
7139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145   done
7146 IFS=$as_save_IFS
7147 
7148   ;;
7149 esac
7150 fi
7151 FILE=$ac_cv_path_FILE
7152 if test -n "$FILE"; then
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7154 $as_echo "$FILE" >&6; }
7155 else
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159 
7160 
7161         if test "x$FILE" = x; then
7162           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7163         fi
7164       else
7165         # Otherwise we believe it is a complete path. Use it as it is.
7166         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7167 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7169 $as_echo_n "checking for FILE... " >&6; }
7170         if test ! -x "$tool_specified"; then
7171           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7172 $as_echo "not found" >&6; }
7173           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7174         fi
7175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7176 $as_echo "$tool_specified" >&6; }
7177       fi
7178     fi
7179   fi
7180 
7181 
7182 
7183   if test "x$FILE" = x; then
7184     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7185   fi
7186 
7187 
7188 
7189 
7190 
7191   # Publish this variable in the help.
7192 
7193 
7194   if test "x$FIND" = x; then
7195     # The variable is not set by user, try to locate tool using the code snippet
7196     for ac_prog in find
7197 do
7198   # Extract the first word of "$ac_prog", so it can be a program name with args.
7199 set dummy $ac_prog; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_path_FIND+:} false; then :
7203   $as_echo_n "(cached) " >&6
7204 else
7205   case $FIND in
7206   [\\/]* | ?:[\\/]*)
7207   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7208   ;;
7209   *)
7210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215     for ac_exec_ext in '' $ac_executable_extensions; do
7216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222   done
7223 IFS=$as_save_IFS
7224 
7225   ;;
7226 esac
7227 fi
7228 FIND=$ac_cv_path_FIND
7229 if test -n "$FIND"; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7231 $as_echo "$FIND" >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236 
7237 
7238   test -n "$FIND" && break
7239 done
7240 
7241   else
7242     # The variable is set, but is it from the command line or the environment?
7243 
7244     # Try to remove the string !FIND! from our list.
7245     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7246     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7247       # If it failed, the variable was not from the command line. Ignore it,
7248       # but warn the user (except for BASH, which is always set by the calling BASH).
7249       if test "xFIND" != xBASH; then
7250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7251 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7252       fi
7253       # Try to locate tool using the code snippet
7254       for ac_prog in find
7255 do
7256   # Extract the first word of "$ac_prog", so it can be a program name with args.
7257 set dummy $ac_prog; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_path_FIND+:} false; then :
7261   $as_echo_n "(cached) " >&6
7262 else
7263   case $FIND in
7264   [\\/]* | ?:[\\/]*)
7265   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7266   ;;
7267   *)
7268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282 
7283   ;;
7284 esac
7285 fi
7286 FIND=$ac_cv_path_FIND
7287 if test -n "$FIND"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7289 $as_echo "$FIND" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294 
7295 
7296   test -n "$FIND" && break
7297 done
7298 
7299     else
7300       # If it succeeded, then it was overridden by the user. We will use it
7301       # for the tool.
7302 
7303       # First remove it from the list of overridden variables, so we can test
7304       # for unknown variables in the end.
7305       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7306 
7307       # Check if the provided tool contains a complete path.
7308       tool_specified="$FIND"
7309       tool_basename="${tool_specified##*/}"
7310       if test "x$tool_basename" = "x$tool_specified"; then
7311         # A command without a complete path is provided, search $PATH.
7312         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7313 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7314         # Extract the first word of "$tool_basename", so it can be a program name with args.
7315 set dummy $tool_basename; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_path_FIND+:} false; then :
7319   $as_echo_n "(cached) " >&6
7320 else
7321   case $FIND in
7322   [\\/]* | ?:[\\/]*)
7323   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7324   ;;
7325   *)
7326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331     for ac_exec_ext in '' $ac_executable_extensions; do
7332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338   done
7339 IFS=$as_save_IFS
7340 
7341   ;;
7342 esac
7343 fi
7344 FIND=$ac_cv_path_FIND
7345 if test -n "$FIND"; then
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7347 $as_echo "$FIND" >&6; }
7348 else
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352 
7353 
7354         if test "x$FIND" = x; then
7355           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7356         fi
7357       else
7358         # Otherwise we believe it is a complete path. Use it as it is.
7359         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7360 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7362 $as_echo_n "checking for FIND... " >&6; }
7363         if test ! -x "$tool_specified"; then
7364           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7365 $as_echo "not found" >&6; }
7366           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7367         fi
7368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7369 $as_echo "$tool_specified" >&6; }
7370       fi
7371     fi
7372   fi
7373 
7374 
7375 
7376   if test "x$FIND" = x; then
7377     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7378   fi
7379 
7380 
7381 
7382 
7383 
7384   # Publish this variable in the help.
7385 
7386 
7387   if test "x$HEAD" = x; then
7388     # The variable is not set by user, try to locate tool using the code snippet
7389     for ac_prog in head
7390 do
7391   # Extract the first word of "$ac_prog", so it can be a program name with args.
7392 set dummy $ac_prog; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_path_HEAD+:} false; then :
7396   $as_echo_n "(cached) " >&6
7397 else
7398   case $HEAD in
7399   [\\/]* | ?:[\\/]*)
7400   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7401   ;;
7402   *)
7403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408     for ac_exec_ext in '' $ac_executable_extensions; do
7409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415   done
7416 IFS=$as_save_IFS
7417 
7418   ;;
7419 esac
7420 fi
7421 HEAD=$ac_cv_path_HEAD
7422 if test -n "$HEAD"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7424 $as_echo "$HEAD" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429 
7430 
7431   test -n "$HEAD" && break
7432 done
7433 
7434   else
7435     # The variable is set, but is it from the command line or the environment?
7436 
7437     # Try to remove the string !HEAD! from our list.
7438     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7439     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7440       # If it failed, the variable was not from the command line. Ignore it,
7441       # but warn the user (except for BASH, which is always set by the calling BASH).
7442       if test "xHEAD" != xBASH; then
7443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7444 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7445       fi
7446       # Try to locate tool using the code snippet
7447       for ac_prog in head
7448 do
7449   # Extract the first word of "$ac_prog", so it can be a program name with args.
7450 set dummy $ac_prog; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_path_HEAD+:} false; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   case $HEAD in
7457   [\\/]* | ?:[\\/]*)
7458   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7459   ;;
7460   *)
7461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466     for ac_exec_ext in '' $ac_executable_extensions; do
7467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473   done
7474 IFS=$as_save_IFS
7475 
7476   ;;
7477 esac
7478 fi
7479 HEAD=$ac_cv_path_HEAD
7480 if test -n "$HEAD"; then
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7482 $as_echo "$HEAD" >&6; }
7483 else
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487 
7488 
7489   test -n "$HEAD" && break
7490 done
7491 
7492     else
7493       # If it succeeded, then it was overridden by the user. We will use it
7494       # for the tool.
7495 
7496       # First remove it from the list of overridden variables, so we can test
7497       # for unknown variables in the end.
7498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7499 
7500       # Check if the provided tool contains a complete path.
7501       tool_specified="$HEAD"
7502       tool_basename="${tool_specified##*/}"
7503       if test "x$tool_basename" = "x$tool_specified"; then
7504         # A command without a complete path is provided, search $PATH.
7505         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7506 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7507         # Extract the first word of "$tool_basename", so it can be a program name with args.
7508 set dummy $tool_basename; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_path_HEAD+:} false; then :
7512   $as_echo_n "(cached) " >&6
7513 else
7514   case $HEAD in
7515   [\\/]* | ?:[\\/]*)
7516   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7517   ;;
7518   *)
7519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524     for ac_exec_ext in '' $ac_executable_extensions; do
7525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531   done
7532 IFS=$as_save_IFS
7533 
7534   ;;
7535 esac
7536 fi
7537 HEAD=$ac_cv_path_HEAD
7538 if test -n "$HEAD"; then
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7540 $as_echo "$HEAD" >&6; }
7541 else
7542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545 
7546 
7547         if test "x$HEAD" = x; then
7548           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7549         fi
7550       else
7551         # Otherwise we believe it is a complete path. Use it as it is.
7552         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7553 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7555 $as_echo_n "checking for HEAD... " >&6; }
7556         if test ! -x "$tool_specified"; then
7557           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7558 $as_echo "not found" >&6; }
7559           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7560         fi
7561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7562 $as_echo "$tool_specified" >&6; }
7563       fi
7564     fi
7565   fi
7566 
7567 
7568 
7569   if test "x$HEAD" = x; then
7570     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7571   fi
7572 
7573 
7574 
7575 
7576 
7577   # Publish this variable in the help.
7578 
7579 
7580   if test "x$LN" = x; then
7581     # The variable is not set by user, try to locate tool using the code snippet
7582     for ac_prog in ln
7583 do
7584   # Extract the first word of "$ac_prog", so it can be a program name with args.
7585 set dummy $ac_prog; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_path_LN+:} false; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   case $LN in
7592   [\\/]* | ?:[\\/]*)
7593   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7594   ;;
7595   *)
7596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601     for ac_exec_ext in '' $ac_executable_extensions; do
7602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608   done
7609 IFS=$as_save_IFS
7610 
7611   ;;
7612 esac
7613 fi
7614 LN=$ac_cv_path_LN
7615 if test -n "$LN"; then
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7617 $as_echo "$LN" >&6; }
7618 else
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622 
7623 
7624   test -n "$LN" && break
7625 done
7626 
7627   else
7628     # The variable is set, but is it from the command line or the environment?
7629 
7630     # Try to remove the string !LN! from our list.
7631     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7632     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7633       # If it failed, the variable was not from the command line. Ignore it,
7634       # but warn the user (except for BASH, which is always set by the calling BASH).
7635       if test "xLN" != xBASH; then
7636         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7637 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7638       fi
7639       # Try to locate tool using the code snippet
7640       for ac_prog in ln
7641 do
7642   # Extract the first word of "$ac_prog", so it can be a program name with args.
7643 set dummy $ac_prog; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_path_LN+:} false; then :
7647   $as_echo_n "(cached) " >&6
7648 else
7649   case $LN in
7650   [\\/]* | ?:[\\/]*)
7651   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7652   ;;
7653   *)
7654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659     for ac_exec_ext in '' $ac_executable_extensions; do
7660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666   done
7667 IFS=$as_save_IFS
7668 
7669   ;;
7670 esac
7671 fi
7672 LN=$ac_cv_path_LN
7673 if test -n "$LN"; then
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7675 $as_echo "$LN" >&6; }
7676 else
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 fi
7680 
7681 
7682   test -n "$LN" && break
7683 done
7684 
7685     else
7686       # If it succeeded, then it was overridden by the user. We will use it
7687       # for the tool.
7688 
7689       # First remove it from the list of overridden variables, so we can test
7690       # for unknown variables in the end.
7691       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7692 
7693       # Check if the provided tool contains a complete path.
7694       tool_specified="$LN"
7695       tool_basename="${tool_specified##*/}"
7696       if test "x$tool_basename" = "x$tool_specified"; then
7697         # A command without a complete path is provided, search $PATH.
7698         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7699 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7700         # Extract the first word of "$tool_basename", so it can be a program name with args.
7701 set dummy $tool_basename; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_path_LN+:} false; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   case $LN in
7708   [\\/]* | ?:[\\/]*)
7709   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7710   ;;
7711   *)
7712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717     for ac_exec_ext in '' $ac_executable_extensions; do
7718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724   done
7725 IFS=$as_save_IFS
7726 
7727   ;;
7728 esac
7729 fi
7730 LN=$ac_cv_path_LN
7731 if test -n "$LN"; then
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7733 $as_echo "$LN" >&6; }
7734 else
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738 
7739 
7740         if test "x$LN" = x; then
7741           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7742         fi
7743       else
7744         # Otherwise we believe it is a complete path. Use it as it is.
7745         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7746 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7748 $as_echo_n "checking for LN... " >&6; }
7749         if test ! -x "$tool_specified"; then
7750           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7751 $as_echo "not found" >&6; }
7752           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7753         fi
7754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7755 $as_echo "$tool_specified" >&6; }
7756       fi
7757     fi
7758   fi
7759 
7760 
7761 
7762   if test "x$LN" = x; then
7763     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7764   fi
7765 
7766 
7767 
7768 
7769 
7770   # Publish this variable in the help.
7771 
7772 
7773   if test "x$LS" = x; then
7774     # The variable is not set by user, try to locate tool using the code snippet
7775     for ac_prog in ls
7776 do
7777   # Extract the first word of "$ac_prog", so it can be a program name with args.
7778 set dummy $ac_prog; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_path_LS+:} false; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   case $LS in
7785   [\\/]* | ?:[\\/]*)
7786   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7787   ;;
7788   *)
7789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792   IFS=$as_save_IFS
7793   test -z "$as_dir" && as_dir=.
7794     for ac_exec_ext in '' $ac_executable_extensions; do
7795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801   done
7802 IFS=$as_save_IFS
7803 
7804   ;;
7805 esac
7806 fi
7807 LS=$ac_cv_path_LS
7808 if test -n "$LS"; then
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7810 $as_echo "$LS" >&6; }
7811 else
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815 
7816 
7817   test -n "$LS" && break
7818 done
7819 
7820   else
7821     # The variable is set, but is it from the command line or the environment?
7822 
7823     # Try to remove the string !LS! from our list.
7824     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7825     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7826       # If it failed, the variable was not from the command line. Ignore it,
7827       # but warn the user (except for BASH, which is always set by the calling BASH).
7828       if test "xLS" != xBASH; then
7829         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7830 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7831       fi
7832       # Try to locate tool using the code snippet
7833       for ac_prog in ls
7834 do
7835   # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy $ac_prog; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_path_LS+:} false; then :
7840   $as_echo_n "(cached) " >&6
7841 else
7842   case $LS in
7843   [\\/]* | ?:[\\/]*)
7844   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7845   ;;
7846   *)
7847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852     for ac_exec_ext in '' $ac_executable_extensions; do
7853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859   done
7860 IFS=$as_save_IFS
7861 
7862   ;;
7863 esac
7864 fi
7865 LS=$ac_cv_path_LS
7866 if test -n "$LS"; then
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7868 $as_echo "$LS" >&6; }
7869 else
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873 
7874 
7875   test -n "$LS" && break
7876 done
7877 
7878     else
7879       # If it succeeded, then it was overridden by the user. We will use it
7880       # for the tool.
7881 
7882       # First remove it from the list of overridden variables, so we can test
7883       # for unknown variables in the end.
7884       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7885 
7886       # Check if the provided tool contains a complete path.
7887       tool_specified="$LS"
7888       tool_basename="${tool_specified##*/}"
7889       if test "x$tool_basename" = "x$tool_specified"; then
7890         # A command without a complete path is provided, search $PATH.
7891         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7892 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7893         # Extract the first word of "$tool_basename", so it can be a program name with args.
7894 set dummy $tool_basename; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_path_LS+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   case $LS in
7901   [\\/]* | ?:[\\/]*)
7902   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7903   ;;
7904   *)
7905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910     for ac_exec_ext in '' $ac_executable_extensions; do
7911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917   done
7918 IFS=$as_save_IFS
7919 
7920   ;;
7921 esac
7922 fi
7923 LS=$ac_cv_path_LS
7924 if test -n "$LS"; then
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7926 $as_echo "$LS" >&6; }
7927 else
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931 
7932 
7933         if test "x$LS" = x; then
7934           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7935         fi
7936       else
7937         # Otherwise we believe it is a complete path. Use it as it is.
7938         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7939 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7941 $as_echo_n "checking for LS... " >&6; }
7942         if test ! -x "$tool_specified"; then
7943           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7944 $as_echo "not found" >&6; }
7945           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7946         fi
7947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7948 $as_echo "$tool_specified" >&6; }
7949       fi
7950     fi
7951   fi
7952 
7953 
7954 
7955   if test "x$LS" = x; then
7956     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7957   fi
7958 
7959 
7960 
7961 
7962 
7963   # Publish this variable in the help.
7964 
7965 
7966   if test "x$MKDIR" = x; then
7967     # The variable is not set by user, try to locate tool using the code snippet
7968     for ac_prog in mkdir
7969 do
7970   # Extract the first word of "$ac_prog", so it can be a program name with args.
7971 set dummy $ac_prog; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_path_MKDIR+:} false; then :
7975   $as_echo_n "(cached) " >&6
7976 else
7977   case $MKDIR in
7978   [\\/]* | ?:[\\/]*)
7979   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7980   ;;
7981   *)
7982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985   IFS=$as_save_IFS
7986   test -z "$as_dir" && as_dir=.
7987     for ac_exec_ext in '' $ac_executable_extensions; do
7988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991     break 2
7992   fi
7993 done
7994   done
7995 IFS=$as_save_IFS
7996 
7997   ;;
7998 esac
7999 fi
8000 MKDIR=$ac_cv_path_MKDIR
8001 if test -n "$MKDIR"; then
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8003 $as_echo "$MKDIR" >&6; }
8004 else
8005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008 
8009 
8010   test -n "$MKDIR" && break
8011 done
8012 
8013   else
8014     # The variable is set, but is it from the command line or the environment?
8015 
8016     # Try to remove the string !MKDIR! from our list.
8017     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8018     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8019       # If it failed, the variable was not from the command line. Ignore it,
8020       # but warn the user (except for BASH, which is always set by the calling BASH).
8021       if test "xMKDIR" != xBASH; then
8022         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8023 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8024       fi
8025       # Try to locate tool using the code snippet
8026       for ac_prog in mkdir
8027 do
8028   # Extract the first word of "$ac_prog", so it can be a program name with args.
8029 set dummy $ac_prog; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if ${ac_cv_path_MKDIR+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   case $MKDIR in
8036   [\\/]* | ?:[\\/]*)
8037   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8038   ;;
8039   *)
8040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH
8042 do
8043   IFS=$as_save_IFS
8044   test -z "$as_dir" && as_dir=.
8045     for ac_exec_ext in '' $ac_executable_extensions; do
8046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8047     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049     break 2
8050   fi
8051 done
8052   done
8053 IFS=$as_save_IFS
8054 
8055   ;;
8056 esac
8057 fi
8058 MKDIR=$ac_cv_path_MKDIR
8059 if test -n "$MKDIR"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8061 $as_echo "$MKDIR" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066 
8067 
8068   test -n "$MKDIR" && break
8069 done
8070 
8071     else
8072       # If it succeeded, then it was overridden by the user. We will use it
8073       # for the tool.
8074 
8075       # First remove it from the list of overridden variables, so we can test
8076       # for unknown variables in the end.
8077       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8078 
8079       # Check if the provided tool contains a complete path.
8080       tool_specified="$MKDIR"
8081       tool_basename="${tool_specified##*/}"
8082       if test "x$tool_basename" = "x$tool_specified"; then
8083         # A command without a complete path is provided, search $PATH.
8084         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8085 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8086         # Extract the first word of "$tool_basename", so it can be a program name with args.
8087 set dummy $tool_basename; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_path_MKDIR+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   case $MKDIR in
8094   [\\/]* | ?:[\\/]*)
8095   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8096   ;;
8097   *)
8098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101   IFS=$as_save_IFS
8102   test -z "$as_dir" && as_dir=.
8103     for ac_exec_ext in '' $ac_executable_extensions; do
8104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107     break 2
8108   fi
8109 done
8110   done
8111 IFS=$as_save_IFS
8112 
8113   ;;
8114 esac
8115 fi
8116 MKDIR=$ac_cv_path_MKDIR
8117 if test -n "$MKDIR"; then
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8119 $as_echo "$MKDIR" >&6; }
8120 else
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124 
8125 
8126         if test "x$MKDIR" = x; then
8127           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8128         fi
8129       else
8130         # Otherwise we believe it is a complete path. Use it as it is.
8131         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8132 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8134 $as_echo_n "checking for MKDIR... " >&6; }
8135         if test ! -x "$tool_specified"; then
8136           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8137 $as_echo "not found" >&6; }
8138           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8139         fi
8140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8141 $as_echo "$tool_specified" >&6; }
8142       fi
8143     fi
8144   fi
8145 
8146 
8147 
8148   if test "x$MKDIR" = x; then
8149     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8150   fi
8151 
8152 
8153 
8154 
8155 
8156   # Publish this variable in the help.
8157 
8158 
8159   if test "x$MKTEMP" = x; then
8160     # The variable is not set by user, try to locate tool using the code snippet
8161     for ac_prog in mktemp
8162 do
8163   # Extract the first word of "$ac_prog", so it can be a program name with args.
8164 set dummy $ac_prog; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if ${ac_cv_path_MKTEMP+:} false; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170   case $MKTEMP in
8171   [\\/]* | ?:[\\/]*)
8172   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8173   ;;
8174   *)
8175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180     for ac_exec_ext in '' $ac_executable_extensions; do
8181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187   done
8188 IFS=$as_save_IFS
8189 
8190   ;;
8191 esac
8192 fi
8193 MKTEMP=$ac_cv_path_MKTEMP
8194 if test -n "$MKTEMP"; then
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8196 $as_echo "$MKTEMP" >&6; }
8197 else
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 fi
8201 
8202 
8203   test -n "$MKTEMP" && break
8204 done
8205 
8206   else
8207     # The variable is set, but is it from the command line or the environment?
8208 
8209     # Try to remove the string !MKTEMP! from our list.
8210     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8211     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8212       # If it failed, the variable was not from the command line. Ignore it,
8213       # but warn the user (except for BASH, which is always set by the calling BASH).
8214       if test "xMKTEMP" != xBASH; then
8215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8216 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8217       fi
8218       # Try to locate tool using the code snippet
8219       for ac_prog in mktemp
8220 do
8221   # Extract the first word of "$ac_prog", so it can be a program name with args.
8222 set dummy $ac_prog; ac_word=$2
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 $as_echo_n "checking for $ac_word... " >&6; }
8225 if ${ac_cv_path_MKTEMP+:} false; then :
8226   $as_echo_n "(cached) " >&6
8227 else
8228   case $MKTEMP in
8229   [\\/]* | ?:[\\/]*)
8230   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8231   ;;
8232   *)
8233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236   IFS=$as_save_IFS
8237   test -z "$as_dir" && as_dir=.
8238     for ac_exec_ext in '' $ac_executable_extensions; do
8239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242     break 2
8243   fi
8244 done
8245   done
8246 IFS=$as_save_IFS
8247 
8248   ;;
8249 esac
8250 fi
8251 MKTEMP=$ac_cv_path_MKTEMP
8252 if test -n "$MKTEMP"; then
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8254 $as_echo "$MKTEMP" >&6; }
8255 else
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 fi
8259 
8260 
8261   test -n "$MKTEMP" && break
8262 done
8263 
8264     else
8265       # If it succeeded, then it was overridden by the user. We will use it
8266       # for the tool.
8267 
8268       # First remove it from the list of overridden variables, so we can test
8269       # for unknown variables in the end.
8270       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8271 
8272       # Check if the provided tool contains a complete path.
8273       tool_specified="$MKTEMP"
8274       tool_basename="${tool_specified##*/}"
8275       if test "x$tool_basename" = "x$tool_specified"; then
8276         # A command without a complete path is provided, search $PATH.
8277         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8278 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8279         # Extract the first word of "$tool_basename", so it can be a program name with args.
8280 set dummy $tool_basename; ac_word=$2
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282 $as_echo_n "checking for $ac_word... " >&6; }
8283 if ${ac_cv_path_MKTEMP+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   case $MKTEMP in
8287   [\\/]* | ?:[\\/]*)
8288   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8289   ;;
8290   *)
8291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294   IFS=$as_save_IFS
8295   test -z "$as_dir" && as_dir=.
8296     for ac_exec_ext in '' $ac_executable_extensions; do
8297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300     break 2
8301   fi
8302 done
8303   done
8304 IFS=$as_save_IFS
8305 
8306   ;;
8307 esac
8308 fi
8309 MKTEMP=$ac_cv_path_MKTEMP
8310 if test -n "$MKTEMP"; then
8311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8312 $as_echo "$MKTEMP" >&6; }
8313 else
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8316 fi
8317 
8318 
8319         if test "x$MKTEMP" = x; then
8320           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8321         fi
8322       else
8323         # Otherwise we believe it is a complete path. Use it as it is.
8324         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8325 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8327 $as_echo_n "checking for MKTEMP... " >&6; }
8328         if test ! -x "$tool_specified"; then
8329           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8330 $as_echo "not found" >&6; }
8331           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8332         fi
8333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8334 $as_echo "$tool_specified" >&6; }
8335       fi
8336     fi
8337   fi
8338 
8339 
8340 
8341   if test "x$MKTEMP" = x; then
8342     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8343   fi
8344 
8345 
8346 
8347 
8348 
8349   # Publish this variable in the help.
8350 
8351 
8352   if test "x$MV" = x; then
8353     # The variable is not set by user, try to locate tool using the code snippet
8354     for ac_prog in mv
8355 do
8356   # Extract the first word of "$ac_prog", so it can be a program name with args.
8357 set dummy $ac_prog; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_path_MV+:} false; then :
8361   $as_echo_n "(cached) " >&6
8362 else
8363   case $MV in
8364   [\\/]* | ?:[\\/]*)
8365   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8366   ;;
8367   *)
8368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371   IFS=$as_save_IFS
8372   test -z "$as_dir" && as_dir=.
8373     for ac_exec_ext in '' $ac_executable_extensions; do
8374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8375     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377     break 2
8378   fi
8379 done
8380   done
8381 IFS=$as_save_IFS
8382 
8383   ;;
8384 esac
8385 fi
8386 MV=$ac_cv_path_MV
8387 if test -n "$MV"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8389 $as_echo "$MV" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394 
8395 
8396   test -n "$MV" && break
8397 done
8398 
8399   else
8400     # The variable is set, but is it from the command line or the environment?
8401 
8402     # Try to remove the string !MV! from our list.
8403     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8404     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8405       # If it failed, the variable was not from the command line. Ignore it,
8406       # but warn the user (except for BASH, which is always set by the calling BASH).
8407       if test "xMV" != xBASH; then
8408         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8409 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8410       fi
8411       # Try to locate tool using the code snippet
8412       for ac_prog in mv
8413 do
8414   # Extract the first word of "$ac_prog", so it can be a program name with args.
8415 set dummy $ac_prog; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_path_MV+:} false; then :
8419   $as_echo_n "(cached) " >&6
8420 else
8421   case $MV in
8422   [\\/]* | ?:[\\/]*)
8423   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8424   ;;
8425   *)
8426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429   IFS=$as_save_IFS
8430   test -z "$as_dir" && as_dir=.
8431     for ac_exec_ext in '' $ac_executable_extensions; do
8432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435     break 2
8436   fi
8437 done
8438   done
8439 IFS=$as_save_IFS
8440 
8441   ;;
8442 esac
8443 fi
8444 MV=$ac_cv_path_MV
8445 if test -n "$MV"; then
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8447 $as_echo "$MV" >&6; }
8448 else
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8451 fi
8452 
8453 
8454   test -n "$MV" && break
8455 done
8456 
8457     else
8458       # If it succeeded, then it was overridden by the user. We will use it
8459       # for the tool.
8460 
8461       # First remove it from the list of overridden variables, so we can test
8462       # for unknown variables in the end.
8463       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8464 
8465       # Check if the provided tool contains a complete path.
8466       tool_specified="$MV"
8467       tool_basename="${tool_specified##*/}"
8468       if test "x$tool_basename" = "x$tool_specified"; then
8469         # A command without a complete path is provided, search $PATH.
8470         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8471 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8472         # Extract the first word of "$tool_basename", so it can be a program name with args.
8473 set dummy $tool_basename; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if ${ac_cv_path_MV+:} false; then :
8477   $as_echo_n "(cached) " >&6
8478 else
8479   case $MV in
8480   [\\/]* | ?:[\\/]*)
8481   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8482   ;;
8483   *)
8484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8486 do
8487   IFS=$as_save_IFS
8488   test -z "$as_dir" && as_dir=.
8489     for ac_exec_ext in '' $ac_executable_extensions; do
8490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8491     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493     break 2
8494   fi
8495 done
8496   done
8497 IFS=$as_save_IFS
8498 
8499   ;;
8500 esac
8501 fi
8502 MV=$ac_cv_path_MV
8503 if test -n "$MV"; then
8504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8505 $as_echo "$MV" >&6; }
8506 else
8507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8509 fi
8510 
8511 
8512         if test "x$MV" = x; then
8513           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8514         fi
8515       else
8516         # Otherwise we believe it is a complete path. Use it as it is.
8517         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8518 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8519         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8520 $as_echo_n "checking for MV... " >&6; }
8521         if test ! -x "$tool_specified"; then
8522           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8523 $as_echo "not found" >&6; }
8524           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8525         fi
8526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8527 $as_echo "$tool_specified" >&6; }
8528       fi
8529     fi
8530   fi
8531 
8532 
8533 
8534   if test "x$MV" = x; then
8535     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8536   fi
8537 
8538 
8539 
8540 
8541 
8542   # Publish this variable in the help.
8543 
8544 
8545   if test "x$NAWK" = x; then
8546     # The variable is not set by user, try to locate tool using the code snippet
8547     for ac_prog in nawk gawk awk
8548 do
8549   # Extract the first word of "$ac_prog", so it can be a program name with args.
8550 set dummy $ac_prog; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if ${ac_cv_path_NAWK+:} false; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   case $NAWK in
8557   [\\/]* | ?:[\\/]*)
8558   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8559   ;;
8560   *)
8561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8563 do
8564   IFS=$as_save_IFS
8565   test -z "$as_dir" && as_dir=.
8566     for ac_exec_ext in '' $ac_executable_extensions; do
8567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570     break 2
8571   fi
8572 done
8573   done
8574 IFS=$as_save_IFS
8575 
8576   ;;
8577 esac
8578 fi
8579 NAWK=$ac_cv_path_NAWK
8580 if test -n "$NAWK"; then
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8582 $as_echo "$NAWK" >&6; }
8583 else
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587 
8588 
8589   test -n "$NAWK" && break
8590 done
8591 
8592   else
8593     # The variable is set, but is it from the command line or the environment?
8594 
8595     # Try to remove the string !NAWK! from our list.
8596     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8597     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8598       # If it failed, the variable was not from the command line. Ignore it,
8599       # but warn the user (except for BASH, which is always set by the calling BASH).
8600       if test "xNAWK" != xBASH; then
8601         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8602 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8603       fi
8604       # Try to locate tool using the code snippet
8605       for ac_prog in nawk gawk awk
8606 do
8607   # Extract the first word of "$ac_prog", so it can be a program name with args.
8608 set dummy $ac_prog; ac_word=$2
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8610 $as_echo_n "checking for $ac_word... " >&6; }
8611 if ${ac_cv_path_NAWK+:} false; then :
8612   $as_echo_n "(cached) " >&6
8613 else
8614   case $NAWK in
8615   [\\/]* | ?:[\\/]*)
8616   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8617   ;;
8618   *)
8619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8621 do
8622   IFS=$as_save_IFS
8623   test -z "$as_dir" && as_dir=.
8624     for ac_exec_ext in '' $ac_executable_extensions; do
8625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628     break 2
8629   fi
8630 done
8631   done
8632 IFS=$as_save_IFS
8633 
8634   ;;
8635 esac
8636 fi
8637 NAWK=$ac_cv_path_NAWK
8638 if test -n "$NAWK"; then
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8640 $as_echo "$NAWK" >&6; }
8641 else
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645 
8646 
8647   test -n "$NAWK" && break
8648 done
8649 
8650     else
8651       # If it succeeded, then it was overridden by the user. We will use it
8652       # for the tool.
8653 
8654       # First remove it from the list of overridden variables, so we can test
8655       # for unknown variables in the end.
8656       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8657 
8658       # Check if the provided tool contains a complete path.
8659       tool_specified="$NAWK"
8660       tool_basename="${tool_specified##*/}"
8661       if test "x$tool_basename" = "x$tool_specified"; then
8662         # A command without a complete path is provided, search $PATH.
8663         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8664 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8665         # Extract the first word of "$tool_basename", so it can be a program name with args.
8666 set dummy $tool_basename; ac_word=$2
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 $as_echo_n "checking for $ac_word... " >&6; }
8669 if ${ac_cv_path_NAWK+:} false; then :
8670   $as_echo_n "(cached) " >&6
8671 else
8672   case $NAWK in
8673   [\\/]* | ?:[\\/]*)
8674   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8675   ;;
8676   *)
8677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8679 do
8680   IFS=$as_save_IFS
8681   test -z "$as_dir" && as_dir=.
8682     for ac_exec_ext in '' $ac_executable_extensions; do
8683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686     break 2
8687   fi
8688 done
8689   done
8690 IFS=$as_save_IFS
8691 
8692   ;;
8693 esac
8694 fi
8695 NAWK=$ac_cv_path_NAWK
8696 if test -n "$NAWK"; then
8697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8698 $as_echo "$NAWK" >&6; }
8699 else
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 $as_echo "no" >&6; }
8702 fi
8703 
8704 
8705         if test "x$NAWK" = x; then
8706           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8707         fi
8708       else
8709         # Otherwise we believe it is a complete path. Use it as it is.
8710         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8711 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8713 $as_echo_n "checking for NAWK... " >&6; }
8714         if test ! -x "$tool_specified"; then
8715           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8716 $as_echo "not found" >&6; }
8717           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8718         fi
8719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8720 $as_echo "$tool_specified" >&6; }
8721       fi
8722     fi
8723   fi
8724 
8725 
8726 
8727   if test "x$NAWK" = x; then
8728     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8729   fi
8730 
8731 
8732 
8733 
8734 
8735   # Publish this variable in the help.
8736 
8737 
8738   if test "x$PRINTF" = x; then
8739     # The variable is not set by user, try to locate tool using the code snippet
8740     for ac_prog in printf
8741 do
8742   # Extract the first word of "$ac_prog", so it can be a program name with args.
8743 set dummy $ac_prog; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if ${ac_cv_path_PRINTF+:} false; then :
8747   $as_echo_n "(cached) " >&6
8748 else
8749   case $PRINTF in
8750   [\\/]* | ?:[\\/]*)
8751   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8752   ;;
8753   *)
8754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757   IFS=$as_save_IFS
8758   test -z "$as_dir" && as_dir=.
8759     for ac_exec_ext in '' $ac_executable_extensions; do
8760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763     break 2
8764   fi
8765 done
8766   done
8767 IFS=$as_save_IFS
8768 
8769   ;;
8770 esac
8771 fi
8772 PRINTF=$ac_cv_path_PRINTF
8773 if test -n "$PRINTF"; then
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8775 $as_echo "$PRINTF" >&6; }
8776 else
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8779 fi
8780 
8781 
8782   test -n "$PRINTF" && break
8783 done
8784 
8785   else
8786     # The variable is set, but is it from the command line or the environment?
8787 
8788     # Try to remove the string !PRINTF! from our list.
8789     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8790     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8791       # If it failed, the variable was not from the command line. Ignore it,
8792       # but warn the user (except for BASH, which is always set by the calling BASH).
8793       if test "xPRINTF" != xBASH; then
8794         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8795 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8796       fi
8797       # Try to locate tool using the code snippet
8798       for ac_prog in printf
8799 do
8800   # Extract the first word of "$ac_prog", so it can be a program name with args.
8801 set dummy $ac_prog; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_path_PRINTF+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   case $PRINTF in
8808   [\\/]* | ?:[\\/]*)
8809   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8810   ;;
8811   *)
8812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815   IFS=$as_save_IFS
8816   test -z "$as_dir" && as_dir=.
8817     for ac_exec_ext in '' $ac_executable_extensions; do
8818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821     break 2
8822   fi
8823 done
8824   done
8825 IFS=$as_save_IFS
8826 
8827   ;;
8828 esac
8829 fi
8830 PRINTF=$ac_cv_path_PRINTF
8831 if test -n "$PRINTF"; then
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8833 $as_echo "$PRINTF" >&6; }
8834 else
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8837 fi
8838 
8839 
8840   test -n "$PRINTF" && break
8841 done
8842 
8843     else
8844       # If it succeeded, then it was overridden by the user. We will use it
8845       # for the tool.
8846 
8847       # First remove it from the list of overridden variables, so we can test
8848       # for unknown variables in the end.
8849       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8850 
8851       # Check if the provided tool contains a complete path.
8852       tool_specified="$PRINTF"
8853       tool_basename="${tool_specified##*/}"
8854       if test "x$tool_basename" = "x$tool_specified"; then
8855         # A command without a complete path is provided, search $PATH.
8856         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8857 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8858         # Extract the first word of "$tool_basename", so it can be a program name with args.
8859 set dummy $tool_basename; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_path_PRINTF+:} false; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   case $PRINTF in
8866   [\\/]* | ?:[\\/]*)
8867   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8868   ;;
8869   *)
8870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8872 do
8873   IFS=$as_save_IFS
8874   test -z "$as_dir" && as_dir=.
8875     for ac_exec_ext in '' $ac_executable_extensions; do
8876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8877     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879     break 2
8880   fi
8881 done
8882   done
8883 IFS=$as_save_IFS
8884 
8885   ;;
8886 esac
8887 fi
8888 PRINTF=$ac_cv_path_PRINTF
8889 if test -n "$PRINTF"; then
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8891 $as_echo "$PRINTF" >&6; }
8892 else
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8895 fi
8896 
8897 
8898         if test "x$PRINTF" = x; then
8899           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8900         fi
8901       else
8902         # Otherwise we believe it is a complete path. Use it as it is.
8903         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8904 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8906 $as_echo_n "checking for PRINTF... " >&6; }
8907         if test ! -x "$tool_specified"; then
8908           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8909 $as_echo "not found" >&6; }
8910           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8911         fi
8912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8913 $as_echo "$tool_specified" >&6; }
8914       fi
8915     fi
8916   fi
8917 
8918 
8919 
8920   if test "x$PRINTF" = x; then
8921     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8922   fi
8923 
8924 
8925 
8926 
8927 
8928   # Publish this variable in the help.
8929 
8930 
8931   if test "x$RM" = x; then
8932     # The variable is not set by user, try to locate tool using the code snippet
8933     for ac_prog in rm
8934 do
8935   # Extract the first word of "$ac_prog", so it can be a program name with args.
8936 set dummy $ac_prog; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if ${ac_cv_path_RM+:} false; then :
8940   $as_echo_n "(cached) " >&6
8941 else
8942   case $RM in
8943   [\\/]* | ?:[\\/]*)
8944   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8945   ;;
8946   *)
8947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8949 do
8950   IFS=$as_save_IFS
8951   test -z "$as_dir" && as_dir=.
8952     for ac_exec_ext in '' $ac_executable_extensions; do
8953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956     break 2
8957   fi
8958 done
8959   done
8960 IFS=$as_save_IFS
8961 
8962   ;;
8963 esac
8964 fi
8965 RM=$ac_cv_path_RM
8966 if test -n "$RM"; then
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8968 $as_echo "$RM" >&6; }
8969 else
8970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8972 fi
8973 
8974 
8975   test -n "$RM" && break
8976 done
8977 
8978   else
8979     # The variable is set, but is it from the command line or the environment?
8980 
8981     # Try to remove the string !RM! from our list.
8982     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8983     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8984       # If it failed, the variable was not from the command line. Ignore it,
8985       # but warn the user (except for BASH, which is always set by the calling BASH).
8986       if test "xRM" != xBASH; then
8987         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8988 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8989       fi
8990       # Try to locate tool using the code snippet
8991       for ac_prog in rm
8992 do
8993   # Extract the first word of "$ac_prog", so it can be a program name with args.
8994 set dummy $ac_prog; ac_word=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if ${ac_cv_path_RM+:} false; then :
8998   $as_echo_n "(cached) " >&6
8999 else
9000   case $RM in
9001   [\\/]* | ?:[\\/]*)
9002   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9003   ;;
9004   *)
9005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9007 do
9008   IFS=$as_save_IFS
9009   test -z "$as_dir" && as_dir=.
9010     for ac_exec_ext in '' $ac_executable_extensions; do
9011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9012     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014     break 2
9015   fi
9016 done
9017   done
9018 IFS=$as_save_IFS
9019 
9020   ;;
9021 esac
9022 fi
9023 RM=$ac_cv_path_RM
9024 if test -n "$RM"; then
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9026 $as_echo "$RM" >&6; }
9027 else
9028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9030 fi
9031 
9032 
9033   test -n "$RM" && break
9034 done
9035 
9036     else
9037       # If it succeeded, then it was overridden by the user. We will use it
9038       # for the tool.
9039 
9040       # First remove it from the list of overridden variables, so we can test
9041       # for unknown variables in the end.
9042       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9043 
9044       # Check if the provided tool contains a complete path.
9045       tool_specified="$RM"
9046       tool_basename="${tool_specified##*/}"
9047       if test "x$tool_basename" = "x$tool_specified"; then
9048         # A command without a complete path is provided, search $PATH.
9049         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9050 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9051         # Extract the first word of "$tool_basename", so it can be a program name with args.
9052 set dummy $tool_basename; ac_word=$2
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054 $as_echo_n "checking for $ac_word... " >&6; }
9055 if ${ac_cv_path_RM+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   case $RM in
9059   [\\/]* | ?:[\\/]*)
9060   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9061   ;;
9062   *)
9063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in $PATH
9065 do
9066   IFS=$as_save_IFS
9067   test -z "$as_dir" && as_dir=.
9068     for ac_exec_ext in '' $ac_executable_extensions; do
9069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9070     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072     break 2
9073   fi
9074 done
9075   done
9076 IFS=$as_save_IFS
9077 
9078   ;;
9079 esac
9080 fi
9081 RM=$ac_cv_path_RM
9082 if test -n "$RM"; then
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9084 $as_echo "$RM" >&6; }
9085 else
9086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9088 fi
9089 
9090 
9091         if test "x$RM" = x; then
9092           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9093         fi
9094       else
9095         # Otherwise we believe it is a complete path. Use it as it is.
9096         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9097 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9099 $as_echo_n "checking for RM... " >&6; }
9100         if test ! -x "$tool_specified"; then
9101           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9102 $as_echo "not found" >&6; }
9103           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9104         fi
9105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9106 $as_echo "$tool_specified" >&6; }
9107       fi
9108     fi
9109   fi
9110 
9111 
9112 
9113   if test "x$RM" = x; then
9114     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9115   fi
9116 
9117 
9118 
9119 
9120 
9121   # Publish this variable in the help.
9122 
9123 
9124   if test "x$SH" = x; then
9125     # The variable is not set by user, try to locate tool using the code snippet
9126     for ac_prog in sh
9127 do
9128   # Extract the first word of "$ac_prog", so it can be a program name with args.
9129 set dummy $ac_prog; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if ${ac_cv_path_SH+:} false; then :
9133   $as_echo_n "(cached) " >&6
9134 else
9135   case $SH in
9136   [\\/]* | ?:[\\/]*)
9137   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9138   ;;
9139   *)
9140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in $PATH
9142 do
9143   IFS=$as_save_IFS
9144   test -z "$as_dir" && as_dir=.
9145     for ac_exec_ext in '' $ac_executable_extensions; do
9146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9147     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149     break 2
9150   fi
9151 done
9152   done
9153 IFS=$as_save_IFS
9154 
9155   ;;
9156 esac
9157 fi
9158 SH=$ac_cv_path_SH
9159 if test -n "$SH"; then
9160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9161 $as_echo "$SH" >&6; }
9162 else
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9165 fi
9166 
9167 
9168   test -n "$SH" && break
9169 done
9170 
9171   else
9172     # The variable is set, but is it from the command line or the environment?
9173 
9174     # Try to remove the string !SH! from our list.
9175     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9176     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9177       # If it failed, the variable was not from the command line. Ignore it,
9178       # but warn the user (except for BASH, which is always set by the calling BASH).
9179       if test "xSH" != xBASH; then
9180         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9181 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9182       fi
9183       # Try to locate tool using the code snippet
9184       for ac_prog in sh
9185 do
9186   # Extract the first word of "$ac_prog", so it can be a program name with args.
9187 set dummy $ac_prog; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_path_SH+:} false; then :
9191   $as_echo_n "(cached) " >&6
9192 else
9193   case $SH in
9194   [\\/]* | ?:[\\/]*)
9195   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9196   ;;
9197   *)
9198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9200 do
9201   IFS=$as_save_IFS
9202   test -z "$as_dir" && as_dir=.
9203     for ac_exec_ext in '' $ac_executable_extensions; do
9204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207     break 2
9208   fi
9209 done
9210   done
9211 IFS=$as_save_IFS
9212 
9213   ;;
9214 esac
9215 fi
9216 SH=$ac_cv_path_SH
9217 if test -n "$SH"; then
9218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9219 $as_echo "$SH" >&6; }
9220 else
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9223 fi
9224 
9225 
9226   test -n "$SH" && break
9227 done
9228 
9229     else
9230       # If it succeeded, then it was overridden by the user. We will use it
9231       # for the tool.
9232 
9233       # First remove it from the list of overridden variables, so we can test
9234       # for unknown variables in the end.
9235       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9236 
9237       # Check if the provided tool contains a complete path.
9238       tool_specified="$SH"
9239       tool_basename="${tool_specified##*/}"
9240       if test "x$tool_basename" = "x$tool_specified"; then
9241         # A command without a complete path is provided, search $PATH.
9242         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9243 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9244         # Extract the first word of "$tool_basename", so it can be a program name with args.
9245 set dummy $tool_basename; ac_word=$2
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247 $as_echo_n "checking for $ac_word... " >&6; }
9248 if ${ac_cv_path_SH+:} false; then :
9249   $as_echo_n "(cached) " >&6
9250 else
9251   case $SH in
9252   [\\/]* | ?:[\\/]*)
9253   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9254   ;;
9255   *)
9256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259   IFS=$as_save_IFS
9260   test -z "$as_dir" && as_dir=.
9261     for ac_exec_ext in '' $ac_executable_extensions; do
9262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265     break 2
9266   fi
9267 done
9268   done
9269 IFS=$as_save_IFS
9270 
9271   ;;
9272 esac
9273 fi
9274 SH=$ac_cv_path_SH
9275 if test -n "$SH"; then
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9277 $as_echo "$SH" >&6; }
9278 else
9279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 fi
9282 
9283 
9284         if test "x$SH" = x; then
9285           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9286         fi
9287       else
9288         # Otherwise we believe it is a complete path. Use it as it is.
9289         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9290 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9292 $as_echo_n "checking for SH... " >&6; }
9293         if test ! -x "$tool_specified"; then
9294           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9295 $as_echo "not found" >&6; }
9296           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9297         fi
9298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9299 $as_echo "$tool_specified" >&6; }
9300       fi
9301     fi
9302   fi
9303 
9304 
9305 
9306   if test "x$SH" = x; then
9307     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9308   fi
9309 
9310 
9311 
9312 
9313 
9314   # Publish this variable in the help.
9315 
9316 
9317   if test "x$SORT" = x; then
9318     # The variable is not set by user, try to locate tool using the code snippet
9319     for ac_prog in sort
9320 do
9321   # Extract the first word of "$ac_prog", so it can be a program name with args.
9322 set dummy $ac_prog; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if ${ac_cv_path_SORT+:} false; then :
9326   $as_echo_n "(cached) " >&6
9327 else
9328   case $SORT in
9329   [\\/]* | ?:[\\/]*)
9330   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9331   ;;
9332   *)
9333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9335 do
9336   IFS=$as_save_IFS
9337   test -z "$as_dir" && as_dir=.
9338     for ac_exec_ext in '' $ac_executable_extensions; do
9339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9340     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342     break 2
9343   fi
9344 done
9345   done
9346 IFS=$as_save_IFS
9347 
9348   ;;
9349 esac
9350 fi
9351 SORT=$ac_cv_path_SORT
9352 if test -n "$SORT"; then
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9354 $as_echo "$SORT" >&6; }
9355 else
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9358 fi
9359 
9360 
9361   test -n "$SORT" && break
9362 done
9363 
9364   else
9365     # The variable is set, but is it from the command line or the environment?
9366 
9367     # Try to remove the string !SORT! from our list.
9368     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9369     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9370       # If it failed, the variable was not from the command line. Ignore it,
9371       # but warn the user (except for BASH, which is always set by the calling BASH).
9372       if test "xSORT" != xBASH; then
9373         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9374 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9375       fi
9376       # Try to locate tool using the code snippet
9377       for ac_prog in sort
9378 do
9379   # Extract the first word of "$ac_prog", so it can be a program name with args.
9380 set dummy $ac_prog; ac_word=$2
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382 $as_echo_n "checking for $ac_word... " >&6; }
9383 if ${ac_cv_path_SORT+:} false; then :
9384   $as_echo_n "(cached) " >&6
9385 else
9386   case $SORT in
9387   [\\/]* | ?:[\\/]*)
9388   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9389   ;;
9390   *)
9391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9393 do
9394   IFS=$as_save_IFS
9395   test -z "$as_dir" && as_dir=.
9396     for ac_exec_ext in '' $ac_executable_extensions; do
9397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400     break 2
9401   fi
9402 done
9403   done
9404 IFS=$as_save_IFS
9405 
9406   ;;
9407 esac
9408 fi
9409 SORT=$ac_cv_path_SORT
9410 if test -n "$SORT"; then
9411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9412 $as_echo "$SORT" >&6; }
9413 else
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9416 fi
9417 
9418 
9419   test -n "$SORT" && break
9420 done
9421 
9422     else
9423       # If it succeeded, then it was overridden by the user. We will use it
9424       # for the tool.
9425 
9426       # First remove it from the list of overridden variables, so we can test
9427       # for unknown variables in the end.
9428       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9429 
9430       # Check if the provided tool contains a complete path.
9431       tool_specified="$SORT"
9432       tool_basename="${tool_specified##*/}"
9433       if test "x$tool_basename" = "x$tool_specified"; then
9434         # A command without a complete path is provided, search $PATH.
9435         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9436 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9437         # Extract the first word of "$tool_basename", so it can be a program name with args.
9438 set dummy $tool_basename; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if ${ac_cv_path_SORT+:} false; then :
9442   $as_echo_n "(cached) " >&6
9443 else
9444   case $SORT in
9445   [\\/]* | ?:[\\/]*)
9446   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9447   ;;
9448   *)
9449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9451 do
9452   IFS=$as_save_IFS
9453   test -z "$as_dir" && as_dir=.
9454     for ac_exec_ext in '' $ac_executable_extensions; do
9455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9456     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458     break 2
9459   fi
9460 done
9461   done
9462 IFS=$as_save_IFS
9463 
9464   ;;
9465 esac
9466 fi
9467 SORT=$ac_cv_path_SORT
9468 if test -n "$SORT"; then
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9470 $as_echo "$SORT" >&6; }
9471 else
9472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9474 fi
9475 
9476 
9477         if test "x$SORT" = x; then
9478           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9479         fi
9480       else
9481         # Otherwise we believe it is a complete path. Use it as it is.
9482         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9483 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9485 $as_echo_n "checking for SORT... " >&6; }
9486         if test ! -x "$tool_specified"; then
9487           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9488 $as_echo "not found" >&6; }
9489           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9490         fi
9491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9492 $as_echo "$tool_specified" >&6; }
9493       fi
9494     fi
9495   fi
9496 
9497 
9498 
9499   if test "x$SORT" = x; then
9500     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9501   fi
9502 
9503 
9504 
9505 
9506 
9507   # Publish this variable in the help.
9508 
9509 
9510   if test "x$TAIL" = x; then
9511     # The variable is not set by user, try to locate tool using the code snippet
9512     for ac_prog in tail
9513 do
9514   # Extract the first word of "$ac_prog", so it can be a program name with args.
9515 set dummy $ac_prog; ac_word=$2
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 $as_echo_n "checking for $ac_word... " >&6; }
9518 if ${ac_cv_path_TAIL+:} false; then :
9519   $as_echo_n "(cached) " >&6
9520 else
9521   case $TAIL in
9522   [\\/]* | ?:[\\/]*)
9523   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9524   ;;
9525   *)
9526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527 for as_dir in $PATH
9528 do
9529   IFS=$as_save_IFS
9530   test -z "$as_dir" && as_dir=.
9531     for ac_exec_ext in '' $ac_executable_extensions; do
9532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9533     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9535     break 2
9536   fi
9537 done
9538   done
9539 IFS=$as_save_IFS
9540 
9541   ;;
9542 esac
9543 fi
9544 TAIL=$ac_cv_path_TAIL
9545 if test -n "$TAIL"; then
9546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9547 $as_echo "$TAIL" >&6; }
9548 else
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9551 fi
9552 
9553 
9554   test -n "$TAIL" && break
9555 done
9556 
9557   else
9558     # The variable is set, but is it from the command line or the environment?
9559 
9560     # Try to remove the string !TAIL! from our list.
9561     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9562     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9563       # If it failed, the variable was not from the command line. Ignore it,
9564       # but warn the user (except for BASH, which is always set by the calling BASH).
9565       if test "xTAIL" != xBASH; then
9566         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9567 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9568       fi
9569       # Try to locate tool using the code snippet
9570       for ac_prog in tail
9571 do
9572   # Extract the first word of "$ac_prog", so it can be a program name with args.
9573 set dummy $ac_prog; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_path_TAIL+:} false; then :
9577   $as_echo_n "(cached) " >&6
9578 else
9579   case $TAIL in
9580   [\\/]* | ?:[\\/]*)
9581   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9582   ;;
9583   *)
9584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9586 do
9587   IFS=$as_save_IFS
9588   test -z "$as_dir" && as_dir=.
9589     for ac_exec_ext in '' $ac_executable_extensions; do
9590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9591     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593     break 2
9594   fi
9595 done
9596   done
9597 IFS=$as_save_IFS
9598 
9599   ;;
9600 esac
9601 fi
9602 TAIL=$ac_cv_path_TAIL
9603 if test -n "$TAIL"; then
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9605 $as_echo "$TAIL" >&6; }
9606 else
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9609 fi
9610 
9611 
9612   test -n "$TAIL" && break
9613 done
9614 
9615     else
9616       # If it succeeded, then it was overridden by the user. We will use it
9617       # for the tool.
9618 
9619       # First remove it from the list of overridden variables, so we can test
9620       # for unknown variables in the end.
9621       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9622 
9623       # Check if the provided tool contains a complete path.
9624       tool_specified="$TAIL"
9625       tool_basename="${tool_specified##*/}"
9626       if test "x$tool_basename" = "x$tool_specified"; then
9627         # A command without a complete path is provided, search $PATH.
9628         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9629 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9630         # Extract the first word of "$tool_basename", so it can be a program name with args.
9631 set dummy $tool_basename; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_path_TAIL+:} false; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   case $TAIL in
9638   [\\/]* | ?:[\\/]*)
9639   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9640   ;;
9641   *)
9642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 for as_dir in $PATH
9644 do
9645   IFS=$as_save_IFS
9646   test -z "$as_dir" && as_dir=.
9647     for ac_exec_ext in '' $ac_executable_extensions; do
9648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9649     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651     break 2
9652   fi
9653 done
9654   done
9655 IFS=$as_save_IFS
9656 
9657   ;;
9658 esac
9659 fi
9660 TAIL=$ac_cv_path_TAIL
9661 if test -n "$TAIL"; then
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9663 $as_echo "$TAIL" >&6; }
9664 else
9665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666 $as_echo "no" >&6; }
9667 fi
9668 
9669 
9670         if test "x$TAIL" = x; then
9671           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9672         fi
9673       else
9674         # Otherwise we believe it is a complete path. Use it as it is.
9675         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9676 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9678 $as_echo_n "checking for TAIL... " >&6; }
9679         if test ! -x "$tool_specified"; then
9680           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9681 $as_echo "not found" >&6; }
9682           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9683         fi
9684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9685 $as_echo "$tool_specified" >&6; }
9686       fi
9687     fi
9688   fi
9689 
9690 
9691 
9692   if test "x$TAIL" = x; then
9693     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9694   fi
9695 
9696 
9697 
9698 
9699 
9700   # Publish this variable in the help.
9701 
9702 
9703   if test "x$TAR" = x; then
9704     # The variable is not set by user, try to locate tool using the code snippet
9705     for ac_prog in tar
9706 do
9707   # Extract the first word of "$ac_prog", so it can be a program name with args.
9708 set dummy $ac_prog; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if ${ac_cv_path_TAR+:} false; then :
9712   $as_echo_n "(cached) " >&6
9713 else
9714   case $TAR in
9715   [\\/]* | ?:[\\/]*)
9716   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9717   ;;
9718   *)
9719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 for as_dir in $PATH
9721 do
9722   IFS=$as_save_IFS
9723   test -z "$as_dir" && as_dir=.
9724     for ac_exec_ext in '' $ac_executable_extensions; do
9725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9726     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728     break 2
9729   fi
9730 done
9731   done
9732 IFS=$as_save_IFS
9733 
9734   ;;
9735 esac
9736 fi
9737 TAR=$ac_cv_path_TAR
9738 if test -n "$TAR"; then
9739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9740 $as_echo "$TAR" >&6; }
9741 else
9742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9744 fi
9745 
9746 
9747   test -n "$TAR" && break
9748 done
9749 
9750   else
9751     # The variable is set, but is it from the command line or the environment?
9752 
9753     # Try to remove the string !TAR! from our list.
9754     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9755     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9756       # If it failed, the variable was not from the command line. Ignore it,
9757       # but warn the user (except for BASH, which is always set by the calling BASH).
9758       if test "xTAR" != xBASH; then
9759         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9760 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9761       fi
9762       # Try to locate tool using the code snippet
9763       for ac_prog in tar
9764 do
9765   # Extract the first word of "$ac_prog", so it can be a program name with args.
9766 set dummy $ac_prog; ac_word=$2
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768 $as_echo_n "checking for $ac_word... " >&6; }
9769 if ${ac_cv_path_TAR+:} false; then :
9770   $as_echo_n "(cached) " >&6
9771 else
9772   case $TAR in
9773   [\\/]* | ?:[\\/]*)
9774   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9775   ;;
9776   *)
9777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH
9779 do
9780   IFS=$as_save_IFS
9781   test -z "$as_dir" && as_dir=.
9782     for ac_exec_ext in '' $ac_executable_extensions; do
9783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9784     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786     break 2
9787   fi
9788 done
9789   done
9790 IFS=$as_save_IFS
9791 
9792   ;;
9793 esac
9794 fi
9795 TAR=$ac_cv_path_TAR
9796 if test -n "$TAR"; then
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9798 $as_echo "$TAR" >&6; }
9799 else
9800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; }
9802 fi
9803 
9804 
9805   test -n "$TAR" && break
9806 done
9807 
9808     else
9809       # If it succeeded, then it was overridden by the user. We will use it
9810       # for the tool.
9811 
9812       # First remove it from the list of overridden variables, so we can test
9813       # for unknown variables in the end.
9814       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9815 
9816       # Check if the provided tool contains a complete path.
9817       tool_specified="$TAR"
9818       tool_basename="${tool_specified##*/}"
9819       if test "x$tool_basename" = "x$tool_specified"; then
9820         # A command without a complete path is provided, search $PATH.
9821         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9822 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9823         # Extract the first word of "$tool_basename", so it can be a program name with args.
9824 set dummy $tool_basename; ac_word=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if ${ac_cv_path_TAR+:} false; then :
9828   $as_echo_n "(cached) " >&6
9829 else
9830   case $TAR in
9831   [\\/]* | ?:[\\/]*)
9832   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9833   ;;
9834   *)
9835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 for as_dir in $PATH
9837 do
9838   IFS=$as_save_IFS
9839   test -z "$as_dir" && as_dir=.
9840     for ac_exec_ext in '' $ac_executable_extensions; do
9841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9842     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9844     break 2
9845   fi
9846 done
9847   done
9848 IFS=$as_save_IFS
9849 
9850   ;;
9851 esac
9852 fi
9853 TAR=$ac_cv_path_TAR
9854 if test -n "$TAR"; then
9855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9856 $as_echo "$TAR" >&6; }
9857 else
9858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; }
9860 fi
9861 
9862 
9863         if test "x$TAR" = x; then
9864           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9865         fi
9866       else
9867         # Otherwise we believe it is a complete path. Use it as it is.
9868         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9869 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9870         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9871 $as_echo_n "checking for TAR... " >&6; }
9872         if test ! -x "$tool_specified"; then
9873           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9874 $as_echo "not found" >&6; }
9875           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9876         fi
9877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9878 $as_echo "$tool_specified" >&6; }
9879       fi
9880     fi
9881   fi
9882 
9883 
9884 
9885   if test "x$TAR" = x; then
9886     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9887   fi
9888 
9889 
9890 
9891 
9892 
9893   # Publish this variable in the help.
9894 
9895 
9896   if test "x$TEE" = x; then
9897     # The variable is not set by user, try to locate tool using the code snippet
9898     for ac_prog in tee
9899 do
9900   # Extract the first word of "$ac_prog", so it can be a program name with args.
9901 set dummy $ac_prog; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_path_TEE+:} false; then :
9905   $as_echo_n "(cached) " >&6
9906 else
9907   case $TEE in
9908   [\\/]* | ?:[\\/]*)
9909   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9910   ;;
9911   *)
9912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9914 do
9915   IFS=$as_save_IFS
9916   test -z "$as_dir" && as_dir=.
9917     for ac_exec_ext in '' $ac_executable_extensions; do
9918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921     break 2
9922   fi
9923 done
9924   done
9925 IFS=$as_save_IFS
9926 
9927   ;;
9928 esac
9929 fi
9930 TEE=$ac_cv_path_TEE
9931 if test -n "$TEE"; then
9932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9933 $as_echo "$TEE" >&6; }
9934 else
9935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9937 fi
9938 
9939 
9940   test -n "$TEE" && break
9941 done
9942 
9943   else
9944     # The variable is set, but is it from the command line or the environment?
9945 
9946     # Try to remove the string !TEE! from our list.
9947     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9948     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9949       # If it failed, the variable was not from the command line. Ignore it,
9950       # but warn the user (except for BASH, which is always set by the calling BASH).
9951       if test "xTEE" != xBASH; then
9952         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9953 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9954       fi
9955       # Try to locate tool using the code snippet
9956       for ac_prog in tee
9957 do
9958   # Extract the first word of "$ac_prog", so it can be a program name with args.
9959 set dummy $ac_prog; ac_word=$2
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961 $as_echo_n "checking for $ac_word... " >&6; }
9962 if ${ac_cv_path_TEE+:} false; then :
9963   $as_echo_n "(cached) " >&6
9964 else
9965   case $TEE in
9966   [\\/]* | ?:[\\/]*)
9967   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9968   ;;
9969   *)
9970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 for as_dir in $PATH
9972 do
9973   IFS=$as_save_IFS
9974   test -z "$as_dir" && as_dir=.
9975     for ac_exec_ext in '' $ac_executable_extensions; do
9976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9977     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9979     break 2
9980   fi
9981 done
9982   done
9983 IFS=$as_save_IFS
9984 
9985   ;;
9986 esac
9987 fi
9988 TEE=$ac_cv_path_TEE
9989 if test -n "$TEE"; then
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9991 $as_echo "$TEE" >&6; }
9992 else
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 $as_echo "no" >&6; }
9995 fi
9996 
9997 
9998   test -n "$TEE" && break
9999 done
10000 
10001     else
10002       # If it succeeded, then it was overridden by the user. We will use it
10003       # for the tool.
10004 
10005       # First remove it from the list of overridden variables, so we can test
10006       # for unknown variables in the end.
10007       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10008 
10009       # Check if the provided tool contains a complete path.
10010       tool_specified="$TEE"
10011       tool_basename="${tool_specified##*/}"
10012       if test "x$tool_basename" = "x$tool_specified"; then
10013         # A command without a complete path is provided, search $PATH.
10014         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10015 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10016         # Extract the first word of "$tool_basename", so it can be a program name with args.
10017 set dummy $tool_basename; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if ${ac_cv_path_TEE+:} false; then :
10021   $as_echo_n "(cached) " >&6
10022 else
10023   case $TEE in
10024   [\\/]* | ?:[\\/]*)
10025   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10026   ;;
10027   *)
10028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10030 do
10031   IFS=$as_save_IFS
10032   test -z "$as_dir" && as_dir=.
10033     for ac_exec_ext in '' $ac_executable_extensions; do
10034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037     break 2
10038   fi
10039 done
10040   done
10041 IFS=$as_save_IFS
10042 
10043   ;;
10044 esac
10045 fi
10046 TEE=$ac_cv_path_TEE
10047 if test -n "$TEE"; then
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10049 $as_echo "$TEE" >&6; }
10050 else
10051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10053 fi
10054 
10055 
10056         if test "x$TEE" = x; then
10057           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10058         fi
10059       else
10060         # Otherwise we believe it is a complete path. Use it as it is.
10061         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10062 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10064 $as_echo_n "checking for TEE... " >&6; }
10065         if test ! -x "$tool_specified"; then
10066           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10067 $as_echo "not found" >&6; }
10068           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10069         fi
10070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10071 $as_echo "$tool_specified" >&6; }
10072       fi
10073     fi
10074   fi
10075 
10076 
10077 
10078   if test "x$TEE" = x; then
10079     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10080   fi
10081 
10082 
10083 
10084 
10085 
10086   # Publish this variable in the help.
10087 
10088 
10089   if test "x$TOUCH" = x; then
10090     # The variable is not set by user, try to locate tool using the code snippet
10091     for ac_prog in touch
10092 do
10093   # Extract the first word of "$ac_prog", so it can be a program name with args.
10094 set dummy $ac_prog; ac_word=$2
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096 $as_echo_n "checking for $ac_word... " >&6; }
10097 if ${ac_cv_path_TOUCH+:} false; then :
10098   $as_echo_n "(cached) " >&6
10099 else
10100   case $TOUCH in
10101   [\\/]* | ?:[\\/]*)
10102   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10103   ;;
10104   *)
10105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10107 do
10108   IFS=$as_save_IFS
10109   test -z "$as_dir" && as_dir=.
10110     for ac_exec_ext in '' $ac_executable_extensions; do
10111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10112     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114     break 2
10115   fi
10116 done
10117   done
10118 IFS=$as_save_IFS
10119 
10120   ;;
10121 esac
10122 fi
10123 TOUCH=$ac_cv_path_TOUCH
10124 if test -n "$TOUCH"; then
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10126 $as_echo "$TOUCH" >&6; }
10127 else
10128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130 fi
10131 
10132 
10133   test -n "$TOUCH" && break
10134 done
10135 
10136   else
10137     # The variable is set, but is it from the command line or the environment?
10138 
10139     # Try to remove the string !TOUCH! from our list.
10140     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10141     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10142       # If it failed, the variable was not from the command line. Ignore it,
10143       # but warn the user (except for BASH, which is always set by the calling BASH).
10144       if test "xTOUCH" != xBASH; then
10145         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10146 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10147       fi
10148       # Try to locate tool using the code snippet
10149       for ac_prog in touch
10150 do
10151   # Extract the first word of "$ac_prog", so it can be a program name with args.
10152 set dummy $ac_prog; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if ${ac_cv_path_TOUCH+:} false; then :
10156   $as_echo_n "(cached) " >&6
10157 else
10158   case $TOUCH in
10159   [\\/]* | ?:[\\/]*)
10160   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10161   ;;
10162   *)
10163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166   IFS=$as_save_IFS
10167   test -z "$as_dir" && as_dir=.
10168     for ac_exec_ext in '' $ac_executable_extensions; do
10169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172     break 2
10173   fi
10174 done
10175   done
10176 IFS=$as_save_IFS
10177 
10178   ;;
10179 esac
10180 fi
10181 TOUCH=$ac_cv_path_TOUCH
10182 if test -n "$TOUCH"; then
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10184 $as_echo "$TOUCH" >&6; }
10185 else
10186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 $as_echo "no" >&6; }
10188 fi
10189 
10190 
10191   test -n "$TOUCH" && break
10192 done
10193 
10194     else
10195       # If it succeeded, then it was overridden by the user. We will use it
10196       # for the tool.
10197 
10198       # First remove it from the list of overridden variables, so we can test
10199       # for unknown variables in the end.
10200       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10201 
10202       # Check if the provided tool contains a complete path.
10203       tool_specified="$TOUCH"
10204       tool_basename="${tool_specified##*/}"
10205       if test "x$tool_basename" = "x$tool_specified"; then
10206         # A command without a complete path is provided, search $PATH.
10207         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10208 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10209         # Extract the first word of "$tool_basename", so it can be a program name with args.
10210 set dummy $tool_basename; ac_word=$2
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if ${ac_cv_path_TOUCH+:} false; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   case $TOUCH in
10217   [\\/]* | ?:[\\/]*)
10218   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10219   ;;
10220   *)
10221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10223 do
10224   IFS=$as_save_IFS
10225   test -z "$as_dir" && as_dir=.
10226     for ac_exec_ext in '' $ac_executable_extensions; do
10227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230     break 2
10231   fi
10232 done
10233   done
10234 IFS=$as_save_IFS
10235 
10236   ;;
10237 esac
10238 fi
10239 TOUCH=$ac_cv_path_TOUCH
10240 if test -n "$TOUCH"; then
10241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10242 $as_echo "$TOUCH" >&6; }
10243 else
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10246 fi
10247 
10248 
10249         if test "x$TOUCH" = x; then
10250           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10251         fi
10252       else
10253         # Otherwise we believe it is a complete path. Use it as it is.
10254         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10255 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10257 $as_echo_n "checking for TOUCH... " >&6; }
10258         if test ! -x "$tool_specified"; then
10259           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10260 $as_echo "not found" >&6; }
10261           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10262         fi
10263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10264 $as_echo "$tool_specified" >&6; }
10265       fi
10266     fi
10267   fi
10268 
10269 
10270 
10271   if test "x$TOUCH" = x; then
10272     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10273   fi
10274 
10275 
10276 
10277 
10278 
10279   # Publish this variable in the help.
10280 
10281 
10282   if test "x$TR" = x; then
10283     # The variable is not set by user, try to locate tool using the code snippet
10284     for ac_prog in tr
10285 do
10286   # Extract the first word of "$ac_prog", so it can be a program name with args.
10287 set dummy $ac_prog; ac_word=$2
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289 $as_echo_n "checking for $ac_word... " >&6; }
10290 if ${ac_cv_path_TR+:} false; then :
10291   $as_echo_n "(cached) " >&6
10292 else
10293   case $TR in
10294   [\\/]* | ?:[\\/]*)
10295   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10296   ;;
10297   *)
10298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10300 do
10301   IFS=$as_save_IFS
10302   test -z "$as_dir" && as_dir=.
10303     for ac_exec_ext in '' $ac_executable_extensions; do
10304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307     break 2
10308   fi
10309 done
10310   done
10311 IFS=$as_save_IFS
10312 
10313   ;;
10314 esac
10315 fi
10316 TR=$ac_cv_path_TR
10317 if test -n "$TR"; then
10318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10319 $as_echo "$TR" >&6; }
10320 else
10321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10323 fi
10324 
10325 
10326   test -n "$TR" && break
10327 done
10328 
10329   else
10330     # The variable is set, but is it from the command line or the environment?
10331 
10332     # Try to remove the string !TR! from our list.
10333     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10334     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10335       # If it failed, the variable was not from the command line. Ignore it,
10336       # but warn the user (except for BASH, which is always set by the calling BASH).
10337       if test "xTR" != xBASH; then
10338         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10339 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10340       fi
10341       # Try to locate tool using the code snippet
10342       for ac_prog in tr
10343 do
10344   # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if ${ac_cv_path_TR+:} false; then :
10349   $as_echo_n "(cached) " >&6
10350 else
10351   case $TR in
10352   [\\/]* | ?:[\\/]*)
10353   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10354   ;;
10355   *)
10356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10358 do
10359   IFS=$as_save_IFS
10360   test -z "$as_dir" && as_dir=.
10361     for ac_exec_ext in '' $ac_executable_extensions; do
10362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365     break 2
10366   fi
10367 done
10368   done
10369 IFS=$as_save_IFS
10370 
10371   ;;
10372 esac
10373 fi
10374 TR=$ac_cv_path_TR
10375 if test -n "$TR"; then
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10377 $as_echo "$TR" >&6; }
10378 else
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10381 fi
10382 
10383 
10384   test -n "$TR" && break
10385 done
10386 
10387     else
10388       # If it succeeded, then it was overridden by the user. We will use it
10389       # for the tool.
10390 
10391       # First remove it from the list of overridden variables, so we can test
10392       # for unknown variables in the end.
10393       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10394 
10395       # Check if the provided tool contains a complete path.
10396       tool_specified="$TR"
10397       tool_basename="${tool_specified##*/}"
10398       if test "x$tool_basename" = "x$tool_specified"; then
10399         # A command without a complete path is provided, search $PATH.
10400         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10401 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10402         # Extract the first word of "$tool_basename", so it can be a program name with args.
10403 set dummy $tool_basename; ac_word=$2
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405 $as_echo_n "checking for $ac_word... " >&6; }
10406 if ${ac_cv_path_TR+:} false; then :
10407   $as_echo_n "(cached) " >&6
10408 else
10409   case $TR in
10410   [\\/]* | ?:[\\/]*)
10411   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10412   ;;
10413   *)
10414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10416 do
10417   IFS=$as_save_IFS
10418   test -z "$as_dir" && as_dir=.
10419     for ac_exec_ext in '' $ac_executable_extensions; do
10420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423     break 2
10424   fi
10425 done
10426   done
10427 IFS=$as_save_IFS
10428 
10429   ;;
10430 esac
10431 fi
10432 TR=$ac_cv_path_TR
10433 if test -n "$TR"; then
10434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10435 $as_echo "$TR" >&6; }
10436 else
10437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10439 fi
10440 
10441 
10442         if test "x$TR" = x; then
10443           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10444         fi
10445       else
10446         # Otherwise we believe it is a complete path. Use it as it is.
10447         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10448 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10449         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10450 $as_echo_n "checking for TR... " >&6; }
10451         if test ! -x "$tool_specified"; then
10452           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10453 $as_echo "not found" >&6; }
10454           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10455         fi
10456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10457 $as_echo "$tool_specified" >&6; }
10458       fi
10459     fi
10460   fi
10461 
10462 
10463 
10464   if test "x$TR" = x; then
10465     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10466   fi
10467 
10468 
10469 
10470 
10471 
10472   # Publish this variable in the help.
10473 
10474 
10475   if test "x$UNAME" = x; then
10476     # The variable is not set by user, try to locate tool using the code snippet
10477     for ac_prog in uname
10478 do
10479   # Extract the first word of "$ac_prog", so it can be a program name with args.
10480 set dummy $ac_prog; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 $as_echo_n "checking for $ac_word... " >&6; }
10483 if ${ac_cv_path_UNAME+:} false; then :
10484   $as_echo_n "(cached) " >&6
10485 else
10486   case $UNAME in
10487   [\\/]* | ?:[\\/]*)
10488   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10489   ;;
10490   *)
10491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492 for as_dir in $PATH
10493 do
10494   IFS=$as_save_IFS
10495   test -z "$as_dir" && as_dir=.
10496     for ac_exec_ext in '' $ac_executable_extensions; do
10497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10500     break 2
10501   fi
10502 done
10503   done
10504 IFS=$as_save_IFS
10505 
10506   ;;
10507 esac
10508 fi
10509 UNAME=$ac_cv_path_UNAME
10510 if test -n "$UNAME"; then
10511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10512 $as_echo "$UNAME" >&6; }
10513 else
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10516 fi
10517 
10518 
10519   test -n "$UNAME" && break
10520 done
10521 
10522   else
10523     # The variable is set, but is it from the command line or the environment?
10524 
10525     # Try to remove the string !UNAME! from our list.
10526     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10527     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10528       # If it failed, the variable was not from the command line. Ignore it,
10529       # but warn the user (except for BASH, which is always set by the calling BASH).
10530       if test "xUNAME" != xBASH; then
10531         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10532 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10533       fi
10534       # Try to locate tool using the code snippet
10535       for ac_prog in uname
10536 do
10537   # Extract the first word of "$ac_prog", so it can be a program name with args.
10538 set dummy $ac_prog; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if ${ac_cv_path_UNAME+:} false; then :
10542   $as_echo_n "(cached) " >&6
10543 else
10544   case $UNAME in
10545   [\\/]* | ?:[\\/]*)
10546   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10547   ;;
10548   *)
10549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in $PATH
10551 do
10552   IFS=$as_save_IFS
10553   test -z "$as_dir" && as_dir=.
10554     for ac_exec_ext in '' $ac_executable_extensions; do
10555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10556     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558     break 2
10559   fi
10560 done
10561   done
10562 IFS=$as_save_IFS
10563 
10564   ;;
10565 esac
10566 fi
10567 UNAME=$ac_cv_path_UNAME
10568 if test -n "$UNAME"; then
10569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10570 $as_echo "$UNAME" >&6; }
10571 else
10572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10574 fi
10575 
10576 
10577   test -n "$UNAME" && break
10578 done
10579 
10580     else
10581       # If it succeeded, then it was overridden by the user. We will use it
10582       # for the tool.
10583 
10584       # First remove it from the list of overridden variables, so we can test
10585       # for unknown variables in the end.
10586       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10587 
10588       # Check if the provided tool contains a complete path.
10589       tool_specified="$UNAME"
10590       tool_basename="${tool_specified##*/}"
10591       if test "x$tool_basename" = "x$tool_specified"; then
10592         # A command without a complete path is provided, search $PATH.
10593         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10594 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10595         # Extract the first word of "$tool_basename", so it can be a program name with args.
10596 set dummy $tool_basename; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if ${ac_cv_path_UNAME+:} false; then :
10600   $as_echo_n "(cached) " >&6
10601 else
10602   case $UNAME in
10603   [\\/]* | ?:[\\/]*)
10604   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10605   ;;
10606   *)
10607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10609 do
10610   IFS=$as_save_IFS
10611   test -z "$as_dir" && as_dir=.
10612     for ac_exec_ext in '' $ac_executable_extensions; do
10613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616     break 2
10617   fi
10618 done
10619   done
10620 IFS=$as_save_IFS
10621 
10622   ;;
10623 esac
10624 fi
10625 UNAME=$ac_cv_path_UNAME
10626 if test -n "$UNAME"; then
10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10628 $as_echo "$UNAME" >&6; }
10629 else
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632 fi
10633 
10634 
10635         if test "x$UNAME" = x; then
10636           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10637         fi
10638       else
10639         # Otherwise we believe it is a complete path. Use it as it is.
10640         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10641 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10642         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10643 $as_echo_n "checking for UNAME... " >&6; }
10644         if test ! -x "$tool_specified"; then
10645           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10646 $as_echo "not found" >&6; }
10647           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10648         fi
10649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10650 $as_echo "$tool_specified" >&6; }
10651       fi
10652     fi
10653   fi
10654 
10655 
10656 
10657   if test "x$UNAME" = x; then
10658     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10659   fi
10660 
10661 
10662 
10663 
10664 
10665   # Publish this variable in the help.
10666 
10667 
10668   if test "x$UNIQ" = x; then
10669     # The variable is not set by user, try to locate tool using the code snippet
10670     for ac_prog in uniq
10671 do
10672   # Extract the first word of "$ac_prog", so it can be a program name with args.
10673 set dummy $ac_prog; ac_word=$2
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 $as_echo_n "checking for $ac_word... " >&6; }
10676 if ${ac_cv_path_UNIQ+:} false; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   case $UNIQ in
10680   [\\/]* | ?:[\\/]*)
10681   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10682   ;;
10683   *)
10684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10686 do
10687   IFS=$as_save_IFS
10688   test -z "$as_dir" && as_dir=.
10689     for ac_exec_ext in '' $ac_executable_extensions; do
10690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693     break 2
10694   fi
10695 done
10696   done
10697 IFS=$as_save_IFS
10698 
10699   ;;
10700 esac
10701 fi
10702 UNIQ=$ac_cv_path_UNIQ
10703 if test -n "$UNIQ"; then
10704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10705 $as_echo "$UNIQ" >&6; }
10706 else
10707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10709 fi
10710 
10711 
10712   test -n "$UNIQ" && break
10713 done
10714 
10715   else
10716     # The variable is set, but is it from the command line or the environment?
10717 
10718     # Try to remove the string !UNIQ! from our list.
10719     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10720     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10721       # If it failed, the variable was not from the command line. Ignore it,
10722       # but warn the user (except for BASH, which is always set by the calling BASH).
10723       if test "xUNIQ" != xBASH; then
10724         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10725 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10726       fi
10727       # Try to locate tool using the code snippet
10728       for ac_prog in uniq
10729 do
10730   # Extract the first word of "$ac_prog", so it can be a program name with args.
10731 set dummy $ac_prog; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_path_UNIQ+:} false; then :
10735   $as_echo_n "(cached) " >&6
10736 else
10737   case $UNIQ in
10738   [\\/]* | ?:[\\/]*)
10739   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10740   ;;
10741   *)
10742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10744 do
10745   IFS=$as_save_IFS
10746   test -z "$as_dir" && as_dir=.
10747     for ac_exec_ext in '' $ac_executable_extensions; do
10748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751     break 2
10752   fi
10753 done
10754   done
10755 IFS=$as_save_IFS
10756 
10757   ;;
10758 esac
10759 fi
10760 UNIQ=$ac_cv_path_UNIQ
10761 if test -n "$UNIQ"; then
10762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10763 $as_echo "$UNIQ" >&6; }
10764 else
10765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10767 fi
10768 
10769 
10770   test -n "$UNIQ" && break
10771 done
10772 
10773     else
10774       # If it succeeded, then it was overridden by the user. We will use it
10775       # for the tool.
10776 
10777       # First remove it from the list of overridden variables, so we can test
10778       # for unknown variables in the end.
10779       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10780 
10781       # Check if the provided tool contains a complete path.
10782       tool_specified="$UNIQ"
10783       tool_basename="${tool_specified##*/}"
10784       if test "x$tool_basename" = "x$tool_specified"; then
10785         # A command without a complete path is provided, search $PATH.
10786         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10787 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10788         # Extract the first word of "$tool_basename", so it can be a program name with args.
10789 set dummy $tool_basename; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if ${ac_cv_path_UNIQ+:} false; then :
10793   $as_echo_n "(cached) " >&6
10794 else
10795   case $UNIQ in
10796   [\\/]* | ?:[\\/]*)
10797   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10798   ;;
10799   *)
10800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10802 do
10803   IFS=$as_save_IFS
10804   test -z "$as_dir" && as_dir=.
10805     for ac_exec_ext in '' $ac_executable_extensions; do
10806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809     break 2
10810   fi
10811 done
10812   done
10813 IFS=$as_save_IFS
10814 
10815   ;;
10816 esac
10817 fi
10818 UNIQ=$ac_cv_path_UNIQ
10819 if test -n "$UNIQ"; then
10820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10821 $as_echo "$UNIQ" >&6; }
10822 else
10823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10825 fi
10826 
10827 
10828         if test "x$UNIQ" = x; then
10829           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10830         fi
10831       else
10832         # Otherwise we believe it is a complete path. Use it as it is.
10833         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10834 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10836 $as_echo_n "checking for UNIQ... " >&6; }
10837         if test ! -x "$tool_specified"; then
10838           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10839 $as_echo "not found" >&6; }
10840           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10841         fi
10842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10843 $as_echo "$tool_specified" >&6; }
10844       fi
10845     fi
10846   fi
10847 
10848 
10849 
10850   if test "x$UNIQ" = x; then
10851     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10852   fi
10853 
10854 
10855 
10856 
10857 
10858   # Publish this variable in the help.
10859 
10860 
10861   if test "x$WC" = x; then
10862     # The variable is not set by user, try to locate tool using the code snippet
10863     for ac_prog in wc
10864 do
10865   # Extract the first word of "$ac_prog", so it can be a program name with args.
10866 set dummy $ac_prog; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if ${ac_cv_path_WC+:} false; then :
10870   $as_echo_n "(cached) " >&6
10871 else
10872   case $WC in
10873   [\\/]* | ?:[\\/]*)
10874   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10875   ;;
10876   *)
10877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $PATH
10879 do
10880   IFS=$as_save_IFS
10881   test -z "$as_dir" && as_dir=.
10882     for ac_exec_ext in '' $ac_executable_extensions; do
10883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886     break 2
10887   fi
10888 done
10889   done
10890 IFS=$as_save_IFS
10891 
10892   ;;
10893 esac
10894 fi
10895 WC=$ac_cv_path_WC
10896 if test -n "$WC"; then
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10898 $as_echo "$WC" >&6; }
10899 else
10900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902 fi
10903 
10904 
10905   test -n "$WC" && break
10906 done
10907 
10908   else
10909     # The variable is set, but is it from the command line or the environment?
10910 
10911     # Try to remove the string !WC! from our list.
10912     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10913     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10914       # If it failed, the variable was not from the command line. Ignore it,
10915       # but warn the user (except for BASH, which is always set by the calling BASH).
10916       if test "xWC" != xBASH; then
10917         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10918 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10919       fi
10920       # Try to locate tool using the code snippet
10921       for ac_prog in wc
10922 do
10923   # Extract the first word of "$ac_prog", so it can be a program name with args.
10924 set dummy $ac_prog; ac_word=$2
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 $as_echo_n "checking for $ac_word... " >&6; }
10927 if ${ac_cv_path_WC+:} false; then :
10928   $as_echo_n "(cached) " >&6
10929 else
10930   case $WC in
10931   [\\/]* | ?:[\\/]*)
10932   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10933   ;;
10934   *)
10935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10937 do
10938   IFS=$as_save_IFS
10939   test -z "$as_dir" && as_dir=.
10940     for ac_exec_ext in '' $ac_executable_extensions; do
10941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944     break 2
10945   fi
10946 done
10947   done
10948 IFS=$as_save_IFS
10949 
10950   ;;
10951 esac
10952 fi
10953 WC=$ac_cv_path_WC
10954 if test -n "$WC"; then
10955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10956 $as_echo "$WC" >&6; }
10957 else
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10960 fi
10961 
10962 
10963   test -n "$WC" && break
10964 done
10965 
10966     else
10967       # If it succeeded, then it was overridden by the user. We will use it
10968       # for the tool.
10969 
10970       # First remove it from the list of overridden variables, so we can test
10971       # for unknown variables in the end.
10972       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10973 
10974       # Check if the provided tool contains a complete path.
10975       tool_specified="$WC"
10976       tool_basename="${tool_specified##*/}"
10977       if test "x$tool_basename" = "x$tool_specified"; then
10978         # A command without a complete path is provided, search $PATH.
10979         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10980 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10981         # Extract the first word of "$tool_basename", so it can be a program name with args.
10982 set dummy $tool_basename; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if ${ac_cv_path_WC+:} false; then :
10986   $as_echo_n "(cached) " >&6
10987 else
10988   case $WC in
10989   [\\/]* | ?:[\\/]*)
10990   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10991   ;;
10992   *)
10993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10995 do
10996   IFS=$as_save_IFS
10997   test -z "$as_dir" && as_dir=.
10998     for ac_exec_ext in '' $ac_executable_extensions; do
10999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002     break 2
11003   fi
11004 done
11005   done
11006 IFS=$as_save_IFS
11007 
11008   ;;
11009 esac
11010 fi
11011 WC=$ac_cv_path_WC
11012 if test -n "$WC"; then
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11014 $as_echo "$WC" >&6; }
11015 else
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11018 fi
11019 
11020 
11021         if test "x$WC" = x; then
11022           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11023         fi
11024       else
11025         # Otherwise we believe it is a complete path. Use it as it is.
11026         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11027 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11028         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11029 $as_echo_n "checking for WC... " >&6; }
11030         if test ! -x "$tool_specified"; then
11031           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11032 $as_echo "not found" >&6; }
11033           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11034         fi
11035         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11036 $as_echo "$tool_specified" >&6; }
11037       fi
11038     fi
11039   fi
11040 
11041 
11042 
11043   if test "x$WC" = x; then
11044     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11045   fi
11046 
11047 
11048 
11049 
11050 
11051   # Publish this variable in the help.
11052 
11053 
11054   if test "x$WHICH" = x; then
11055     # The variable is not set by user, try to locate tool using the code snippet
11056     for ac_prog in which
11057 do
11058   # Extract the first word of "$ac_prog", so it can be a program name with args.
11059 set dummy $ac_prog; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_path_WHICH+:} false; then :
11063   $as_echo_n "(cached) " >&6
11064 else
11065   case $WHICH in
11066   [\\/]* | ?:[\\/]*)
11067   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11068   ;;
11069   *)
11070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073   IFS=$as_save_IFS
11074   test -z "$as_dir" && as_dir=.
11075     for ac_exec_ext in '' $ac_executable_extensions; do
11076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079     break 2
11080   fi
11081 done
11082   done
11083 IFS=$as_save_IFS
11084 
11085   ;;
11086 esac
11087 fi
11088 WHICH=$ac_cv_path_WHICH
11089 if test -n "$WHICH"; then
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11091 $as_echo "$WHICH" >&6; }
11092 else
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 fi
11096 
11097 
11098   test -n "$WHICH" && break
11099 done
11100 
11101   else
11102     # The variable is set, but is it from the command line or the environment?
11103 
11104     # Try to remove the string !WHICH! from our list.
11105     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11106     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11107       # If it failed, the variable was not from the command line. Ignore it,
11108       # but warn the user (except for BASH, which is always set by the calling BASH).
11109       if test "xWHICH" != xBASH; then
11110         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11111 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11112       fi
11113       # Try to locate tool using the code snippet
11114       for ac_prog in which
11115 do
11116   # Extract the first word of "$ac_prog", so it can be a program name with args.
11117 set dummy $ac_prog; ac_word=$2
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 $as_echo_n "checking for $ac_word... " >&6; }
11120 if ${ac_cv_path_WHICH+:} false; then :
11121   $as_echo_n "(cached) " >&6
11122 else
11123   case $WHICH in
11124   [\\/]* | ?:[\\/]*)
11125   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11126   ;;
11127   *)
11128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11130 do
11131   IFS=$as_save_IFS
11132   test -z "$as_dir" && as_dir=.
11133     for ac_exec_ext in '' $ac_executable_extensions; do
11134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11137     break 2
11138   fi
11139 done
11140   done
11141 IFS=$as_save_IFS
11142 
11143   ;;
11144 esac
11145 fi
11146 WHICH=$ac_cv_path_WHICH
11147 if test -n "$WHICH"; then
11148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11149 $as_echo "$WHICH" >&6; }
11150 else
11151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11153 fi
11154 
11155 
11156   test -n "$WHICH" && break
11157 done
11158 
11159     else
11160       # If it succeeded, then it was overridden by the user. We will use it
11161       # for the tool.
11162 
11163       # First remove it from the list of overridden variables, so we can test
11164       # for unknown variables in the end.
11165       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11166 
11167       # Check if the provided tool contains a complete path.
11168       tool_specified="$WHICH"
11169       tool_basename="${tool_specified##*/}"
11170       if test "x$tool_basename" = "x$tool_specified"; then
11171         # A command without a complete path is provided, search $PATH.
11172         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11173 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11174         # Extract the first word of "$tool_basename", so it can be a program name with args.
11175 set dummy $tool_basename; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if ${ac_cv_path_WHICH+:} false; then :
11179   $as_echo_n "(cached) " >&6
11180 else
11181   case $WHICH in
11182   [\\/]* | ?:[\\/]*)
11183   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11184   ;;
11185   *)
11186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189   IFS=$as_save_IFS
11190   test -z "$as_dir" && as_dir=.
11191     for ac_exec_ext in '' $ac_executable_extensions; do
11192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195     break 2
11196   fi
11197 done
11198   done
11199 IFS=$as_save_IFS
11200 
11201   ;;
11202 esac
11203 fi
11204 WHICH=$ac_cv_path_WHICH
11205 if test -n "$WHICH"; then
11206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11207 $as_echo "$WHICH" >&6; }
11208 else
11209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 fi
11212 
11213 
11214         if test "x$WHICH" = x; then
11215           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11216         fi
11217       else
11218         # Otherwise we believe it is a complete path. Use it as it is.
11219         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11220 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11222 $as_echo_n "checking for WHICH... " >&6; }
11223         if test ! -x "$tool_specified"; then
11224           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11225 $as_echo "not found" >&6; }
11226           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11227         fi
11228         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11229 $as_echo "$tool_specified" >&6; }
11230       fi
11231     fi
11232   fi
11233 
11234 
11235 
11236   if test "x$WHICH" = x; then
11237     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11238   fi
11239 
11240 
11241 
11242 
11243 
11244   # Publish this variable in the help.
11245 
11246 
11247   if test "x$XARGS" = x; then
11248     # The variable is not set by user, try to locate tool using the code snippet
11249     for ac_prog in xargs
11250 do
11251   # Extract the first word of "$ac_prog", so it can be a program name with args.
11252 set dummy $ac_prog; ac_word=$2
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11254 $as_echo_n "checking for $ac_word... " >&6; }
11255 if ${ac_cv_path_XARGS+:} false; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258   case $XARGS in
11259   [\\/]* | ?:[\\/]*)
11260   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11261   ;;
11262   *)
11263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266   IFS=$as_save_IFS
11267   test -z "$as_dir" && as_dir=.
11268     for ac_exec_ext in '' $ac_executable_extensions; do
11269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11272     break 2
11273   fi
11274 done
11275   done
11276 IFS=$as_save_IFS
11277 
11278   ;;
11279 esac
11280 fi
11281 XARGS=$ac_cv_path_XARGS
11282 if test -n "$XARGS"; then
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11284 $as_echo "$XARGS" >&6; }
11285 else
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11288 fi
11289 
11290 
11291   test -n "$XARGS" && break
11292 done
11293 
11294   else
11295     # The variable is set, but is it from the command line or the environment?
11296 
11297     # Try to remove the string !XARGS! from our list.
11298     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11299     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11300       # If it failed, the variable was not from the command line. Ignore it,
11301       # but warn the user (except for BASH, which is always set by the calling BASH).
11302       if test "xXARGS" != xBASH; then
11303         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11304 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11305       fi
11306       # Try to locate tool using the code snippet
11307       for ac_prog in xargs
11308 do
11309   # Extract the first word of "$ac_prog", so it can be a program name with args.
11310 set dummy $ac_prog; ac_word=$2
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11312 $as_echo_n "checking for $ac_word... " >&6; }
11313 if ${ac_cv_path_XARGS+:} false; then :
11314   $as_echo_n "(cached) " >&6
11315 else
11316   case $XARGS in
11317   [\\/]* | ?:[\\/]*)
11318   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11319   ;;
11320   *)
11321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324   IFS=$as_save_IFS
11325   test -z "$as_dir" && as_dir=.
11326     for ac_exec_ext in '' $ac_executable_extensions; do
11327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11328     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11330     break 2
11331   fi
11332 done
11333   done
11334 IFS=$as_save_IFS
11335 
11336   ;;
11337 esac
11338 fi
11339 XARGS=$ac_cv_path_XARGS
11340 if test -n "$XARGS"; then
11341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11342 $as_echo "$XARGS" >&6; }
11343 else
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11346 fi
11347 
11348 
11349   test -n "$XARGS" && break
11350 done
11351 
11352     else
11353       # If it succeeded, then it was overridden by the user. We will use it
11354       # for the tool.
11355 
11356       # First remove it from the list of overridden variables, so we can test
11357       # for unknown variables in the end.
11358       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11359 
11360       # Check if the provided tool contains a complete path.
11361       tool_specified="$XARGS"
11362       tool_basename="${tool_specified##*/}"
11363       if test "x$tool_basename" = "x$tool_specified"; then
11364         # A command without a complete path is provided, search $PATH.
11365         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11366 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11367         # Extract the first word of "$tool_basename", so it can be a program name with args.
11368 set dummy $tool_basename; ac_word=$2
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11370 $as_echo_n "checking for $ac_word... " >&6; }
11371 if ${ac_cv_path_XARGS+:} false; then :
11372   $as_echo_n "(cached) " >&6
11373 else
11374   case $XARGS in
11375   [\\/]* | ?:[\\/]*)
11376   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11377   ;;
11378   *)
11379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380 for as_dir in $PATH
11381 do
11382   IFS=$as_save_IFS
11383   test -z "$as_dir" && as_dir=.
11384     for ac_exec_ext in '' $ac_executable_extensions; do
11385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11386     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11388     break 2
11389   fi
11390 done
11391   done
11392 IFS=$as_save_IFS
11393 
11394   ;;
11395 esac
11396 fi
11397 XARGS=$ac_cv_path_XARGS
11398 if test -n "$XARGS"; then
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11400 $as_echo "$XARGS" >&6; }
11401 else
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403 $as_echo "no" >&6; }
11404 fi
11405 
11406 
11407         if test "x$XARGS" = x; then
11408           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11409         fi
11410       else
11411         # Otherwise we believe it is a complete path. Use it as it is.
11412         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11413 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11415 $as_echo_n "checking for XARGS... " >&6; }
11416         if test ! -x "$tool_specified"; then
11417           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11418 $as_echo "not found" >&6; }
11419           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11420         fi
11421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11422 $as_echo "$tool_specified" >&6; }
11423       fi
11424     fi
11425   fi
11426 
11427 
11428 
11429   if test "x$XARGS" = x; then
11430     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11431   fi
11432 
11433 
11434 
11435   # Then required tools that require some special treatment.
11436 
11437 
11438   # Publish this variable in the help.
11439 
11440 
11441   if test "x$AWK" = x; then
11442     # The variable is not set by user, try to locate tool using the code snippet
11443     for ac_prog in gawk mawk nawk awk
11444 do
11445   # Extract the first word of "$ac_prog", so it can be a program name with args.
11446 set dummy $ac_prog; ac_word=$2
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448 $as_echo_n "checking for $ac_word... " >&6; }
11449 if ${ac_cv_prog_AWK+:} false; then :
11450   $as_echo_n "(cached) " >&6
11451 else
11452   if test -n "$AWK"; then
11453   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11454 else
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $PATH
11457 do
11458   IFS=$as_save_IFS
11459   test -z "$as_dir" && as_dir=.
11460     for ac_exec_ext in '' $ac_executable_extensions; do
11461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11462     ac_cv_prog_AWK="$ac_prog"
11463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11464     break 2
11465   fi
11466 done
11467   done
11468 IFS=$as_save_IFS
11469 
11470 fi
11471 fi
11472 AWK=$ac_cv_prog_AWK
11473 if test -n "$AWK"; then
11474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11475 $as_echo "$AWK" >&6; }
11476 else
11477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11479 fi
11480 
11481 
11482   test -n "$AWK" && break
11483 done
11484 
11485   else
11486     # The variable is set, but is it from the command line or the environment?
11487 
11488     # Try to remove the string !AWK! from our list.
11489     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11490     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11491       # If it failed, the variable was not from the command line. Ignore it,
11492       # but warn the user (except for BASH, which is always set by the calling BASH).
11493       if test "xAWK" != xBASH; then
11494         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11495 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11496       fi
11497       # Try to locate tool using the code snippet
11498       for ac_prog in gawk mawk nawk awk
11499 do
11500   # Extract the first word of "$ac_prog", so it can be a program name with args.
11501 set dummy $ac_prog; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if ${ac_cv_prog_AWK+:} false; then :
11505   $as_echo_n "(cached) " >&6
11506 else
11507   if test -n "$AWK"; then
11508   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11509 else
11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511 for as_dir in $PATH
11512 do
11513   IFS=$as_save_IFS
11514   test -z "$as_dir" && as_dir=.
11515     for ac_exec_ext in '' $ac_executable_extensions; do
11516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11517     ac_cv_prog_AWK="$ac_prog"
11518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519     break 2
11520   fi
11521 done
11522   done
11523 IFS=$as_save_IFS
11524 
11525 fi
11526 fi
11527 AWK=$ac_cv_prog_AWK
11528 if test -n "$AWK"; then
11529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11530 $as_echo "$AWK" >&6; }
11531 else
11532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11534 fi
11535 
11536 
11537   test -n "$AWK" && break
11538 done
11539 
11540     else
11541       # If it succeeded, then it was overridden by the user. We will use it
11542       # for the tool.
11543 
11544       # First remove it from the list of overridden variables, so we can test
11545       # for unknown variables in the end.
11546       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11547 
11548       # Check if the provided tool contains a complete path.
11549       tool_specified="$AWK"
11550       tool_basename="${tool_specified##*/}"
11551       if test "x$tool_basename" = "x$tool_specified"; then
11552         # A command without a complete path is provided, search $PATH.
11553         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11554 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11555         # Extract the first word of "$tool_basename", so it can be a program name with args.
11556 set dummy $tool_basename; ac_word=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if ${ac_cv_path_AWK+:} false; then :
11560   $as_echo_n "(cached) " >&6
11561 else
11562   case $AWK in
11563   [\\/]* | ?:[\\/]*)
11564   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11565   ;;
11566   *)
11567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11569 do
11570   IFS=$as_save_IFS
11571   test -z "$as_dir" && as_dir=.
11572     for ac_exec_ext in '' $ac_executable_extensions; do
11573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576     break 2
11577   fi
11578 done
11579   done
11580 IFS=$as_save_IFS
11581 
11582   ;;
11583 esac
11584 fi
11585 AWK=$ac_cv_path_AWK
11586 if test -n "$AWK"; then
11587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11588 $as_echo "$AWK" >&6; }
11589 else
11590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11592 fi
11593 
11594 
11595         if test "x$AWK" = x; then
11596           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11597         fi
11598       else
11599         # Otherwise we believe it is a complete path. Use it as it is.
11600         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11601 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11603 $as_echo_n "checking for AWK... " >&6; }
11604         if test ! -x "$tool_specified"; then
11605           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11606 $as_echo "not found" >&6; }
11607           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11608         fi
11609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11610 $as_echo "$tool_specified" >&6; }
11611       fi
11612     fi
11613   fi
11614 
11615 
11616   if test "x$AWK" = x; then
11617     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11618   fi
11619 
11620 
11621 
11622 
11623   # Publish this variable in the help.
11624 
11625 
11626   if test "x$GREP" = x; then
11627     # The variable is not set by user, try to locate tool using the code snippet
11628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11629 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11630 if ${ac_cv_path_GREP+:} false; then :
11631   $as_echo_n "(cached) " >&6
11632 else
11633   if test -z "$GREP"; then
11634   ac_path_GREP_found=false
11635   # Loop through the user's path and test for each of PROGNAME-LIST
11636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11638 do
11639   IFS=$as_save_IFS
11640   test -z "$as_dir" && as_dir=.
11641     for ac_prog in grep ggrep; do
11642     for ac_exec_ext in '' $ac_executable_extensions; do
11643       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11644       as_fn_executable_p "$ac_path_GREP" || continue
11645 # Check for GNU ac_path_GREP and select it if it is found.
11646   # Check for GNU $ac_path_GREP
11647 case `"$ac_path_GREP" --version 2>&1` in
11648 *GNU*)
11649   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11650 *)
11651   ac_count=0
11652   $as_echo_n 0123456789 >"conftest.in"
11653   while :
11654   do
11655     cat "conftest.in" "conftest.in" >"conftest.tmp"
11656     mv "conftest.tmp" "conftest.in"
11657     cp "conftest.in" "conftest.nl"
11658     $as_echo 'GREP' >> "conftest.nl"
11659     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11660     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11661     as_fn_arith $ac_count + 1 && ac_count=$as_val
11662     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11663       # Best one so far, save it but keep looking for a better one
11664       ac_cv_path_GREP="$ac_path_GREP"
11665       ac_path_GREP_max=$ac_count
11666     fi
11667     # 10*(2^10) chars as input seems more than enough
11668     test $ac_count -gt 10 && break
11669   done
11670   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11671 esac
11672 
11673       $ac_path_GREP_found && break 3
11674     done
11675   done
11676   done
11677 IFS=$as_save_IFS
11678   if test -z "$ac_cv_path_GREP"; then
11679     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11680   fi
11681 else
11682   ac_cv_path_GREP=$GREP
11683 fi
11684 
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11687 $as_echo "$ac_cv_path_GREP" >&6; }
11688  GREP="$ac_cv_path_GREP"
11689 
11690 
11691   else
11692     # The variable is set, but is it from the command line or the environment?
11693 
11694     # Try to remove the string !GREP! from our list.
11695     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11696     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11697       # If it failed, the variable was not from the command line. Ignore it,
11698       # but warn the user (except for BASH, which is always set by the calling BASH).
11699       if test "xGREP" != xBASH; then
11700         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11701 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11702       fi
11703       # Try to locate tool using the code snippet
11704       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11705 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11706 if ${ac_cv_path_GREP+:} false; then :
11707   $as_echo_n "(cached) " >&6
11708 else
11709   if test -z "$GREP"; then
11710   ac_path_GREP_found=false
11711   # Loop through the user's path and test for each of PROGNAME-LIST
11712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11714 do
11715   IFS=$as_save_IFS
11716   test -z "$as_dir" && as_dir=.
11717     for ac_prog in grep ggrep; do
11718     for ac_exec_ext in '' $ac_executable_extensions; do
11719       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11720       as_fn_executable_p "$ac_path_GREP" || continue
11721 # Check for GNU ac_path_GREP and select it if it is found.
11722   # Check for GNU $ac_path_GREP
11723 case `"$ac_path_GREP" --version 2>&1` in
11724 *GNU*)
11725   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11726 *)
11727   ac_count=0
11728   $as_echo_n 0123456789 >"conftest.in"
11729   while :
11730   do
11731     cat "conftest.in" "conftest.in" >"conftest.tmp"
11732     mv "conftest.tmp" "conftest.in"
11733     cp "conftest.in" "conftest.nl"
11734     $as_echo 'GREP' >> "conftest.nl"
11735     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11736     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11737     as_fn_arith $ac_count + 1 && ac_count=$as_val
11738     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11739       # Best one so far, save it but keep looking for a better one
11740       ac_cv_path_GREP="$ac_path_GREP"
11741       ac_path_GREP_max=$ac_count
11742     fi
11743     # 10*(2^10) chars as input seems more than enough
11744     test $ac_count -gt 10 && break
11745   done
11746   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11747 esac
11748 
11749       $ac_path_GREP_found && break 3
11750     done
11751   done
11752   done
11753 IFS=$as_save_IFS
11754   if test -z "$ac_cv_path_GREP"; then
11755     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11756   fi
11757 else
11758   ac_cv_path_GREP=$GREP
11759 fi
11760 
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11763 $as_echo "$ac_cv_path_GREP" >&6; }
11764  GREP="$ac_cv_path_GREP"
11765 
11766 
11767     else
11768       # If it succeeded, then it was overridden by the user. We will use it
11769       # for the tool.
11770 
11771       # First remove it from the list of overridden variables, so we can test
11772       # for unknown variables in the end.
11773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11774 
11775       # Check if the provided tool contains a complete path.
11776       tool_specified="$GREP"
11777       tool_basename="${tool_specified##*/}"
11778       if test "x$tool_basename" = "x$tool_specified"; then
11779         # A command without a complete path is provided, search $PATH.
11780         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11781 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11782         # Extract the first word of "$tool_basename", so it can be a program name with args.
11783 set dummy $tool_basename; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_path_GREP+:} false; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   case $GREP in
11790   [\\/]* | ?:[\\/]*)
11791   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11792   ;;
11793   *)
11794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11796 do
11797   IFS=$as_save_IFS
11798   test -z "$as_dir" && as_dir=.
11799     for ac_exec_ext in '' $ac_executable_extensions; do
11800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11801     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803     break 2
11804   fi
11805 done
11806   done
11807 IFS=$as_save_IFS
11808 
11809   ;;
11810 esac
11811 fi
11812 GREP=$ac_cv_path_GREP
11813 if test -n "$GREP"; then
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11815 $as_echo "$GREP" >&6; }
11816 else
11817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11819 fi
11820 
11821 
11822         if test "x$GREP" = x; then
11823           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11824         fi
11825       else
11826         # Otherwise we believe it is a complete path. Use it as it is.
11827         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11828 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11830 $as_echo_n "checking for GREP... " >&6; }
11831         if test ! -x "$tool_specified"; then
11832           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11833 $as_echo "not found" >&6; }
11834           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11835         fi
11836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11837 $as_echo "$tool_specified" >&6; }
11838       fi
11839     fi
11840   fi
11841 
11842 
11843   if test "x$GREP" = x; then
11844     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11845   fi
11846 
11847 
11848 
11849 
11850   # Publish this variable in the help.
11851 
11852 
11853   if test "x$EGREP" = x; then
11854     # The variable is not set by user, try to locate tool using the code snippet
11855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11856 $as_echo_n "checking for egrep... " >&6; }
11857 if ${ac_cv_path_EGREP+:} false; then :
11858   $as_echo_n "(cached) " >&6
11859 else
11860   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11861    then ac_cv_path_EGREP="$GREP -E"
11862    else
11863      if test -z "$EGREP"; then
11864   ac_path_EGREP_found=false
11865   # Loop through the user's path and test for each of PROGNAME-LIST
11866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11868 do
11869   IFS=$as_save_IFS
11870   test -z "$as_dir" && as_dir=.
11871     for ac_prog in egrep; do
11872     for ac_exec_ext in '' $ac_executable_extensions; do
11873       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11874       as_fn_executable_p "$ac_path_EGREP" || continue
11875 # Check for GNU ac_path_EGREP and select it if it is found.
11876   # Check for GNU $ac_path_EGREP
11877 case `"$ac_path_EGREP" --version 2>&1` in
11878 *GNU*)
11879   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11880 *)
11881   ac_count=0
11882   $as_echo_n 0123456789 >"conftest.in"
11883   while :
11884   do
11885     cat "conftest.in" "conftest.in" >"conftest.tmp"
11886     mv "conftest.tmp" "conftest.in"
11887     cp "conftest.in" "conftest.nl"
11888     $as_echo 'EGREP' >> "conftest.nl"
11889     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11890     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11891     as_fn_arith $ac_count + 1 && ac_count=$as_val
11892     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11893       # Best one so far, save it but keep looking for a better one
11894       ac_cv_path_EGREP="$ac_path_EGREP"
11895       ac_path_EGREP_max=$ac_count
11896     fi
11897     # 10*(2^10) chars as input seems more than enough
11898     test $ac_count -gt 10 && break
11899   done
11900   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11901 esac
11902 
11903       $ac_path_EGREP_found && break 3
11904     done
11905   done
11906   done
11907 IFS=$as_save_IFS
11908   if test -z "$ac_cv_path_EGREP"; then
11909     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11910   fi
11911 else
11912   ac_cv_path_EGREP=$EGREP
11913 fi
11914 
11915    fi
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11918 $as_echo "$ac_cv_path_EGREP" >&6; }
11919  EGREP="$ac_cv_path_EGREP"
11920 
11921 
11922   else
11923     # The variable is set, but is it from the command line or the environment?
11924 
11925     # Try to remove the string !EGREP! from our list.
11926     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11927     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11928       # If it failed, the variable was not from the command line. Ignore it,
11929       # but warn the user (except for BASH, which is always set by the calling BASH).
11930       if test "xEGREP" != xBASH; then
11931         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11932 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11933       fi
11934       # Try to locate tool using the code snippet
11935       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11936 $as_echo_n "checking for egrep... " >&6; }
11937 if ${ac_cv_path_EGREP+:} false; then :
11938   $as_echo_n "(cached) " >&6
11939 else
11940   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11941    then ac_cv_path_EGREP="$GREP -E"
11942    else
11943      if test -z "$EGREP"; then
11944   ac_path_EGREP_found=false
11945   # Loop through the user's path and test for each of PROGNAME-LIST
11946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11948 do
11949   IFS=$as_save_IFS
11950   test -z "$as_dir" && as_dir=.
11951     for ac_prog in egrep; do
11952     for ac_exec_ext in '' $ac_executable_extensions; do
11953       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11954       as_fn_executable_p "$ac_path_EGREP" || continue
11955 # Check for GNU ac_path_EGREP and select it if it is found.
11956   # Check for GNU $ac_path_EGREP
11957 case `"$ac_path_EGREP" --version 2>&1` in
11958 *GNU*)
11959   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11960 *)
11961   ac_count=0
11962   $as_echo_n 0123456789 >"conftest.in"
11963   while :
11964   do
11965     cat "conftest.in" "conftest.in" >"conftest.tmp"
11966     mv "conftest.tmp" "conftest.in"
11967     cp "conftest.in" "conftest.nl"
11968     $as_echo 'EGREP' >> "conftest.nl"
11969     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11970     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11971     as_fn_arith $ac_count + 1 && ac_count=$as_val
11972     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11973       # Best one so far, save it but keep looking for a better one
11974       ac_cv_path_EGREP="$ac_path_EGREP"
11975       ac_path_EGREP_max=$ac_count
11976     fi
11977     # 10*(2^10) chars as input seems more than enough
11978     test $ac_count -gt 10 && break
11979   done
11980   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11981 esac
11982 
11983       $ac_path_EGREP_found && break 3
11984     done
11985   done
11986   done
11987 IFS=$as_save_IFS
11988   if test -z "$ac_cv_path_EGREP"; then
11989     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11990   fi
11991 else
11992   ac_cv_path_EGREP=$EGREP
11993 fi
11994 
11995    fi
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11998 $as_echo "$ac_cv_path_EGREP" >&6; }
11999  EGREP="$ac_cv_path_EGREP"
12000 
12001 
12002     else
12003       # If it succeeded, then it was overridden by the user. We will use it
12004       # for the tool.
12005 
12006       # First remove it from the list of overridden variables, so we can test
12007       # for unknown variables in the end.
12008       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12009 
12010       # Check if the provided tool contains a complete path.
12011       tool_specified="$EGREP"
12012       tool_basename="${tool_specified##*/}"
12013       if test "x$tool_basename" = "x$tool_specified"; then
12014         # A command without a complete path is provided, search $PATH.
12015         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12016 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12017         # Extract the first word of "$tool_basename", so it can be a program name with args.
12018 set dummy $tool_basename; ac_word=$2
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12020 $as_echo_n "checking for $ac_word... " >&6; }
12021 if ${ac_cv_path_EGREP+:} false; then :
12022   $as_echo_n "(cached) " >&6
12023 else
12024   case $EGREP in
12025   [\\/]* | ?:[\\/]*)
12026   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12027   ;;
12028   *)
12029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12031 do
12032   IFS=$as_save_IFS
12033   test -z "$as_dir" && as_dir=.
12034     for ac_exec_ext in '' $ac_executable_extensions; do
12035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038     break 2
12039   fi
12040 done
12041   done
12042 IFS=$as_save_IFS
12043 
12044   ;;
12045 esac
12046 fi
12047 EGREP=$ac_cv_path_EGREP
12048 if test -n "$EGREP"; then
12049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12050 $as_echo "$EGREP" >&6; }
12051 else
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054 fi
12055 
12056 
12057         if test "x$EGREP" = x; then
12058           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12059         fi
12060       else
12061         # Otherwise we believe it is a complete path. Use it as it is.
12062         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12063 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12064         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12065 $as_echo_n "checking for EGREP... " >&6; }
12066         if test ! -x "$tool_specified"; then
12067           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12068 $as_echo "not found" >&6; }
12069           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12070         fi
12071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12072 $as_echo "$tool_specified" >&6; }
12073       fi
12074     fi
12075   fi
12076 
12077 
12078   if test "x$EGREP" = x; then
12079     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12080   fi
12081 
12082 
12083 
12084 
12085   # Publish this variable in the help.
12086 
12087 
12088   if test "x$FGREP" = x; then
12089     # The variable is not set by user, try to locate tool using the code snippet
12090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12091 $as_echo_n "checking for fgrep... " >&6; }
12092 if ${ac_cv_path_FGREP+:} false; then :
12093   $as_echo_n "(cached) " >&6
12094 else
12095   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12096    then ac_cv_path_FGREP="$GREP -F"
12097    else
12098      if test -z "$FGREP"; then
12099   ac_path_FGREP_found=false
12100   # Loop through the user's path and test for each of PROGNAME-LIST
12101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12103 do
12104   IFS=$as_save_IFS
12105   test -z "$as_dir" && as_dir=.
12106     for ac_prog in fgrep; do
12107     for ac_exec_ext in '' $ac_executable_extensions; do
12108       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12109       as_fn_executable_p "$ac_path_FGREP" || continue
12110 # Check for GNU ac_path_FGREP and select it if it is found.
12111   # Check for GNU $ac_path_FGREP
12112 case `"$ac_path_FGREP" --version 2>&1` in
12113 *GNU*)
12114   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12115 *)
12116   ac_count=0
12117   $as_echo_n 0123456789 >"conftest.in"
12118   while :
12119   do
12120     cat "conftest.in" "conftest.in" >"conftest.tmp"
12121     mv "conftest.tmp" "conftest.in"
12122     cp "conftest.in" "conftest.nl"
12123     $as_echo 'FGREP' >> "conftest.nl"
12124     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12125     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12126     as_fn_arith $ac_count + 1 && ac_count=$as_val
12127     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12128       # Best one so far, save it but keep looking for a better one
12129       ac_cv_path_FGREP="$ac_path_FGREP"
12130       ac_path_FGREP_max=$ac_count
12131     fi
12132     # 10*(2^10) chars as input seems more than enough
12133     test $ac_count -gt 10 && break
12134   done
12135   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12136 esac
12137 
12138       $ac_path_FGREP_found && break 3
12139     done
12140   done
12141   done
12142 IFS=$as_save_IFS
12143   if test -z "$ac_cv_path_FGREP"; then
12144     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12145   fi
12146 else
12147   ac_cv_path_FGREP=$FGREP
12148 fi
12149 
12150    fi
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12153 $as_echo "$ac_cv_path_FGREP" >&6; }
12154  FGREP="$ac_cv_path_FGREP"
12155 
12156 
12157   else
12158     # The variable is set, but is it from the command line or the environment?
12159 
12160     # Try to remove the string !FGREP! from our list.
12161     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12162     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12163       # If it failed, the variable was not from the command line. Ignore it,
12164       # but warn the user (except for BASH, which is always set by the calling BASH).
12165       if test "xFGREP" != xBASH; then
12166         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12167 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12168       fi
12169       # Try to locate tool using the code snippet
12170       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12171 $as_echo_n "checking for fgrep... " >&6; }
12172 if ${ac_cv_path_FGREP+:} false; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12176    then ac_cv_path_FGREP="$GREP -F"
12177    else
12178      if test -z "$FGREP"; then
12179   ac_path_FGREP_found=false
12180   # Loop through the user's path and test for each of PROGNAME-LIST
12181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12183 do
12184   IFS=$as_save_IFS
12185   test -z "$as_dir" && as_dir=.
12186     for ac_prog in fgrep; do
12187     for ac_exec_ext in '' $ac_executable_extensions; do
12188       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12189       as_fn_executable_p "$ac_path_FGREP" || continue
12190 # Check for GNU ac_path_FGREP and select it if it is found.
12191   # Check for GNU $ac_path_FGREP
12192 case `"$ac_path_FGREP" --version 2>&1` in
12193 *GNU*)
12194   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12195 *)
12196   ac_count=0
12197   $as_echo_n 0123456789 >"conftest.in"
12198   while :
12199   do
12200     cat "conftest.in" "conftest.in" >"conftest.tmp"
12201     mv "conftest.tmp" "conftest.in"
12202     cp "conftest.in" "conftest.nl"
12203     $as_echo 'FGREP' >> "conftest.nl"
12204     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12206     as_fn_arith $ac_count + 1 && ac_count=$as_val
12207     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12208       # Best one so far, save it but keep looking for a better one
12209       ac_cv_path_FGREP="$ac_path_FGREP"
12210       ac_path_FGREP_max=$ac_count
12211     fi
12212     # 10*(2^10) chars as input seems more than enough
12213     test $ac_count -gt 10 && break
12214   done
12215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12216 esac
12217 
12218       $ac_path_FGREP_found && break 3
12219     done
12220   done
12221   done
12222 IFS=$as_save_IFS
12223   if test -z "$ac_cv_path_FGREP"; then
12224     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12225   fi
12226 else
12227   ac_cv_path_FGREP=$FGREP
12228 fi
12229 
12230    fi
12231 fi
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12233 $as_echo "$ac_cv_path_FGREP" >&6; }
12234  FGREP="$ac_cv_path_FGREP"
12235 
12236 
12237     else
12238       # If it succeeded, then it was overridden by the user. We will use it
12239       # for the tool.
12240 
12241       # First remove it from the list of overridden variables, so we can test
12242       # for unknown variables in the end.
12243       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12244 
12245       # Check if the provided tool contains a complete path.
12246       tool_specified="$FGREP"
12247       tool_basename="${tool_specified##*/}"
12248       if test "x$tool_basename" = "x$tool_specified"; then
12249         # A command without a complete path is provided, search $PATH.
12250         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12251 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12252         # Extract the first word of "$tool_basename", so it can be a program name with args.
12253 set dummy $tool_basename; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if ${ac_cv_path_FGREP+:} false; then :
12257   $as_echo_n "(cached) " >&6
12258 else
12259   case $FGREP in
12260   [\\/]* | ?:[\\/]*)
12261   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12262   ;;
12263   *)
12264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12271     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276   done
12277 IFS=$as_save_IFS
12278 
12279   ;;
12280 esac
12281 fi
12282 FGREP=$ac_cv_path_FGREP
12283 if test -n "$FGREP"; then
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12285 $as_echo "$FGREP" >&6; }
12286 else
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 fi
12290 
12291 
12292         if test "x$FGREP" = x; then
12293           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12294         fi
12295       else
12296         # Otherwise we believe it is a complete path. Use it as it is.
12297         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12298 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12300 $as_echo_n "checking for FGREP... " >&6; }
12301         if test ! -x "$tool_specified"; then
12302           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12303 $as_echo "not found" >&6; }
12304           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12305         fi
12306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12307 $as_echo "$tool_specified" >&6; }
12308       fi
12309     fi
12310   fi
12311 
12312 
12313   if test "x$FGREP" = x; then
12314     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12315   fi
12316 
12317 
12318 
12319 
12320   # Publish this variable in the help.
12321 
12322 
12323   if test "x$SED" = x; then
12324     # The variable is not set by user, try to locate tool using the code snippet
12325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12326 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12327 if ${ac_cv_path_SED+:} false; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12331      for ac_i in 1 2 3 4 5 6 7; do
12332        ac_script="$ac_script$as_nl$ac_script"
12333      done
12334      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12335      { ac_script=; unset ac_script;}
12336      if test -z "$SED"; then
12337   ac_path_SED_found=false
12338   # Loop through the user's path and test for each of PROGNAME-LIST
12339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12341 do
12342   IFS=$as_save_IFS
12343   test -z "$as_dir" && as_dir=.
12344     for ac_prog in sed gsed; do
12345     for ac_exec_ext in '' $ac_executable_extensions; do
12346       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12347       as_fn_executable_p "$ac_path_SED" || continue
12348 # Check for GNU ac_path_SED and select it if it is found.
12349   # Check for GNU $ac_path_SED
12350 case `"$ac_path_SED" --version 2>&1` in
12351 *GNU*)
12352   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12353 *)
12354   ac_count=0
12355   $as_echo_n 0123456789 >"conftest.in"
12356   while :
12357   do
12358     cat "conftest.in" "conftest.in" >"conftest.tmp"
12359     mv "conftest.tmp" "conftest.in"
12360     cp "conftest.in" "conftest.nl"
12361     $as_echo '' >> "conftest.nl"
12362     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12363     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12364     as_fn_arith $ac_count + 1 && ac_count=$as_val
12365     if test $ac_count -gt ${ac_path_SED_max-0}; then
12366       # Best one so far, save it but keep looking for a better one
12367       ac_cv_path_SED="$ac_path_SED"
12368       ac_path_SED_max=$ac_count
12369     fi
12370     # 10*(2^10) chars as input seems more than enough
12371     test $ac_count -gt 10 && break
12372   done
12373   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12374 esac
12375 
12376       $ac_path_SED_found && break 3
12377     done
12378   done
12379   done
12380 IFS=$as_save_IFS
12381   if test -z "$ac_cv_path_SED"; then
12382     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12383   fi
12384 else
12385   ac_cv_path_SED=$SED
12386 fi
12387 
12388 fi
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12390 $as_echo "$ac_cv_path_SED" >&6; }
12391  SED="$ac_cv_path_SED"
12392   rm -f conftest.sed
12393 
12394   else
12395     # The variable is set, but is it from the command line or the environment?
12396 
12397     # Try to remove the string !SED! from our list.
12398     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12399     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12400       # If it failed, the variable was not from the command line. Ignore it,
12401       # but warn the user (except for BASH, which is always set by the calling BASH).
12402       if test "xSED" != xBASH; then
12403         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12404 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12405       fi
12406       # Try to locate tool using the code snippet
12407       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12408 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12409 if ${ac_cv_path_SED+:} false; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12413      for ac_i in 1 2 3 4 5 6 7; do
12414        ac_script="$ac_script$as_nl$ac_script"
12415      done
12416      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12417      { ac_script=; unset ac_script;}
12418      if test -z "$SED"; then
12419   ac_path_SED_found=false
12420   # Loop through the user's path and test for each of PROGNAME-LIST
12421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12423 do
12424   IFS=$as_save_IFS
12425   test -z "$as_dir" && as_dir=.
12426     for ac_prog in sed gsed; do
12427     for ac_exec_ext in '' $ac_executable_extensions; do
12428       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12429       as_fn_executable_p "$ac_path_SED" || continue
12430 # Check for GNU ac_path_SED and select it if it is found.
12431   # Check for GNU $ac_path_SED
12432 case `"$ac_path_SED" --version 2>&1` in
12433 *GNU*)
12434   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12435 *)
12436   ac_count=0
12437   $as_echo_n 0123456789 >"conftest.in"
12438   while :
12439   do
12440     cat "conftest.in" "conftest.in" >"conftest.tmp"
12441     mv "conftest.tmp" "conftest.in"
12442     cp "conftest.in" "conftest.nl"
12443     $as_echo '' >> "conftest.nl"
12444     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12445     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12446     as_fn_arith $ac_count + 1 && ac_count=$as_val
12447     if test $ac_count -gt ${ac_path_SED_max-0}; then
12448       # Best one so far, save it but keep looking for a better one
12449       ac_cv_path_SED="$ac_path_SED"
12450       ac_path_SED_max=$ac_count
12451     fi
12452     # 10*(2^10) chars as input seems more than enough
12453     test $ac_count -gt 10 && break
12454   done
12455   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12456 esac
12457 
12458       $ac_path_SED_found && break 3
12459     done
12460   done
12461   done
12462 IFS=$as_save_IFS
12463   if test -z "$ac_cv_path_SED"; then
12464     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12465   fi
12466 else
12467   ac_cv_path_SED=$SED
12468 fi
12469 
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12472 $as_echo "$ac_cv_path_SED" >&6; }
12473  SED="$ac_cv_path_SED"
12474   rm -f conftest.sed
12475 
12476     else
12477       # If it succeeded, then it was overridden by the user. We will use it
12478       # for the tool.
12479 
12480       # First remove it from the list of overridden variables, so we can test
12481       # for unknown variables in the end.
12482       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12483 
12484       # Check if the provided tool contains a complete path.
12485       tool_specified="$SED"
12486       tool_basename="${tool_specified##*/}"
12487       if test "x$tool_basename" = "x$tool_specified"; then
12488         # A command without a complete path is provided, search $PATH.
12489         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12490 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12491         # Extract the first word of "$tool_basename", so it can be a program name with args.
12492 set dummy $tool_basename; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_path_SED+:} false; then :
12496   $as_echo_n "(cached) " >&6
12497 else
12498   case $SED in
12499   [\\/]* | ?:[\\/]*)
12500   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12501   ;;
12502   *)
12503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12505 do
12506   IFS=$as_save_IFS
12507   test -z "$as_dir" && as_dir=.
12508     for ac_exec_ext in '' $ac_executable_extensions; do
12509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512     break 2
12513   fi
12514 done
12515   done
12516 IFS=$as_save_IFS
12517 
12518   ;;
12519 esac
12520 fi
12521 SED=$ac_cv_path_SED
12522 if test -n "$SED"; then
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12524 $as_echo "$SED" >&6; }
12525 else
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12528 fi
12529 
12530 
12531         if test "x$SED" = x; then
12532           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12533         fi
12534       else
12535         # Otherwise we believe it is a complete path. Use it as it is.
12536         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12537 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12539 $as_echo_n "checking for SED... " >&6; }
12540         if test ! -x "$tool_specified"; then
12541           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12542 $as_echo "not found" >&6; }
12543           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12544         fi
12545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12546 $as_echo "$tool_specified" >&6; }
12547       fi
12548     fi
12549   fi
12550 
12551 
12552   if test "x$SED" = x; then
12553     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12554   fi
12555 
12556 
12557 
12558   # Always force rm.
12559   RM="$RM -f"
12560 
12561   # pwd behaves differently on various platforms and some don't support the -L flag.
12562   # Always use the bash builtin pwd to get uniform behavior.
12563   THEPWDCMD=pwd
12564 
12565   # These are not required on all platforms
12566 
12567 
12568   # Publish this variable in the help.
12569 
12570 
12571   if test "x$CYGPATH" = x; then
12572     # The variable is not set by user, try to locate tool using the code snippet
12573     for ac_prog in cygpath
12574 do
12575   # Extract the first word of "$ac_prog", so it can be a program name with args.
12576 set dummy $ac_prog; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if ${ac_cv_path_CYGPATH+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   case $CYGPATH in
12583   [\\/]* | ?:[\\/]*)
12584   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12585   ;;
12586   *)
12587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590   IFS=$as_save_IFS
12591   test -z "$as_dir" && as_dir=.
12592     for ac_exec_ext in '' $ac_executable_extensions; do
12593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596     break 2
12597   fi
12598 done
12599   done
12600 IFS=$as_save_IFS
12601 
12602   ;;
12603 esac
12604 fi
12605 CYGPATH=$ac_cv_path_CYGPATH
12606 if test -n "$CYGPATH"; then
12607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12608 $as_echo "$CYGPATH" >&6; }
12609 else
12610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612 fi
12613 
12614 
12615   test -n "$CYGPATH" && break
12616 done
12617 
12618   else
12619     # The variable is set, but is it from the command line or the environment?
12620 
12621     # Try to remove the string !CYGPATH! from our list.
12622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12624       # If it failed, the variable was not from the command line. Ignore it,
12625       # but warn the user (except for BASH, which is always set by the calling BASH).
12626       if test "xCYGPATH" != xBASH; then
12627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12628 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12629       fi
12630       # Try to locate tool using the code snippet
12631       for ac_prog in cygpath
12632 do
12633   # Extract the first word of "$ac_prog", so it can be a program name with args.
12634 set dummy $ac_prog; ac_word=$2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if ${ac_cv_path_CYGPATH+:} false; then :
12638   $as_echo_n "(cached) " >&6
12639 else
12640   case $CYGPATH in
12641   [\\/]* | ?:[\\/]*)
12642   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12643   ;;
12644   *)
12645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12647 do
12648   IFS=$as_save_IFS
12649   test -z "$as_dir" && as_dir=.
12650     for ac_exec_ext in '' $ac_executable_extensions; do
12651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654     break 2
12655   fi
12656 done
12657   done
12658 IFS=$as_save_IFS
12659 
12660   ;;
12661 esac
12662 fi
12663 CYGPATH=$ac_cv_path_CYGPATH
12664 if test -n "$CYGPATH"; then
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12666 $as_echo "$CYGPATH" >&6; }
12667 else
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670 fi
12671 
12672 
12673   test -n "$CYGPATH" && break
12674 done
12675 
12676     else
12677       # If it succeeded, then it was overridden by the user. We will use it
12678       # for the tool.
12679 
12680       # First remove it from the list of overridden variables, so we can test
12681       # for unknown variables in the end.
12682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12683 
12684       # Check if the provided tool contains a complete path.
12685       tool_specified="$CYGPATH"
12686       tool_basename="${tool_specified##*/}"
12687       if test "x$tool_basename" = "x$tool_specified"; then
12688         # A command without a complete path is provided, search $PATH.
12689         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12690 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12691         # Extract the first word of "$tool_basename", so it can be a program name with args.
12692 set dummy $tool_basename; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 $as_echo_n "checking for $ac_word... " >&6; }
12695 if ${ac_cv_path_CYGPATH+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   case $CYGPATH in
12699   [\\/]* | ?:[\\/]*)
12700   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12701   ;;
12702   *)
12703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12705 do
12706   IFS=$as_save_IFS
12707   test -z "$as_dir" && as_dir=.
12708     for ac_exec_ext in '' $ac_executable_extensions; do
12709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12710     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712     break 2
12713   fi
12714 done
12715   done
12716 IFS=$as_save_IFS
12717 
12718   ;;
12719 esac
12720 fi
12721 CYGPATH=$ac_cv_path_CYGPATH
12722 if test -n "$CYGPATH"; then
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12724 $as_echo "$CYGPATH" >&6; }
12725 else
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12728 fi
12729 
12730 
12731         if test "x$CYGPATH" = x; then
12732           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12733         fi
12734       else
12735         # Otherwise we believe it is a complete path. Use it as it is.
12736         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12737 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12739 $as_echo_n "checking for CYGPATH... " >&6; }
12740         if test ! -x "$tool_specified"; then
12741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12742 $as_echo "not found" >&6; }
12743           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12744         fi
12745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12746 $as_echo "$tool_specified" >&6; }
12747       fi
12748     fi
12749   fi
12750 
12751 
12752 
12753 
12754   # Publish this variable in the help.
12755 
12756 
12757   if test "x$READLINK" = x; then
12758     # The variable is not set by user, try to locate tool using the code snippet
12759     for ac_prog in greadlink readlink
12760 do
12761   # Extract the first word of "$ac_prog", so it can be a program name with args.
12762 set dummy $ac_prog; ac_word=$2
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764 $as_echo_n "checking for $ac_word... " >&6; }
12765 if ${ac_cv_path_READLINK+:} false; then :
12766   $as_echo_n "(cached) " >&6
12767 else
12768   case $READLINK in
12769   [\\/]* | ?:[\\/]*)
12770   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12771   ;;
12772   *)
12773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774 for as_dir in $PATH
12775 do
12776   IFS=$as_save_IFS
12777   test -z "$as_dir" && as_dir=.
12778     for ac_exec_ext in '' $ac_executable_extensions; do
12779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12780     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782     break 2
12783   fi
12784 done
12785   done
12786 IFS=$as_save_IFS
12787 
12788   ;;
12789 esac
12790 fi
12791 READLINK=$ac_cv_path_READLINK
12792 if test -n "$READLINK"; then
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12794 $as_echo "$READLINK" >&6; }
12795 else
12796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12798 fi
12799 
12800 
12801   test -n "$READLINK" && break
12802 done
12803 
12804   else
12805     # The variable is set, but is it from the command line or the environment?
12806 
12807     # Try to remove the string !READLINK! from our list.
12808     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12809     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12810       # If it failed, the variable was not from the command line. Ignore it,
12811       # but warn the user (except for BASH, which is always set by the calling BASH).
12812       if test "xREADLINK" != xBASH; then
12813         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12814 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12815       fi
12816       # Try to locate tool using the code snippet
12817       for ac_prog in greadlink readlink
12818 do
12819   # Extract the first word of "$ac_prog", so it can be a program name with args.
12820 set dummy $ac_prog; ac_word=$2
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822 $as_echo_n "checking for $ac_word... " >&6; }
12823 if ${ac_cv_path_READLINK+:} false; then :
12824   $as_echo_n "(cached) " >&6
12825 else
12826   case $READLINK in
12827   [\\/]* | ?:[\\/]*)
12828   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12829   ;;
12830   *)
12831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12833 do
12834   IFS=$as_save_IFS
12835   test -z "$as_dir" && as_dir=.
12836     for ac_exec_ext in '' $ac_executable_extensions; do
12837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12838     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840     break 2
12841   fi
12842 done
12843   done
12844 IFS=$as_save_IFS
12845 
12846   ;;
12847 esac
12848 fi
12849 READLINK=$ac_cv_path_READLINK
12850 if test -n "$READLINK"; then
12851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12852 $as_echo "$READLINK" >&6; }
12853 else
12854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12856 fi
12857 
12858 
12859   test -n "$READLINK" && break
12860 done
12861 
12862     else
12863       # If it succeeded, then it was overridden by the user. We will use it
12864       # for the tool.
12865 
12866       # First remove it from the list of overridden variables, so we can test
12867       # for unknown variables in the end.
12868       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12869 
12870       # Check if the provided tool contains a complete path.
12871       tool_specified="$READLINK"
12872       tool_basename="${tool_specified##*/}"
12873       if test "x$tool_basename" = "x$tool_specified"; then
12874         # A command without a complete path is provided, search $PATH.
12875         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12876 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12877         # Extract the first word of "$tool_basename", so it can be a program name with args.
12878 set dummy $tool_basename; ac_word=$2
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880 $as_echo_n "checking for $ac_word... " >&6; }
12881 if ${ac_cv_path_READLINK+:} false; then :
12882   $as_echo_n "(cached) " >&6
12883 else
12884   case $READLINK in
12885   [\\/]* | ?:[\\/]*)
12886   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12887   ;;
12888   *)
12889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12891 do
12892   IFS=$as_save_IFS
12893   test -z "$as_dir" && as_dir=.
12894     for ac_exec_ext in '' $ac_executable_extensions; do
12895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12896     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12898     break 2
12899   fi
12900 done
12901   done
12902 IFS=$as_save_IFS
12903 
12904   ;;
12905 esac
12906 fi
12907 READLINK=$ac_cv_path_READLINK
12908 if test -n "$READLINK"; then
12909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12910 $as_echo "$READLINK" >&6; }
12911 else
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 $as_echo "no" >&6; }
12914 fi
12915 
12916 
12917         if test "x$READLINK" = x; then
12918           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12919         fi
12920       else
12921         # Otherwise we believe it is a complete path. Use it as it is.
12922         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12923 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12924         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12925 $as_echo_n "checking for READLINK... " >&6; }
12926         if test ! -x "$tool_specified"; then
12927           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12928 $as_echo "not found" >&6; }
12929           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12930         fi
12931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12932 $as_echo "$tool_specified" >&6; }
12933       fi
12934     fi
12935   fi
12936 
12937 
12938 
12939 
12940   # Publish this variable in the help.
12941 
12942 
12943   if test "x$DF" = x; then
12944     # The variable is not set by user, try to locate tool using the code snippet
12945     for ac_prog in df
12946 do
12947   # Extract the first word of "$ac_prog", so it can be a program name with args.
12948 set dummy $ac_prog; ac_word=$2
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950 $as_echo_n "checking for $ac_word... " >&6; }
12951 if ${ac_cv_path_DF+:} false; then :
12952   $as_echo_n "(cached) " >&6
12953 else
12954   case $DF in
12955   [\\/]* | ?:[\\/]*)
12956   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12957   ;;
12958   *)
12959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12961 do
12962   IFS=$as_save_IFS
12963   test -z "$as_dir" && as_dir=.
12964     for ac_exec_ext in '' $ac_executable_extensions; do
12965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12966     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968     break 2
12969   fi
12970 done
12971   done
12972 IFS=$as_save_IFS
12973 
12974   ;;
12975 esac
12976 fi
12977 DF=$ac_cv_path_DF
12978 if test -n "$DF"; then
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12980 $as_echo "$DF" >&6; }
12981 else
12982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984 fi
12985 
12986 
12987   test -n "$DF" && break
12988 done
12989 
12990   else
12991     # The variable is set, but is it from the command line or the environment?
12992 
12993     # Try to remove the string !DF! from our list.
12994     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12995     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12996       # If it failed, the variable was not from the command line. Ignore it,
12997       # but warn the user (except for BASH, which is always set by the calling BASH).
12998       if test "xDF" != xBASH; then
12999         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13000 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13001       fi
13002       # Try to locate tool using the code snippet
13003       for ac_prog in df
13004 do
13005   # Extract the first word of "$ac_prog", so it can be a program name with args.
13006 set dummy $ac_prog; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if ${ac_cv_path_DF+:} false; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   case $DF in
13013   [\\/]* | ?:[\\/]*)
13014   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13015   ;;
13016   *)
13017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13019 do
13020   IFS=$as_save_IFS
13021   test -z "$as_dir" && as_dir=.
13022     for ac_exec_ext in '' $ac_executable_extensions; do
13023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13024     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026     break 2
13027   fi
13028 done
13029   done
13030 IFS=$as_save_IFS
13031 
13032   ;;
13033 esac
13034 fi
13035 DF=$ac_cv_path_DF
13036 if test -n "$DF"; then
13037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13038 $as_echo "$DF" >&6; }
13039 else
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042 fi
13043 
13044 
13045   test -n "$DF" && break
13046 done
13047 
13048     else
13049       # If it succeeded, then it was overridden by the user. We will use it
13050       # for the tool.
13051 
13052       # First remove it from the list of overridden variables, so we can test
13053       # for unknown variables in the end.
13054       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13055 
13056       # Check if the provided tool contains a complete path.
13057       tool_specified="$DF"
13058       tool_basename="${tool_specified##*/}"
13059       if test "x$tool_basename" = "x$tool_specified"; then
13060         # A command without a complete path is provided, search $PATH.
13061         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13062 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13063         # Extract the first word of "$tool_basename", so it can be a program name with args.
13064 set dummy $tool_basename; ac_word=$2
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13066 $as_echo_n "checking for $ac_word... " >&6; }
13067 if ${ac_cv_path_DF+:} false; then :
13068   $as_echo_n "(cached) " >&6
13069 else
13070   case $DF in
13071   [\\/]* | ?:[\\/]*)
13072   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13073   ;;
13074   *)
13075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13077 do
13078   IFS=$as_save_IFS
13079   test -z "$as_dir" && as_dir=.
13080     for ac_exec_ext in '' $ac_executable_extensions; do
13081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13082     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084     break 2
13085   fi
13086 done
13087   done
13088 IFS=$as_save_IFS
13089 
13090   ;;
13091 esac
13092 fi
13093 DF=$ac_cv_path_DF
13094 if test -n "$DF"; then
13095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13096 $as_echo "$DF" >&6; }
13097 else
13098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13100 fi
13101 
13102 
13103         if test "x$DF" = x; then
13104           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13105         fi
13106       else
13107         # Otherwise we believe it is a complete path. Use it as it is.
13108         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13109 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13111 $as_echo_n "checking for DF... " >&6; }
13112         if test ! -x "$tool_specified"; then
13113           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13114 $as_echo "not found" >&6; }
13115           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13116         fi
13117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13118 $as_echo "$tool_specified" >&6; }
13119       fi
13120     fi
13121   fi
13122 
13123 
13124 
13125 
13126   # Publish this variable in the help.
13127 
13128 
13129   if test "x$SETFILE" = x; then
13130     # The variable is not set by user, try to locate tool using the code snippet
13131     for ac_prog in SetFile
13132 do
13133   # Extract the first word of "$ac_prog", so it can be a program name with args.
13134 set dummy $ac_prog; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136 $as_echo_n "checking for $ac_word... " >&6; }
13137 if ${ac_cv_path_SETFILE+:} false; then :
13138   $as_echo_n "(cached) " >&6
13139 else
13140   case $SETFILE in
13141   [\\/]* | ?:[\\/]*)
13142   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13143   ;;
13144   *)
13145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13147 do
13148   IFS=$as_save_IFS
13149   test -z "$as_dir" && as_dir=.
13150     for ac_exec_ext in '' $ac_executable_extensions; do
13151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13152     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13154     break 2
13155   fi
13156 done
13157   done
13158 IFS=$as_save_IFS
13159 
13160   ;;
13161 esac
13162 fi
13163 SETFILE=$ac_cv_path_SETFILE
13164 if test -n "$SETFILE"; then
13165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13166 $as_echo "$SETFILE" >&6; }
13167 else
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170 fi
13171 
13172 
13173   test -n "$SETFILE" && break
13174 done
13175 
13176   else
13177     # The variable is set, but is it from the command line or the environment?
13178 
13179     # Try to remove the string !SETFILE! from our list.
13180     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13181     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13182       # If it failed, the variable was not from the command line. Ignore it,
13183       # but warn the user (except for BASH, which is always set by the calling BASH).
13184       if test "xSETFILE" != xBASH; then
13185         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13186 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13187       fi
13188       # Try to locate tool using the code snippet
13189       for ac_prog in SetFile
13190 do
13191   # Extract the first word of "$ac_prog", so it can be a program name with args.
13192 set dummy $ac_prog; ac_word=$2
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if ${ac_cv_path_SETFILE+:} false; then :
13196   $as_echo_n "(cached) " >&6
13197 else
13198   case $SETFILE in
13199   [\\/]* | ?:[\\/]*)
13200   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13201   ;;
13202   *)
13203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13205 do
13206   IFS=$as_save_IFS
13207   test -z "$as_dir" && as_dir=.
13208     for ac_exec_ext in '' $ac_executable_extensions; do
13209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13210     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212     break 2
13213   fi
13214 done
13215   done
13216 IFS=$as_save_IFS
13217 
13218   ;;
13219 esac
13220 fi
13221 SETFILE=$ac_cv_path_SETFILE
13222 if test -n "$SETFILE"; then
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13224 $as_echo "$SETFILE" >&6; }
13225 else
13226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13228 fi
13229 
13230 
13231   test -n "$SETFILE" && break
13232 done
13233 
13234     else
13235       # If it succeeded, then it was overridden by the user. We will use it
13236       # for the tool.
13237 
13238       # First remove it from the list of overridden variables, so we can test
13239       # for unknown variables in the end.
13240       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13241 
13242       # Check if the provided tool contains a complete path.
13243       tool_specified="$SETFILE"
13244       tool_basename="${tool_specified##*/}"
13245       if test "x$tool_basename" = "x$tool_specified"; then
13246         # A command without a complete path is provided, search $PATH.
13247         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13248 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13249         # Extract the first word of "$tool_basename", so it can be a program name with args.
13250 set dummy $tool_basename; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if ${ac_cv_path_SETFILE+:} false; then :
13254   $as_echo_n "(cached) " >&6
13255 else
13256   case $SETFILE in
13257   [\\/]* | ?:[\\/]*)
13258   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13259   ;;
13260   *)
13261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262 for as_dir in $PATH
13263 do
13264   IFS=$as_save_IFS
13265   test -z "$as_dir" && as_dir=.
13266     for ac_exec_ext in '' $ac_executable_extensions; do
13267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13268     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13270     break 2
13271   fi
13272 done
13273   done
13274 IFS=$as_save_IFS
13275 
13276   ;;
13277 esac
13278 fi
13279 SETFILE=$ac_cv_path_SETFILE
13280 if test -n "$SETFILE"; then
13281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13282 $as_echo "$SETFILE" >&6; }
13283 else
13284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 fi
13287 
13288 
13289         if test "x$SETFILE" = x; then
13290           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13291         fi
13292       else
13293         # Otherwise we believe it is a complete path. Use it as it is.
13294         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13295 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13297 $as_echo_n "checking for SETFILE... " >&6; }
13298         if test ! -x "$tool_specified"; then
13299           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13300 $as_echo "not found" >&6; }
13301           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13302         fi
13303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13304 $as_echo "$tool_specified" >&6; }
13305       fi
13306     fi
13307   fi
13308 
13309 
13310 
13311 
13312 # Now we can determine OpenJDK build and target platforms. This is required to
13313 # have early on.
13314 # Make sure we can run config.sub.
13315 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13316   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13317 
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13319 $as_echo_n "checking build system type... " >&6; }
13320 if ${ac_cv_build+:} false; then :
13321   $as_echo_n "(cached) " >&6
13322 else
13323   ac_build_alias=$build_alias
13324 test "x$ac_build_alias" = x &&
13325   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13326 test "x$ac_build_alias" = x &&
13327   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13328 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13329   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13330 
13331 fi
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13333 $as_echo "$ac_cv_build" >&6; }
13334 case $ac_cv_build in
13335 *-*-*) ;;
13336 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13337 esac
13338 build=$ac_cv_build
13339 ac_save_IFS=$IFS; IFS='-'
13340 set x $ac_cv_build
13341 shift
13342 build_cpu=$1
13343 build_vendor=$2
13344 shift; shift
13345 # Remember, the first character of IFS is used to create $*,
13346 # except with old shells:
13347 build_os=$*
13348 IFS=$ac_save_IFS
13349 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13350 
13351 
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13353 $as_echo_n "checking host system type... " >&6; }
13354 if ${ac_cv_host+:} false; then :
13355   $as_echo_n "(cached) " >&6
13356 else
13357   if test "x$host_alias" = x; then
13358   ac_cv_host=$ac_cv_build
13359 else
13360   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13361     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13362 fi
13363 
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13366 $as_echo "$ac_cv_host" >&6; }
13367 case $ac_cv_host in
13368 *-*-*) ;;
13369 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13370 esac
13371 host=$ac_cv_host
13372 ac_save_IFS=$IFS; IFS='-'
13373 set x $ac_cv_host
13374 shift
13375 host_cpu=$1
13376 host_vendor=$2
13377 shift; shift
13378 # Remember, the first character of IFS is used to create $*,
13379 # except with old shells:
13380 host_os=$*
13381 IFS=$ac_save_IFS
13382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13383 
13384 
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13386 $as_echo_n "checking target system type... " >&6; }
13387 if ${ac_cv_target+:} false; then :
13388   $as_echo_n "(cached) " >&6
13389 else
13390   if test "x$target_alias" = x; then
13391   ac_cv_target=$ac_cv_host
13392 else
13393   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13394     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13395 fi
13396 
13397 fi
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13399 $as_echo "$ac_cv_target" >&6; }
13400 case $ac_cv_target in
13401 *-*-*) ;;
13402 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13403 esac
13404 target=$ac_cv_target
13405 ac_save_IFS=$IFS; IFS='-'
13406 set x $ac_cv_target
13407 shift
13408 target_cpu=$1
13409 target_vendor=$2
13410 shift; shift
13411 # Remember, the first character of IFS is used to create $*,
13412 # except with old shells:
13413 target_os=$*
13414 IFS=$ac_save_IFS
13415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13416 
13417 
13418 # The aliases save the names the user supplied, while $host etc.
13419 # will get canonicalized.
13420 test -n "$target_alias" &&
13421   test "$program_prefix$program_suffix$program_transform_name" = \
13422     NONENONEs,x,x, &&
13423   program_prefix=${target_alias}-
13424 
13425   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13426   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13427   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13428   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13429   # to use the configure naming style.
13430 
13431 
13432 
13433 
13434 
13435   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13436   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13437   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13438   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13439   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13440   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13441 
13442 
13443 
13444   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13445 
13446   case "$build_os" in
13447     *linux*)
13448       VAR_OS=linux
13449       VAR_OS_API=posix
13450       VAR_OS_ENV=linux
13451       ;;
13452     *solaris*)
13453       VAR_OS=solaris
13454       VAR_OS_API=posix
13455       VAR_OS_ENV=solaris
13456       ;;
13457     *darwin*)
13458       VAR_OS=macosx
13459       VAR_OS_API=posix
13460       VAR_OS_ENV=macosx
13461       ;;
13462     *bsd*)
13463       VAR_OS=bsd
13464       VAR_OS_API=posix
13465       VAR_OS_ENV=bsd
13466       ;;
13467     *cygwin*)
13468       VAR_OS=windows
13469       VAR_OS_API=winapi
13470       VAR_OS_ENV=windows.cygwin
13471       ;;
13472     *mingw*)
13473       VAR_OS=windows
13474       VAR_OS_API=winapi
13475       VAR_OS_ENV=windows.msys
13476       ;;
13477     *aix*)
13478       VAR_OS=aix
13479       VAR_OS_API=posix
13480       VAR_OS_ENV=aix
13481       ;;
13482     *)
13483       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13484       ;;
13485   esac
13486 
13487 
13488   # First argument is the cpu name from the trip/quad
13489   case "$build_cpu" in
13490     x86_64)
13491       VAR_CPU=x86_64
13492       VAR_CPU_ARCH=x86
13493       VAR_CPU_BITS=64
13494       VAR_CPU_ENDIAN=little
13495       ;;
13496     i?86)
13497       VAR_CPU=x86
13498       VAR_CPU_ARCH=x86
13499       VAR_CPU_BITS=32
13500       VAR_CPU_ENDIAN=little
13501       ;;
13502     arm*)
13503       VAR_CPU=arm
13504       VAR_CPU_ARCH=arm
13505       VAR_CPU_BITS=32
13506       VAR_CPU_ENDIAN=little
13507       ;;
13508     powerpc)
13509       VAR_CPU=ppc
13510       VAR_CPU_ARCH=ppc
13511       VAR_CPU_BITS=32
13512       VAR_CPU_ENDIAN=big
13513       ;;
13514     powerpc64)
13515       VAR_CPU=ppc64
13516       VAR_CPU_ARCH=ppc
13517       VAR_CPU_BITS=64
13518       VAR_CPU_ENDIAN=big
13519       ;;
13520     s390)
13521       VAR_CPU=s390
13522       VAR_CPU_ARCH=s390
13523       VAR_CPU_BITS=32
13524       VAR_CPU_ENDIAN=big
13525       ;;
13526     s390x)
13527       VAR_CPU=s390x
13528       VAR_CPU_ARCH=s390
13529       VAR_CPU_BITS=64
13530       VAR_CPU_ENDIAN=big
13531       ;;
13532     sparc)
13533       VAR_CPU=sparc
13534       VAR_CPU_ARCH=sparc
13535       VAR_CPU_BITS=32
13536       VAR_CPU_ENDIAN=big
13537       ;;
13538     sparcv9)
13539       VAR_CPU=sparcv9
13540       VAR_CPU_ARCH=sparc
13541       VAR_CPU_BITS=64
13542       VAR_CPU_ENDIAN=big
13543       ;;
13544     *)
13545       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13546       ;;
13547   esac
13548 
13549   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13550   OPENJDK_BUILD_OS="$VAR_OS"
13551   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13552   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13553   OPENJDK_BUILD_CPU="$VAR_CPU"
13554   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13555   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13556   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13557 
13558 
13559 
13560 
13561 
13562 
13563 
13564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13565 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13567 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13568 
13569   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13570 
13571   case "$host_os" in
13572     *linux*)
13573       VAR_OS=linux
13574       VAR_OS_API=posix
13575       VAR_OS_ENV=linux
13576       ;;
13577     *solaris*)
13578       VAR_OS=solaris
13579       VAR_OS_API=posix
13580       VAR_OS_ENV=solaris
13581       ;;
13582     *darwin*)
13583       VAR_OS=macosx
13584       VAR_OS_API=posix
13585       VAR_OS_ENV=macosx
13586       ;;
13587     *bsd*)
13588       VAR_OS=bsd
13589       VAR_OS_API=posix
13590       VAR_OS_ENV=bsd
13591       ;;
13592     *cygwin*)
13593       VAR_OS=windows
13594       VAR_OS_API=winapi
13595       VAR_OS_ENV=windows.cygwin
13596       ;;
13597     *mingw*)
13598       VAR_OS=windows
13599       VAR_OS_API=winapi
13600       VAR_OS_ENV=windows.msys
13601       ;;
13602     *aix*)
13603       VAR_OS=aix
13604       VAR_OS_API=posix
13605       VAR_OS_ENV=aix
13606       ;;
13607     *)
13608       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13609       ;;
13610   esac
13611 
13612 
13613   # First argument is the cpu name from the trip/quad
13614   case "$host_cpu" in
13615     x86_64)
13616       VAR_CPU=x86_64
13617       VAR_CPU_ARCH=x86
13618       VAR_CPU_BITS=64
13619       VAR_CPU_ENDIAN=little
13620       ;;
13621     i?86)
13622       VAR_CPU=x86
13623       VAR_CPU_ARCH=x86
13624       VAR_CPU_BITS=32
13625       VAR_CPU_ENDIAN=little
13626       ;;
13627     arm*)
13628       VAR_CPU=arm
13629       VAR_CPU_ARCH=arm
13630       VAR_CPU_BITS=32
13631       VAR_CPU_ENDIAN=little
13632       ;;
13633     powerpc)
13634       VAR_CPU=ppc
13635       VAR_CPU_ARCH=ppc
13636       VAR_CPU_BITS=32
13637       VAR_CPU_ENDIAN=big
13638       ;;
13639     powerpc64)
13640       VAR_CPU=ppc64
13641       VAR_CPU_ARCH=ppc
13642       VAR_CPU_BITS=64
13643       VAR_CPU_ENDIAN=big
13644       ;;
13645     s390)
13646       VAR_CPU=s390
13647       VAR_CPU_ARCH=s390
13648       VAR_CPU_BITS=32
13649       VAR_CPU_ENDIAN=big
13650       ;;
13651     s390x)
13652       VAR_CPU=s390x
13653       VAR_CPU_ARCH=s390
13654       VAR_CPU_BITS=64
13655       VAR_CPU_ENDIAN=big
13656       ;;
13657     sparc)
13658       VAR_CPU=sparc
13659       VAR_CPU_ARCH=sparc
13660       VAR_CPU_BITS=32
13661       VAR_CPU_ENDIAN=big
13662       ;;
13663     sparcv9)
13664       VAR_CPU=sparcv9
13665       VAR_CPU_ARCH=sparc
13666       VAR_CPU_BITS=64
13667       VAR_CPU_ENDIAN=big
13668       ;;
13669     *)
13670       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13671       ;;
13672   esac
13673 
13674   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13675   OPENJDK_TARGET_OS="$VAR_OS"
13676   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13677   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13678   OPENJDK_TARGET_CPU="$VAR_CPU"
13679   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13680   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13681   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13682 
13683 
13684 
13685 
13686 
13687 
13688 
13689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13690 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13692 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13693 
13694 
13695 
13696 # Check whether --with-target-bits was given.
13697 if test "${with_target_bits+set}" = set; then :
13698   withval=$with_target_bits;
13699 fi
13700 
13701 
13702   # We have three types of compiles:
13703   # native  == normal compilation, target system == build system
13704   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13705   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13706   #
13707   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13708     # We're doing a proper cross-compilation
13709     COMPILE_TYPE="cross"
13710   else
13711     COMPILE_TYPE="native"
13712   fi
13713 
13714   if test "x$with_target_bits" != x; then
13715     if test "x$COMPILE_TYPE" = "xcross"; then
13716       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13717     fi
13718 
13719     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13720       # A reduced build is requested
13721       COMPILE_TYPE="reduced"
13722       OPENJDK_TARGET_CPU_BITS=32
13723       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13724         OPENJDK_TARGET_CPU=x86
13725       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13726         OPENJDK_TARGET_CPU=sparc
13727       else
13728         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13729       fi
13730     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13731       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
13732     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13733       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13734 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13735     else
13736       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13737     fi
13738   fi
13739 
13740 
13741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13742 $as_echo_n "checking compilation type... " >&6; }
13743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13744 $as_echo "$COMPILE_TYPE" >&6; }
13745 
13746 
13747   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13748     REQUIRED_OS_NAME=SunOS
13749     REQUIRED_OS_VERSION=5.10
13750   fi
13751   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13752     REQUIRED_OS_NAME=Linux
13753     REQUIRED_OS_VERSION=2.6
13754   fi
13755   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13756     REQUIRED_OS_NAME=Windows
13757     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13758       REQUIRED_OS_VERSION=5.2
13759     else
13760       REQUIRED_OS_VERSION=5.1
13761     fi
13762   fi
13763   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13764     REQUIRED_OS_NAME=Darwin
13765     REQUIRED_OS_VERSION=11.2
13766   fi
13767 
13768 
13769 
13770 
13771 
13772   # Also store the legacy naming of the cpu.
13773   # Ie i586 and amd64 instead of x86 and x86_64
13774   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13775   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13776     OPENJDK_TARGET_CPU_LEGACY="i586"
13777   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13778     # On all platforms except MacOSX replace x86_64 with amd64.
13779     OPENJDK_TARGET_CPU_LEGACY="amd64"
13780   fi
13781 
13782 
13783   # And the second legacy naming of the cpu.
13784   # Ie i386 and amd64 instead of x86 and x86_64.
13785   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13786   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13787     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13788   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13789     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13790   fi
13791 
13792 
13793   # This is the name of the cpu (but using i386 and amd64 instead of
13794   # x86 and x86_64, respectively), preceeded by a /, to be used when
13795   # locating libraries. On macosx, it's empty, though.
13796   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13797   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13798     OPENJDK_TARGET_CPU_LIBDIR=""
13799   fi
13800 
13801 
13802   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13803   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13804   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13805   OPENJDK_TARGET_CPU_ISADIR=""
13806   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13807     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13808       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13809     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13810       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13811     fi
13812   fi
13813 
13814 
13815   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13816   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13817   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13818     # On linux only, we replace x86 with i386.
13819     OPENJDK_TARGET_CPU_OSARCH="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_OSARCH="amd64"
13823   fi
13824 
13825 
13826   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13827   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13828     OPENJDK_TARGET_CPU_JLI="i386"
13829   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13830     # On all platforms except macosx, we replace x86_64 with amd64.
13831     OPENJDK_TARGET_CPU_JLI="amd64"
13832   fi
13833   # Now setup the -D flags for building libjli.
13834   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13835   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13836     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13837       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13838     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13839       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13840     fi
13841   fi
13842 
13843 
13844   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13845   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13846     OPENJDK_TARGET_OS_API_DIR="solaris"
13847   fi
13848   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13849     OPENJDK_TARGET_OS_API_DIR="windows"
13850   fi
13851 
13852 
13853   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13854       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13855   else
13856       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13857   fi
13858 
13859 
13860   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13861     A_LP64="LP64:="
13862     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13863     # unpack200.exe
13864     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13865       ADD_LP64="-D_LP64=1"
13866     fi
13867   fi
13868   LP64=$A_LP64
13869 
13870 
13871   if test "x$COMPILE_TYPE" = "xcross"; then
13872     # FIXME: ... or should this include reduced builds..?
13873     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13874   else
13875     DEFINE_CROSS_COMPILE_ARCH=""
13876   fi
13877 
13878 
13879   # ZERO_ARCHDEF is used to enable architecture-specific code
13880   case "${OPENJDK_TARGET_CPU}" in
13881     ppc*)    ZERO_ARCHDEF=PPC   ;;
13882     s390*)   ZERO_ARCHDEF=S390  ;;
13883     sparc*)  ZERO_ARCHDEF=SPARC ;;
13884     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13885     x86)     ZERO_ARCHDEF=IA32  ;;
13886     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13887   esac
13888 
13889 
13890 
13891 
13892 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13893 
13894   # Save the current directory this script was started from
13895   CURDIR="$PWD"
13896 
13897   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13898     PATH_SEP=";"
13899 
13900   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13901   if test $SRC_ROOT_LENGTH -gt 100; then
13902     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13903   fi
13904 
13905   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13907 $as_echo_n "checking cygwin release... " >&6; }
13908     CYGWIN_VERSION=`$UNAME -r`
13909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13910 $as_echo "$CYGWIN_VERSION" >&6; }
13911     WINDOWS_ENV_VENDOR='cygwin'
13912     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13913 
13914     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13915     if test "x$CYGWIN_VERSION_OK" = x; then
13916       { $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
13917 $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;}
13918       as_fn_error $? "Cannot continue" "$LINENO" 5
13919     fi
13920     if test "x$CYGPATH" = x; then
13921       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13922     fi
13923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13924 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13925     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13926     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13927     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13928     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13930 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13931     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13932     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13933     if test "x$test_cygdrive_prefix" = x; then
13934       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13935     fi
13936   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13938 $as_echo_n "checking msys release... " >&6; }
13939     MSYS_VERSION=`$UNAME -r`
13940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13941 $as_echo "$MSYS_VERSION" >&6; }
13942 
13943     WINDOWS_ENV_VENDOR='msys'
13944     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13945 
13946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13947 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13948     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13949     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13950 
13951   windows_path="$MSYS_ROOT_PATH"
13952   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13953     unix_path=`$CYGPATH -u "$windows_path"`
13954     MSYS_ROOT_PATH="$unix_path"
13955   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13956     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13957     MSYS_ROOT_PATH="$unix_path"
13958   fi
13959 
13960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13961 $as_echo "$MSYS_ROOT_PATH" >&6; }
13962     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13963   else
13964     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13965   fi
13966 
13967   # Test if windows or unix (cygwin/msys) find is first in path.
13968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13969 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13970   FIND_BINARY_OUTPUT=`find --version 2>&1`
13971   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13973 $as_echo "unix style" >&6; }
13974   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13976 $as_echo "Windows" >&6; }
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13978 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13979     { $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
13980 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13981     as_fn_error $? "Cannot continue" "$LINENO" 5
13982   else
13983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13984 $as_echo "unknown" >&6; }
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13986 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13987   fi
13988 
13989   else
13990     PATH_SEP=":"
13991   fi
13992 
13993 
13994   # We get the top-level directory from the supporting wrappers.
13995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
13996 $as_echo_n "checking for top-level directory... " >&6; }
13997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
13998 $as_echo "$TOPDIR" >&6; }
13999 
14000 
14001   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14002 
14003   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14004 
14005   # Input might be given as Windows format, start by converting to
14006   # unix format.
14007   path="$CURDIR"
14008   new_path=`$CYGPATH -u "$path"`
14009 
14010   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14011   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14012   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14013   # "foo.exe" is OK but "foo" is an error.
14014   #
14015   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14016   # It is also a way to make sure we got the proper file name for the real test later on.
14017   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14018   if test "x$test_shortpath" = x; then
14019     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14020 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14021     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14022   fi
14023 
14024   # Call helper function which possibly converts this using DOS-style short mode.
14025   # If so, the updated path is stored in $new_path.
14026 
14027   input_path="$new_path"
14028   # Check if we need to convert this using DOS-style short mode. If the path
14029   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14030   # take no chances and rewrite it.
14031   # Note: m4 eats our [], so we need to use [ and ] instead.
14032   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14033   if test "x$has_forbidden_chars" != x; then
14034     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14035     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14036     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14037     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14038       # Going to short mode and back again did indeed matter. Since short mode is
14039       # case insensitive, let's make it lowercase to improve readability.
14040       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14041       # Now convert it back to Unix-stile (cygpath)
14042       input_path=`$CYGPATH -u "$shortmode_path"`
14043       new_path="$input_path"
14044     fi
14045   fi
14046 
14047   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14048   if test "x$test_cygdrive_prefix" = x; then
14049     # As a simple fix, exclude /usr/bin since it's not a real path.
14050     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14051       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14052       # a path prefixed by /cygdrive for fixpath to work.
14053       new_path="$CYGWIN_ROOT_PATH$input_path"
14054     fi
14055   fi
14056 
14057 
14058   if test "x$path" != "x$new_path"; then
14059     CURDIR="$new_path"
14060     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14061 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14062   fi
14063 
14064   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14065 
14066   path="$CURDIR"
14067   has_colon=`$ECHO $path | $GREP ^.:`
14068   new_path="$path"
14069   if test "x$has_colon" = x; then
14070     # Not in mixed or Windows style, start by that.
14071     new_path=`cmd //c echo $path`
14072   fi
14073 
14074 
14075   input_path="$new_path"
14076   # Check if we need to convert this using DOS-style short mode. If the path
14077   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14078   # take no chances and rewrite it.
14079   # Note: m4 eats our [], so we need to use [ and ] instead.
14080   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14081   if test "x$has_forbidden_chars" != x; then
14082     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14083     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14084   fi
14085 
14086 
14087   windows_path="$new_path"
14088   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14089     unix_path=`$CYGPATH -u "$windows_path"`
14090     new_path="$unix_path"
14091   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14092     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14093     new_path="$unix_path"
14094   fi
14095 
14096   if test "x$path" != "x$new_path"; then
14097     CURDIR="$new_path"
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14099 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14100   fi
14101 
14102   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14103   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14104 
14105   else
14106     # We're on a posix platform. Hooray! :)
14107     path="$CURDIR"
14108     has_space=`$ECHO "$path" | $GREP " "`
14109     if test "x$has_space" != x; then
14110       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14111 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14112       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14113     fi
14114 
14115     # Use eval to expand a potential ~
14116     eval path="$path"
14117     if test ! -f "$path" && test ! -d "$path"; then
14118       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14119     fi
14120 
14121     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14122   fi
14123 
14124 
14125   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14126 
14127   # Input might be given as Windows format, start by converting to
14128   # unix format.
14129   path="$TOPDIR"
14130   new_path=`$CYGPATH -u "$path"`
14131 
14132   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14133   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14134   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14135   # "foo.exe" is OK but "foo" is an error.
14136   #
14137   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14138   # It is also a way to make sure we got the proper file name for the real test later on.
14139   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14140   if test "x$test_shortpath" = x; then
14141     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14142 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14143     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14144   fi
14145 
14146   # Call helper function which possibly converts this using DOS-style short mode.
14147   # If so, the updated path is stored in $new_path.
14148 
14149   input_path="$new_path"
14150   # Check if we need to convert this using DOS-style short mode. If the path
14151   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14152   # take no chances and rewrite it.
14153   # Note: m4 eats our [], so we need to use [ and ] instead.
14154   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14155   if test "x$has_forbidden_chars" != x; then
14156     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14157     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14158     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14159     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14160       # Going to short mode and back again did indeed matter. Since short mode is
14161       # case insensitive, let's make it lowercase to improve readability.
14162       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14163       # Now convert it back to Unix-stile (cygpath)
14164       input_path=`$CYGPATH -u "$shortmode_path"`
14165       new_path="$input_path"
14166     fi
14167   fi
14168 
14169   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14170   if test "x$test_cygdrive_prefix" = x; then
14171     # As a simple fix, exclude /usr/bin since it's not a real path.
14172     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14173       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14174       # a path prefixed by /cygdrive for fixpath to work.
14175       new_path="$CYGWIN_ROOT_PATH$input_path"
14176     fi
14177   fi
14178 
14179 
14180   if test "x$path" != "x$new_path"; then
14181     TOPDIR="$new_path"
14182     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14183 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14184   fi
14185 
14186   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14187 
14188   path="$TOPDIR"
14189   has_colon=`$ECHO $path | $GREP ^.:`
14190   new_path="$path"
14191   if test "x$has_colon" = x; then
14192     # Not in mixed or Windows style, start by that.
14193     new_path=`cmd //c echo $path`
14194   fi
14195 
14196 
14197   input_path="$new_path"
14198   # Check if we need to convert this using DOS-style short mode. If the path
14199   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14200   # take no chances and rewrite it.
14201   # Note: m4 eats our [], so we need to use [ and ] instead.
14202   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14203   if test "x$has_forbidden_chars" != x; then
14204     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14205     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14206   fi
14207 
14208 
14209   windows_path="$new_path"
14210   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14211     unix_path=`$CYGPATH -u "$windows_path"`
14212     new_path="$unix_path"
14213   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14214     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14215     new_path="$unix_path"
14216   fi
14217 
14218   if test "x$path" != "x$new_path"; then
14219     TOPDIR="$new_path"
14220     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14221 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14222   fi
14223 
14224   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14225   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14226 
14227   else
14228     # We're on a posix platform. Hooray! :)
14229     path="$TOPDIR"
14230     has_space=`$ECHO "$path" | $GREP " "`
14231     if test "x$has_space" != x; then
14232       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14233 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14234       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14235     fi
14236 
14237     # Use eval to expand a potential ~
14238     eval path="$path"
14239     if test ! -f "$path" && test ! -d "$path"; then
14240       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14241     fi
14242 
14243     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14244   fi
14245 
14246   # SRC_ROOT is a traditional alias for TOPDIR.
14247   SRC_ROOT=$TOPDIR
14248 
14249   # Locate the directory of this script.
14250   AUTOCONF_DIR=$TOPDIR/common/autoconf
14251 
14252 
14253 # Check whether --with-devkit was given.
14254 if test "${with_devkit+set}" = set; then :
14255   withval=$with_devkit;
14256 
14257   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14258 
14259   # Input might be given as Windows format, start by converting to
14260   # unix format.
14261   path="$with_devkit"
14262   new_path=`$CYGPATH -u "$path"`
14263 
14264   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14265   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14266   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14267   # "foo.exe" is OK but "foo" is an error.
14268   #
14269   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14270   # It is also a way to make sure we got the proper file name for the real test later on.
14271   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14272   if test "x$test_shortpath" = x; then
14273     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14274 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14275     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14276   fi
14277 
14278   # Call helper function which possibly converts this using DOS-style short mode.
14279   # If so, the updated path is stored in $new_path.
14280 
14281   input_path="$new_path"
14282   # Check if we need to convert this using DOS-style short mode. If the path
14283   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14284   # take no chances and rewrite it.
14285   # Note: m4 eats our [], so we need to use [ and ] instead.
14286   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14287   if test "x$has_forbidden_chars" != x; then
14288     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14289     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14290     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14291     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14292       # Going to short mode and back again did indeed matter. Since short mode is
14293       # case insensitive, let's make it lowercase to improve readability.
14294       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14295       # Now convert it back to Unix-stile (cygpath)
14296       input_path=`$CYGPATH -u "$shortmode_path"`
14297       new_path="$input_path"
14298     fi
14299   fi
14300 
14301   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14302   if test "x$test_cygdrive_prefix" = x; then
14303     # As a simple fix, exclude /usr/bin since it's not a real path.
14304     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14305       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14306       # a path prefixed by /cygdrive for fixpath to work.
14307       new_path="$CYGWIN_ROOT_PATH$input_path"
14308     fi
14309   fi
14310 
14311 
14312   if test "x$path" != "x$new_path"; then
14313     with_devkit="$new_path"
14314     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14315 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14316   fi
14317 
14318   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14319 
14320   path="$with_devkit"
14321   has_colon=`$ECHO $path | $GREP ^.:`
14322   new_path="$path"
14323   if test "x$has_colon" = x; then
14324     # Not in mixed or Windows style, start by that.
14325     new_path=`cmd //c echo $path`
14326   fi
14327 
14328 
14329   input_path="$new_path"
14330   # Check if we need to convert this using DOS-style short mode. If the path
14331   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14332   # take no chances and rewrite it.
14333   # Note: m4 eats our [], so we need to use [ and ] instead.
14334   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14335   if test "x$has_forbidden_chars" != x; then
14336     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14337     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14338   fi
14339 
14340 
14341   windows_path="$new_path"
14342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14343     unix_path=`$CYGPATH -u "$windows_path"`
14344     new_path="$unix_path"
14345   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14346     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14347     new_path="$unix_path"
14348   fi
14349 
14350   if test "x$path" != "x$new_path"; then
14351     with_devkit="$new_path"
14352     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14353 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14354   fi
14355 
14356   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14357   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14358 
14359   else
14360     # We're on a posix platform. Hooray! :)
14361     path="$with_devkit"
14362     has_space=`$ECHO "$path" | $GREP " "`
14363     if test "x$has_space" != x; then
14364       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14365 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14366       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14367     fi
14368 
14369     # Use eval to expand a potential ~
14370     eval path="$path"
14371     if test ! -f "$path" && test ! -d "$path"; then
14372       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14373     fi
14374 
14375     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14376   fi
14377 
14378         DEVKIT_ROOT="$with_devkit"
14379         # Check for a meta data info file in the root of the devkit
14380         if test -f "$DEVKIT_ROOT/devkit.info"; then
14381           # This potentially sets the following:
14382           # DEVKIT_NAME: A descriptive name of the devkit
14383           # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path
14384           # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path
14385           # DEVKIT_SYSROOT: Corresponds to --with-sysroot
14386           . $DEVKIT_ROOT/devkit.info
14387         fi
14388 
14389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14390 $as_echo_n "checking for devkit... " >&6; }
14391         if test "x$DEVKIT_NAME" != x; then
14392           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14393 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14394         else
14395           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14396 $as_echo "$DEVKIT_ROOT" >&6; }
14397         fi
14398 
14399         if test "x$DEVKIT_EXTRA_PATH" != x; then
14400 
14401   if test "x$DEVKIT_EXTRA_PATH" != x; then
14402     if test "x$EXTRA_PATH" = x; then
14403       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14404     else
14405       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14406     fi
14407   fi
14408 
14409         fi
14410 
14411         # Fallback default of just /bin if DEVKIT_PATH is not defined
14412         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14413           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14414         fi
14415 
14416   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14417     if test "x$TOOLCHAIN_PATH" = x; then
14418       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14419     else
14420       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14421     fi
14422   fi
14423 
14424 
14425         # If a separate sysroot has not been defined, use the one in the devkit
14426         if test "x$DEVKIT_SYSROOT" != x; then
14427           SYSROOT="$DEVKIT_SYSROOT"
14428         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
14429           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
14430         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
14431           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
14432         fi
14433 
14434 
14435 fi
14436 
14437 
14438   # You can force the sysroot if the sysroot encoded into the cross compiler tools
14439   # is not correct.
14440 
14441 # Check whether --with-sys-root was given.
14442 if test "${with_sys_root+set}" = set; then :
14443   withval=$with_sys_root; SYSROOT=$with_sys_root
14444 
14445 fi
14446 
14447 
14448 
14449 # Check whether --with-sysroot was given.
14450 if test "${with_sysroot+set}" = set; then :
14451   withval=$with_sysroot; SYSROOT=$with_sysroot
14452 
14453 fi
14454 
14455 
14456 
14457 # Check whether --with-tools-dir was given.
14458 if test "${with_tools_dir+set}" = set; then :
14459   withval=$with_tools_dir;
14460   if test "x$with_tools_dir" != x; then
14461     if test "x$TOOLCHAIN_PATH" = x; then
14462       TOOLCHAIN_PATH="$with_tools_dir"
14463     else
14464       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
14465     fi
14466   fi
14467 
14468 
14469 fi
14470 
14471 
14472 
14473 # Check whether --with-toolchain-path was given.
14474 if test "${with_toolchain_path+set}" = set; then :
14475   withval=$with_toolchain_path;
14476   if test "x$with_toolchain_path" != x; then
14477     if test "x$TOOLCHAIN_PATH" = x; then
14478       TOOLCHAIN_PATH="$with_toolchain_path"
14479     else
14480       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
14481     fi
14482   fi
14483 
14484 
14485 fi
14486 
14487 
14488 
14489 # Check whether --with-extra-path was given.
14490 if test "${with_extra_path+set}" = set; then :
14491   withval=$with_extra_path;
14492   if test "x$with_extra_path" != x; then
14493     if test "x$EXTRA_PATH" = x; then
14494       EXTRA_PATH="$with_extra_path"
14495     else
14496       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
14497     fi
14498   fi
14499 
14500 
14501 fi
14502 
14503 
14504   # Prepend the extra path to the global path
14505 
14506   if test "x$EXTRA_PATH" != x; then
14507     if test "x$PATH" = x; then
14508       PATH="$EXTRA_PATH"
14509     else
14510       PATH="$EXTRA_PATH:$PATH"
14511     fi
14512   fi
14513 
14514 
14515   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14516     # Add extra search paths on solaris for utilities like ar and as etc...
14517     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14518   fi
14519 
14520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14521 $as_echo_n "checking for sysroot... " >&6; }
14522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
14523 $as_echo "$SYSROOT" >&6; }
14524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
14525 $as_echo_n "checking for toolchain path... " >&6; }
14526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
14527 $as_echo "$TOOLCHAIN_PATH" >&6; }
14528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
14529 $as_echo_n "checking for extra path... " >&6; }
14530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
14531 $as_echo "$EXTRA_PATH" >&6; }
14532 
14533 
14534   # Setup default logging of stdout and stderr to build.log in the output root.
14535   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14536   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14537   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14538 
14539 
14540 
14541 
14542 
14543 # Check if it's a pure open build or if custom sources are to be used.
14544 
14545   # Check whether --enable-openjdk-only was given.
14546 if test "${enable_openjdk_only+set}" = set; then :
14547   enableval=$enable_openjdk_only;
14548 else
14549   enable_openjdk_only="no"
14550 fi
14551 
14552 
14553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14554 $as_echo_n "checking for presence of closed sources... " >&6; }
14555   if test -d "$SRC_ROOT/jdk/src/closed"; then
14556     CLOSED_SOURCE_PRESENT=yes
14557   else
14558     CLOSED_SOURCE_PRESENT=no
14559   fi
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14561 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14562 
14563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14564 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14565   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14567 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14568 
14569   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14570     OPENJDK=true
14571     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14572       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14573 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14574     fi
14575   else
14576     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14577       OPENJDK=true
14578     else
14579       OPENJDK=false
14580     fi
14581   fi
14582 
14583   if test "x$OPENJDK" = "xtrue"; then
14584     SET_OPENJDK="OPENJDK=true"
14585   fi
14586 
14587 
14588 
14589   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14590   # the IncludeCustomExtension macro.
14591 
14592 
14593 # Check whether --with-custom-make-dir was given.
14594 if test "${with_custom_make_dir+set}" = set; then :
14595   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
14596 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14597 fi
14598 
14599 
14600 
14601 
14602 # These are needed to be able to create a configuration name (and thus the output directory)
14603 
14604   ###############################################################################
14605   #
14606   # Check which variant of the JDK that we want to build.
14607   # Currently we have:
14608   #    normal:   standard edition
14609   # but the custom make system may add other variants
14610   #
14611   # Effectively the JDK variant gives a name to a specific set of
14612   # modules to compile into the JDK. In the future, these modules
14613   # might even be Jigsaw modules.
14614   #
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14616 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14617 
14618 # Check whether --with-jdk-variant was given.
14619 if test "${with_jdk_variant+set}" = set; then :
14620   withval=$with_jdk_variant;
14621 fi
14622 
14623 
14624   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14625     JDK_VARIANT="normal"
14626   else
14627     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14628   fi
14629 
14630 
14631 
14632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14633 $as_echo "$JDK_VARIANT" >&6; }
14634 
14635 
14636 ###############################################################################
14637 #
14638 # Check which interpreter of the JVM we want to build.
14639 # Currently we have:
14640 #    template: Template interpreter (the default)
14641 #    cpp     : C++ interpreter
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14643 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14644 
14645 # Check whether --with-jvm-interpreter was given.
14646 if test "${with_jvm_interpreter+set}" = set; then :
14647   withval=$with_jvm_interpreter;
14648 fi
14649 
14650 
14651 if test "x$with_jvm_interpreter" = x; then
14652      with_jvm_interpreter="template"
14653 fi
14654 
14655 JVM_INTERPRETER="$with_jvm_interpreter"
14656 
14657 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14658    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14659 fi
14660 
14661 
14662 
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14664 $as_echo "$with_jvm_interpreter" >&6; }
14665 
14666 
14667 
14668   ###############################################################################
14669   #
14670   # Check which variants of the JVM that we want to build.
14671   # Currently we have:
14672   #    server: normal interpreter and a tiered C1/C2 compiler
14673   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14674   #    minimal1: reduced form of client with optional VM services and features stripped out
14675   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14676   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14677   #    zero: no machine code interpreter, no compiler
14678   #    zeroshark: zero interpreter and shark/llvm compiler backend
14679 #    core: interpreter only, no compiler (only works on some platforms)
14680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14681 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14682 
14683 # Check whether --with-jvm-variants was given.
14684 if test "${with_jvm_variants+set}" = set; then :
14685   withval=$with_jvm_variants;
14686 fi
14687 
14688 
14689   if test "x$with_jvm_variants" = x; then
14690     with_jvm_variants="server"
14691   fi
14692 
14693   JVM_VARIANTS=",$with_jvm_variants,"
14694   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,//'`
14695 
14696   if test "x$TEST_VARIANTS" != "x,"; then
14697      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14698   fi
14699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14700 $as_echo "$with_jvm_variants" >&6; }
14701 
14702   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14703   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14704   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14705   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14706   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14707   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14708   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14709 
14710   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14711     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14712       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14713     fi
14714   fi
14715   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14716     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14717       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14718     fi
14719   fi
14720   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14721     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14722       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14723     fi
14724   fi
14725 
14726   # Replace the commas with AND for use in the build directory name.
14727   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14728   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/'`
14729   if test "x$COUNT_VARIANTS" != "x,1"; then
14730     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14731   else
14732     BUILDING_MULTIPLE_JVM_VARIANTS=no
14733   fi
14734 
14735 
14736 
14737 
14738 
14739 
14740 
14741 
14742 
14743 
14744   INCLUDE_SA=true
14745   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14746     INCLUDE_SA=false
14747   fi
14748   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14749     INCLUDE_SA=false
14750   fi
14751   if test "x$VAR_CPU" = xppc64 ; then
14752     INCLUDE_SA=false
14753   fi
14754 
14755 
14756   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14757     MACOSX_UNIVERSAL="true"
14758   fi
14759 
14760 
14761 
14762 
14763   ###############################################################################
14764   #
14765   # Set the debug level
14766   #    release: no debug information, all optimizations, no asserts.
14767   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
14768   #    fastdebug: debug information (-g), all optimizations, all asserts
14769   #    slowdebug: debug information (-g), no optimizations, all asserts
14770   #
14771   DEBUG_LEVEL="release"
14772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14773 $as_echo_n "checking which debug level to use... " >&6; }
14774   # Check whether --enable-debug was given.
14775 if test "${enable_debug+set}" = set; then :
14776   enableval=$enable_debug;
14777         ENABLE_DEBUG="${enableval}"
14778         DEBUG_LEVEL="fastdebug"
14779 
14780 else
14781   ENABLE_DEBUG="no"
14782 fi
14783 
14784 
14785 
14786 # Check whether --with-debug-level was given.
14787 if test "${with_debug_level+set}" = set; then :
14788   withval=$with_debug_level;
14789         DEBUG_LEVEL="${withval}"
14790         if test "x$ENABLE_DEBUG" = xyes; then
14791           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14792         fi
14793 
14794 fi
14795 
14796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14797 $as_echo "$DEBUG_LEVEL" >&6; }
14798 
14799   if test "x$DEBUG_LEVEL" != xrelease && \
14800       test "x$DEBUG_LEVEL" != xoptimized && \
14801       test "x$DEBUG_LEVEL" != xfastdebug && \
14802       test "x$DEBUG_LEVEL" != xslowdebug; then
14803     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14804   fi
14805 
14806 
14807   ###############################################################################
14808   #
14809   # Setup legacy vars/targets and new vars to deal with different debug levels.
14810   #
14811 
14812   case $DEBUG_LEVEL in
14813     release )
14814       VARIANT="OPT"
14815       FASTDEBUG="false"
14816       DEBUG_CLASSFILES="false"
14817       BUILD_VARIANT_RELEASE=""
14818       HOTSPOT_DEBUG_LEVEL="product"
14819       HOTSPOT_EXPORT="product"
14820       ;;
14821     fastdebug )
14822       VARIANT="DBG"
14823       FASTDEBUG="true"
14824       DEBUG_CLASSFILES="true"
14825       BUILD_VARIANT_RELEASE="-fastdebug"
14826       HOTSPOT_DEBUG_LEVEL="fastdebug"
14827       HOTSPOT_EXPORT="fastdebug"
14828       ;;
14829     slowdebug )
14830       VARIANT="DBG"
14831       FASTDEBUG="false"
14832       DEBUG_CLASSFILES="true"
14833       BUILD_VARIANT_RELEASE="-debug"
14834       HOTSPOT_DEBUG_LEVEL="jvmg"
14835       HOTSPOT_EXPORT="debug"
14836       ;;
14837     optimized )
14838       VARIANT="OPT"
14839       FASTDEBUG="false"
14840       DEBUG_CLASSFILES="false"
14841       BUILD_VARIANT_RELEASE="-optimized"
14842       HOTSPOT_DEBUG_LEVEL="optimized"
14843       HOTSPOT_EXPORT="optimized"
14844       ;;
14845   esac
14846 
14847   # The debug level 'optimized' is a little special because it is currently only
14848   # applicable to the HotSpot build where it means to build a completely
14849   # optimized version of the VM without any debugging code (like for the
14850   # 'release' debug level which is called 'product' in the HotSpot build) but
14851   # with the exception that it can contain additional code which is otherwise
14852   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
14853   # test new and/or experimental features which are not intended for customer
14854   # shipment. Because these new features need to be tested and benchmarked in
14855   # real world scenarios, we want to build the containing JDK at the 'release'
14856   # debug level.
14857   if test "x$DEBUG_LEVEL" = xoptimized; then
14858     DEBUG_LEVEL="release"
14859   fi
14860 
14861   #####
14862   # Generate the legacy makefile targets for hotspot.
14863   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14864   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14865   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14866   # But until then ...
14867   HOTSPOT_TARGET=""
14868 
14869   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14870     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14871   fi
14872 
14873   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14874     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14875   fi
14876 
14877   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14878     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14879   fi
14880 
14881   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14882     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14883   fi
14884 
14885   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14886     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14887   fi
14888 
14889   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14890     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14891   fi
14892 
14893   if test "x$JVM_VARIANT_CORE" = xtrue; then
14894     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14895   fi
14896 
14897   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14898 
14899   # On Macosx universal binaries are produced, but they only contain
14900   # 64 bit intel. This invalidates control of which jvms are built
14901   # from configure, but only server is valid anyway. Fix this
14902   # when hotspot makefiles are rewritten.
14903   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14904     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14905   fi
14906 
14907   #####
14908 
14909 
14910 
14911 
14912 
14913 
14914 
14915 
14916 # With basic setup done, call the custom early hook.
14917 
14918 
14919 # To properly create a configuration name, we need to have the OpenJDK target
14920 # and options (variants and debug level) parsed.
14921 
14922 
14923 
14924 # Check whether --with-conf-name was given.
14925 if test "${with_conf_name+set}" = set; then :
14926   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14927 fi
14928 
14929 
14930   # Test from where we are running configure, in or outside of src root.
14931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14932 $as_echo_n "checking where to store configuration... " >&6; }
14933   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14934       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14935       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14936     # We are running configure from the src root.
14937     # Create a default ./build/target-variant-debuglevel output root.
14938     if test "x${CONF_NAME}" = x; then
14939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14940 $as_echo "in default location" >&6; }
14941       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14942     else
14943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
14944 $as_echo "in build directory with custom name" >&6; }
14945     fi
14946     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14947     $MKDIR -p "$OUTPUT_ROOT"
14948     if test ! -d "$OUTPUT_ROOT"; then
14949       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14950     fi
14951   else
14952     # We are running configure from outside of the src dir.
14953     # Then use the current directory as output dir!
14954     # If configuration is situated in normal build directory, just use the build
14955     # directory name as configuration name, otherwise use the complete path.
14956     if test "x${CONF_NAME}" = x; then
14957       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14958     fi
14959     OUTPUT_ROOT="$CURDIR"
14960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
14961 $as_echo "in current directory" >&6; }
14962 
14963     # WARNING: This might be a bad thing to do. You need to be sure you want to
14964     # have a configuration in this directory. Do some sanity checks!
14965 
14966     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14967       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14968       # other files
14969       files_present=`$LS $OUTPUT_ROOT`
14970       # Configure has already touched config.log and confdefs.h in the current dir when this check
14971       # is performed.
14972       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14973       | $TR -d '\n'`
14974       if test "x$filtered_files" != x; then
14975         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14976 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14977         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14978 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14979         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14980 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14981         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14982 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14983         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14984 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14985         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14986 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14987         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14988 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14989         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14990       fi
14991     fi
14992   fi
14993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14994 $as_echo_n "checking what configuration name to use... " >&6; }
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14996 $as_echo "$CONF_NAME" >&6; }
14997 
14998 
14999   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15000 
15001   # Input might be given as Windows format, start by converting to
15002   # unix format.
15003   path="$OUTPUT_ROOT"
15004   new_path=`$CYGPATH -u "$path"`
15005 
15006   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15007   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15008   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15009   # "foo.exe" is OK but "foo" is an error.
15010   #
15011   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15012   # It is also a way to make sure we got the proper file name for the real test later on.
15013   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15014   if test "x$test_shortpath" = x; then
15015     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15016 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15017     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15018   fi
15019 
15020   # Call helper function which possibly converts this using DOS-style short mode.
15021   # If so, the updated path is stored in $new_path.
15022 
15023   input_path="$new_path"
15024   # Check if we need to convert this using DOS-style short mode. If the path
15025   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15026   # take no chances and rewrite it.
15027   # Note: m4 eats our [], so we need to use [ and ] instead.
15028   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15029   if test "x$has_forbidden_chars" != x; then
15030     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15031     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15032     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15033     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15034       # Going to short mode and back again did indeed matter. Since short mode is
15035       # case insensitive, let's make it lowercase to improve readability.
15036       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15037       # Now convert it back to Unix-stile (cygpath)
15038       input_path=`$CYGPATH -u "$shortmode_path"`
15039       new_path="$input_path"
15040     fi
15041   fi
15042 
15043   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15044   if test "x$test_cygdrive_prefix" = x; then
15045     # As a simple fix, exclude /usr/bin since it's not a real path.
15046     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15047       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15048       # a path prefixed by /cygdrive for fixpath to work.
15049       new_path="$CYGWIN_ROOT_PATH$input_path"
15050     fi
15051   fi
15052 
15053 
15054   if test "x$path" != "x$new_path"; then
15055     OUTPUT_ROOT="$new_path"
15056     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15057 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15058   fi
15059 
15060   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15061 
15062   path="$OUTPUT_ROOT"
15063   has_colon=`$ECHO $path | $GREP ^.:`
15064   new_path="$path"
15065   if test "x$has_colon" = x; then
15066     # Not in mixed or Windows style, start by that.
15067     new_path=`cmd //c echo $path`
15068   fi
15069 
15070 
15071   input_path="$new_path"
15072   # Check if we need to convert this using DOS-style short mode. If the path
15073   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15074   # take no chances and rewrite it.
15075   # Note: m4 eats our [], so we need to use [ and ] instead.
15076   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15077   if test "x$has_forbidden_chars" != x; then
15078     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15079     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15080   fi
15081 
15082 
15083   windows_path="$new_path"
15084   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15085     unix_path=`$CYGPATH -u "$windows_path"`
15086     new_path="$unix_path"
15087   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15088     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15089     new_path="$unix_path"
15090   fi
15091 
15092   if test "x$path" != "x$new_path"; then
15093     OUTPUT_ROOT="$new_path"
15094     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15095 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15096   fi
15097 
15098   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15099   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15100 
15101   else
15102     # We're on a posix platform. Hooray! :)
15103     path="$OUTPUT_ROOT"
15104     has_space=`$ECHO "$path" | $GREP " "`
15105     if test "x$has_space" != x; then
15106       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15107 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15108       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15109     fi
15110 
15111     # Use eval to expand a potential ~
15112     eval path="$path"
15113     if test ! -f "$path" && test ! -d "$path"; then
15114       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15115     fi
15116 
15117     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15118   fi
15119 
15120 
15121   SPEC=$OUTPUT_ROOT/spec.gmk
15122 
15123   CONF_NAME=$CONF_NAME
15124 
15125   OUTPUT_ROOT=$OUTPUT_ROOT
15126 
15127 
15128   # Most of the probed defines are put into config.h
15129   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15130 
15131   # The spec.gmk file contains all variables for the make system.
15132   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15133 
15134   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15135   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15136 
15137   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15138   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15139 
15140   # The compare.sh is used to compare the build output to other builds.
15141   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15142 
15143   # Spec.sh is currently used by compare-objects.sh
15144   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15145 
15146   # The generated Makefile knows where the spec.gmk is and where the source is.
15147   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15148   # which will look for generated configurations
15149   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15150 
15151 
15152 
15153 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15154 
15155   for ac_prog in apt-get yum port pkgutil pkgadd
15156 do
15157   # Extract the first word of "$ac_prog", so it can be a program name with args.
15158 set dummy $ac_prog; ac_word=$2
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15160 $as_echo_n "checking for $ac_word... " >&6; }
15161 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15162   $as_echo_n "(cached) " >&6
15163 else
15164   if test -n "$PKGHANDLER"; then
15165   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15166 else
15167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15168 for as_dir in $PATH
15169 do
15170   IFS=$as_save_IFS
15171   test -z "$as_dir" && as_dir=.
15172     for ac_exec_ext in '' $ac_executable_extensions; do
15173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15174     ac_cv_prog_PKGHANDLER="$ac_prog"
15175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15176     break 2
15177   fi
15178 done
15179   done
15180 IFS=$as_save_IFS
15181 
15182 fi
15183 fi
15184 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15185 if test -n "$PKGHANDLER"; then
15186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15187 $as_echo "$PKGHANDLER" >&6; }
15188 else
15189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15191 fi
15192 
15193 
15194   test -n "$PKGHANDLER" && break
15195 done
15196 
15197 
15198 
15199 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15200 
15201 
15202   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15203   if test "x$MAKE" != x; then
15204     # User has supplied a make, test it.
15205     if test ! -f "$MAKE"; then
15206       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15207     fi
15208 
15209   MAKE_CANDIDATE=""$MAKE""
15210   DESCRIPTION="user supplied MAKE=$MAKE"
15211   if test "x$MAKE_CANDIDATE" != x; then
15212     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15213 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15214     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15215     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15216     if test "x$IS_GNU_MAKE" = x; then
15217       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15218 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15219     else
15220       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15221       if test "x$IS_MODERN_MAKE" = x; then
15222         { $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
15223 $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;}
15224       else
15225         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15226           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15227             MAKE_EXPECTED_ENV='cygwin'
15228           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15229             MAKE_EXPECTED_ENV='msys'
15230           else
15231             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15232           fi
15233           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15234           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15235         else
15236           # Not relevant for non-Windows
15237           IS_MAKE_CORRECT_ENV=true
15238         fi
15239         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15240           { $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
15241 $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;}
15242         else
15243           FOUND_MAKE=$MAKE_CANDIDATE
15244 
15245   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15246 
15247   # First separate the path from the arguments. This will split at the first
15248   # space.
15249   complete="$FOUND_MAKE"
15250   path="${complete%% *}"
15251   tmp="$complete EOL"
15252   arguments="${tmp#* }"
15253 
15254   # Input might be given as Windows format, start by converting to
15255   # unix format.
15256   new_path=`$CYGPATH -u "$path"`
15257 
15258   # Now try to locate executable using which
15259   new_path=`$WHICH "$new_path" 2> /dev/null`
15260   # bat and cmd files are not always considered executable in cygwin causing which
15261   # to not find them
15262   if test "x$new_path" = x \
15263       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15264       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15265     new_path=`$CYGPATH -u "$path"`
15266   fi
15267   if test "x$new_path" = x; then
15268     # Oops. Which didn't find the executable.
15269     # The splitting of arguments from the executable at a space might have been incorrect,
15270     # since paths with space are more likely in Windows. Give it another try with the whole
15271     # argument.
15272     path="$complete"
15273     arguments="EOL"
15274     new_path=`$CYGPATH -u "$path"`
15275     new_path=`$WHICH "$new_path" 2> /dev/null`
15276     # bat and cmd files are not always considered executable in cygwin causing which
15277     # to not find them
15278     if test "x$new_path" = x \
15279         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15280         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15281       new_path=`$CYGPATH -u "$path"`
15282     fi
15283     if test "x$new_path" = x; then
15284       # It's still not found. Now this is an unrecoverable error.
15285       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15286 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15287       has_space=`$ECHO "$complete" | $GREP " "`
15288       if test "x$has_space" != x; then
15289         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15290 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15291       fi
15292       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15293     fi
15294   fi
15295 
15296   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15297   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15298   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15299   # "foo.exe" is OK but "foo" is an error.
15300   #
15301   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15302   # It is also a way to make sure we got the proper file name for the real test later on.
15303   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15304   if test "x$test_shortpath" = x; then
15305     # Short path failed, file does not exist as specified.
15306     # Try adding .exe or .cmd
15307     if test -f "${new_path}.exe"; then
15308       input_to_shortpath="${new_path}.exe"
15309     elif test -f "${new_path}.cmd"; then
15310       input_to_shortpath="${new_path}.cmd"
15311     else
15312       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15313 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15314       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15315 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15316       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15317     fi
15318   else
15319     input_to_shortpath="$new_path"
15320   fi
15321 
15322   # Call helper function which possibly converts this using DOS-style short mode.
15323   # If so, the updated path is stored in $new_path.
15324   new_path="$input_to_shortpath"
15325 
15326   input_path="$input_to_shortpath"
15327   # Check if we need to convert this using DOS-style short mode. If the path
15328   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15329   # take no chances and rewrite it.
15330   # Note: m4 eats our [], so we need to use [ and ] instead.
15331   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15332   if test "x$has_forbidden_chars" != x; then
15333     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15334     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15335     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15336     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15337       # Going to short mode and back again did indeed matter. Since short mode is
15338       # case insensitive, let's make it lowercase to improve readability.
15339       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15340       # Now convert it back to Unix-stile (cygpath)
15341       input_path=`$CYGPATH -u "$shortmode_path"`
15342       new_path="$input_path"
15343     fi
15344   fi
15345 
15346   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15347   if test "x$test_cygdrive_prefix" = x; then
15348     # As a simple fix, exclude /usr/bin since it's not a real path.
15349     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15350       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15351       # a path prefixed by /cygdrive for fixpath to work.
15352       new_path="$CYGWIN_ROOT_PATH$input_path"
15353     fi
15354   fi
15355 
15356   # remove trailing .exe if any
15357   new_path="${new_path/%.exe/}"
15358 
15359   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15360 
15361   # First separate the path from the arguments. This will split at the first
15362   # space.
15363   complete="$FOUND_MAKE"
15364   path="${complete%% *}"
15365   tmp="$complete EOL"
15366   arguments="${tmp#* }"
15367 
15368   # Input might be given as Windows format, start by converting to
15369   # unix format.
15370   new_path="$path"
15371 
15372   windows_path="$new_path"
15373   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15374     unix_path=`$CYGPATH -u "$windows_path"`
15375     new_path="$unix_path"
15376   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15377     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15378     new_path="$unix_path"
15379   fi
15380 
15381 
15382   # Now try to locate executable using which
15383   new_path=`$WHICH "$new_path" 2> /dev/null`
15384 
15385   if test "x$new_path" = x; then
15386     # Oops. Which didn't find the executable.
15387     # The splitting of arguments from the executable at a space might have been incorrect,
15388     # since paths with space are more likely in Windows. Give it another try with the whole
15389     # argument.
15390     path="$complete"
15391     arguments="EOL"
15392     new_path="$path"
15393 
15394   windows_path="$new_path"
15395   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15396     unix_path=`$CYGPATH -u "$windows_path"`
15397     new_path="$unix_path"
15398   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15399     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15400     new_path="$unix_path"
15401   fi
15402 
15403 
15404     new_path=`$WHICH "$new_path" 2> /dev/null`
15405 
15406     if test "x$new_path" = x; then
15407       # It's still not found. Now this is an unrecoverable error.
15408       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15409 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15410       has_space=`$ECHO "$complete" | $GREP " "`
15411       if test "x$has_space" != x; then
15412         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15413 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15414       fi
15415       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15416     fi
15417   fi
15418 
15419   # Now new_path has a complete unix path to the binary
15420   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15421     # Keep paths in /bin as-is, but remove trailing .exe if any
15422     new_path="${new_path/%.exe/}"
15423     # Do not save /bin paths to all_fixpath_prefixes!
15424   else
15425     # Not in mixed or Windows style, start by that.
15426     new_path=`cmd //c echo $new_path`
15427 
15428   input_path="$new_path"
15429   # Check if we need to convert this using DOS-style short mode. If the path
15430   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15431   # take no chances and rewrite it.
15432   # Note: m4 eats our [], so we need to use [ and ] instead.
15433   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15434   if test "x$has_forbidden_chars" != x; then
15435     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15436     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15437   fi
15438 
15439     # Output is in $new_path
15440 
15441   windows_path="$new_path"
15442   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15443     unix_path=`$CYGPATH -u "$windows_path"`
15444     new_path="$unix_path"
15445   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15446     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15447     new_path="$unix_path"
15448   fi
15449 
15450     # remove trailing .exe if any
15451     new_path="${new_path/%.exe/}"
15452 
15453     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15454     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15455   fi
15456 
15457   else
15458     # We're on a posix platform. Hooray! :)
15459     # First separate the path from the arguments. This will split at the first
15460     # space.
15461     complete="$FOUND_MAKE"
15462     path="${complete%% *}"
15463     tmp="$complete EOL"
15464     arguments="${tmp#* }"
15465 
15466     # Cannot rely on the command "which" here since it doesn't always work.
15467     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15468     if test -z "$is_absolute_path"; then
15469       # Path to executable is not absolute. Find it.
15470       IFS_save="$IFS"
15471       IFS=:
15472       for p in $PATH; do
15473         if test -f "$p/$path" && test -x "$p/$path"; then
15474           new_path="$p/$path"
15475           break
15476         fi
15477       done
15478       IFS="$IFS_save"
15479     else
15480       # This is an absolute path, we can use it without further modifications.
15481       new_path="$path"
15482     fi
15483 
15484     if test "x$new_path" = x; then
15485       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15486 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15487       has_space=`$ECHO "$complete" | $GREP " "`
15488       if test "x$has_space" != x; then
15489         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15490 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15491       fi
15492       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15493     fi
15494   fi
15495 
15496   # Now join together the path and the arguments once again
15497   if test "x$arguments" != xEOL; then
15498     new_complete="$new_path ${arguments% *}"
15499   else
15500     new_complete="$new_path"
15501   fi
15502 
15503   if test "x$complete" != "x$new_complete"; then
15504     FOUND_MAKE="$new_complete"
15505     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15506 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15507   fi
15508 
15509         fi
15510       fi
15511     fi
15512   fi
15513 
15514     if test "x$FOUND_MAKE" = x; then
15515       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15516     fi
15517   else
15518     # Try our hardest to locate a correct version of GNU make
15519     for ac_prog in gmake
15520 do
15521   # Extract the first word of "$ac_prog", so it can be a program name with args.
15522 set dummy $ac_prog; ac_word=$2
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15524 $as_echo_n "checking for $ac_word... " >&6; }
15525 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15526   $as_echo_n "(cached) " >&6
15527 else
15528   case $CHECK_GMAKE in
15529   [\\/]* | ?:[\\/]*)
15530   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15531   ;;
15532   *)
15533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534 for as_dir in $PATH
15535 do
15536   IFS=$as_save_IFS
15537   test -z "$as_dir" && as_dir=.
15538     for ac_exec_ext in '' $ac_executable_extensions; do
15539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15540     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15542     break 2
15543   fi
15544 done
15545   done
15546 IFS=$as_save_IFS
15547 
15548   ;;
15549 esac
15550 fi
15551 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15552 if test -n "$CHECK_GMAKE"; then
15553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15554 $as_echo "$CHECK_GMAKE" >&6; }
15555 else
15556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15558 fi
15559 
15560 
15561   test -n "$CHECK_GMAKE" && break
15562 done
15563 
15564 
15565   MAKE_CANDIDATE=""$CHECK_GMAKE""
15566   DESCRIPTION="gmake in PATH"
15567   if test "x$MAKE_CANDIDATE" != x; then
15568     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15569 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15570     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15571     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15572     if test "x$IS_GNU_MAKE" = x; then
15573       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15574 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15575     else
15576       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15577       if test "x$IS_MODERN_MAKE" = x; then
15578         { $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
15579 $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;}
15580       else
15581         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15582           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15583             MAKE_EXPECTED_ENV='cygwin'
15584           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15585             MAKE_EXPECTED_ENV='msys'
15586           else
15587             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15588           fi
15589           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15590           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15591         else
15592           # Not relevant for non-Windows
15593           IS_MAKE_CORRECT_ENV=true
15594         fi
15595         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15596           { $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
15597 $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;}
15598         else
15599           FOUND_MAKE=$MAKE_CANDIDATE
15600 
15601   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15602 
15603   # First separate the path from the arguments. This will split at the first
15604   # space.
15605   complete="$FOUND_MAKE"
15606   path="${complete%% *}"
15607   tmp="$complete EOL"
15608   arguments="${tmp#* }"
15609 
15610   # Input might be given as Windows format, start by converting to
15611   # unix format.
15612   new_path=`$CYGPATH -u "$path"`
15613 
15614   # Now try to locate executable using which
15615   new_path=`$WHICH "$new_path" 2> /dev/null`
15616   # bat and cmd files are not always considered executable in cygwin causing which
15617   # to not find them
15618   if test "x$new_path" = x \
15619       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15620       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15621     new_path=`$CYGPATH -u "$path"`
15622   fi
15623   if test "x$new_path" = x; then
15624     # Oops. Which didn't find the executable.
15625     # The splitting of arguments from the executable at a space might have been incorrect,
15626     # since paths with space are more likely in Windows. Give it another try with the whole
15627     # argument.
15628     path="$complete"
15629     arguments="EOL"
15630     new_path=`$CYGPATH -u "$path"`
15631     new_path=`$WHICH "$new_path" 2> /dev/null`
15632     # bat and cmd files are not always considered executable in cygwin causing which
15633     # to not find them
15634     if test "x$new_path" = x \
15635         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15636         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15637       new_path=`$CYGPATH -u "$path"`
15638     fi
15639     if test "x$new_path" = x; then
15640       # It's still not found. Now this is an unrecoverable error.
15641       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15642 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15643       has_space=`$ECHO "$complete" | $GREP " "`
15644       if test "x$has_space" != x; then
15645         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15646 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15647       fi
15648       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15649     fi
15650   fi
15651 
15652   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15653   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15654   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15655   # "foo.exe" is OK but "foo" is an error.
15656   #
15657   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15658   # It is also a way to make sure we got the proper file name for the real test later on.
15659   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15660   if test "x$test_shortpath" = x; then
15661     # Short path failed, file does not exist as specified.
15662     # Try adding .exe or .cmd
15663     if test -f "${new_path}.exe"; then
15664       input_to_shortpath="${new_path}.exe"
15665     elif test -f "${new_path}.cmd"; then
15666       input_to_shortpath="${new_path}.cmd"
15667     else
15668       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15669 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15670       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15671 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15672       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15673     fi
15674   else
15675     input_to_shortpath="$new_path"
15676   fi
15677 
15678   # Call helper function which possibly converts this using DOS-style short mode.
15679   # If so, the updated path is stored in $new_path.
15680   new_path="$input_to_shortpath"
15681 
15682   input_path="$input_to_shortpath"
15683   # Check if we need to convert this using DOS-style short mode. If the path
15684   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15685   # take no chances and rewrite it.
15686   # Note: m4 eats our [], so we need to use [ and ] instead.
15687   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15688   if test "x$has_forbidden_chars" != x; then
15689     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15690     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15691     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15692     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15693       # Going to short mode and back again did indeed matter. Since short mode is
15694       # case insensitive, let's make it lowercase to improve readability.
15695       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15696       # Now convert it back to Unix-stile (cygpath)
15697       input_path=`$CYGPATH -u "$shortmode_path"`
15698       new_path="$input_path"
15699     fi
15700   fi
15701 
15702   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15703   if test "x$test_cygdrive_prefix" = x; then
15704     # As a simple fix, exclude /usr/bin since it's not a real path.
15705     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15706       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15707       # a path prefixed by /cygdrive for fixpath to work.
15708       new_path="$CYGWIN_ROOT_PATH$input_path"
15709     fi
15710   fi
15711 
15712   # remove trailing .exe if any
15713   new_path="${new_path/%.exe/}"
15714 
15715   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15716 
15717   # First separate the path from the arguments. This will split at the first
15718   # space.
15719   complete="$FOUND_MAKE"
15720   path="${complete%% *}"
15721   tmp="$complete EOL"
15722   arguments="${tmp#* }"
15723 
15724   # Input might be given as Windows format, start by converting to
15725   # unix format.
15726   new_path="$path"
15727 
15728   windows_path="$new_path"
15729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15730     unix_path=`$CYGPATH -u "$windows_path"`
15731     new_path="$unix_path"
15732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15734     new_path="$unix_path"
15735   fi
15736 
15737 
15738   # Now try to locate executable using which
15739   new_path=`$WHICH "$new_path" 2> /dev/null`
15740 
15741   if test "x$new_path" = x; then
15742     # Oops. Which didn't find the executable.
15743     # The splitting of arguments from the executable at a space might have been incorrect,
15744     # since paths with space are more likely in Windows. Give it another try with the whole
15745     # argument.
15746     path="$complete"
15747     arguments="EOL"
15748     new_path="$path"
15749 
15750   windows_path="$new_path"
15751   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15752     unix_path=`$CYGPATH -u "$windows_path"`
15753     new_path="$unix_path"
15754   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15755     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15756     new_path="$unix_path"
15757   fi
15758 
15759 
15760     new_path=`$WHICH "$new_path" 2> /dev/null`
15761 
15762     if test "x$new_path" = x; then
15763       # It's still not found. Now this is an unrecoverable error.
15764       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15765 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15766       has_space=`$ECHO "$complete" | $GREP " "`
15767       if test "x$has_space" != x; then
15768         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15769 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15770       fi
15771       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15772     fi
15773   fi
15774 
15775   # Now new_path has a complete unix path to the binary
15776   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15777     # Keep paths in /bin as-is, but remove trailing .exe if any
15778     new_path="${new_path/%.exe/}"
15779     # Do not save /bin paths to all_fixpath_prefixes!
15780   else
15781     # Not in mixed or Windows style, start by that.
15782     new_path=`cmd //c echo $new_path`
15783 
15784   input_path="$new_path"
15785   # Check if we need to convert this using DOS-style short mode. If the path
15786   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15787   # take no chances and rewrite it.
15788   # Note: m4 eats our [], so we need to use [ and ] instead.
15789   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15790   if test "x$has_forbidden_chars" != x; then
15791     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15792     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15793   fi
15794 
15795     # Output is in $new_path
15796 
15797   windows_path="$new_path"
15798   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15799     unix_path=`$CYGPATH -u "$windows_path"`
15800     new_path="$unix_path"
15801   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15802     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15803     new_path="$unix_path"
15804   fi
15805 
15806     # remove trailing .exe if any
15807     new_path="${new_path/%.exe/}"
15808 
15809     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15810     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15811   fi
15812 
15813   else
15814     # We're on a posix platform. Hooray! :)
15815     # First separate the path from the arguments. This will split at the first
15816     # space.
15817     complete="$FOUND_MAKE"
15818     path="${complete%% *}"
15819     tmp="$complete EOL"
15820     arguments="${tmp#* }"
15821 
15822     # Cannot rely on the command "which" here since it doesn't always work.
15823     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15824     if test -z "$is_absolute_path"; then
15825       # Path to executable is not absolute. Find it.
15826       IFS_save="$IFS"
15827       IFS=:
15828       for p in $PATH; do
15829         if test -f "$p/$path" && test -x "$p/$path"; then
15830           new_path="$p/$path"
15831           break
15832         fi
15833       done
15834       IFS="$IFS_save"
15835     else
15836       # This is an absolute path, we can use it without further modifications.
15837       new_path="$path"
15838     fi
15839 
15840     if test "x$new_path" = x; then
15841       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15842 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15843       has_space=`$ECHO "$complete" | $GREP " "`
15844       if test "x$has_space" != x; then
15845         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15846 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15847       fi
15848       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15849     fi
15850   fi
15851 
15852   # Now join together the path and the arguments once again
15853   if test "x$arguments" != xEOL; then
15854     new_complete="$new_path ${arguments% *}"
15855   else
15856     new_complete="$new_path"
15857   fi
15858 
15859   if test "x$complete" != "x$new_complete"; then
15860     FOUND_MAKE="$new_complete"
15861     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15862 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15863   fi
15864 
15865         fi
15866       fi
15867     fi
15868   fi
15869 
15870 
15871     if test "x$FOUND_MAKE" = x; then
15872       for ac_prog in make
15873 do
15874   # Extract the first word of "$ac_prog", so it can be a program name with args.
15875 set dummy $ac_prog; ac_word=$2
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15877 $as_echo_n "checking for $ac_word... " >&6; }
15878 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15879   $as_echo_n "(cached) " >&6
15880 else
15881   case $CHECK_MAKE in
15882   [\\/]* | ?:[\\/]*)
15883   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15884   ;;
15885   *)
15886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15887 for as_dir in $PATH
15888 do
15889   IFS=$as_save_IFS
15890   test -z "$as_dir" && as_dir=.
15891     for ac_exec_ext in '' $ac_executable_extensions; do
15892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15893     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15895     break 2
15896   fi
15897 done
15898   done
15899 IFS=$as_save_IFS
15900 
15901   ;;
15902 esac
15903 fi
15904 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15905 if test -n "$CHECK_MAKE"; then
15906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15907 $as_echo "$CHECK_MAKE" >&6; }
15908 else
15909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15910 $as_echo "no" >&6; }
15911 fi
15912 
15913 
15914   test -n "$CHECK_MAKE" && break
15915 done
15916 
15917 
15918   MAKE_CANDIDATE=""$CHECK_MAKE""
15919   DESCRIPTION="make in PATH"
15920   if test "x$MAKE_CANDIDATE" != x; then
15921     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15922 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15923     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15924     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15925     if test "x$IS_GNU_MAKE" = x; then
15926       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15927 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15928     else
15929       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15930       if test "x$IS_MODERN_MAKE" = x; then
15931         { $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
15932 $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;}
15933       else
15934         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15935           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15936             MAKE_EXPECTED_ENV='cygwin'
15937           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15938             MAKE_EXPECTED_ENV='msys'
15939           else
15940             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15941           fi
15942           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15943           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15944         else
15945           # Not relevant for non-Windows
15946           IS_MAKE_CORRECT_ENV=true
15947         fi
15948         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15949           { $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
15950 $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;}
15951         else
15952           FOUND_MAKE=$MAKE_CANDIDATE
15953 
15954   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15955 
15956   # First separate the path from the arguments. This will split at the first
15957   # space.
15958   complete="$FOUND_MAKE"
15959   path="${complete%% *}"
15960   tmp="$complete EOL"
15961   arguments="${tmp#* }"
15962 
15963   # Input might be given as Windows format, start by converting to
15964   # unix format.
15965   new_path=`$CYGPATH -u "$path"`
15966 
15967   # Now try to locate executable using which
15968   new_path=`$WHICH "$new_path" 2> /dev/null`
15969   # bat and cmd files are not always considered executable in cygwin causing which
15970   # to not find them
15971   if test "x$new_path" = x \
15972       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15973       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15974     new_path=`$CYGPATH -u "$path"`
15975   fi
15976   if test "x$new_path" = x; then
15977     # Oops. Which didn't find the executable.
15978     # The splitting of arguments from the executable at a space might have been incorrect,
15979     # since paths with space are more likely in Windows. Give it another try with the whole
15980     # argument.
15981     path="$complete"
15982     arguments="EOL"
15983     new_path=`$CYGPATH -u "$path"`
15984     new_path=`$WHICH "$new_path" 2> /dev/null`
15985     # bat and cmd files are not always considered executable in cygwin causing which
15986     # to not find them
15987     if test "x$new_path" = x \
15988         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15989         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15990       new_path=`$CYGPATH -u "$path"`
15991     fi
15992     if test "x$new_path" = x; then
15993       # It's still not found. Now this is an unrecoverable error.
15994       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15995 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15996       has_space=`$ECHO "$complete" | $GREP " "`
15997       if test "x$has_space" != x; then
15998         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15999 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16000       fi
16001       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16002     fi
16003   fi
16004 
16005   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16006   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16007   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16008   # "foo.exe" is OK but "foo" is an error.
16009   #
16010   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16011   # It is also a way to make sure we got the proper file name for the real test later on.
16012   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16013   if test "x$test_shortpath" = x; then
16014     # Short path failed, file does not exist as specified.
16015     # Try adding .exe or .cmd
16016     if test -f "${new_path}.exe"; then
16017       input_to_shortpath="${new_path}.exe"
16018     elif test -f "${new_path}.cmd"; then
16019       input_to_shortpath="${new_path}.cmd"
16020     else
16021       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16022 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16023       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16024 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16025       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16026     fi
16027   else
16028     input_to_shortpath="$new_path"
16029   fi
16030 
16031   # Call helper function which possibly converts this using DOS-style short mode.
16032   # If so, the updated path is stored in $new_path.
16033   new_path="$input_to_shortpath"
16034 
16035   input_path="$input_to_shortpath"
16036   # Check if we need to convert this using DOS-style short mode. If the path
16037   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16038   # take no chances and rewrite it.
16039   # Note: m4 eats our [], so we need to use [ and ] instead.
16040   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16041   if test "x$has_forbidden_chars" != x; then
16042     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16043     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16044     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16045     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16046       # Going to short mode and back again did indeed matter. Since short mode is
16047       # case insensitive, let's make it lowercase to improve readability.
16048       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16049       # Now convert it back to Unix-stile (cygpath)
16050       input_path=`$CYGPATH -u "$shortmode_path"`
16051       new_path="$input_path"
16052     fi
16053   fi
16054 
16055   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16056   if test "x$test_cygdrive_prefix" = x; then
16057     # As a simple fix, exclude /usr/bin since it's not a real path.
16058     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16059       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16060       # a path prefixed by /cygdrive for fixpath to work.
16061       new_path="$CYGWIN_ROOT_PATH$input_path"
16062     fi
16063   fi
16064 
16065   # remove trailing .exe if any
16066   new_path="${new_path/%.exe/}"
16067 
16068   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16069 
16070   # First separate the path from the arguments. This will split at the first
16071   # space.
16072   complete="$FOUND_MAKE"
16073   path="${complete%% *}"
16074   tmp="$complete EOL"
16075   arguments="${tmp#* }"
16076 
16077   # Input might be given as Windows format, start by converting to
16078   # unix format.
16079   new_path="$path"
16080 
16081   windows_path="$new_path"
16082   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16083     unix_path=`$CYGPATH -u "$windows_path"`
16084     new_path="$unix_path"
16085   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16086     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16087     new_path="$unix_path"
16088   fi
16089 
16090 
16091   # Now try to locate executable using which
16092   new_path=`$WHICH "$new_path" 2> /dev/null`
16093 
16094   if test "x$new_path" = x; then
16095     # Oops. Which didn't find the executable.
16096     # The splitting of arguments from the executable at a space might have been incorrect,
16097     # since paths with space are more likely in Windows. Give it another try with the whole
16098     # argument.
16099     path="$complete"
16100     arguments="EOL"
16101     new_path="$path"
16102 
16103   windows_path="$new_path"
16104   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16105     unix_path=`$CYGPATH -u "$windows_path"`
16106     new_path="$unix_path"
16107   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16108     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16109     new_path="$unix_path"
16110   fi
16111 
16112 
16113     new_path=`$WHICH "$new_path" 2> /dev/null`
16114 
16115     if test "x$new_path" = x; then
16116       # It's still not found. Now this is an unrecoverable error.
16117       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16118 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16119       has_space=`$ECHO "$complete" | $GREP " "`
16120       if test "x$has_space" != x; then
16121         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16122 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16123       fi
16124       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16125     fi
16126   fi
16127 
16128   # Now new_path has a complete unix path to the binary
16129   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16130     # Keep paths in /bin as-is, but remove trailing .exe if any
16131     new_path="${new_path/%.exe/}"
16132     # Do not save /bin paths to all_fixpath_prefixes!
16133   else
16134     # Not in mixed or Windows style, start by that.
16135     new_path=`cmd //c echo $new_path`
16136 
16137   input_path="$new_path"
16138   # Check if we need to convert this using DOS-style short mode. If the path
16139   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16140   # take no chances and rewrite it.
16141   # Note: m4 eats our [], so we need to use [ and ] instead.
16142   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16143   if test "x$has_forbidden_chars" != x; then
16144     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16145     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16146   fi
16147 
16148     # Output is in $new_path
16149 
16150   windows_path="$new_path"
16151   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16152     unix_path=`$CYGPATH -u "$windows_path"`
16153     new_path="$unix_path"
16154   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16155     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16156     new_path="$unix_path"
16157   fi
16158 
16159     # remove trailing .exe if any
16160     new_path="${new_path/%.exe/}"
16161 
16162     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16163     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16164   fi
16165 
16166   else
16167     # We're on a posix platform. Hooray! :)
16168     # First separate the path from the arguments. This will split at the first
16169     # space.
16170     complete="$FOUND_MAKE"
16171     path="${complete%% *}"
16172     tmp="$complete EOL"
16173     arguments="${tmp#* }"
16174 
16175     # Cannot rely on the command "which" here since it doesn't always work.
16176     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16177     if test -z "$is_absolute_path"; then
16178       # Path to executable is not absolute. Find it.
16179       IFS_save="$IFS"
16180       IFS=:
16181       for p in $PATH; do
16182         if test -f "$p/$path" && test -x "$p/$path"; then
16183           new_path="$p/$path"
16184           break
16185         fi
16186       done
16187       IFS="$IFS_save"
16188     else
16189       # This is an absolute path, we can use it without further modifications.
16190       new_path="$path"
16191     fi
16192 
16193     if test "x$new_path" = x; then
16194       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16195 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16196       has_space=`$ECHO "$complete" | $GREP " "`
16197       if test "x$has_space" != x; then
16198         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16199 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16200       fi
16201       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16202     fi
16203   fi
16204 
16205   # Now join together the path and the arguments once again
16206   if test "x$arguments" != xEOL; then
16207     new_complete="$new_path ${arguments% *}"
16208   else
16209     new_complete="$new_path"
16210   fi
16211 
16212   if test "x$complete" != "x$new_complete"; then
16213     FOUND_MAKE="$new_complete"
16214     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16215 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16216   fi
16217 
16218         fi
16219       fi
16220     fi
16221   fi
16222 
16223     fi
16224 
16225     if test "x$FOUND_MAKE" = x; then
16226       if test "x$TOOLCHAIN_PATH" != x; then
16227         # We have a toolchain path, check that as well before giving up.
16228         OLD_PATH=$PATH
16229         PATH=$TOOLCHAIN_PATH:$PATH
16230         for ac_prog in gmake
16231 do
16232   # Extract the first word of "$ac_prog", so it can be a program name with args.
16233 set dummy $ac_prog; ac_word=$2
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16235 $as_echo_n "checking for $ac_word... " >&6; }
16236 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16237   $as_echo_n "(cached) " >&6
16238 else
16239   case $CHECK_TOOLSDIR_GMAKE in
16240   [\\/]* | ?:[\\/]*)
16241   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16242   ;;
16243   *)
16244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16245 for as_dir in $PATH
16246 do
16247   IFS=$as_save_IFS
16248   test -z "$as_dir" && as_dir=.
16249     for ac_exec_ext in '' $ac_executable_extensions; do
16250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16251     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16253     break 2
16254   fi
16255 done
16256   done
16257 IFS=$as_save_IFS
16258 
16259   ;;
16260 esac
16261 fi
16262 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16263 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16265 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16266 else
16267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16268 $as_echo "no" >&6; }
16269 fi
16270 
16271 
16272   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16273 done
16274 
16275 
16276   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16277   DESCRIPTION="gmake in tools-dir"
16278   if test "x$MAKE_CANDIDATE" != x; then
16279     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16280 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16281     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16282     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16283     if test "x$IS_GNU_MAKE" = x; then
16284       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16285 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16286     else
16287       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16288       if test "x$IS_MODERN_MAKE" = x; then
16289         { $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
16290 $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;}
16291       else
16292         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16293           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16294             MAKE_EXPECTED_ENV='cygwin'
16295           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16296             MAKE_EXPECTED_ENV='msys'
16297           else
16298             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16299           fi
16300           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16301           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16302         else
16303           # Not relevant for non-Windows
16304           IS_MAKE_CORRECT_ENV=true
16305         fi
16306         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16307           { $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
16308 $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;}
16309         else
16310           FOUND_MAKE=$MAKE_CANDIDATE
16311 
16312   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16313 
16314   # First separate the path from the arguments. This will split at the first
16315   # space.
16316   complete="$FOUND_MAKE"
16317   path="${complete%% *}"
16318   tmp="$complete EOL"
16319   arguments="${tmp#* }"
16320 
16321   # Input might be given as Windows format, start by converting to
16322   # unix format.
16323   new_path=`$CYGPATH -u "$path"`
16324 
16325   # Now try to locate executable using which
16326   new_path=`$WHICH "$new_path" 2> /dev/null`
16327   # bat and cmd files are not always considered executable in cygwin causing which
16328   # to not find them
16329   if test "x$new_path" = x \
16330       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16331       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16332     new_path=`$CYGPATH -u "$path"`
16333   fi
16334   if test "x$new_path" = x; then
16335     # Oops. Which didn't find the executable.
16336     # The splitting of arguments from the executable at a space might have been incorrect,
16337     # since paths with space are more likely in Windows. Give it another try with the whole
16338     # argument.
16339     path="$complete"
16340     arguments="EOL"
16341     new_path=`$CYGPATH -u "$path"`
16342     new_path=`$WHICH "$new_path" 2> /dev/null`
16343     # bat and cmd files are not always considered executable in cygwin causing which
16344     # to not find them
16345     if test "x$new_path" = x \
16346         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16347         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16348       new_path=`$CYGPATH -u "$path"`
16349     fi
16350     if test "x$new_path" = x; then
16351       # It's still not found. Now this is an unrecoverable error.
16352       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16353 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16354       has_space=`$ECHO "$complete" | $GREP " "`
16355       if test "x$has_space" != x; then
16356         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16357 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16358       fi
16359       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16360     fi
16361   fi
16362 
16363   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16364   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16365   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16366   # "foo.exe" is OK but "foo" is an error.
16367   #
16368   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16369   # It is also a way to make sure we got the proper file name for the real test later on.
16370   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16371   if test "x$test_shortpath" = x; then
16372     # Short path failed, file does not exist as specified.
16373     # Try adding .exe or .cmd
16374     if test -f "${new_path}.exe"; then
16375       input_to_shortpath="${new_path}.exe"
16376     elif test -f "${new_path}.cmd"; then
16377       input_to_shortpath="${new_path}.cmd"
16378     else
16379       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16380 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16381       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16382 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16383       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16384     fi
16385   else
16386     input_to_shortpath="$new_path"
16387   fi
16388 
16389   # Call helper function which possibly converts this using DOS-style short mode.
16390   # If so, the updated path is stored in $new_path.
16391   new_path="$input_to_shortpath"
16392 
16393   input_path="$input_to_shortpath"
16394   # Check if we need to convert this using DOS-style short mode. If the path
16395   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16396   # take no chances and rewrite it.
16397   # Note: m4 eats our [], so we need to use [ and ] instead.
16398   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16399   if test "x$has_forbidden_chars" != x; then
16400     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16401     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16402     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16403     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16404       # Going to short mode and back again did indeed matter. Since short mode is
16405       # case insensitive, let's make it lowercase to improve readability.
16406       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16407       # Now convert it back to Unix-stile (cygpath)
16408       input_path=`$CYGPATH -u "$shortmode_path"`
16409       new_path="$input_path"
16410     fi
16411   fi
16412 
16413   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16414   if test "x$test_cygdrive_prefix" = x; then
16415     # As a simple fix, exclude /usr/bin since it's not a real path.
16416     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16417       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16418       # a path prefixed by /cygdrive for fixpath to work.
16419       new_path="$CYGWIN_ROOT_PATH$input_path"
16420     fi
16421   fi
16422 
16423   # remove trailing .exe if any
16424   new_path="${new_path/%.exe/}"
16425 
16426   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16427 
16428   # First separate the path from the arguments. This will split at the first
16429   # space.
16430   complete="$FOUND_MAKE"
16431   path="${complete%% *}"
16432   tmp="$complete EOL"
16433   arguments="${tmp#* }"
16434 
16435   # Input might be given as Windows format, start by converting to
16436   # unix format.
16437   new_path="$path"
16438 
16439   windows_path="$new_path"
16440   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16441     unix_path=`$CYGPATH -u "$windows_path"`
16442     new_path="$unix_path"
16443   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16444     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16445     new_path="$unix_path"
16446   fi
16447 
16448 
16449   # Now try to locate executable using which
16450   new_path=`$WHICH "$new_path" 2> /dev/null`
16451 
16452   if test "x$new_path" = x; then
16453     # Oops. Which didn't find the executable.
16454     # The splitting of arguments from the executable at a space might have been incorrect,
16455     # since paths with space are more likely in Windows. Give it another try with the whole
16456     # argument.
16457     path="$complete"
16458     arguments="EOL"
16459     new_path="$path"
16460 
16461   windows_path="$new_path"
16462   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16463     unix_path=`$CYGPATH -u "$windows_path"`
16464     new_path="$unix_path"
16465   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16466     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16467     new_path="$unix_path"
16468   fi
16469 
16470 
16471     new_path=`$WHICH "$new_path" 2> /dev/null`
16472 
16473     if test "x$new_path" = x; then
16474       # It's still not found. Now this is an unrecoverable error.
16475       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16476 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16477       has_space=`$ECHO "$complete" | $GREP " "`
16478       if test "x$has_space" != x; then
16479         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16480 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16481       fi
16482       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16483     fi
16484   fi
16485 
16486   # Now new_path has a complete unix path to the binary
16487   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16488     # Keep paths in /bin as-is, but remove trailing .exe if any
16489     new_path="${new_path/%.exe/}"
16490     # Do not save /bin paths to all_fixpath_prefixes!
16491   else
16492     # Not in mixed or Windows style, start by that.
16493     new_path=`cmd //c echo $new_path`
16494 
16495   input_path="$new_path"
16496   # Check if we need to convert this using DOS-style short mode. If the path
16497   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16498   # take no chances and rewrite it.
16499   # Note: m4 eats our [], so we need to use [ and ] instead.
16500   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16501   if test "x$has_forbidden_chars" != x; then
16502     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16503     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16504   fi
16505 
16506     # Output is in $new_path
16507 
16508   windows_path="$new_path"
16509   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16510     unix_path=`$CYGPATH -u "$windows_path"`
16511     new_path="$unix_path"
16512   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16513     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16514     new_path="$unix_path"
16515   fi
16516 
16517     # remove trailing .exe if any
16518     new_path="${new_path/%.exe/}"
16519 
16520     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16521     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16522   fi
16523 
16524   else
16525     # We're on a posix platform. Hooray! :)
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     # Cannot rely on the command "which" here since it doesn't always work.
16534     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16535     if test -z "$is_absolute_path"; then
16536       # Path to executable is not absolute. Find it.
16537       IFS_save="$IFS"
16538       IFS=:
16539       for p in $PATH; do
16540         if test -f "$p/$path" && test -x "$p/$path"; then
16541           new_path="$p/$path"
16542           break
16543         fi
16544       done
16545       IFS="$IFS_save"
16546     else
16547       # This is an absolute path, we can use it without further modifications.
16548       new_path="$path"
16549     fi
16550 
16551     if test "x$new_path" = x; then
16552       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16553 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16554       has_space=`$ECHO "$complete" | $GREP " "`
16555       if test "x$has_space" != x; then
16556         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16557 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16558       fi
16559       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16560     fi
16561   fi
16562 
16563   # Now join together the path and the arguments once again
16564   if test "x$arguments" != xEOL; then
16565     new_complete="$new_path ${arguments% *}"
16566   else
16567     new_complete="$new_path"
16568   fi
16569 
16570   if test "x$complete" != "x$new_complete"; then
16571     FOUND_MAKE="$new_complete"
16572     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16573 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16574   fi
16575 
16576         fi
16577       fi
16578     fi
16579   fi
16580 
16581         if test "x$FOUND_MAKE" = x; then
16582           for ac_prog in make
16583 do
16584   # Extract the first word of "$ac_prog", so it can be a program name with args.
16585 set dummy $ac_prog; ac_word=$2
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16587 $as_echo_n "checking for $ac_word... " >&6; }
16588 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16589   $as_echo_n "(cached) " >&6
16590 else
16591   case $CHECK_TOOLSDIR_MAKE in
16592   [\\/]* | ?:[\\/]*)
16593   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16594   ;;
16595   *)
16596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16597 for as_dir in $PATH
16598 do
16599   IFS=$as_save_IFS
16600   test -z "$as_dir" && as_dir=.
16601     for ac_exec_ext in '' $ac_executable_extensions; do
16602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16603     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16605     break 2
16606   fi
16607 done
16608   done
16609 IFS=$as_save_IFS
16610 
16611   ;;
16612 esac
16613 fi
16614 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16615 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16617 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16618 else
16619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16620 $as_echo "no" >&6; }
16621 fi
16622 
16623 
16624   test -n "$CHECK_TOOLSDIR_MAKE" && break
16625 done
16626 
16627 
16628   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16629   DESCRIPTION="make in tools-dir"
16630   if test "x$MAKE_CANDIDATE" != x; then
16631     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16632 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16633     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16634     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16635     if test "x$IS_GNU_MAKE" = x; then
16636       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16637 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16638     else
16639       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16640       if test "x$IS_MODERN_MAKE" = x; then
16641         { $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
16642 $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;}
16643       else
16644         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16645           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16646             MAKE_EXPECTED_ENV='cygwin'
16647           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16648             MAKE_EXPECTED_ENV='msys'
16649           else
16650             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16651           fi
16652           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16653           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16654         else
16655           # Not relevant for non-Windows
16656           IS_MAKE_CORRECT_ENV=true
16657         fi
16658         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16659           { $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
16660 $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;}
16661         else
16662           FOUND_MAKE=$MAKE_CANDIDATE
16663 
16664   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16665 
16666   # First separate the path from the arguments. This will split at the first
16667   # space.
16668   complete="$FOUND_MAKE"
16669   path="${complete%% *}"
16670   tmp="$complete EOL"
16671   arguments="${tmp#* }"
16672 
16673   # Input might be given as Windows format, start by converting to
16674   # unix format.
16675   new_path=`$CYGPATH -u "$path"`
16676 
16677   # Now try to locate executable using which
16678   new_path=`$WHICH "$new_path" 2> /dev/null`
16679   # bat and cmd files are not always considered executable in cygwin causing which
16680   # to not find them
16681   if test "x$new_path" = x \
16682       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16683       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16684     new_path=`$CYGPATH -u "$path"`
16685   fi
16686   if test "x$new_path" = x; then
16687     # Oops. Which didn't find the executable.
16688     # The splitting of arguments from the executable at a space might have been incorrect,
16689     # since paths with space are more likely in Windows. Give it another try with the whole
16690     # argument.
16691     path="$complete"
16692     arguments="EOL"
16693     new_path=`$CYGPATH -u "$path"`
16694     new_path=`$WHICH "$new_path" 2> /dev/null`
16695     # bat and cmd files are not always considered executable in cygwin causing which
16696     # to not find them
16697     if test "x$new_path" = x \
16698         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16699         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16700       new_path=`$CYGPATH -u "$path"`
16701     fi
16702     if test "x$new_path" = x; then
16703       # It's still not found. Now this is an unrecoverable error.
16704       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16705 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16706       has_space=`$ECHO "$complete" | $GREP " "`
16707       if test "x$has_space" != x; then
16708         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16709 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16710       fi
16711       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16712     fi
16713   fi
16714 
16715   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16716   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16717   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16718   # "foo.exe" is OK but "foo" is an error.
16719   #
16720   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16721   # It is also a way to make sure we got the proper file name for the real test later on.
16722   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16723   if test "x$test_shortpath" = x; then
16724     # Short path failed, file does not exist as specified.
16725     # Try adding .exe or .cmd
16726     if test -f "${new_path}.exe"; then
16727       input_to_shortpath="${new_path}.exe"
16728     elif test -f "${new_path}.cmd"; then
16729       input_to_shortpath="${new_path}.cmd"
16730     else
16731       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16732 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16733       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16734 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16735       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16736     fi
16737   else
16738     input_to_shortpath="$new_path"
16739   fi
16740 
16741   # Call helper function which possibly converts this using DOS-style short mode.
16742   # If so, the updated path is stored in $new_path.
16743   new_path="$input_to_shortpath"
16744 
16745   input_path="$input_to_shortpath"
16746   # Check if we need to convert this using DOS-style short mode. If the path
16747   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16748   # take no chances and rewrite it.
16749   # Note: m4 eats our [], so we need to use [ and ] instead.
16750   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16751   if test "x$has_forbidden_chars" != x; then
16752     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16753     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16754     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16755     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16756       # Going to short mode and back again did indeed matter. Since short mode is
16757       # case insensitive, let's make it lowercase to improve readability.
16758       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16759       # Now convert it back to Unix-stile (cygpath)
16760       input_path=`$CYGPATH -u "$shortmode_path"`
16761       new_path="$input_path"
16762     fi
16763   fi
16764 
16765   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16766   if test "x$test_cygdrive_prefix" = x; then
16767     # As a simple fix, exclude /usr/bin since it's not a real path.
16768     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16769       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16770       # a path prefixed by /cygdrive for fixpath to work.
16771       new_path="$CYGWIN_ROOT_PATH$input_path"
16772     fi
16773   fi
16774 
16775   # remove trailing .exe if any
16776   new_path="${new_path/%.exe/}"
16777 
16778   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16779 
16780   # First separate the path from the arguments. This will split at the first
16781   # space.
16782   complete="$FOUND_MAKE"
16783   path="${complete%% *}"
16784   tmp="$complete EOL"
16785   arguments="${tmp#* }"
16786 
16787   # Input might be given as Windows format, start by converting to
16788   # unix format.
16789   new_path="$path"
16790 
16791   windows_path="$new_path"
16792   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16793     unix_path=`$CYGPATH -u "$windows_path"`
16794     new_path="$unix_path"
16795   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16796     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16797     new_path="$unix_path"
16798   fi
16799 
16800 
16801   # Now try to locate executable using which
16802   new_path=`$WHICH "$new_path" 2> /dev/null`
16803 
16804   if test "x$new_path" = x; then
16805     # Oops. Which didn't find the executable.
16806     # The splitting of arguments from the executable at a space might have been incorrect,
16807     # since paths with space are more likely in Windows. Give it another try with the whole
16808     # argument.
16809     path="$complete"
16810     arguments="EOL"
16811     new_path="$path"
16812 
16813   windows_path="$new_path"
16814   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16815     unix_path=`$CYGPATH -u "$windows_path"`
16816     new_path="$unix_path"
16817   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16818     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16819     new_path="$unix_path"
16820   fi
16821 
16822 
16823     new_path=`$WHICH "$new_path" 2> /dev/null`
16824 
16825     if test "x$new_path" = x; then
16826       # It's still not found. Now this is an unrecoverable error.
16827       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16828 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16829       has_space=`$ECHO "$complete" | $GREP " "`
16830       if test "x$has_space" != x; then
16831         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16832 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16833       fi
16834       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16835     fi
16836   fi
16837 
16838   # Now new_path has a complete unix path to the binary
16839   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16840     # Keep paths in /bin as-is, but remove trailing .exe if any
16841     new_path="${new_path/%.exe/}"
16842     # Do not save /bin paths to all_fixpath_prefixes!
16843   else
16844     # Not in mixed or Windows style, start by that.
16845     new_path=`cmd //c echo $new_path`
16846 
16847   input_path="$new_path"
16848   # Check if we need to convert this using DOS-style short mode. If the path
16849   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16850   # take no chances and rewrite it.
16851   # Note: m4 eats our [], so we need to use [ and ] instead.
16852   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16853   if test "x$has_forbidden_chars" != x; then
16854     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16855     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16856   fi
16857 
16858     # Output is in $new_path
16859 
16860   windows_path="$new_path"
16861   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16862     unix_path=`$CYGPATH -u "$windows_path"`
16863     new_path="$unix_path"
16864   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16865     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16866     new_path="$unix_path"
16867   fi
16868 
16869     # remove trailing .exe if any
16870     new_path="${new_path/%.exe/}"
16871 
16872     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16873     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16874   fi
16875 
16876   else
16877     # We're on a posix platform. Hooray! :)
16878     # First separate the path from the arguments. This will split at the first
16879     # space.
16880     complete="$FOUND_MAKE"
16881     path="${complete%% *}"
16882     tmp="$complete EOL"
16883     arguments="${tmp#* }"
16884 
16885     # Cannot rely on the command "which" here since it doesn't always work.
16886     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16887     if test -z "$is_absolute_path"; then
16888       # Path to executable is not absolute. Find it.
16889       IFS_save="$IFS"
16890       IFS=:
16891       for p in $PATH; do
16892         if test -f "$p/$path" && test -x "$p/$path"; then
16893           new_path="$p/$path"
16894           break
16895         fi
16896       done
16897       IFS="$IFS_save"
16898     else
16899       # This is an absolute path, we can use it without further modifications.
16900       new_path="$path"
16901     fi
16902 
16903     if test "x$new_path" = x; then
16904       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16905 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16906       has_space=`$ECHO "$complete" | $GREP " "`
16907       if test "x$has_space" != x; then
16908         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16909 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16910       fi
16911       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16912     fi
16913   fi
16914 
16915   # Now join together the path and the arguments once again
16916   if test "x$arguments" != xEOL; then
16917     new_complete="$new_path ${arguments% *}"
16918   else
16919     new_complete="$new_path"
16920   fi
16921 
16922   if test "x$complete" != "x$new_complete"; then
16923     FOUND_MAKE="$new_complete"
16924     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16925 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16926   fi
16927 
16928         fi
16929       fi
16930     fi
16931   fi
16932 
16933         fi
16934         PATH=$OLD_PATH
16935       fi
16936     fi
16937 
16938     if test "x$FOUND_MAKE" = x; then
16939       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
16940     fi
16941   fi
16942 
16943   MAKE=$FOUND_MAKE
16944 
16945   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16946 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16947 
16948 
16949 
16950   # Test if find supports -delete
16951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16952 $as_echo_n "checking if find supports -delete... " >&6; }
16953   FIND_DELETE="-delete"
16954 
16955   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16956 
16957   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16958 
16959   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16960   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16961     # No, it does not.
16962     rm $DELETEDIR/TestIfFindSupportsDelete
16963     FIND_DELETE="-exec rm \{\} \+"
16964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965 $as_echo "no" >&6; }
16966   else
16967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968 $as_echo "yes" >&6; }
16969   fi
16970   rmdir $DELETEDIR
16971 
16972 
16973 
16974   # These tools might not be installed by default,
16975   # need hint on how to install them.
16976 
16977 
16978 
16979   # Publish this variable in the help.
16980 
16981 
16982   if test "x$UNZIP" = x; then
16983     # The variable is not set by user, try to locate tool using the code snippet
16984     for ac_prog in unzip
16985 do
16986   # Extract the first word of "$ac_prog", so it can be a program name with args.
16987 set dummy $ac_prog; ac_word=$2
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16989 $as_echo_n "checking for $ac_word... " >&6; }
16990 if ${ac_cv_path_UNZIP+:} false; then :
16991   $as_echo_n "(cached) " >&6
16992 else
16993   case $UNZIP in
16994   [\\/]* | ?:[\\/]*)
16995   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16996   ;;
16997   *)
16998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16999 for as_dir in $PATH
17000 do
17001   IFS=$as_save_IFS
17002   test -z "$as_dir" && as_dir=.
17003     for ac_exec_ext in '' $ac_executable_extensions; do
17004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17005     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17007     break 2
17008   fi
17009 done
17010   done
17011 IFS=$as_save_IFS
17012 
17013   ;;
17014 esac
17015 fi
17016 UNZIP=$ac_cv_path_UNZIP
17017 if test -n "$UNZIP"; then
17018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17019 $as_echo "$UNZIP" >&6; }
17020 else
17021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17022 $as_echo "no" >&6; }
17023 fi
17024 
17025 
17026   test -n "$UNZIP" && break
17027 done
17028 
17029   else
17030     # The variable is set, but is it from the command line or the environment?
17031 
17032     # Try to remove the string !UNZIP! from our list.
17033     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17034     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17035       # If it failed, the variable was not from the command line. Ignore it,
17036       # but warn the user (except for BASH, which is always set by the calling BASH).
17037       if test "xUNZIP" != xBASH; then
17038         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17039 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17040       fi
17041       # Try to locate tool using the code snippet
17042       for ac_prog in unzip
17043 do
17044   # Extract the first word of "$ac_prog", so it can be a program name with args.
17045 set dummy $ac_prog; ac_word=$2
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17047 $as_echo_n "checking for $ac_word... " >&6; }
17048 if ${ac_cv_path_UNZIP+:} false; then :
17049   $as_echo_n "(cached) " >&6
17050 else
17051   case $UNZIP in
17052   [\\/]* | ?:[\\/]*)
17053   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17054   ;;
17055   *)
17056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057 for as_dir in $PATH
17058 do
17059   IFS=$as_save_IFS
17060   test -z "$as_dir" && as_dir=.
17061     for ac_exec_ext in '' $ac_executable_extensions; do
17062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17063     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17065     break 2
17066   fi
17067 done
17068   done
17069 IFS=$as_save_IFS
17070 
17071   ;;
17072 esac
17073 fi
17074 UNZIP=$ac_cv_path_UNZIP
17075 if test -n "$UNZIP"; then
17076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17077 $as_echo "$UNZIP" >&6; }
17078 else
17079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080 $as_echo "no" >&6; }
17081 fi
17082 
17083 
17084   test -n "$UNZIP" && break
17085 done
17086 
17087     else
17088       # If it succeeded, then it was overridden by the user. We will use it
17089       # for the tool.
17090 
17091       # First remove it from the list of overridden variables, so we can test
17092       # for unknown variables in the end.
17093       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17094 
17095       # Check if the provided tool contains a complete path.
17096       tool_specified="$UNZIP"
17097       tool_basename="${tool_specified##*/}"
17098       if test "x$tool_basename" = "x$tool_specified"; then
17099         # A command without a complete path is provided, search $PATH.
17100         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17101 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17102         # Extract the first word of "$tool_basename", so it can be a program name with args.
17103 set dummy $tool_basename; ac_word=$2
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17105 $as_echo_n "checking for $ac_word... " >&6; }
17106 if ${ac_cv_path_UNZIP+:} false; then :
17107   $as_echo_n "(cached) " >&6
17108 else
17109   case $UNZIP in
17110   [\\/]* | ?:[\\/]*)
17111   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17112   ;;
17113   *)
17114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17115 for as_dir in $PATH
17116 do
17117   IFS=$as_save_IFS
17118   test -z "$as_dir" && as_dir=.
17119     for ac_exec_ext in '' $ac_executable_extensions; do
17120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17121     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17123     break 2
17124   fi
17125 done
17126   done
17127 IFS=$as_save_IFS
17128 
17129   ;;
17130 esac
17131 fi
17132 UNZIP=$ac_cv_path_UNZIP
17133 if test -n "$UNZIP"; then
17134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17135 $as_echo "$UNZIP" >&6; }
17136 else
17137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 $as_echo "no" >&6; }
17139 fi
17140 
17141 
17142         if test "x$UNZIP" = x; then
17143           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17144         fi
17145       else
17146         # Otherwise we believe it is a complete path. Use it as it is.
17147         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17148 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17150 $as_echo_n "checking for UNZIP... " >&6; }
17151         if test ! -x "$tool_specified"; then
17152           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17153 $as_echo "not found" >&6; }
17154           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17155         fi
17156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17157 $as_echo "$tool_specified" >&6; }
17158       fi
17159     fi
17160   fi
17161 
17162 
17163 
17164   if test "x$UNZIP" = x; then
17165     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17166   fi
17167 
17168 
17169 
17170 
17171 
17172   # Publish this variable in the help.
17173 
17174 
17175   if test "x$ZIP" = x; then
17176     # The variable is not set by user, try to locate tool using the code snippet
17177     for ac_prog in zip
17178 do
17179   # Extract the first word of "$ac_prog", so it can be a program name with args.
17180 set dummy $ac_prog; ac_word=$2
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17182 $as_echo_n "checking for $ac_word... " >&6; }
17183 if ${ac_cv_path_ZIP+:} false; then :
17184   $as_echo_n "(cached) " >&6
17185 else
17186   case $ZIP in
17187   [\\/]* | ?:[\\/]*)
17188   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17189   ;;
17190   *)
17191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17192 for as_dir in $PATH
17193 do
17194   IFS=$as_save_IFS
17195   test -z "$as_dir" && as_dir=.
17196     for ac_exec_ext in '' $ac_executable_extensions; do
17197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17198     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17200     break 2
17201   fi
17202 done
17203   done
17204 IFS=$as_save_IFS
17205 
17206   ;;
17207 esac
17208 fi
17209 ZIP=$ac_cv_path_ZIP
17210 if test -n "$ZIP"; then
17211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17212 $as_echo "$ZIP" >&6; }
17213 else
17214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17215 $as_echo "no" >&6; }
17216 fi
17217 
17218 
17219   test -n "$ZIP" && break
17220 done
17221 
17222   else
17223     # The variable is set, but is it from the command line or the environment?
17224 
17225     # Try to remove the string !ZIP! from our list.
17226     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17227     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17228       # If it failed, the variable was not from the command line. Ignore it,
17229       # but warn the user (except for BASH, which is always set by the calling BASH).
17230       if test "xZIP" != xBASH; then
17231         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17232 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17233       fi
17234       # Try to locate tool using the code snippet
17235       for ac_prog in zip
17236 do
17237   # Extract the first word of "$ac_prog", so it can be a program name with args.
17238 set dummy $ac_prog; ac_word=$2
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17240 $as_echo_n "checking for $ac_word... " >&6; }
17241 if ${ac_cv_path_ZIP+:} false; then :
17242   $as_echo_n "(cached) " >&6
17243 else
17244   case $ZIP in
17245   [\\/]* | ?:[\\/]*)
17246   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17247   ;;
17248   *)
17249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17250 for as_dir in $PATH
17251 do
17252   IFS=$as_save_IFS
17253   test -z "$as_dir" && as_dir=.
17254     for ac_exec_ext in '' $ac_executable_extensions; do
17255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17256     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17258     break 2
17259   fi
17260 done
17261   done
17262 IFS=$as_save_IFS
17263 
17264   ;;
17265 esac
17266 fi
17267 ZIP=$ac_cv_path_ZIP
17268 if test -n "$ZIP"; then
17269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17270 $as_echo "$ZIP" >&6; }
17271 else
17272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17273 $as_echo "no" >&6; }
17274 fi
17275 
17276 
17277   test -n "$ZIP" && break
17278 done
17279 
17280     else
17281       # If it succeeded, then it was overridden by the user. We will use it
17282       # for the tool.
17283 
17284       # First remove it from the list of overridden variables, so we can test
17285       # for unknown variables in the end.
17286       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17287 
17288       # Check if the provided tool contains a complete path.
17289       tool_specified="$ZIP"
17290       tool_basename="${tool_specified##*/}"
17291       if test "x$tool_basename" = "x$tool_specified"; then
17292         # A command without a complete path is provided, search $PATH.
17293         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17294 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17295         # Extract the first word of "$tool_basename", so it can be a program name with args.
17296 set dummy $tool_basename; ac_word=$2
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17298 $as_echo_n "checking for $ac_word... " >&6; }
17299 if ${ac_cv_path_ZIP+:} false; then :
17300   $as_echo_n "(cached) " >&6
17301 else
17302   case $ZIP in
17303   [\\/]* | ?:[\\/]*)
17304   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17305   ;;
17306   *)
17307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17308 for as_dir in $PATH
17309 do
17310   IFS=$as_save_IFS
17311   test -z "$as_dir" && as_dir=.
17312     for ac_exec_ext in '' $ac_executable_extensions; do
17313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17314     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17316     break 2
17317   fi
17318 done
17319   done
17320 IFS=$as_save_IFS
17321 
17322   ;;
17323 esac
17324 fi
17325 ZIP=$ac_cv_path_ZIP
17326 if test -n "$ZIP"; then
17327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17328 $as_echo "$ZIP" >&6; }
17329 else
17330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17331 $as_echo "no" >&6; }
17332 fi
17333 
17334 
17335         if test "x$ZIP" = x; then
17336           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17337         fi
17338       else
17339         # Otherwise we believe it is a complete path. Use it as it is.
17340         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17341 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17342         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17343 $as_echo_n "checking for ZIP... " >&6; }
17344         if test ! -x "$tool_specified"; then
17345           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17346 $as_echo "not found" >&6; }
17347           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17348         fi
17349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17350 $as_echo "$tool_specified" >&6; }
17351       fi
17352     fi
17353   fi
17354 
17355 
17356 
17357   if test "x$ZIP" = x; then
17358     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17359   fi
17360 
17361 
17362 
17363   # Non-required basic tools
17364 
17365 
17366 
17367   # Publish this variable in the help.
17368 
17369 
17370   if test "x$LDD" = x; then
17371     # The variable is not set by user, try to locate tool using the code snippet
17372     for ac_prog in ldd
17373 do
17374   # Extract the first word of "$ac_prog", so it can be a program name with args.
17375 set dummy $ac_prog; ac_word=$2
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17377 $as_echo_n "checking for $ac_word... " >&6; }
17378 if ${ac_cv_path_LDD+:} false; then :
17379   $as_echo_n "(cached) " >&6
17380 else
17381   case $LDD in
17382   [\\/]* | ?:[\\/]*)
17383   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17384   ;;
17385   *)
17386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17387 for as_dir in $PATH
17388 do
17389   IFS=$as_save_IFS
17390   test -z "$as_dir" && as_dir=.
17391     for ac_exec_ext in '' $ac_executable_extensions; do
17392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17393     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17395     break 2
17396   fi
17397 done
17398   done
17399 IFS=$as_save_IFS
17400 
17401   ;;
17402 esac
17403 fi
17404 LDD=$ac_cv_path_LDD
17405 if test -n "$LDD"; then
17406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17407 $as_echo "$LDD" >&6; }
17408 else
17409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17410 $as_echo "no" >&6; }
17411 fi
17412 
17413 
17414   test -n "$LDD" && break
17415 done
17416 
17417   else
17418     # The variable is set, but is it from the command line or the environment?
17419 
17420     # Try to remove the string !LDD! from our list.
17421     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17422     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17423       # If it failed, the variable was not from the command line. Ignore it,
17424       # but warn the user (except for BASH, which is always set by the calling BASH).
17425       if test "xLDD" != xBASH; then
17426         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17427 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17428       fi
17429       # Try to locate tool using the code snippet
17430       for ac_prog in ldd
17431 do
17432   # Extract the first word of "$ac_prog", so it can be a program name with args.
17433 set dummy $ac_prog; ac_word=$2
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17435 $as_echo_n "checking for $ac_word... " >&6; }
17436 if ${ac_cv_path_LDD+:} false; then :
17437   $as_echo_n "(cached) " >&6
17438 else
17439   case $LDD in
17440   [\\/]* | ?:[\\/]*)
17441   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17442   ;;
17443   *)
17444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17445 for as_dir in $PATH
17446 do
17447   IFS=$as_save_IFS
17448   test -z "$as_dir" && as_dir=.
17449     for ac_exec_ext in '' $ac_executable_extensions; do
17450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17451     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17453     break 2
17454   fi
17455 done
17456   done
17457 IFS=$as_save_IFS
17458 
17459   ;;
17460 esac
17461 fi
17462 LDD=$ac_cv_path_LDD
17463 if test -n "$LDD"; then
17464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17465 $as_echo "$LDD" >&6; }
17466 else
17467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17468 $as_echo "no" >&6; }
17469 fi
17470 
17471 
17472   test -n "$LDD" && break
17473 done
17474 
17475     else
17476       # If it succeeded, then it was overridden by the user. We will use it
17477       # for the tool.
17478 
17479       # First remove it from the list of overridden variables, so we can test
17480       # for unknown variables in the end.
17481       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17482 
17483       # Check if the provided tool contains a complete path.
17484       tool_specified="$LDD"
17485       tool_basename="${tool_specified##*/}"
17486       if test "x$tool_basename" = "x$tool_specified"; then
17487         # A command without a complete path is provided, search $PATH.
17488         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17489 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17490         # Extract the first word of "$tool_basename", so it can be a program name with args.
17491 set dummy $tool_basename; ac_word=$2
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17493 $as_echo_n "checking for $ac_word... " >&6; }
17494 if ${ac_cv_path_LDD+:} false; then :
17495   $as_echo_n "(cached) " >&6
17496 else
17497   case $LDD in
17498   [\\/]* | ?:[\\/]*)
17499   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17500   ;;
17501   *)
17502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17503 for as_dir in $PATH
17504 do
17505   IFS=$as_save_IFS
17506   test -z "$as_dir" && as_dir=.
17507     for ac_exec_ext in '' $ac_executable_extensions; do
17508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17509     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17511     break 2
17512   fi
17513 done
17514   done
17515 IFS=$as_save_IFS
17516 
17517   ;;
17518 esac
17519 fi
17520 LDD=$ac_cv_path_LDD
17521 if test -n "$LDD"; then
17522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17523 $as_echo "$LDD" >&6; }
17524 else
17525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526 $as_echo "no" >&6; }
17527 fi
17528 
17529 
17530         if test "x$LDD" = x; then
17531           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17532         fi
17533       else
17534         # Otherwise we believe it is a complete path. Use it as it is.
17535         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17536 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17537         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17538 $as_echo_n "checking for LDD... " >&6; }
17539         if test ! -x "$tool_specified"; then
17540           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17541 $as_echo "not found" >&6; }
17542           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17543         fi
17544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17545 $as_echo "$tool_specified" >&6; }
17546       fi
17547     fi
17548   fi
17549 
17550 
17551   if test "x$LDD" = "x"; then
17552     # List shared lib dependencies is used for
17553     # debug output and checking for forbidden dependencies.
17554     # We can build without it.
17555     LDD="true"
17556   fi
17557 
17558 
17559   # Publish this variable in the help.
17560 
17561 
17562   if test "x$OTOOL" = x; then
17563     # The variable is not set by user, try to locate tool using the code snippet
17564     for ac_prog in otool
17565 do
17566   # Extract the first word of "$ac_prog", so it can be a program name with args.
17567 set dummy $ac_prog; ac_word=$2
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17569 $as_echo_n "checking for $ac_word... " >&6; }
17570 if ${ac_cv_path_OTOOL+:} false; then :
17571   $as_echo_n "(cached) " >&6
17572 else
17573   case $OTOOL in
17574   [\\/]* | ?:[\\/]*)
17575   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17576   ;;
17577   *)
17578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17579 for as_dir in $PATH
17580 do
17581   IFS=$as_save_IFS
17582   test -z "$as_dir" && as_dir=.
17583     for ac_exec_ext in '' $ac_executable_extensions; do
17584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17585     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17587     break 2
17588   fi
17589 done
17590   done
17591 IFS=$as_save_IFS
17592 
17593   ;;
17594 esac
17595 fi
17596 OTOOL=$ac_cv_path_OTOOL
17597 if test -n "$OTOOL"; then
17598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17599 $as_echo "$OTOOL" >&6; }
17600 else
17601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602 $as_echo "no" >&6; }
17603 fi
17604 
17605 
17606   test -n "$OTOOL" && break
17607 done
17608 
17609   else
17610     # The variable is set, but is it from the command line or the environment?
17611 
17612     # Try to remove the string !OTOOL! from our list.
17613     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17614     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17615       # If it failed, the variable was not from the command line. Ignore it,
17616       # but warn the user (except for BASH, which is always set by the calling BASH).
17617       if test "xOTOOL" != xBASH; then
17618         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17619 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17620       fi
17621       # Try to locate tool using the code snippet
17622       for ac_prog in otool
17623 do
17624   # Extract the first word of "$ac_prog", so it can be a program name with args.
17625 set dummy $ac_prog; ac_word=$2
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17627 $as_echo_n "checking for $ac_word... " >&6; }
17628 if ${ac_cv_path_OTOOL+:} false; then :
17629   $as_echo_n "(cached) " >&6
17630 else
17631   case $OTOOL in
17632   [\\/]* | ?:[\\/]*)
17633   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17634   ;;
17635   *)
17636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17637 for as_dir in $PATH
17638 do
17639   IFS=$as_save_IFS
17640   test -z "$as_dir" && as_dir=.
17641     for ac_exec_ext in '' $ac_executable_extensions; do
17642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17643     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17645     break 2
17646   fi
17647 done
17648   done
17649 IFS=$as_save_IFS
17650 
17651   ;;
17652 esac
17653 fi
17654 OTOOL=$ac_cv_path_OTOOL
17655 if test -n "$OTOOL"; then
17656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17657 $as_echo "$OTOOL" >&6; }
17658 else
17659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17660 $as_echo "no" >&6; }
17661 fi
17662 
17663 
17664   test -n "$OTOOL" && break
17665 done
17666 
17667     else
17668       # If it succeeded, then it was overridden by the user. We will use it
17669       # for the tool.
17670 
17671       # First remove it from the list of overridden variables, so we can test
17672       # for unknown variables in the end.
17673       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17674 
17675       # Check if the provided tool contains a complete path.
17676       tool_specified="$OTOOL"
17677       tool_basename="${tool_specified##*/}"
17678       if test "x$tool_basename" = "x$tool_specified"; then
17679         # A command without a complete path is provided, search $PATH.
17680         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17681 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17682         # Extract the first word of "$tool_basename", so it can be a program name with args.
17683 set dummy $tool_basename; ac_word=$2
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17685 $as_echo_n "checking for $ac_word... " >&6; }
17686 if ${ac_cv_path_OTOOL+:} false; then :
17687   $as_echo_n "(cached) " >&6
17688 else
17689   case $OTOOL in
17690   [\\/]* | ?:[\\/]*)
17691   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17692   ;;
17693   *)
17694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17695 for as_dir in $PATH
17696 do
17697   IFS=$as_save_IFS
17698   test -z "$as_dir" && as_dir=.
17699     for ac_exec_ext in '' $ac_executable_extensions; do
17700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17701     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17703     break 2
17704   fi
17705 done
17706   done
17707 IFS=$as_save_IFS
17708 
17709   ;;
17710 esac
17711 fi
17712 OTOOL=$ac_cv_path_OTOOL
17713 if test -n "$OTOOL"; then
17714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17715 $as_echo "$OTOOL" >&6; }
17716 else
17717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17718 $as_echo "no" >&6; }
17719 fi
17720 
17721 
17722         if test "x$OTOOL" = x; then
17723           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17724         fi
17725       else
17726         # Otherwise we believe it is a complete path. Use it as it is.
17727         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17728 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17730 $as_echo_n "checking for OTOOL... " >&6; }
17731         if test ! -x "$tool_specified"; then
17732           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17733 $as_echo "not found" >&6; }
17734           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17735         fi
17736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17737 $as_echo "$tool_specified" >&6; }
17738       fi
17739     fi
17740   fi
17741 
17742 
17743   if test "x$OTOOL" = "x"; then
17744     OTOOL="true"
17745   fi
17746 
17747 
17748   # Publish this variable in the help.
17749 
17750 
17751   if test "x$READELF" = x; then
17752     # The variable is not set by user, try to locate tool using the code snippet
17753     for ac_prog in greadelf readelf
17754 do
17755   # Extract the first word of "$ac_prog", so it can be a program name with args.
17756 set dummy $ac_prog; ac_word=$2
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17758 $as_echo_n "checking for $ac_word... " >&6; }
17759 if ${ac_cv_path_READELF+:} false; then :
17760   $as_echo_n "(cached) " >&6
17761 else
17762   case $READELF in
17763   [\\/]* | ?:[\\/]*)
17764   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17765   ;;
17766   *)
17767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17768 for as_dir in $PATH
17769 do
17770   IFS=$as_save_IFS
17771   test -z "$as_dir" && as_dir=.
17772     for ac_exec_ext in '' $ac_executable_extensions; do
17773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17774     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17776     break 2
17777   fi
17778 done
17779   done
17780 IFS=$as_save_IFS
17781 
17782   ;;
17783 esac
17784 fi
17785 READELF=$ac_cv_path_READELF
17786 if test -n "$READELF"; then
17787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17788 $as_echo "$READELF" >&6; }
17789 else
17790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17791 $as_echo "no" >&6; }
17792 fi
17793 
17794 
17795   test -n "$READELF" && break
17796 done
17797 
17798   else
17799     # The variable is set, but is it from the command line or the environment?
17800 
17801     # Try to remove the string !READELF! from our list.
17802     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17803     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17804       # If it failed, the variable was not from the command line. Ignore it,
17805       # but warn the user (except for BASH, which is always set by the calling BASH).
17806       if test "xREADELF" != xBASH; then
17807         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17808 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17809       fi
17810       # Try to locate tool using the code snippet
17811       for ac_prog in greadelf readelf
17812 do
17813   # Extract the first word of "$ac_prog", so it can be a program name with args.
17814 set dummy $ac_prog; ac_word=$2
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17816 $as_echo_n "checking for $ac_word... " >&6; }
17817 if ${ac_cv_path_READELF+:} false; then :
17818   $as_echo_n "(cached) " >&6
17819 else
17820   case $READELF in
17821   [\\/]* | ?:[\\/]*)
17822   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17823   ;;
17824   *)
17825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17826 for as_dir in $PATH
17827 do
17828   IFS=$as_save_IFS
17829   test -z "$as_dir" && as_dir=.
17830     for ac_exec_ext in '' $ac_executable_extensions; do
17831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17832     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17834     break 2
17835   fi
17836 done
17837   done
17838 IFS=$as_save_IFS
17839 
17840   ;;
17841 esac
17842 fi
17843 READELF=$ac_cv_path_READELF
17844 if test -n "$READELF"; then
17845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17846 $as_echo "$READELF" >&6; }
17847 else
17848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 $as_echo "no" >&6; }
17850 fi
17851 
17852 
17853   test -n "$READELF" && break
17854 done
17855 
17856     else
17857       # If it succeeded, then it was overridden by the user. We will use it
17858       # for the tool.
17859 
17860       # First remove it from the list of overridden variables, so we can test
17861       # for unknown variables in the end.
17862       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17863 
17864       # Check if the provided tool contains a complete path.
17865       tool_specified="$READELF"
17866       tool_basename="${tool_specified##*/}"
17867       if test "x$tool_basename" = "x$tool_specified"; then
17868         # A command without a complete path is provided, search $PATH.
17869         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17870 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17871         # Extract the first word of "$tool_basename", so it can be a program name with args.
17872 set dummy $tool_basename; ac_word=$2
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17874 $as_echo_n "checking for $ac_word... " >&6; }
17875 if ${ac_cv_path_READELF+:} false; then :
17876   $as_echo_n "(cached) " >&6
17877 else
17878   case $READELF in
17879   [\\/]* | ?:[\\/]*)
17880   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17881   ;;
17882   *)
17883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17884 for as_dir in $PATH
17885 do
17886   IFS=$as_save_IFS
17887   test -z "$as_dir" && as_dir=.
17888     for ac_exec_ext in '' $ac_executable_extensions; do
17889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17890     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17892     break 2
17893   fi
17894 done
17895   done
17896 IFS=$as_save_IFS
17897 
17898   ;;
17899 esac
17900 fi
17901 READELF=$ac_cv_path_READELF
17902 if test -n "$READELF"; then
17903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17904 $as_echo "$READELF" >&6; }
17905 else
17906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907 $as_echo "no" >&6; }
17908 fi
17909 
17910 
17911         if test "x$READELF" = x; then
17912           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17913         fi
17914       else
17915         # Otherwise we believe it is a complete path. Use it as it is.
17916         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17917 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17918         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17919 $as_echo_n "checking for READELF... " >&6; }
17920         if test ! -x "$tool_specified"; then
17921           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17922 $as_echo "not found" >&6; }
17923           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17924         fi
17925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17926 $as_echo "$tool_specified" >&6; }
17927       fi
17928     fi
17929   fi
17930 
17931 
17932 
17933 
17934   # Publish this variable in the help.
17935 
17936 
17937   if test "x$HG" = x; then
17938     # The variable is not set by user, try to locate tool using the code snippet
17939     for ac_prog in hg
17940 do
17941   # Extract the first word of "$ac_prog", so it can be a program name with args.
17942 set dummy $ac_prog; ac_word=$2
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17944 $as_echo_n "checking for $ac_word... " >&6; }
17945 if ${ac_cv_path_HG+:} false; then :
17946   $as_echo_n "(cached) " >&6
17947 else
17948   case $HG in
17949   [\\/]* | ?:[\\/]*)
17950   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17951   ;;
17952   *)
17953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17954 for as_dir in $PATH
17955 do
17956   IFS=$as_save_IFS
17957   test -z "$as_dir" && as_dir=.
17958     for ac_exec_ext in '' $ac_executable_extensions; do
17959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17960     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17962     break 2
17963   fi
17964 done
17965   done
17966 IFS=$as_save_IFS
17967 
17968   ;;
17969 esac
17970 fi
17971 HG=$ac_cv_path_HG
17972 if test -n "$HG"; then
17973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17974 $as_echo "$HG" >&6; }
17975 else
17976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17977 $as_echo "no" >&6; }
17978 fi
17979 
17980 
17981   test -n "$HG" && break
17982 done
17983 
17984   else
17985     # The variable is set, but is it from the command line or the environment?
17986 
17987     # Try to remove the string !HG! from our list.
17988     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17989     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17990       # If it failed, the variable was not from the command line. Ignore it,
17991       # but warn the user (except for BASH, which is always set by the calling BASH).
17992       if test "xHG" != xBASH; then
17993         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17994 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17995       fi
17996       # Try to locate tool using the code snippet
17997       for ac_prog in hg
17998 do
17999   # Extract the first word of "$ac_prog", so it can be a program name with args.
18000 set dummy $ac_prog; ac_word=$2
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18002 $as_echo_n "checking for $ac_word... " >&6; }
18003 if ${ac_cv_path_HG+:} false; then :
18004   $as_echo_n "(cached) " >&6
18005 else
18006   case $HG in
18007   [\\/]* | ?:[\\/]*)
18008   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18009   ;;
18010   *)
18011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18012 for as_dir in $PATH
18013 do
18014   IFS=$as_save_IFS
18015   test -z "$as_dir" && as_dir=.
18016     for ac_exec_ext in '' $ac_executable_extensions; do
18017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18018     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18020     break 2
18021   fi
18022 done
18023   done
18024 IFS=$as_save_IFS
18025 
18026   ;;
18027 esac
18028 fi
18029 HG=$ac_cv_path_HG
18030 if test -n "$HG"; then
18031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18032 $as_echo "$HG" >&6; }
18033 else
18034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18035 $as_echo "no" >&6; }
18036 fi
18037 
18038 
18039   test -n "$HG" && break
18040 done
18041 
18042     else
18043       # If it succeeded, then it was overridden by the user. We will use it
18044       # for the tool.
18045 
18046       # First remove it from the list of overridden variables, so we can test
18047       # for unknown variables in the end.
18048       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18049 
18050       # Check if the provided tool contains a complete path.
18051       tool_specified="$HG"
18052       tool_basename="${tool_specified##*/}"
18053       if test "x$tool_basename" = "x$tool_specified"; then
18054         # A command without a complete path is provided, search $PATH.
18055         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18056 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18057         # Extract the first word of "$tool_basename", so it can be a program name with args.
18058 set dummy $tool_basename; ac_word=$2
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18060 $as_echo_n "checking for $ac_word... " >&6; }
18061 if ${ac_cv_path_HG+:} false; then :
18062   $as_echo_n "(cached) " >&6
18063 else
18064   case $HG in
18065   [\\/]* | ?:[\\/]*)
18066   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18067   ;;
18068   *)
18069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18070 for as_dir in $PATH
18071 do
18072   IFS=$as_save_IFS
18073   test -z "$as_dir" && as_dir=.
18074     for ac_exec_ext in '' $ac_executable_extensions; do
18075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18076     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18078     break 2
18079   fi
18080 done
18081   done
18082 IFS=$as_save_IFS
18083 
18084   ;;
18085 esac
18086 fi
18087 HG=$ac_cv_path_HG
18088 if test -n "$HG"; then
18089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18090 $as_echo "$HG" >&6; }
18091 else
18092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18093 $as_echo "no" >&6; }
18094 fi
18095 
18096 
18097         if test "x$HG" = x; then
18098           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18099         fi
18100       else
18101         # Otherwise we believe it is a complete path. Use it as it is.
18102         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18103 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18104         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18105 $as_echo_n "checking for HG... " >&6; }
18106         if test ! -x "$tool_specified"; then
18107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18108 $as_echo "not found" >&6; }
18109           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18110         fi
18111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18112 $as_echo "$tool_specified" >&6; }
18113       fi
18114     fi
18115   fi
18116 
18117 
18118 
18119 
18120   # Publish this variable in the help.
18121 
18122 
18123   if test "x$STAT" = x; then
18124     # The variable is not set by user, try to locate tool using the code snippet
18125     for ac_prog in stat
18126 do
18127   # Extract the first word of "$ac_prog", so it can be a program name with args.
18128 set dummy $ac_prog; ac_word=$2
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18130 $as_echo_n "checking for $ac_word... " >&6; }
18131 if ${ac_cv_path_STAT+:} false; then :
18132   $as_echo_n "(cached) " >&6
18133 else
18134   case $STAT in
18135   [\\/]* | ?:[\\/]*)
18136   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18137   ;;
18138   *)
18139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18140 for as_dir in $PATH
18141 do
18142   IFS=$as_save_IFS
18143   test -z "$as_dir" && as_dir=.
18144     for ac_exec_ext in '' $ac_executable_extensions; do
18145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18146     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18148     break 2
18149   fi
18150 done
18151   done
18152 IFS=$as_save_IFS
18153 
18154   ;;
18155 esac
18156 fi
18157 STAT=$ac_cv_path_STAT
18158 if test -n "$STAT"; then
18159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18160 $as_echo "$STAT" >&6; }
18161 else
18162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18163 $as_echo "no" >&6; }
18164 fi
18165 
18166 
18167   test -n "$STAT" && break
18168 done
18169 
18170   else
18171     # The variable is set, but is it from the command line or the environment?
18172 
18173     # Try to remove the string !STAT! from our list.
18174     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18175     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18176       # If it failed, the variable was not from the command line. Ignore it,
18177       # but warn the user (except for BASH, which is always set by the calling BASH).
18178       if test "xSTAT" != xBASH; then
18179         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18180 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18181       fi
18182       # Try to locate tool using the code snippet
18183       for ac_prog in stat
18184 do
18185   # Extract the first word of "$ac_prog", so it can be a program name with args.
18186 set dummy $ac_prog; ac_word=$2
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18188 $as_echo_n "checking for $ac_word... " >&6; }
18189 if ${ac_cv_path_STAT+:} false; then :
18190   $as_echo_n "(cached) " >&6
18191 else
18192   case $STAT in
18193   [\\/]* | ?:[\\/]*)
18194   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18195   ;;
18196   *)
18197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18198 for as_dir in $PATH
18199 do
18200   IFS=$as_save_IFS
18201   test -z "$as_dir" && as_dir=.
18202     for ac_exec_ext in '' $ac_executable_extensions; do
18203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18204     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18206     break 2
18207   fi
18208 done
18209   done
18210 IFS=$as_save_IFS
18211 
18212   ;;
18213 esac
18214 fi
18215 STAT=$ac_cv_path_STAT
18216 if test -n "$STAT"; then
18217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18218 $as_echo "$STAT" >&6; }
18219 else
18220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 $as_echo "no" >&6; }
18222 fi
18223 
18224 
18225   test -n "$STAT" && break
18226 done
18227 
18228     else
18229       # If it succeeded, then it was overridden by the user. We will use it
18230       # for the tool.
18231 
18232       # First remove it from the list of overridden variables, so we can test
18233       # for unknown variables in the end.
18234       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18235 
18236       # Check if the provided tool contains a complete path.
18237       tool_specified="$STAT"
18238       tool_basename="${tool_specified##*/}"
18239       if test "x$tool_basename" = "x$tool_specified"; then
18240         # A command without a complete path is provided, search $PATH.
18241         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18242 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18243         # Extract the first word of "$tool_basename", so it can be a program name with args.
18244 set dummy $tool_basename; ac_word=$2
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18246 $as_echo_n "checking for $ac_word... " >&6; }
18247 if ${ac_cv_path_STAT+:} false; then :
18248   $as_echo_n "(cached) " >&6
18249 else
18250   case $STAT in
18251   [\\/]* | ?:[\\/]*)
18252   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18253   ;;
18254   *)
18255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18256 for as_dir in $PATH
18257 do
18258   IFS=$as_save_IFS
18259   test -z "$as_dir" && as_dir=.
18260     for ac_exec_ext in '' $ac_executable_extensions; do
18261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18262     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18264     break 2
18265   fi
18266 done
18267   done
18268 IFS=$as_save_IFS
18269 
18270   ;;
18271 esac
18272 fi
18273 STAT=$ac_cv_path_STAT
18274 if test -n "$STAT"; then
18275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18276 $as_echo "$STAT" >&6; }
18277 else
18278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18279 $as_echo "no" >&6; }
18280 fi
18281 
18282 
18283         if test "x$STAT" = x; then
18284           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18285         fi
18286       else
18287         # Otherwise we believe it is a complete path. Use it as it is.
18288         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18289 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18291 $as_echo_n "checking for STAT... " >&6; }
18292         if test ! -x "$tool_specified"; then
18293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18294 $as_echo "not found" >&6; }
18295           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18296         fi
18297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18298 $as_echo "$tool_specified" >&6; }
18299       fi
18300     fi
18301   fi
18302 
18303 
18304 
18305 
18306   # Publish this variable in the help.
18307 
18308 
18309   if test "x$TIME" = x; then
18310     # The variable is not set by user, try to locate tool using the code snippet
18311     for ac_prog in time
18312 do
18313   # Extract the first word of "$ac_prog", so it can be a program name with args.
18314 set dummy $ac_prog; ac_word=$2
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18316 $as_echo_n "checking for $ac_word... " >&6; }
18317 if ${ac_cv_path_TIME+:} false; then :
18318   $as_echo_n "(cached) " >&6
18319 else
18320   case $TIME in
18321   [\\/]* | ?:[\\/]*)
18322   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18323   ;;
18324   *)
18325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18326 for as_dir in $PATH
18327 do
18328   IFS=$as_save_IFS
18329   test -z "$as_dir" && as_dir=.
18330     for ac_exec_ext in '' $ac_executable_extensions; do
18331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18332     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18334     break 2
18335   fi
18336 done
18337   done
18338 IFS=$as_save_IFS
18339 
18340   ;;
18341 esac
18342 fi
18343 TIME=$ac_cv_path_TIME
18344 if test -n "$TIME"; then
18345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18346 $as_echo "$TIME" >&6; }
18347 else
18348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18349 $as_echo "no" >&6; }
18350 fi
18351 
18352 
18353   test -n "$TIME" && break
18354 done
18355 
18356   else
18357     # The variable is set, but is it from the command line or the environment?
18358 
18359     # Try to remove the string !TIME! from our list.
18360     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18361     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18362       # If it failed, the variable was not from the command line. Ignore it,
18363       # but warn the user (except for BASH, which is always set by the calling BASH).
18364       if test "xTIME" != xBASH; then
18365         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18366 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18367       fi
18368       # Try to locate tool using the code snippet
18369       for ac_prog in time
18370 do
18371   # Extract the first word of "$ac_prog", so it can be a program name with args.
18372 set dummy $ac_prog; ac_word=$2
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18374 $as_echo_n "checking for $ac_word... " >&6; }
18375 if ${ac_cv_path_TIME+:} false; then :
18376   $as_echo_n "(cached) " >&6
18377 else
18378   case $TIME in
18379   [\\/]* | ?:[\\/]*)
18380   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18381   ;;
18382   *)
18383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18384 for as_dir in $PATH
18385 do
18386   IFS=$as_save_IFS
18387   test -z "$as_dir" && as_dir=.
18388     for ac_exec_ext in '' $ac_executable_extensions; do
18389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18390     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18392     break 2
18393   fi
18394 done
18395   done
18396 IFS=$as_save_IFS
18397 
18398   ;;
18399 esac
18400 fi
18401 TIME=$ac_cv_path_TIME
18402 if test -n "$TIME"; then
18403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18404 $as_echo "$TIME" >&6; }
18405 else
18406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18407 $as_echo "no" >&6; }
18408 fi
18409 
18410 
18411   test -n "$TIME" && break
18412 done
18413 
18414     else
18415       # If it succeeded, then it was overridden by the user. We will use it
18416       # for the tool.
18417 
18418       # First remove it from the list of overridden variables, so we can test
18419       # for unknown variables in the end.
18420       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18421 
18422       # Check if the provided tool contains a complete path.
18423       tool_specified="$TIME"
18424       tool_basename="${tool_specified##*/}"
18425       if test "x$tool_basename" = "x$tool_specified"; then
18426         # A command without a complete path is provided, search $PATH.
18427         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18428 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18429         # Extract the first word of "$tool_basename", so it can be a program name with args.
18430 set dummy $tool_basename; ac_word=$2
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18432 $as_echo_n "checking for $ac_word... " >&6; }
18433 if ${ac_cv_path_TIME+:} false; then :
18434   $as_echo_n "(cached) " >&6
18435 else
18436   case $TIME in
18437   [\\/]* | ?:[\\/]*)
18438   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18439   ;;
18440   *)
18441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18442 for as_dir in $PATH
18443 do
18444   IFS=$as_save_IFS
18445   test -z "$as_dir" && as_dir=.
18446     for ac_exec_ext in '' $ac_executable_extensions; do
18447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18448     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18450     break 2
18451   fi
18452 done
18453   done
18454 IFS=$as_save_IFS
18455 
18456   ;;
18457 esac
18458 fi
18459 TIME=$ac_cv_path_TIME
18460 if test -n "$TIME"; then
18461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18462 $as_echo "$TIME" >&6; }
18463 else
18464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18465 $as_echo "no" >&6; }
18466 fi
18467 
18468 
18469         if test "x$TIME" = x; then
18470           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18471         fi
18472       else
18473         # Otherwise we believe it is a complete path. Use it as it is.
18474         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18475 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18477 $as_echo_n "checking for TIME... " >&6; }
18478         if test ! -x "$tool_specified"; then
18479           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18480 $as_echo "not found" >&6; }
18481           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18482         fi
18483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18484 $as_echo "$tool_specified" >&6; }
18485       fi
18486     fi
18487   fi
18488 
18489 
18490   # Check if it's GNU time
18491   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18492   if test "x$IS_GNU_TIME" != x; then
18493     IS_GNU_TIME=yes
18494   else
18495     IS_GNU_TIME=no
18496   fi
18497 
18498 
18499   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18500 
18501 
18502 
18503   # Publish this variable in the help.
18504 
18505 
18506   if test "x$COMM" = x; then
18507     # The variable is not set by user, try to locate tool using the code snippet
18508     for ac_prog in comm
18509 do
18510   # Extract the first word of "$ac_prog", so it can be a program name with args.
18511 set dummy $ac_prog; ac_word=$2
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18513 $as_echo_n "checking for $ac_word... " >&6; }
18514 if ${ac_cv_path_COMM+:} false; then :
18515   $as_echo_n "(cached) " >&6
18516 else
18517   case $COMM in
18518   [\\/]* | ?:[\\/]*)
18519   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18520   ;;
18521   *)
18522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18523 for as_dir in $PATH
18524 do
18525   IFS=$as_save_IFS
18526   test -z "$as_dir" && as_dir=.
18527     for ac_exec_ext in '' $ac_executable_extensions; do
18528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18529     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18531     break 2
18532   fi
18533 done
18534   done
18535 IFS=$as_save_IFS
18536 
18537   ;;
18538 esac
18539 fi
18540 COMM=$ac_cv_path_COMM
18541 if test -n "$COMM"; then
18542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18543 $as_echo "$COMM" >&6; }
18544 else
18545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18546 $as_echo "no" >&6; }
18547 fi
18548 
18549 
18550   test -n "$COMM" && break
18551 done
18552 
18553   else
18554     # The variable is set, but is it from the command line or the environment?
18555 
18556     # Try to remove the string !COMM! from our list.
18557     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18558     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18559       # If it failed, the variable was not from the command line. Ignore it,
18560       # but warn the user (except for BASH, which is always set by the calling BASH).
18561       if test "xCOMM" != xBASH; then
18562         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18563 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18564       fi
18565       # Try to locate tool using the code snippet
18566       for ac_prog in comm
18567 do
18568   # Extract the first word of "$ac_prog", so it can be a program name with args.
18569 set dummy $ac_prog; ac_word=$2
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18571 $as_echo_n "checking for $ac_word... " >&6; }
18572 if ${ac_cv_path_COMM+:} false; then :
18573   $as_echo_n "(cached) " >&6
18574 else
18575   case $COMM in
18576   [\\/]* | ?:[\\/]*)
18577   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18578   ;;
18579   *)
18580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18581 for as_dir in $PATH
18582 do
18583   IFS=$as_save_IFS
18584   test -z "$as_dir" && as_dir=.
18585     for ac_exec_ext in '' $ac_executable_extensions; do
18586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18587     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18589     break 2
18590   fi
18591 done
18592   done
18593 IFS=$as_save_IFS
18594 
18595   ;;
18596 esac
18597 fi
18598 COMM=$ac_cv_path_COMM
18599 if test -n "$COMM"; then
18600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18601 $as_echo "$COMM" >&6; }
18602 else
18603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604 $as_echo "no" >&6; }
18605 fi
18606 
18607 
18608   test -n "$COMM" && break
18609 done
18610 
18611     else
18612       # If it succeeded, then it was overridden by the user. We will use it
18613       # for the tool.
18614 
18615       # First remove it from the list of overridden variables, so we can test
18616       # for unknown variables in the end.
18617       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18618 
18619       # Check if the provided tool contains a complete path.
18620       tool_specified="$COMM"
18621       tool_basename="${tool_specified##*/}"
18622       if test "x$tool_basename" = "x$tool_specified"; then
18623         # A command without a complete path is provided, search $PATH.
18624         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18625 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18626         # Extract the first word of "$tool_basename", so it can be a program name with args.
18627 set dummy $tool_basename; ac_word=$2
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18629 $as_echo_n "checking for $ac_word... " >&6; }
18630 if ${ac_cv_path_COMM+:} false; then :
18631   $as_echo_n "(cached) " >&6
18632 else
18633   case $COMM in
18634   [\\/]* | ?:[\\/]*)
18635   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18636   ;;
18637   *)
18638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18639 for as_dir in $PATH
18640 do
18641   IFS=$as_save_IFS
18642   test -z "$as_dir" && as_dir=.
18643     for ac_exec_ext in '' $ac_executable_extensions; do
18644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18645     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18647     break 2
18648   fi
18649 done
18650   done
18651 IFS=$as_save_IFS
18652 
18653   ;;
18654 esac
18655 fi
18656 COMM=$ac_cv_path_COMM
18657 if test -n "$COMM"; then
18658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18659 $as_echo "$COMM" >&6; }
18660 else
18661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662 $as_echo "no" >&6; }
18663 fi
18664 
18665 
18666         if test "x$COMM" = x; then
18667           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18668         fi
18669       else
18670         # Otherwise we believe it is a complete path. Use it as it is.
18671         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18672 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18674 $as_echo_n "checking for COMM... " >&6; }
18675         if test ! -x "$tool_specified"; then
18676           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18677 $as_echo "not found" >&6; }
18678           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18679         fi
18680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18681 $as_echo "$tool_specified" >&6; }
18682       fi
18683     fi
18684   fi
18685 
18686 
18687 
18688   if test "x$COMM" = x; then
18689     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18690   fi
18691 
18692 
18693   fi
18694 
18695   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18696 
18697 
18698 
18699   # Publish this variable in the help.
18700 
18701 
18702   if test "x$DSYMUTIL" = x; then
18703     # The variable is not set by user, try to locate tool using the code snippet
18704     for ac_prog in dsymutil
18705 do
18706   # Extract the first word of "$ac_prog", so it can be a program name with args.
18707 set dummy $ac_prog; ac_word=$2
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18709 $as_echo_n "checking for $ac_word... " >&6; }
18710 if ${ac_cv_path_DSYMUTIL+:} false; then :
18711   $as_echo_n "(cached) " >&6
18712 else
18713   case $DSYMUTIL in
18714   [\\/]* | ?:[\\/]*)
18715   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18716   ;;
18717   *)
18718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18719 for as_dir in $PATH
18720 do
18721   IFS=$as_save_IFS
18722   test -z "$as_dir" && as_dir=.
18723     for ac_exec_ext in '' $ac_executable_extensions; do
18724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18725     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18727     break 2
18728   fi
18729 done
18730   done
18731 IFS=$as_save_IFS
18732 
18733   ;;
18734 esac
18735 fi
18736 DSYMUTIL=$ac_cv_path_DSYMUTIL
18737 if test -n "$DSYMUTIL"; then
18738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18739 $as_echo "$DSYMUTIL" >&6; }
18740 else
18741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18742 $as_echo "no" >&6; }
18743 fi
18744 
18745 
18746   test -n "$DSYMUTIL" && break
18747 done
18748 
18749   else
18750     # The variable is set, but is it from the command line or the environment?
18751 
18752     # Try to remove the string !DSYMUTIL! from our list.
18753     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18754     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18755       # If it failed, the variable was not from the command line. Ignore it,
18756       # but warn the user (except for BASH, which is always set by the calling BASH).
18757       if test "xDSYMUTIL" != xBASH; then
18758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18759 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18760       fi
18761       # Try to locate tool using the code snippet
18762       for ac_prog in dsymutil
18763 do
18764   # Extract the first word of "$ac_prog", so it can be a program name with args.
18765 set dummy $ac_prog; ac_word=$2
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18767 $as_echo_n "checking for $ac_word... " >&6; }
18768 if ${ac_cv_path_DSYMUTIL+:} false; then :
18769   $as_echo_n "(cached) " >&6
18770 else
18771   case $DSYMUTIL in
18772   [\\/]* | ?:[\\/]*)
18773   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18774   ;;
18775   *)
18776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18777 for as_dir in $PATH
18778 do
18779   IFS=$as_save_IFS
18780   test -z "$as_dir" && as_dir=.
18781     for ac_exec_ext in '' $ac_executable_extensions; do
18782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18783     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18785     break 2
18786   fi
18787 done
18788   done
18789 IFS=$as_save_IFS
18790 
18791   ;;
18792 esac
18793 fi
18794 DSYMUTIL=$ac_cv_path_DSYMUTIL
18795 if test -n "$DSYMUTIL"; then
18796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18797 $as_echo "$DSYMUTIL" >&6; }
18798 else
18799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18800 $as_echo "no" >&6; }
18801 fi
18802 
18803 
18804   test -n "$DSYMUTIL" && break
18805 done
18806 
18807     else
18808       # If it succeeded, then it was overridden by the user. We will use it
18809       # for the tool.
18810 
18811       # First remove it from the list of overridden variables, so we can test
18812       # for unknown variables in the end.
18813       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18814 
18815       # Check if the provided tool contains a complete path.
18816       tool_specified="$DSYMUTIL"
18817       tool_basename="${tool_specified##*/}"
18818       if test "x$tool_basename" = "x$tool_specified"; then
18819         # A command without a complete path is provided, search $PATH.
18820         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18821 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18822         # Extract the first word of "$tool_basename", so it can be a program name with args.
18823 set dummy $tool_basename; ac_word=$2
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18825 $as_echo_n "checking for $ac_word... " >&6; }
18826 if ${ac_cv_path_DSYMUTIL+:} false; then :
18827   $as_echo_n "(cached) " >&6
18828 else
18829   case $DSYMUTIL in
18830   [\\/]* | ?:[\\/]*)
18831   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18832   ;;
18833   *)
18834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18835 for as_dir in $PATH
18836 do
18837   IFS=$as_save_IFS
18838   test -z "$as_dir" && as_dir=.
18839     for ac_exec_ext in '' $ac_executable_extensions; do
18840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18841     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18843     break 2
18844   fi
18845 done
18846   done
18847 IFS=$as_save_IFS
18848 
18849   ;;
18850 esac
18851 fi
18852 DSYMUTIL=$ac_cv_path_DSYMUTIL
18853 if test -n "$DSYMUTIL"; then
18854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18855 $as_echo "$DSYMUTIL" >&6; }
18856 else
18857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858 $as_echo "no" >&6; }
18859 fi
18860 
18861 
18862         if test "x$DSYMUTIL" = x; then
18863           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18864         fi
18865       else
18866         # Otherwise we believe it is a complete path. Use it as it is.
18867         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18868 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18870 $as_echo_n "checking for DSYMUTIL... " >&6; }
18871         if test ! -x "$tool_specified"; then
18872           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18873 $as_echo "not found" >&6; }
18874           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18875         fi
18876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18877 $as_echo "$tool_specified" >&6; }
18878       fi
18879     fi
18880   fi
18881 
18882 
18883 
18884   if test "x$DSYMUTIL" = x; then
18885     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18886   fi
18887 
18888 
18889 
18890 
18891 
18892   # Publish this variable in the help.
18893 
18894 
18895   if test "x$XATTR" = x; then
18896     # The variable is not set by user, try to locate tool using the code snippet
18897     for ac_prog in xattr
18898 do
18899   # Extract the first word of "$ac_prog", so it can be a program name with args.
18900 set dummy $ac_prog; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_path_XATTR+:} false; then :
18904   $as_echo_n "(cached) " >&6
18905 else
18906   case $XATTR in
18907   [\\/]* | ?:[\\/]*)
18908   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18909   ;;
18910   *)
18911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912 for as_dir in $PATH
18913 do
18914   IFS=$as_save_IFS
18915   test -z "$as_dir" && as_dir=.
18916     for ac_exec_ext in '' $ac_executable_extensions; do
18917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18920     break 2
18921   fi
18922 done
18923   done
18924 IFS=$as_save_IFS
18925 
18926   ;;
18927 esac
18928 fi
18929 XATTR=$ac_cv_path_XATTR
18930 if test -n "$XATTR"; then
18931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18932 $as_echo "$XATTR" >&6; }
18933 else
18934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18935 $as_echo "no" >&6; }
18936 fi
18937 
18938 
18939   test -n "$XATTR" && break
18940 done
18941 
18942   else
18943     # The variable is set, but is it from the command line or the environment?
18944 
18945     # Try to remove the string !XATTR! from our list.
18946     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18947     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18948       # If it failed, the variable was not from the command line. Ignore it,
18949       # but warn the user (except for BASH, which is always set by the calling BASH).
18950       if test "xXATTR" != xBASH; then
18951         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18952 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18953       fi
18954       # Try to locate tool using the code snippet
18955       for ac_prog in xattr
18956 do
18957   # Extract the first word of "$ac_prog", so it can be a program name with args.
18958 set dummy $ac_prog; ac_word=$2
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18960 $as_echo_n "checking for $ac_word... " >&6; }
18961 if ${ac_cv_path_XATTR+:} false; then :
18962   $as_echo_n "(cached) " >&6
18963 else
18964   case $XATTR in
18965   [\\/]* | ?:[\\/]*)
18966   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18967   ;;
18968   *)
18969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18970 for as_dir in $PATH
18971 do
18972   IFS=$as_save_IFS
18973   test -z "$as_dir" && as_dir=.
18974     for ac_exec_ext in '' $ac_executable_extensions; do
18975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18976     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18978     break 2
18979   fi
18980 done
18981   done
18982 IFS=$as_save_IFS
18983 
18984   ;;
18985 esac
18986 fi
18987 XATTR=$ac_cv_path_XATTR
18988 if test -n "$XATTR"; then
18989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18990 $as_echo "$XATTR" >&6; }
18991 else
18992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993 $as_echo "no" >&6; }
18994 fi
18995 
18996 
18997   test -n "$XATTR" && break
18998 done
18999 
19000     else
19001       # If it succeeded, then it was overridden by the user. We will use it
19002       # for the tool.
19003 
19004       # First remove it from the list of overridden variables, so we can test
19005       # for unknown variables in the end.
19006       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19007 
19008       # Check if the provided tool contains a complete path.
19009       tool_specified="$XATTR"
19010       tool_basename="${tool_specified##*/}"
19011       if test "x$tool_basename" = "x$tool_specified"; then
19012         # A command without a complete path is provided, search $PATH.
19013         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19014 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19015         # Extract the first word of "$tool_basename", so it can be a program name with args.
19016 set dummy $tool_basename; ac_word=$2
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19018 $as_echo_n "checking for $ac_word... " >&6; }
19019 if ${ac_cv_path_XATTR+:} false; then :
19020   $as_echo_n "(cached) " >&6
19021 else
19022   case $XATTR in
19023   [\\/]* | ?:[\\/]*)
19024   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19025   ;;
19026   *)
19027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19028 for as_dir in $PATH
19029 do
19030   IFS=$as_save_IFS
19031   test -z "$as_dir" && as_dir=.
19032     for ac_exec_ext in '' $ac_executable_extensions; do
19033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19034     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19036     break 2
19037   fi
19038 done
19039   done
19040 IFS=$as_save_IFS
19041 
19042   ;;
19043 esac
19044 fi
19045 XATTR=$ac_cv_path_XATTR
19046 if test -n "$XATTR"; then
19047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19048 $as_echo "$XATTR" >&6; }
19049 else
19050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19051 $as_echo "no" >&6; }
19052 fi
19053 
19054 
19055         if test "x$XATTR" = x; then
19056           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19057         fi
19058       else
19059         # Otherwise we believe it is a complete path. Use it as it is.
19060         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19061 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19062         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19063 $as_echo_n "checking for XATTR... " >&6; }
19064         if test ! -x "$tool_specified"; then
19065           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19066 $as_echo "not found" >&6; }
19067           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19068         fi
19069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19070 $as_echo "$tool_specified" >&6; }
19071       fi
19072     fi
19073   fi
19074 
19075 
19076 
19077   if test "x$XATTR" = x; then
19078     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19079   fi
19080 
19081 
19082 
19083 
19084   # Publish this variable in the help.
19085 
19086 
19087   if test "x$CODESIGN" = x; then
19088     # The variable is not set by user, try to locate tool using the code snippet
19089     for ac_prog in codesign
19090 do
19091   # Extract the first word of "$ac_prog", so it can be a program name with args.
19092 set dummy $ac_prog; ac_word=$2
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19094 $as_echo_n "checking for $ac_word... " >&6; }
19095 if ${ac_cv_path_CODESIGN+:} false; then :
19096   $as_echo_n "(cached) " >&6
19097 else
19098   case $CODESIGN in
19099   [\\/]* | ?:[\\/]*)
19100   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19101   ;;
19102   *)
19103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19104 for as_dir in $PATH
19105 do
19106   IFS=$as_save_IFS
19107   test -z "$as_dir" && as_dir=.
19108     for ac_exec_ext in '' $ac_executable_extensions; do
19109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19110     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19112     break 2
19113   fi
19114 done
19115   done
19116 IFS=$as_save_IFS
19117 
19118   ;;
19119 esac
19120 fi
19121 CODESIGN=$ac_cv_path_CODESIGN
19122 if test -n "$CODESIGN"; then
19123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19124 $as_echo "$CODESIGN" >&6; }
19125 else
19126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19127 $as_echo "no" >&6; }
19128 fi
19129 
19130 
19131   test -n "$CODESIGN" && break
19132 done
19133 
19134   else
19135     # The variable is set, but is it from the command line or the environment?
19136 
19137     # Try to remove the string !CODESIGN! from our list.
19138     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19139     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19140       # If it failed, the variable was not from the command line. Ignore it,
19141       # but warn the user (except for BASH, which is always set by the calling BASH).
19142       if test "xCODESIGN" != xBASH; then
19143         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19144 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19145       fi
19146       # Try to locate tool using the code snippet
19147       for ac_prog in codesign
19148 do
19149   # Extract the first word of "$ac_prog", so it can be a program name with args.
19150 set dummy $ac_prog; ac_word=$2
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19152 $as_echo_n "checking for $ac_word... " >&6; }
19153 if ${ac_cv_path_CODESIGN+:} false; then :
19154   $as_echo_n "(cached) " >&6
19155 else
19156   case $CODESIGN in
19157   [\\/]* | ?:[\\/]*)
19158   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19159   ;;
19160   *)
19161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19162 for as_dir in $PATH
19163 do
19164   IFS=$as_save_IFS
19165   test -z "$as_dir" && as_dir=.
19166     for ac_exec_ext in '' $ac_executable_extensions; do
19167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19168     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19170     break 2
19171   fi
19172 done
19173   done
19174 IFS=$as_save_IFS
19175 
19176   ;;
19177 esac
19178 fi
19179 CODESIGN=$ac_cv_path_CODESIGN
19180 if test -n "$CODESIGN"; then
19181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19182 $as_echo "$CODESIGN" >&6; }
19183 else
19184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19185 $as_echo "no" >&6; }
19186 fi
19187 
19188 
19189   test -n "$CODESIGN" && break
19190 done
19191 
19192     else
19193       # If it succeeded, then it was overridden by the user. We will use it
19194       # for the tool.
19195 
19196       # First remove it from the list of overridden variables, so we can test
19197       # for unknown variables in the end.
19198       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19199 
19200       # Check if the provided tool contains a complete path.
19201       tool_specified="$CODESIGN"
19202       tool_basename="${tool_specified##*/}"
19203       if test "x$tool_basename" = "x$tool_specified"; then
19204         # A command without a complete path is provided, search $PATH.
19205         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19206 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19207         # Extract the first word of "$tool_basename", so it can be a program name with args.
19208 set dummy $tool_basename; ac_word=$2
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19210 $as_echo_n "checking for $ac_word... " >&6; }
19211 if ${ac_cv_path_CODESIGN+:} false; then :
19212   $as_echo_n "(cached) " >&6
19213 else
19214   case $CODESIGN in
19215   [\\/]* | ?:[\\/]*)
19216   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19217   ;;
19218   *)
19219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19220 for as_dir in $PATH
19221 do
19222   IFS=$as_save_IFS
19223   test -z "$as_dir" && as_dir=.
19224     for ac_exec_ext in '' $ac_executable_extensions; do
19225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19226     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19228     break 2
19229   fi
19230 done
19231   done
19232 IFS=$as_save_IFS
19233 
19234   ;;
19235 esac
19236 fi
19237 CODESIGN=$ac_cv_path_CODESIGN
19238 if test -n "$CODESIGN"; then
19239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19240 $as_echo "$CODESIGN" >&6; }
19241 else
19242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243 $as_echo "no" >&6; }
19244 fi
19245 
19246 
19247         if test "x$CODESIGN" = x; then
19248           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19249         fi
19250       else
19251         # Otherwise we believe it is a complete path. Use it as it is.
19252         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19253 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19255 $as_echo_n "checking for CODESIGN... " >&6; }
19256         if test ! -x "$tool_specified"; then
19257           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19258 $as_echo "not found" >&6; }
19259           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19260         fi
19261         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19262 $as_echo "$tool_specified" >&6; }
19263       fi
19264     fi
19265   fi
19266 
19267 
19268     if test "x$CODESIGN" != "x"; then
19269       # Verify that the openjdk_codesign certificate is present
19270       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19271 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19272       rm -f codesign-testfile
19273       touch codesign-testfile
19274       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19275       rm -f codesign-testfile
19276       if test "x$CODESIGN" = x; then
19277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19278 $as_echo "no" >&6; }
19279       else
19280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19281 $as_echo "yes" >&6; }
19282       fi
19283     fi
19284   fi
19285 
19286 
19287 # Check if pkg-config is available.
19288 
19289 
19290 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19291         if test -n "$ac_tool_prefix"; then
19292   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19293 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19295 $as_echo_n "checking for $ac_word... " >&6; }
19296 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19297   $as_echo_n "(cached) " >&6
19298 else
19299   case $PKG_CONFIG in
19300   [\\/]* | ?:[\\/]*)
19301   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19302   ;;
19303   *)
19304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19305 for as_dir in $PATH
19306 do
19307   IFS=$as_save_IFS
19308   test -z "$as_dir" && as_dir=.
19309     for ac_exec_ext in '' $ac_executable_extensions; do
19310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19311     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19313     break 2
19314   fi
19315 done
19316   done
19317 IFS=$as_save_IFS
19318 
19319   ;;
19320 esac
19321 fi
19322 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19323 if test -n "$PKG_CONFIG"; then
19324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19325 $as_echo "$PKG_CONFIG" >&6; }
19326 else
19327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19328 $as_echo "no" >&6; }
19329 fi
19330 
19331 
19332 fi
19333 if test -z "$ac_cv_path_PKG_CONFIG"; then
19334   ac_pt_PKG_CONFIG=$PKG_CONFIG
19335   # Extract the first word of "pkg-config", so it can be a program name with args.
19336 set dummy pkg-config; ac_word=$2
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19338 $as_echo_n "checking for $ac_word... " >&6; }
19339 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19340   $as_echo_n "(cached) " >&6
19341 else
19342   case $ac_pt_PKG_CONFIG in
19343   [\\/]* | ?:[\\/]*)
19344   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19345   ;;
19346   *)
19347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19348 for as_dir in $PATH
19349 do
19350   IFS=$as_save_IFS
19351   test -z "$as_dir" && as_dir=.
19352     for ac_exec_ext in '' $ac_executable_extensions; do
19353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19354     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19356     break 2
19357   fi
19358 done
19359   done
19360 IFS=$as_save_IFS
19361 
19362   ;;
19363 esac
19364 fi
19365 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19366 if test -n "$ac_pt_PKG_CONFIG"; then
19367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19368 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19369 else
19370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19371 $as_echo "no" >&6; }
19372 fi
19373 
19374   if test "x$ac_pt_PKG_CONFIG" = x; then
19375     PKG_CONFIG=""
19376   else
19377     case $cross_compiling:$ac_tool_warned in
19378 yes:)
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19381 ac_tool_warned=yes ;;
19382 esac
19383     PKG_CONFIG=$ac_pt_PKG_CONFIG
19384   fi
19385 else
19386   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19387 fi
19388 
19389 fi
19390 if test -n "$PKG_CONFIG"; then
19391         _pkg_min_version=0.9.0
19392         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19393 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19394         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19395                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19396 $as_echo "yes" >&6; }
19397         else
19398                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19399 $as_echo "no" >&6; }
19400                 PKG_CONFIG=""
19401         fi
19402 
19403 fi
19404 
19405 # After basic tools have been setup, we can check build os specific details.
19406 
19407   ###############################################################################
19408 
19409   # Note that this is the build platform OS version!
19410 
19411   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19412   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19413   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19414   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19415 
19416 
19417 
19418 
19419 
19420 # Setup builddeps, for automatic downloading of tools we need.
19421 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19422 # boot-jdk setup, but we need to have basic tools setup first.
19423 
19424 
19425 # Check whether --with-builddeps-conf was given.
19426 if test "${with_builddeps_conf+set}" = set; then :
19427   withval=$with_builddeps_conf;
19428 fi
19429 
19430 
19431 
19432 # Check whether --with-builddeps-server was given.
19433 if test "${with_builddeps_server+set}" = set; then :
19434   withval=$with_builddeps_server;
19435 fi
19436 
19437 
19438 
19439 # Check whether --with-builddeps-dir was given.
19440 if test "${with_builddeps_dir+set}" = set; then :
19441   withval=$with_builddeps_dir;
19442 else
19443   with_builddeps_dir=/localhome/builddeps
19444 fi
19445 
19446 
19447 
19448 # Check whether --with-builddeps-group was given.
19449 if test "${with_builddeps_group+set}" = set; then :
19450   withval=$with_builddeps_group;
19451 fi
19452 
19453 
19454 
19455 
19456   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19457     if test "x$with_builddeps_conf" != x; then
19458       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19459 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19460       builddepsfile=$with_builddeps_conf
19461       if test -s $builddepsfile; then
19462         . $builddepsfile
19463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19464 $as_echo "loaded!" >&6; }
19465       else
19466         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19467       fi
19468     else
19469       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19470 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19471       builddepsfile=`mktemp`
19472       touch $builddepsfile
19473       # Put all found confs into a single file.
19474       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19475       # Source the file to acquire the variables
19476       if test -s $builddepsfile; then
19477         . $builddepsfile
19478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19479 $as_echo "found at least one!" >&6; }
19480       else
19481         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19482       fi
19483     fi
19484     # Create build and target names that use _ instead of "-" and ".".
19485     # This is necessary to use them in variable names.
19486     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19487     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19488     # Extract rewrite information for build and target
19489     eval rewritten_build=\${REWRITE_${build_var}}
19490     if test "x$rewritten_build" = x; then
19491       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19492       echo Build stays the same $rewritten_build
19493     else
19494       echo Rewriting build for builddeps into $rewritten_build
19495     fi
19496     eval rewritten_target=\${REWRITE_${target_var}}
19497     if test "x$rewritten_target" = x; then
19498       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19499       echo Target stays the same $rewritten_target
19500     else
19501       echo Rewriting target for builddeps into $rewritten_target
19502     fi
19503     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19504     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19505   fi
19506   for ac_prog in 7z unzip
19507 do
19508   # Extract the first word of "$ac_prog", so it can be a program name with args.
19509 set dummy $ac_prog; ac_word=$2
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19511 $as_echo_n "checking for $ac_word... " >&6; }
19512 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19513   $as_echo_n "(cached) " >&6
19514 else
19515   if test -n "$BDEPS_UNZIP"; then
19516   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19517 else
19518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19519 for as_dir in $PATH
19520 do
19521   IFS=$as_save_IFS
19522   test -z "$as_dir" && as_dir=.
19523     for ac_exec_ext in '' $ac_executable_extensions; do
19524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19525     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19527     break 2
19528   fi
19529 done
19530   done
19531 IFS=$as_save_IFS
19532 
19533 fi
19534 fi
19535 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19536 if test -n "$BDEPS_UNZIP"; then
19537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19538 $as_echo "$BDEPS_UNZIP" >&6; }
19539 else
19540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19541 $as_echo "no" >&6; }
19542 fi
19543 
19544 
19545   test -n "$BDEPS_UNZIP" && break
19546 done
19547 
19548   if test "x$BDEPS_UNZIP" = x7z; then
19549     BDEPS_UNZIP="7z x"
19550   fi
19551 
19552   for ac_prog in wget lftp ftp
19553 do
19554   # Extract the first word of "$ac_prog", so it can be a program name with args.
19555 set dummy $ac_prog; ac_word=$2
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19557 $as_echo_n "checking for $ac_word... " >&6; }
19558 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19559   $as_echo_n "(cached) " >&6
19560 else
19561   if test -n "$BDEPS_FTP"; then
19562   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19563 else
19564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19565 for as_dir in $PATH
19566 do
19567   IFS=$as_save_IFS
19568   test -z "$as_dir" && as_dir=.
19569     for ac_exec_ext in '' $ac_executable_extensions; do
19570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19571     ac_cv_prog_BDEPS_FTP="$ac_prog"
19572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19573     break 2
19574   fi
19575 done
19576   done
19577 IFS=$as_save_IFS
19578 
19579 fi
19580 fi
19581 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19582 if test -n "$BDEPS_FTP"; then
19583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19584 $as_echo "$BDEPS_FTP" >&6; }
19585 else
19586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19587 $as_echo "no" >&6; }
19588 fi
19589 
19590 
19591   test -n "$BDEPS_FTP" && break
19592 done
19593 
19594 
19595 
19596 ###############################################################################
19597 #
19598 # Determine OpenJDK variants, options and version numbers.
19599 #
19600 ###############################################################################
19601 
19602 # We need build & target for this.
19603 
19604 
19605   ###############################################################################
19606   #
19607   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19608   # We always build headless support.
19609   #
19610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19611 $as_echo_n "checking headful support... " >&6; }
19612   # Check whether --enable-headful was given.
19613 if test "${enable_headful+set}" = set; then :
19614   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19615 else
19616   SUPPORT_HEADFUL=yes
19617 fi
19618 
19619 
19620   SUPPORT_HEADLESS=yes
19621   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19622 
19623   if test "x$SUPPORT_HEADFUL" = xyes; then
19624     # We are building both headful and headless.
19625     headful_msg="include support for both headful and headless"
19626   fi
19627 
19628   if test "x$SUPPORT_HEADFUL" = xno; then
19629     # Thus we are building headless only.
19630     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19631     headful_msg="headless only"
19632   fi
19633 
19634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19635 $as_echo "$headful_msg" >&6; }
19636 
19637 
19638 
19639 
19640 
19641   # Control wether Hotspot runs Queens test after build.
19642   # Check whether --enable-hotspot-test-in-build was given.
19643 if test "${enable_hotspot_test_in_build+set}" = set; then :
19644   enableval=$enable_hotspot_test_in_build;
19645 else
19646   enable_hotspot_test_in_build=no
19647 fi
19648 
19649   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19650     TEST_IN_BUILD=true
19651   else
19652     TEST_IN_BUILD=false
19653   fi
19654 
19655 
19656   ###############################################################################
19657   #
19658   # Choose cacerts source file
19659   #
19660 
19661 # Check whether --with-cacerts-file was given.
19662 if test "${with_cacerts_file+set}" = set; then :
19663   withval=$with_cacerts_file;
19664 fi
19665 
19666   if test "x$with_cacerts_file" != x; then
19667     CACERTS_FILE=$with_cacerts_file
19668   else
19669     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19670   fi
19671 
19672 
19673   ###############################################################################
19674   #
19675   # Enable or disable unlimited crypto
19676   #
19677   # Check whether --enable-unlimited-crypto was given.
19678 if test "${enable_unlimited_crypto+set}" = set; then :
19679   enableval=$enable_unlimited_crypto;
19680 else
19681   enable_unlimited_crypto=no
19682 fi
19683 
19684   if test "x$enable_unlimited_crypto" = "xyes"; then
19685     UNLIMITED_CRYPTO=true
19686   else
19687     UNLIMITED_CRYPTO=false
19688   fi
19689 
19690 
19691   ###############################################################################
19692   #
19693   # Enable or disable the elliptic curve crypto implementation
19694   #
19695 
19696 
19697   ###############################################################################
19698   #
19699   # --enable-rmiconnector-iiop
19700   #
19701   # Check whether --enable-rmiconnector-iiop was given.
19702 if test "${enable_rmiconnector_iiop+set}" = set; then :
19703   enableval=$enable_rmiconnector_iiop;
19704 fi
19705 
19706   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19707     RMICONNECTOR_IIOP=true
19708   else
19709     RMICONNECTOR_IIOP=false
19710   fi
19711 
19712 
19713   ###############################################################################
19714   #
19715   # Compress jars
19716   #
19717   COMPRESS_JARS=false
19718 
19719 
19720 
19721 
19722   # Source the version numbers
19723   . $AUTOCONF_DIR/version-numbers
19724 
19725   # Get the settings from parameters
19726 
19727 # Check whether --with-milestone was given.
19728 if test "${with_milestone+set}" = set; then :
19729   withval=$with_milestone;
19730 fi
19731 
19732   if test "x$with_milestone" = xyes; then
19733     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19734   elif test "x$with_milestone" != x; then
19735     MILESTONE="$with_milestone"
19736   fi
19737   if test "x$MILESTONE" = x; then
19738     MILESTONE=internal
19739   fi
19740 
19741 
19742 # Check whether --with-update-version was given.
19743 if test "${with_update_version+set}" = set; then :
19744   withval=$with_update_version;
19745 fi
19746 
19747   if test "x$with_update_version" = xyes; then
19748     as_fn_error $? "Update version must have a value" "$LINENO" 5
19749   elif test "x$with_update_version" != x; then
19750     JDK_UPDATE_VERSION="$with_update_version"
19751     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19752     # to a bug in expr (which reduces it to just X). To work around this, we
19753     # always add a 0 to one digit update versions.
19754     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19755       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19756     fi
19757   fi
19758 
19759 
19760 # Check whether --with-user-release-suffix was given.
19761 if test "${with_user_release_suffix+set}" = set; then :
19762   withval=$with_user_release_suffix;
19763 fi
19764 
19765   if test "x$with_user_release_suffix" = xyes; then
19766     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19767   elif test "x$with_user_release_suffix" != x; then
19768     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19769   fi
19770 
19771 
19772 # Check whether --with-build-number was given.
19773 if test "${with_build_number+set}" = set; then :
19774   withval=$with_build_number;
19775 fi
19776 
19777   if test "x$with_build_number" = xyes; then
19778     as_fn_error $? "Build number must have a value" "$LINENO" 5
19779   elif test "x$with_build_number" != x; then
19780     JDK_BUILD_NUMBER="$with_build_number"
19781   fi
19782   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19783   if test "x$JDK_BUILD_NUMBER" = x; then
19784     JDK_BUILD_NUMBER=b00
19785     if test "x$USER_RELEASE_SUFFIX" = x; then
19786       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19787       # Avoid [:alnum:] since it depends on the locale.
19788       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19789       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19790     fi
19791   fi
19792 
19793   # Now set the JDK version, milestone, build number etc.
19794 
19795 
19796 
19797 
19798 
19799 
19800 
19801 
19802 
19803 
19804 
19805 
19806 
19807 
19808 
19809   COPYRIGHT_YEAR=`date +'%Y'`
19810 
19811 
19812   if test "x$JDK_UPDATE_VERSION" != x; then
19813     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19814   else
19815     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19816   fi
19817 
19818 
19819   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19820 
19821 
19822 
19823 ###############################################################################
19824 #
19825 # Setup BootJDK, used to bootstrap the build.
19826 #
19827 ###############################################################################
19828 
19829 
19830   BOOT_JDK_FOUND=no
19831 
19832 # Check whether --with-boot-jdk was given.
19833 if test "${with_boot_jdk+set}" = set; then :
19834   withval=$with_boot_jdk;
19835 fi
19836 
19837 
19838   # We look for the Boot JDK through various means, going from more certain to
19839   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19840   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19841   # must check if this is indeed valid; otherwise we'll continue looking.
19842 
19843   # Test: Is bootjdk explicitely set by command line arguments?
19844 
19845   if test "x$BOOT_JDK_FOUND" = xno; then
19846     # Now execute the test
19847 
19848   if test "x$with_boot_jdk" != x; then
19849     BOOT_JDK=$with_boot_jdk
19850     BOOT_JDK_FOUND=maybe
19851     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19852 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19853   fi
19854 
19855 
19856     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19857     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19858       # Do we have a bin/java?
19859       if test ! -x "$BOOT_JDK/bin/java"; then
19860         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19861 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19862         BOOT_JDK_FOUND=no
19863       else
19864         # Do we have a bin/javac?
19865         if test ! -x "$BOOT_JDK/bin/javac"; then
19866           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19867 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19868           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19869 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19870           BOOT_JDK_FOUND=no
19871         else
19872           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19873           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19874             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19876             BOOT_JDK_FOUND=no
19877           else
19878             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19879             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19880 
19881             # Extra M4 quote needed to protect [] in grep expression.
19882             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19883             if test "x$FOUND_CORRECT_VERSION" = x; then
19884               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19885 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19886               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19887 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19888               BOOT_JDK_FOUND=no
19889             else
19890               # We're done! :-)
19891               BOOT_JDK_FOUND=yes
19892 
19893   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19894 
19895   # Input might be given as Windows format, start by converting to
19896   # unix format.
19897   path="$BOOT_JDK"
19898   new_path=`$CYGPATH -u "$path"`
19899 
19900   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19901   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19902   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19903   # "foo.exe" is OK but "foo" is an error.
19904   #
19905   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19906   # It is also a way to make sure we got the proper file name for the real test later on.
19907   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19908   if test "x$test_shortpath" = x; then
19909     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19910 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19911     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19912   fi
19913 
19914   # Call helper function which possibly converts this using DOS-style short mode.
19915   # If so, the updated path is stored in $new_path.
19916 
19917   input_path="$new_path"
19918   # Check if we need to convert this using DOS-style short mode. If the path
19919   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19920   # take no chances and rewrite it.
19921   # Note: m4 eats our [], so we need to use [ and ] instead.
19922   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19923   if test "x$has_forbidden_chars" != x; then
19924     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19925     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19926     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19927     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19928       # Going to short mode and back again did indeed matter. Since short mode is
19929       # case insensitive, let's make it lowercase to improve readability.
19930       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19931       # Now convert it back to Unix-stile (cygpath)
19932       input_path=`$CYGPATH -u "$shortmode_path"`
19933       new_path="$input_path"
19934     fi
19935   fi
19936 
19937   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19938   if test "x$test_cygdrive_prefix" = x; then
19939     # As a simple fix, exclude /usr/bin since it's not a real path.
19940     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19941       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19942       # a path prefixed by /cygdrive for fixpath to work.
19943       new_path="$CYGWIN_ROOT_PATH$input_path"
19944     fi
19945   fi
19946 
19947 
19948   if test "x$path" != "x$new_path"; then
19949     BOOT_JDK="$new_path"
19950     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19951 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19952   fi
19953 
19954   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19955 
19956   path="$BOOT_JDK"
19957   has_colon=`$ECHO $path | $GREP ^.:`
19958   new_path="$path"
19959   if test "x$has_colon" = x; then
19960     # Not in mixed or Windows style, start by that.
19961     new_path=`cmd //c echo $path`
19962   fi
19963 
19964 
19965   input_path="$new_path"
19966   # Check if we need to convert this using DOS-style short mode. If the path
19967   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19968   # take no chances and rewrite it.
19969   # Note: m4 eats our [], so we need to use [ and ] instead.
19970   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19971   if test "x$has_forbidden_chars" != x; then
19972     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19973     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19974   fi
19975 
19976 
19977   windows_path="$new_path"
19978   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19979     unix_path=`$CYGPATH -u "$windows_path"`
19980     new_path="$unix_path"
19981   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19982     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19983     new_path="$unix_path"
19984   fi
19985 
19986   if test "x$path" != "x$new_path"; then
19987     BOOT_JDK="$new_path"
19988     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19989 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19990   fi
19991 
19992   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19993   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19994 
19995   else
19996     # We're on a posix platform. Hooray! :)
19997     path="$BOOT_JDK"
19998     has_space=`$ECHO "$path" | $GREP " "`
19999     if test "x$has_space" != x; then
20000       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20001 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20002       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20003     fi
20004 
20005     # Use eval to expand a potential ~
20006     eval path="$path"
20007     if test ! -f "$path" && test ! -d "$path"; then
20008       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20009     fi
20010 
20011     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20012   fi
20013 
20014               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20015 $as_echo_n "checking for Boot JDK... " >&6; }
20016               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20017 $as_echo "$BOOT_JDK" >&6; }
20018               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20019 $as_echo_n "checking Boot JDK version... " >&6; }
20020               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20021               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20022 $as_echo "$BOOT_JDK_VERSION" >&6; }
20023             fi # end check jdk version
20024           fi # end check rt.jar
20025         fi # end check javac
20026       fi # end check java
20027     fi # end check boot jdk found
20028   fi
20029 
20030   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20031     # Having specified an argument which is incorrect will produce an instant failure;
20032     # we should not go on looking
20033     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20034   fi
20035 
20036   # Test: Is bootjdk available from builddeps?
20037 
20038   if test "x$BOOT_JDK_FOUND" = xno; then
20039     # Now execute the test
20040 
20041 
20042 
20043   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20044     # Source the builddeps file again, to make sure it uses the latest variables!
20045     . $builddepsfile
20046     # Look for a target and build machine specific resource!
20047     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20048     if test "x$resource" = x; then
20049       # Ok, lets instead look for a target specific resource
20050       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20051     fi
20052     if test "x$resource" = x; then
20053       # Ok, lets instead look for a build specific resource
20054       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20055     fi
20056     if test "x$resource" = x; then
20057       # Ok, lets instead look for a generic resource
20058       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20059       resource=${builddep_bootjdk}
20060     fi
20061     if test "x$resource" != x; then
20062       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20063 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20064       # If the resource in the builddeps.conf file is an existing directory,
20065       # for example /java/linux/cups
20066       if test -d ${resource}; then
20067         depdir=${resource}
20068       else
20069 
20070   # bootjdk is for example mymodule
20071   # $resource is for example libs/general/libmymod_1_2_3.zip
20072   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20073   # $with_builddeps_dir is for example /localhome/builddeps
20074   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20075   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20076   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20077   filename=`basename $resource`
20078   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20079   filebase=${filename%%.*}
20080   extension=${filename#*.}
20081   installdir=$with_builddeps_dir/$filebase
20082   if test ! -f $installdir/$filename.unpacked; then
20083     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20084 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20085     if test ! -d $installdir; then
20086       mkdir -p $installdir
20087     fi
20088     if test ! -d $installdir; then
20089       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20090     fi
20091     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20092     touch $tmpfile
20093     if test ! -f $tmpfile; then
20094       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20095     fi
20096 
20097   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20098   # $tmpfile is the local file name for the downloaded file.
20099   VALID_TOOL=no
20100   if test "x$BDEPS_FTP" = xwget; then
20101     VALID_TOOL=yes
20102     wget -O $tmpfile $with_builddeps_server/$resource
20103   fi
20104   if test "x$BDEPS_FTP" = xlftp; then
20105     VALID_TOOL=yes
20106     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20107   fi
20108   if test "x$BDEPS_FTP" = xftp; then
20109     VALID_TOOL=yes
20110     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20111     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20112     FTPUSERPWD=${FTPSERVER%%@*}
20113     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20114       FTPUSER=${userpwd%%:*}
20115       FTPPWD=${userpwd#*@}
20116       FTPSERVER=${FTPSERVER#*@}
20117     else
20118       FTPUSER=ftp
20119       FTPPWD=ftp
20120     fi
20121     # the "pass" command does not work on some
20122     # ftp clients (read ftp.exe) but if it works,
20123     # passive mode is better!
20124     ( \
20125         echo "user $FTPUSER $FTPPWD"        ; \
20126         echo "pass"                         ; \
20127         echo "bin"                          ; \
20128         echo "get $FTPPATH $tmpfile"              ; \
20129     ) | ftp -in $FTPSERVER
20130   fi
20131   if test "x$VALID_TOOL" != xyes; then
20132     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20133   fi
20134 
20135     mv $tmpfile $installdir/$filename
20136     if test ! -s $installdir/$filename; then
20137       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20138     fi
20139     case "$extension" in
20140       zip)  echo "Unzipping $installdir/$filename..."
20141         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20142         ;;
20143       tar.gz) echo "Untaring $installdir/$filename..."
20144         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20145         ;;
20146       tgz) echo "Untaring $installdir/$filename..."
20147         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20148         ;;
20149       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20150         ;;
20151     esac
20152   fi
20153   if test -f $installdir/$filename.unpacked; then
20154     depdir=$installdir
20155   fi
20156 
20157       fi
20158       # Source the builddeps file again, because in the previous command, the depdir
20159       # was updated to point at the current build dependency install directory.
20160       . $builddepsfile
20161       # Now extract variables from the builddeps.conf files.
20162       theroot=${builddep_bootjdk_ROOT}
20163       thecflags=${builddep_bootjdk_CFLAGS}
20164       thelibs=${builddep_bootjdk_LIBS}
20165       if test "x$depdir" = x; then
20166         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20167       fi
20168       BOOT_JDK=$depdir
20169       if test "x$theroot" != x; then
20170         BOOT_JDK="$theroot"
20171       fi
20172       if test "x$thecflags" != x; then
20173         BOOT_JDK_CFLAGS="$thecflags"
20174       fi
20175       if test "x$thelibs" != x; then
20176         BOOT_JDK_LIBS="$thelibs"
20177       fi
20178       BOOT_JDK_FOUND=maybe
20179       else BOOT_JDK_FOUND=no
20180 
20181     fi
20182     else BOOT_JDK_FOUND=no
20183 
20184   fi
20185 
20186 
20187 
20188     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20189     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20190       # Do we have a bin/java?
20191       if test ! -x "$BOOT_JDK/bin/java"; then
20192         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20194         BOOT_JDK_FOUND=no
20195       else
20196         # Do we have a bin/javac?
20197         if test ! -x "$BOOT_JDK/bin/javac"; then
20198           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20200           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20201 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20202           BOOT_JDK_FOUND=no
20203         else
20204           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20205           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20206             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20207 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20208             BOOT_JDK_FOUND=no
20209           else
20210             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20211             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20212 
20213             # Extra M4 quote needed to protect [] in grep expression.
20214             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20215             if test "x$FOUND_CORRECT_VERSION" = x; then
20216               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20218               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20219 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20220               BOOT_JDK_FOUND=no
20221             else
20222               # We're done! :-)
20223               BOOT_JDK_FOUND=yes
20224 
20225   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20226 
20227   # Input might be given as Windows format, start by converting to
20228   # unix format.
20229   path="$BOOT_JDK"
20230   new_path=`$CYGPATH -u "$path"`
20231 
20232   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20233   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20234   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20235   # "foo.exe" is OK but "foo" is an error.
20236   #
20237   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20238   # It is also a way to make sure we got the proper file name for the real test later on.
20239   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20240   if test "x$test_shortpath" = x; then
20241     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20242 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20243     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20244   fi
20245 
20246   # Call helper function which possibly converts this using DOS-style short mode.
20247   # If so, the updated path is stored in $new_path.
20248 
20249   input_path="$new_path"
20250   # Check if we need to convert this using DOS-style short mode. If the path
20251   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20252   # take no chances and rewrite it.
20253   # Note: m4 eats our [], so we need to use [ and ] instead.
20254   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20255   if test "x$has_forbidden_chars" != x; then
20256     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20257     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20258     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20259     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20260       # Going to short mode and back again did indeed matter. Since short mode is
20261       # case insensitive, let's make it lowercase to improve readability.
20262       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20263       # Now convert it back to Unix-stile (cygpath)
20264       input_path=`$CYGPATH -u "$shortmode_path"`
20265       new_path="$input_path"
20266     fi
20267   fi
20268 
20269   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20270   if test "x$test_cygdrive_prefix" = x; then
20271     # As a simple fix, exclude /usr/bin since it's not a real path.
20272     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20273       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20274       # a path prefixed by /cygdrive for fixpath to work.
20275       new_path="$CYGWIN_ROOT_PATH$input_path"
20276     fi
20277   fi
20278 
20279 
20280   if test "x$path" != "x$new_path"; then
20281     BOOT_JDK="$new_path"
20282     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20283 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20284   fi
20285 
20286   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20287 
20288   path="$BOOT_JDK"
20289   has_colon=`$ECHO $path | $GREP ^.:`
20290   new_path="$path"
20291   if test "x$has_colon" = x; then
20292     # Not in mixed or Windows style, start by that.
20293     new_path=`cmd //c echo $path`
20294   fi
20295 
20296 
20297   input_path="$new_path"
20298   # Check if we need to convert this using DOS-style short mode. If the path
20299   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20300   # take no chances and rewrite it.
20301   # Note: m4 eats our [], so we need to use [ and ] instead.
20302   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20303   if test "x$has_forbidden_chars" != x; then
20304     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20305     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20306   fi
20307 
20308 
20309   windows_path="$new_path"
20310   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20311     unix_path=`$CYGPATH -u "$windows_path"`
20312     new_path="$unix_path"
20313   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20314     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20315     new_path="$unix_path"
20316   fi
20317 
20318   if test "x$path" != "x$new_path"; then
20319     BOOT_JDK="$new_path"
20320     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20321 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20322   fi
20323 
20324   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20325   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20326 
20327   else
20328     # We're on a posix platform. Hooray! :)
20329     path="$BOOT_JDK"
20330     has_space=`$ECHO "$path" | $GREP " "`
20331     if test "x$has_space" != x; then
20332       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20333 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20334       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20335     fi
20336 
20337     # Use eval to expand a potential ~
20338     eval path="$path"
20339     if test ! -f "$path" && test ! -d "$path"; then
20340       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20341     fi
20342 
20343     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20344   fi
20345 
20346               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20347 $as_echo_n "checking for Boot JDK... " >&6; }
20348               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20349 $as_echo "$BOOT_JDK" >&6; }
20350               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20351 $as_echo_n "checking Boot JDK version... " >&6; }
20352               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20353               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20354 $as_echo "$BOOT_JDK_VERSION" >&6; }
20355             fi # end check jdk version
20356           fi # end check rt.jar
20357         fi # end check javac
20358       fi # end check java
20359     fi # end check boot jdk found
20360   fi
20361 
20362 
20363   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20364 
20365   if test "x$BOOT_JDK_FOUND" = xno; then
20366     # Now execute the test
20367 
20368   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20369     # First check at user selected default
20370 
20371   if test "x$BOOT_JDK_FOUND" = xno; then
20372     # Now execute the test
20373 
20374   if test -x /usr/libexec/java_home; then
20375     BOOT_JDK=`/usr/libexec/java_home `
20376     BOOT_JDK_FOUND=maybe
20377     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20378 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20379   fi
20380 
20381 
20382     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20383     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20384       # Do we have a bin/java?
20385       if test ! -x "$BOOT_JDK/bin/java"; then
20386         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20387 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20388         BOOT_JDK_FOUND=no
20389       else
20390         # Do we have a bin/javac?
20391         if test ! -x "$BOOT_JDK/bin/javac"; then
20392           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20393 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20394           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20395 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20396           BOOT_JDK_FOUND=no
20397         else
20398           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20399           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20400             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20401 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20402             BOOT_JDK_FOUND=no
20403           else
20404             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20405             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20406 
20407             # Extra M4 quote needed to protect [] in grep expression.
20408             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20409             if test "x$FOUND_CORRECT_VERSION" = x; then
20410               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20412               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20413 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20414               BOOT_JDK_FOUND=no
20415             else
20416               # We're done! :-)
20417               BOOT_JDK_FOUND=yes
20418 
20419   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20420 
20421   # Input might be given as Windows format, start by converting to
20422   # unix format.
20423   path="$BOOT_JDK"
20424   new_path=`$CYGPATH -u "$path"`
20425 
20426   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20427   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20428   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20429   # "foo.exe" is OK but "foo" is an error.
20430   #
20431   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20432   # It is also a way to make sure we got the proper file name for the real test later on.
20433   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20434   if test "x$test_shortpath" = x; then
20435     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20436 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20437     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20438   fi
20439 
20440   # Call helper function which possibly converts this using DOS-style short mode.
20441   # If so, the updated path is stored in $new_path.
20442 
20443   input_path="$new_path"
20444   # Check if we need to convert this using DOS-style short mode. If the path
20445   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20446   # take no chances and rewrite it.
20447   # Note: m4 eats our [], so we need to use [ and ] instead.
20448   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20449   if test "x$has_forbidden_chars" != x; then
20450     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20451     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20452     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20453     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20454       # Going to short mode and back again did indeed matter. Since short mode is
20455       # case insensitive, let's make it lowercase to improve readability.
20456       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20457       # Now convert it back to Unix-stile (cygpath)
20458       input_path=`$CYGPATH -u "$shortmode_path"`
20459       new_path="$input_path"
20460     fi
20461   fi
20462 
20463   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20464   if test "x$test_cygdrive_prefix" = x; then
20465     # As a simple fix, exclude /usr/bin since it's not a real path.
20466     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20467       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20468       # a path prefixed by /cygdrive for fixpath to work.
20469       new_path="$CYGWIN_ROOT_PATH$input_path"
20470     fi
20471   fi
20472 
20473 
20474   if test "x$path" != "x$new_path"; then
20475     BOOT_JDK="$new_path"
20476     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20477 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20478   fi
20479 
20480   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20481 
20482   path="$BOOT_JDK"
20483   has_colon=`$ECHO $path | $GREP ^.:`
20484   new_path="$path"
20485   if test "x$has_colon" = x; then
20486     # Not in mixed or Windows style, start by that.
20487     new_path=`cmd //c echo $path`
20488   fi
20489 
20490 
20491   input_path="$new_path"
20492   # Check if we need to convert this using DOS-style short mode. If the path
20493   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20494   # take no chances and rewrite it.
20495   # Note: m4 eats our [], so we need to use [ and ] instead.
20496   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20497   if test "x$has_forbidden_chars" != x; then
20498     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20499     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20500   fi
20501 
20502 
20503   windows_path="$new_path"
20504   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20505     unix_path=`$CYGPATH -u "$windows_path"`
20506     new_path="$unix_path"
20507   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20508     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20509     new_path="$unix_path"
20510   fi
20511 
20512   if test "x$path" != "x$new_path"; then
20513     BOOT_JDK="$new_path"
20514     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20515 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20516   fi
20517 
20518   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20519   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20520 
20521   else
20522     # We're on a posix platform. Hooray! :)
20523     path="$BOOT_JDK"
20524     has_space=`$ECHO "$path" | $GREP " "`
20525     if test "x$has_space" != x; then
20526       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20527 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20528       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20529     fi
20530 
20531     # Use eval to expand a potential ~
20532     eval path="$path"
20533     if test ! -f "$path" && test ! -d "$path"; then
20534       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20535     fi
20536 
20537     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20538   fi
20539 
20540               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20541 $as_echo_n "checking for Boot JDK... " >&6; }
20542               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20543 $as_echo "$BOOT_JDK" >&6; }
20544               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20545 $as_echo_n "checking Boot JDK version... " >&6; }
20546               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20547               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20548 $as_echo "$BOOT_JDK_VERSION" >&6; }
20549             fi # end check jdk version
20550           fi # end check rt.jar
20551         fi # end check javac
20552       fi # end check java
20553     fi # end check boot jdk found
20554   fi
20555 
20556     # If that did not work out (e.g. too old), try explicit versions instead
20557 
20558   if test "x$BOOT_JDK_FOUND" = xno; then
20559     # Now execute the test
20560 
20561   if test -x /usr/libexec/java_home; then
20562     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20563     BOOT_JDK_FOUND=maybe
20564     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20565 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20566   fi
20567 
20568 
20569     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20570     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20571       # Do we have a bin/java?
20572       if test ! -x "$BOOT_JDK/bin/java"; then
20573         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20574 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20575         BOOT_JDK_FOUND=no
20576       else
20577         # Do we have a bin/javac?
20578         if test ! -x "$BOOT_JDK/bin/javac"; then
20579           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20580 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20581           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20582 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20583           BOOT_JDK_FOUND=no
20584         else
20585           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20586           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20587             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20588 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20589             BOOT_JDK_FOUND=no
20590           else
20591             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20592             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20593 
20594             # Extra M4 quote needed to protect [] in grep expression.
20595             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20596             if test "x$FOUND_CORRECT_VERSION" = x; then
20597               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20599               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20600 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20601               BOOT_JDK_FOUND=no
20602             else
20603               # We're done! :-)
20604               BOOT_JDK_FOUND=yes
20605 
20606   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20607 
20608   # Input might be given as Windows format, start by converting to
20609   # unix format.
20610   path="$BOOT_JDK"
20611   new_path=`$CYGPATH -u "$path"`
20612 
20613   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20614   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20615   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20616   # "foo.exe" is OK but "foo" is an error.
20617   #
20618   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20619   # It is also a way to make sure we got the proper file name for the real test later on.
20620   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20621   if test "x$test_shortpath" = x; then
20622     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20623 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20624     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20625   fi
20626 
20627   # Call helper function which possibly converts this using DOS-style short mode.
20628   # If so, the updated path is stored in $new_path.
20629 
20630   input_path="$new_path"
20631   # Check if we need to convert this using DOS-style short mode. If the path
20632   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20633   # take no chances and rewrite it.
20634   # Note: m4 eats our [], so we need to use [ and ] instead.
20635   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20636   if test "x$has_forbidden_chars" != x; then
20637     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20638     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20639     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20640     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20641       # Going to short mode and back again did indeed matter. Since short mode is
20642       # case insensitive, let's make it lowercase to improve readability.
20643       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20644       # Now convert it back to Unix-stile (cygpath)
20645       input_path=`$CYGPATH -u "$shortmode_path"`
20646       new_path="$input_path"
20647     fi
20648   fi
20649 
20650   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20651   if test "x$test_cygdrive_prefix" = x; then
20652     # As a simple fix, exclude /usr/bin since it's not a real path.
20653     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20654       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20655       # a path prefixed by /cygdrive for fixpath to work.
20656       new_path="$CYGWIN_ROOT_PATH$input_path"
20657     fi
20658   fi
20659 
20660 
20661   if test "x$path" != "x$new_path"; then
20662     BOOT_JDK="$new_path"
20663     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20664 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20665   fi
20666 
20667   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20668 
20669   path="$BOOT_JDK"
20670   has_colon=`$ECHO $path | $GREP ^.:`
20671   new_path="$path"
20672   if test "x$has_colon" = x; then
20673     # Not in mixed or Windows style, start by that.
20674     new_path=`cmd //c echo $path`
20675   fi
20676 
20677 
20678   input_path="$new_path"
20679   # Check if we need to convert this using DOS-style short mode. If the path
20680   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20681   # take no chances and rewrite it.
20682   # Note: m4 eats our [], so we need to use [ and ] instead.
20683   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20684   if test "x$has_forbidden_chars" != x; then
20685     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20686     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20687   fi
20688 
20689 
20690   windows_path="$new_path"
20691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20692     unix_path=`$CYGPATH -u "$windows_path"`
20693     new_path="$unix_path"
20694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20695     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20696     new_path="$unix_path"
20697   fi
20698 
20699   if test "x$path" != "x$new_path"; then
20700     BOOT_JDK="$new_path"
20701     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20702 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20703   fi
20704 
20705   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20706   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20707 
20708   else
20709     # We're on a posix platform. Hooray! :)
20710     path="$BOOT_JDK"
20711     has_space=`$ECHO "$path" | $GREP " "`
20712     if test "x$has_space" != x; then
20713       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20714 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20715       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20716     fi
20717 
20718     # Use eval to expand a potential ~
20719     eval path="$path"
20720     if test ! -f "$path" && test ! -d "$path"; then
20721       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20722     fi
20723 
20724     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20725   fi
20726 
20727               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20728 $as_echo_n "checking for Boot JDK... " >&6; }
20729               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20730 $as_echo "$BOOT_JDK" >&6; }
20731               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20732 $as_echo_n "checking Boot JDK version... " >&6; }
20733               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20734               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20735 $as_echo "$BOOT_JDK_VERSION" >&6; }
20736             fi # end check jdk version
20737           fi # end check rt.jar
20738         fi # end check javac
20739       fi # end check java
20740     fi # end check boot jdk found
20741   fi
20742 
20743 
20744   if test "x$BOOT_JDK_FOUND" = xno; then
20745     # Now execute the test
20746 
20747   if test -x /usr/libexec/java_home; then
20748     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20749     BOOT_JDK_FOUND=maybe
20750     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20751 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20752   fi
20753 
20754 
20755     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20756     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20757       # Do we have a bin/java?
20758       if test ! -x "$BOOT_JDK/bin/java"; then
20759         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20760 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20761         BOOT_JDK_FOUND=no
20762       else
20763         # Do we have a bin/javac?
20764         if test ! -x "$BOOT_JDK/bin/javac"; then
20765           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20767           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20768 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20769           BOOT_JDK_FOUND=no
20770         else
20771           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20772           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20773             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20774 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20775             BOOT_JDK_FOUND=no
20776           else
20777             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20778             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20779 
20780             # Extra M4 quote needed to protect [] in grep expression.
20781             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20782             if test "x$FOUND_CORRECT_VERSION" = x; then
20783               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20785               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20786 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20787               BOOT_JDK_FOUND=no
20788             else
20789               # We're done! :-)
20790               BOOT_JDK_FOUND=yes
20791 
20792   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20793 
20794   # Input might be given as Windows format, start by converting to
20795   # unix format.
20796   path="$BOOT_JDK"
20797   new_path=`$CYGPATH -u "$path"`
20798 
20799   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20800   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20801   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20802   # "foo.exe" is OK but "foo" is an error.
20803   #
20804   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20805   # It is also a way to make sure we got the proper file name for the real test later on.
20806   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20807   if test "x$test_shortpath" = x; then
20808     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20809 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20810     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20811   fi
20812 
20813   # Call helper function which possibly converts this using DOS-style short mode.
20814   # If so, the updated path is stored in $new_path.
20815 
20816   input_path="$new_path"
20817   # Check if we need to convert this using DOS-style short mode. If the path
20818   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20819   # take no chances and rewrite it.
20820   # Note: m4 eats our [], so we need to use [ and ] instead.
20821   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20822   if test "x$has_forbidden_chars" != x; then
20823     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20824     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20825     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20826     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20827       # Going to short mode and back again did indeed matter. Since short mode is
20828       # case insensitive, let's make it lowercase to improve readability.
20829       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20830       # Now convert it back to Unix-stile (cygpath)
20831       input_path=`$CYGPATH -u "$shortmode_path"`
20832       new_path="$input_path"
20833     fi
20834   fi
20835 
20836   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20837   if test "x$test_cygdrive_prefix" = x; then
20838     # As a simple fix, exclude /usr/bin since it's not a real path.
20839     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20840       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20841       # a path prefixed by /cygdrive for fixpath to work.
20842       new_path="$CYGWIN_ROOT_PATH$input_path"
20843     fi
20844   fi
20845 
20846 
20847   if test "x$path" != "x$new_path"; then
20848     BOOT_JDK="$new_path"
20849     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20850 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20851   fi
20852 
20853   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20854 
20855   path="$BOOT_JDK"
20856   has_colon=`$ECHO $path | $GREP ^.:`
20857   new_path="$path"
20858   if test "x$has_colon" = x; then
20859     # Not in mixed or Windows style, start by that.
20860     new_path=`cmd //c echo $path`
20861   fi
20862 
20863 
20864   input_path="$new_path"
20865   # Check if we need to convert this using DOS-style short mode. If the path
20866   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20867   # take no chances and rewrite it.
20868   # Note: m4 eats our [], so we need to use [ and ] instead.
20869   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20870   if test "x$has_forbidden_chars" != x; then
20871     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20872     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20873   fi
20874 
20875 
20876   windows_path="$new_path"
20877   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20878     unix_path=`$CYGPATH -u "$windows_path"`
20879     new_path="$unix_path"
20880   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20881     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20882     new_path="$unix_path"
20883   fi
20884 
20885   if test "x$path" != "x$new_path"; then
20886     BOOT_JDK="$new_path"
20887     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20888 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20889   fi
20890 
20891   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20892   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20893 
20894   else
20895     # We're on a posix platform. Hooray! :)
20896     path="$BOOT_JDK"
20897     has_space=`$ECHO "$path" | $GREP " "`
20898     if test "x$has_space" != x; then
20899       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20901       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20902     fi
20903 
20904     # Use eval to expand a potential ~
20905     eval path="$path"
20906     if test ! -f "$path" && test ! -d "$path"; then
20907       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20908     fi
20909 
20910     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20911   fi
20912 
20913               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20914 $as_echo_n "checking for Boot JDK... " >&6; }
20915               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20916 $as_echo "$BOOT_JDK" >&6; }
20917               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20918 $as_echo_n "checking Boot JDK version... " >&6; }
20919               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20920               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20921 $as_echo "$BOOT_JDK_VERSION" >&6; }
20922             fi # end check jdk version
20923           fi # end check rt.jar
20924         fi # end check javac
20925       fi # end check java
20926     fi # end check boot jdk found
20927   fi
20928 
20929 
20930   if test "x$BOOT_JDK_FOUND" = xno; then
20931     # Now execute the test
20932 
20933   if test -x /usr/libexec/java_home; then
20934     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20935     BOOT_JDK_FOUND=maybe
20936     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20937 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20938   fi
20939 
20940 
20941     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20942     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20943       # Do we have a bin/java?
20944       if test ! -x "$BOOT_JDK/bin/java"; then
20945         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20947         BOOT_JDK_FOUND=no
20948       else
20949         # Do we have a bin/javac?
20950         if test ! -x "$BOOT_JDK/bin/javac"; then
20951           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20952 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20953           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20954 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20955           BOOT_JDK_FOUND=no
20956         else
20957           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20958           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20959             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20960 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20961             BOOT_JDK_FOUND=no
20962           else
20963             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20964             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20965 
20966             # Extra M4 quote needed to protect [] in grep expression.
20967             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20968             if test "x$FOUND_CORRECT_VERSION" = x; then
20969               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20971               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20972 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20973               BOOT_JDK_FOUND=no
20974             else
20975               # We're done! :-)
20976               BOOT_JDK_FOUND=yes
20977 
20978   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20979 
20980   # Input might be given as Windows format, start by converting to
20981   # unix format.
20982   path="$BOOT_JDK"
20983   new_path=`$CYGPATH -u "$path"`
20984 
20985   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20986   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20987   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20988   # "foo.exe" is OK but "foo" is an error.
20989   #
20990   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20991   # It is also a way to make sure we got the proper file name for the real test later on.
20992   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20993   if test "x$test_shortpath" = x; then
20994     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20995 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20996     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20997   fi
20998 
20999   # Call helper function which possibly converts this using DOS-style short mode.
21000   # If so, the updated path is stored in $new_path.
21001 
21002   input_path="$new_path"
21003   # Check if we need to convert this using DOS-style short mode. If the path
21004   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21005   # take no chances and rewrite it.
21006   # Note: m4 eats our [], so we need to use [ and ] instead.
21007   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21008   if test "x$has_forbidden_chars" != x; then
21009     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21010     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21011     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21012     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21013       # Going to short mode and back again did indeed matter. Since short mode is
21014       # case insensitive, let's make it lowercase to improve readability.
21015       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21016       # Now convert it back to Unix-stile (cygpath)
21017       input_path=`$CYGPATH -u "$shortmode_path"`
21018       new_path="$input_path"
21019     fi
21020   fi
21021 
21022   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21023   if test "x$test_cygdrive_prefix" = x; then
21024     # As a simple fix, exclude /usr/bin since it's not a real path.
21025     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21026       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21027       # a path prefixed by /cygdrive for fixpath to work.
21028       new_path="$CYGWIN_ROOT_PATH$input_path"
21029     fi
21030   fi
21031 
21032 
21033   if test "x$path" != "x$new_path"; then
21034     BOOT_JDK="$new_path"
21035     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21037   fi
21038 
21039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21040 
21041   path="$BOOT_JDK"
21042   has_colon=`$ECHO $path | $GREP ^.:`
21043   new_path="$path"
21044   if test "x$has_colon" = x; then
21045     # Not in mixed or Windows style, start by that.
21046     new_path=`cmd //c echo $path`
21047   fi
21048 
21049 
21050   input_path="$new_path"
21051   # Check if we need to convert this using DOS-style short mode. If the path
21052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21053   # take no chances and rewrite it.
21054   # Note: m4 eats our [], so we need to use [ and ] instead.
21055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21056   if test "x$has_forbidden_chars" != x; then
21057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21058     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21059   fi
21060 
21061 
21062   windows_path="$new_path"
21063   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21064     unix_path=`$CYGPATH -u "$windows_path"`
21065     new_path="$unix_path"
21066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21067     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21068     new_path="$unix_path"
21069   fi
21070 
21071   if test "x$path" != "x$new_path"; then
21072     BOOT_JDK="$new_path"
21073     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21075   fi
21076 
21077   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21078   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21079 
21080   else
21081     # We're on a posix platform. Hooray! :)
21082     path="$BOOT_JDK"
21083     has_space=`$ECHO "$path" | $GREP " "`
21084     if test "x$has_space" != x; then
21085       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21086 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21087       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21088     fi
21089 
21090     # Use eval to expand a potential ~
21091     eval path="$path"
21092     if test ! -f "$path" && test ! -d "$path"; then
21093       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21094     fi
21095 
21096     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21097   fi
21098 
21099               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21100 $as_echo_n "checking for Boot JDK... " >&6; }
21101               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21102 $as_echo "$BOOT_JDK" >&6; }
21103               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21104 $as_echo_n "checking Boot JDK version... " >&6; }
21105               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21106               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21107 $as_echo "$BOOT_JDK_VERSION" >&6; }
21108             fi # end check jdk version
21109           fi # end check rt.jar
21110         fi # end check javac
21111       fi # end check java
21112     fi # end check boot jdk found
21113   fi
21114 
21115   fi
21116 
21117 
21118     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21119     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21120       # Do we have a bin/java?
21121       if test ! -x "$BOOT_JDK/bin/java"; then
21122         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21123 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21124         BOOT_JDK_FOUND=no
21125       else
21126         # Do we have a bin/javac?
21127         if test ! -x "$BOOT_JDK/bin/javac"; then
21128           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21129 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21130           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21131 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21132           BOOT_JDK_FOUND=no
21133         else
21134           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21135           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21136             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21137 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21138             BOOT_JDK_FOUND=no
21139           else
21140             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21141             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21142 
21143             # Extra M4 quote needed to protect [] in grep expression.
21144             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21145             if test "x$FOUND_CORRECT_VERSION" = x; then
21146               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21147 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21148               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21149 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21150               BOOT_JDK_FOUND=no
21151             else
21152               # We're done! :-)
21153               BOOT_JDK_FOUND=yes
21154 
21155   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21156 
21157   # Input might be given as Windows format, start by converting to
21158   # unix format.
21159   path="$BOOT_JDK"
21160   new_path=`$CYGPATH -u "$path"`
21161 
21162   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21163   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21164   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21165   # "foo.exe" is OK but "foo" is an error.
21166   #
21167   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21168   # It is also a way to make sure we got the proper file name for the real test later on.
21169   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21170   if test "x$test_shortpath" = x; then
21171     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21172 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21173     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21174   fi
21175 
21176   # Call helper function which possibly converts this using DOS-style short mode.
21177   # If so, the updated path is stored in $new_path.
21178 
21179   input_path="$new_path"
21180   # Check if we need to convert this using DOS-style short mode. If the path
21181   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21182   # take no chances and rewrite it.
21183   # Note: m4 eats our [], so we need to use [ and ] instead.
21184   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21185   if test "x$has_forbidden_chars" != x; then
21186     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21187     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21188     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21189     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21190       # Going to short mode and back again did indeed matter. Since short mode is
21191       # case insensitive, let's make it lowercase to improve readability.
21192       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21193       # Now convert it back to Unix-stile (cygpath)
21194       input_path=`$CYGPATH -u "$shortmode_path"`
21195       new_path="$input_path"
21196     fi
21197   fi
21198 
21199   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21200   if test "x$test_cygdrive_prefix" = x; then
21201     # As a simple fix, exclude /usr/bin since it's not a real path.
21202     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21203       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21204       # a path prefixed by /cygdrive for fixpath to work.
21205       new_path="$CYGWIN_ROOT_PATH$input_path"
21206     fi
21207   fi
21208 
21209 
21210   if test "x$path" != "x$new_path"; then
21211     BOOT_JDK="$new_path"
21212     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21213 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21214   fi
21215 
21216   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21217 
21218   path="$BOOT_JDK"
21219   has_colon=`$ECHO $path | $GREP ^.:`
21220   new_path="$path"
21221   if test "x$has_colon" = x; then
21222     # Not in mixed or Windows style, start by that.
21223     new_path=`cmd //c echo $path`
21224   fi
21225 
21226 
21227   input_path="$new_path"
21228   # Check if we need to convert this using DOS-style short mode. If the path
21229   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21230   # take no chances and rewrite it.
21231   # Note: m4 eats our [], so we need to use [ and ] instead.
21232   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21233   if test "x$has_forbidden_chars" != x; then
21234     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21235     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21236   fi
21237 
21238 
21239   windows_path="$new_path"
21240   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21241     unix_path=`$CYGPATH -u "$windows_path"`
21242     new_path="$unix_path"
21243   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21244     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21245     new_path="$unix_path"
21246   fi
21247 
21248   if test "x$path" != "x$new_path"; then
21249     BOOT_JDK="$new_path"
21250     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21251 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21252   fi
21253 
21254   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21255   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21256 
21257   else
21258     # We're on a posix platform. Hooray! :)
21259     path="$BOOT_JDK"
21260     has_space=`$ECHO "$path" | $GREP " "`
21261     if test "x$has_space" != x; then
21262       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21263 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21264       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21265     fi
21266 
21267     # Use eval to expand a potential ~
21268     eval path="$path"
21269     if test ! -f "$path" && test ! -d "$path"; then
21270       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21271     fi
21272 
21273     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21274   fi
21275 
21276               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21277 $as_echo_n "checking for Boot JDK... " >&6; }
21278               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21279 $as_echo "$BOOT_JDK" >&6; }
21280               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21281 $as_echo_n "checking Boot JDK version... " >&6; }
21282               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21283               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21284 $as_echo "$BOOT_JDK_VERSION" >&6; }
21285             fi # end check jdk version
21286           fi # end check rt.jar
21287         fi # end check javac
21288       fi # end check java
21289     fi # end check boot jdk found
21290   fi
21291 
21292 
21293   # Test: Is $JAVA_HOME set?
21294 
21295   if test "x$BOOT_JDK_FOUND" = xno; then
21296     # Now execute the test
21297 
21298   if test "x$JAVA_HOME" != x; then
21299     JAVA_HOME_PROCESSED="$JAVA_HOME"
21300 
21301   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21302 
21303   # Input might be given as Windows format, start by converting to
21304   # unix format.
21305   path="$JAVA_HOME_PROCESSED"
21306   new_path=`$CYGPATH -u "$path"`
21307 
21308   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21309   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21310   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21311   # "foo.exe" is OK but "foo" is an error.
21312   #
21313   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21314   # It is also a way to make sure we got the proper file name for the real test later on.
21315   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21316   if test "x$test_shortpath" = x; then
21317     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21318 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21319     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21320   fi
21321 
21322   # Call helper function which possibly converts this using DOS-style short mode.
21323   # If so, the updated path is stored in $new_path.
21324 
21325   input_path="$new_path"
21326   # Check if we need to convert this using DOS-style short mode. If the path
21327   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21328   # take no chances and rewrite it.
21329   # Note: m4 eats our [], so we need to use [ and ] instead.
21330   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21331   if test "x$has_forbidden_chars" != x; then
21332     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21333     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21334     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21335     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21336       # Going to short mode and back again did indeed matter. Since short mode is
21337       # case insensitive, let's make it lowercase to improve readability.
21338       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21339       # Now convert it back to Unix-stile (cygpath)
21340       input_path=`$CYGPATH -u "$shortmode_path"`
21341       new_path="$input_path"
21342     fi
21343   fi
21344 
21345   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21346   if test "x$test_cygdrive_prefix" = x; then
21347     # As a simple fix, exclude /usr/bin since it's not a real path.
21348     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21349       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21350       # a path prefixed by /cygdrive for fixpath to work.
21351       new_path="$CYGWIN_ROOT_PATH$input_path"
21352     fi
21353   fi
21354 
21355 
21356   if test "x$path" != "x$new_path"; then
21357     JAVA_HOME_PROCESSED="$new_path"
21358     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21359 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21360   fi
21361 
21362   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21363 
21364   path="$JAVA_HOME_PROCESSED"
21365   has_colon=`$ECHO $path | $GREP ^.:`
21366   new_path="$path"
21367   if test "x$has_colon" = x; then
21368     # Not in mixed or Windows style, start by that.
21369     new_path=`cmd //c echo $path`
21370   fi
21371 
21372 
21373   input_path="$new_path"
21374   # Check if we need to convert this using DOS-style short mode. If the path
21375   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21376   # take no chances and rewrite it.
21377   # Note: m4 eats our [], so we need to use [ and ] instead.
21378   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21379   if test "x$has_forbidden_chars" != x; then
21380     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21381     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21382   fi
21383 
21384 
21385   windows_path="$new_path"
21386   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21387     unix_path=`$CYGPATH -u "$windows_path"`
21388     new_path="$unix_path"
21389   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21390     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21391     new_path="$unix_path"
21392   fi
21393 
21394   if test "x$path" != "x$new_path"; then
21395     JAVA_HOME_PROCESSED="$new_path"
21396     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21397 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21398   fi
21399 
21400   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21401   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21402 
21403   else
21404     # We're on a posix platform. Hooray! :)
21405     path="$JAVA_HOME_PROCESSED"
21406     has_space=`$ECHO "$path" | $GREP " "`
21407     if test "x$has_space" != x; then
21408       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21409 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21410       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21411     fi
21412 
21413     # Use eval to expand a potential ~
21414     eval path="$path"
21415     if test ! -f "$path" && test ! -d "$path"; then
21416       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21417     fi
21418 
21419     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21420   fi
21421 
21422     if test ! -d "$JAVA_HOME_PROCESSED"; then
21423       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21424 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21425     else
21426       # Aha, the user has set a JAVA_HOME
21427       # let us use that as the Boot JDK.
21428       BOOT_JDK="$JAVA_HOME_PROCESSED"
21429       BOOT_JDK_FOUND=maybe
21430       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21431 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21432     fi
21433   fi
21434 
21435 
21436     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21437     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21438       # Do we have a bin/java?
21439       if test ! -x "$BOOT_JDK/bin/java"; then
21440         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21442         BOOT_JDK_FOUND=no
21443       else
21444         # Do we have a bin/javac?
21445         if test ! -x "$BOOT_JDK/bin/javac"; then
21446           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21448           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21449 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21450           BOOT_JDK_FOUND=no
21451         else
21452           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21453           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21454             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21455 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21456             BOOT_JDK_FOUND=no
21457           else
21458             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21459             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21460 
21461             # Extra M4 quote needed to protect [] in grep expression.
21462             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21463             if test "x$FOUND_CORRECT_VERSION" = x; then
21464               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21466               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21467 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21468               BOOT_JDK_FOUND=no
21469             else
21470               # We're done! :-)
21471               BOOT_JDK_FOUND=yes
21472 
21473   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21474 
21475   # Input might be given as Windows format, start by converting to
21476   # unix format.
21477   path="$BOOT_JDK"
21478   new_path=`$CYGPATH -u "$path"`
21479 
21480   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21481   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21482   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21483   # "foo.exe" is OK but "foo" is an error.
21484   #
21485   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21486   # It is also a way to make sure we got the proper file name for the real test later on.
21487   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21488   if test "x$test_shortpath" = x; then
21489     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21490 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21491     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21492   fi
21493 
21494   # Call helper function which possibly converts this using DOS-style short mode.
21495   # If so, the updated path is stored in $new_path.
21496 
21497   input_path="$new_path"
21498   # Check if we need to convert this using DOS-style short mode. If the path
21499   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21500   # take no chances and rewrite it.
21501   # Note: m4 eats our [], so we need to use [ and ] instead.
21502   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21503   if test "x$has_forbidden_chars" != x; then
21504     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21505     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21506     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21507     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21508       # Going to short mode and back again did indeed matter. Since short mode is
21509       # case insensitive, let's make it lowercase to improve readability.
21510       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21511       # Now convert it back to Unix-stile (cygpath)
21512       input_path=`$CYGPATH -u "$shortmode_path"`
21513       new_path="$input_path"
21514     fi
21515   fi
21516 
21517   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21518   if test "x$test_cygdrive_prefix" = x; then
21519     # As a simple fix, exclude /usr/bin since it's not a real path.
21520     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21521       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21522       # a path prefixed by /cygdrive for fixpath to work.
21523       new_path="$CYGWIN_ROOT_PATH$input_path"
21524     fi
21525   fi
21526 
21527 
21528   if test "x$path" != "x$new_path"; then
21529     BOOT_JDK="$new_path"
21530     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21531 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21532   fi
21533 
21534   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21535 
21536   path="$BOOT_JDK"
21537   has_colon=`$ECHO $path | $GREP ^.:`
21538   new_path="$path"
21539   if test "x$has_colon" = x; then
21540     # Not in mixed or Windows style, start by that.
21541     new_path=`cmd //c echo $path`
21542   fi
21543 
21544 
21545   input_path="$new_path"
21546   # Check if we need to convert this using DOS-style short mode. If the path
21547   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21548   # take no chances and rewrite it.
21549   # Note: m4 eats our [], so we need to use [ and ] instead.
21550   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21551   if test "x$has_forbidden_chars" != x; then
21552     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21553     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21554   fi
21555 
21556 
21557   windows_path="$new_path"
21558   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21559     unix_path=`$CYGPATH -u "$windows_path"`
21560     new_path="$unix_path"
21561   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21562     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21563     new_path="$unix_path"
21564   fi
21565 
21566   if test "x$path" != "x$new_path"; then
21567     BOOT_JDK="$new_path"
21568     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21569 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21570   fi
21571 
21572   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21573   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21574 
21575   else
21576     # We're on a posix platform. Hooray! :)
21577     path="$BOOT_JDK"
21578     has_space=`$ECHO "$path" | $GREP " "`
21579     if test "x$has_space" != x; then
21580       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21581 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21582       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21583     fi
21584 
21585     # Use eval to expand a potential ~
21586     eval path="$path"
21587     if test ! -f "$path" && test ! -d "$path"; then
21588       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21589     fi
21590 
21591     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21592   fi
21593 
21594               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21595 $as_echo_n "checking for Boot JDK... " >&6; }
21596               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21597 $as_echo "$BOOT_JDK" >&6; }
21598               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21599 $as_echo_n "checking Boot JDK version... " >&6; }
21600               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21601               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21602 $as_echo "$BOOT_JDK_VERSION" >&6; }
21603             fi # end check jdk version
21604           fi # end check rt.jar
21605         fi # end check javac
21606       fi # end check java
21607     fi # end check boot jdk found
21608   fi
21609 
21610 
21611   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21612 
21613   if test "x$BOOT_JDK_FOUND" = xno; then
21614     # Now execute the test
21615 
21616   # Extract the first word of "javac", so it can be a program name with args.
21617 set dummy javac; ac_word=$2
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21619 $as_echo_n "checking for $ac_word... " >&6; }
21620 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21621   $as_echo_n "(cached) " >&6
21622 else
21623   case $JAVAC_CHECK in
21624   [\\/]* | ?:[\\/]*)
21625   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21626   ;;
21627   *)
21628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629 for as_dir in $PATH
21630 do
21631   IFS=$as_save_IFS
21632   test -z "$as_dir" && as_dir=.
21633     for ac_exec_ext in '' $ac_executable_extensions; do
21634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21635     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21637     break 2
21638   fi
21639 done
21640   done
21641 IFS=$as_save_IFS
21642 
21643   ;;
21644 esac
21645 fi
21646 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21647 if test -n "$JAVAC_CHECK"; then
21648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21649 $as_echo "$JAVAC_CHECK" >&6; }
21650 else
21651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21652 $as_echo "no" >&6; }
21653 fi
21654 
21655 
21656   # Extract the first word of "java", so it can be a program name with args.
21657 set dummy java; ac_word=$2
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21659 $as_echo_n "checking for $ac_word... " >&6; }
21660 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21661   $as_echo_n "(cached) " >&6
21662 else
21663   case $JAVA_CHECK in
21664   [\\/]* | ?:[\\/]*)
21665   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21666   ;;
21667   *)
21668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21669 for as_dir in $PATH
21670 do
21671   IFS=$as_save_IFS
21672   test -z "$as_dir" && as_dir=.
21673     for ac_exec_ext in '' $ac_executable_extensions; do
21674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21675     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21677     break 2
21678   fi
21679 done
21680   done
21681 IFS=$as_save_IFS
21682 
21683   ;;
21684 esac
21685 fi
21686 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21687 if test -n "$JAVA_CHECK"; then
21688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21689 $as_echo "$JAVA_CHECK" >&6; }
21690 else
21691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21692 $as_echo "no" >&6; }
21693 fi
21694 
21695 
21696   BINARY="$JAVAC_CHECK"
21697   if test "x$JAVAC_CHECK" = x; then
21698     BINARY="$JAVA_CHECK"
21699   fi
21700   if test "x$BINARY" != x; then
21701     # So there is a java(c) binary, it might be part of a JDK.
21702     # Lets find the JDK/JRE directory by following symbolic links.
21703     # Linux/GNU systems often have links from /usr/bin/java to
21704     # /etc/alternatives/java to the real JDK binary.
21705 
21706   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21707     # Follow a chain of symbolic links. Use readlink
21708     # where it exists, else fall back to horribly
21709     # complicated shell code.
21710     if test "x$READLINK_TESTED" != yes; then
21711       # On MacOSX there is a readlink tool with a different
21712       # purpose than the GNU readlink tool. Check the found readlink.
21713       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21714       if test "x$ISGNU" = x; then
21715         # A readlink that we do not know how to use.
21716         # Are there other non-GNU readlinks out there?
21717         READLINK_TESTED=yes
21718         READLINK=
21719       fi
21720     fi
21721 
21722     if test "x$READLINK" != x; then
21723       BINARY=`$READLINK -f $BINARY`
21724     else
21725       # Save the current directory for restoring afterwards
21726       STARTDIR=$PWD
21727       COUNTER=0
21728       sym_link_dir=`$DIRNAME $BINARY`
21729       sym_link_file=`$BASENAME $BINARY`
21730       cd $sym_link_dir
21731       # Use -P flag to resolve symlinks in directories.
21732       cd `$THEPWDCMD -P`
21733       sym_link_dir=`$THEPWDCMD -P`
21734       # Resolve file symlinks
21735       while test $COUNTER -lt 20; do
21736         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21737         if test "x$ISLINK" == x; then
21738           # This is not a symbolic link! We are done!
21739           break
21740         fi
21741         # Again resolve directory symlinks since the target of the just found
21742         # link could be in a different directory
21743         cd `$DIRNAME $ISLINK`
21744         sym_link_dir=`$THEPWDCMD -P`
21745         sym_link_file=`$BASENAME $ISLINK`
21746         let COUNTER=COUNTER+1
21747       done
21748       cd $STARTDIR
21749       BINARY=$sym_link_dir/$sym_link_file
21750     fi
21751   fi
21752 
21753     BOOT_JDK=`dirname "$BINARY"`
21754     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21755     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21756       # Looks like we found ourselves an JDK
21757       BOOT_JDK_FOUND=maybe
21758       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21759 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21760     fi
21761   fi
21762 
21763 
21764     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21765     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21766       # Do we have a bin/java?
21767       if test ! -x "$BOOT_JDK/bin/java"; then
21768         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21770         BOOT_JDK_FOUND=no
21771       else
21772         # Do we have a bin/javac?
21773         if test ! -x "$BOOT_JDK/bin/javac"; then
21774           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21776           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21777 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21778           BOOT_JDK_FOUND=no
21779         else
21780           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21781           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21782             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21784             BOOT_JDK_FOUND=no
21785           else
21786             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21787             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21788 
21789             # Extra M4 quote needed to protect [] in grep expression.
21790             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21791             if test "x$FOUND_CORRECT_VERSION" = x; then
21792               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21794               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21795 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21796               BOOT_JDK_FOUND=no
21797             else
21798               # We're done! :-)
21799               BOOT_JDK_FOUND=yes
21800 
21801   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21802 
21803   # Input might be given as Windows format, start by converting to
21804   # unix format.
21805   path="$BOOT_JDK"
21806   new_path=`$CYGPATH -u "$path"`
21807 
21808   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21809   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21810   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21811   # "foo.exe" is OK but "foo" is an error.
21812   #
21813   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21814   # It is also a way to make sure we got the proper file name for the real test later on.
21815   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21816   if test "x$test_shortpath" = x; then
21817     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21819     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21820   fi
21821 
21822   # Call helper function which possibly converts this using DOS-style short mode.
21823   # If so, the updated path is stored in $new_path.
21824 
21825   input_path="$new_path"
21826   # Check if we need to convert this using DOS-style short mode. If the path
21827   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21828   # take no chances and rewrite it.
21829   # Note: m4 eats our [], so we need to use [ and ] instead.
21830   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21831   if test "x$has_forbidden_chars" != x; then
21832     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21833     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21834     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21835     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21836       # Going to short mode and back again did indeed matter. Since short mode is
21837       # case insensitive, let's make it lowercase to improve readability.
21838       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21839       # Now convert it back to Unix-stile (cygpath)
21840       input_path=`$CYGPATH -u "$shortmode_path"`
21841       new_path="$input_path"
21842     fi
21843   fi
21844 
21845   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21846   if test "x$test_cygdrive_prefix" = x; then
21847     # As a simple fix, exclude /usr/bin since it's not a real path.
21848     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21849       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21850       # a path prefixed by /cygdrive for fixpath to work.
21851       new_path="$CYGWIN_ROOT_PATH$input_path"
21852     fi
21853   fi
21854 
21855 
21856   if test "x$path" != "x$new_path"; then
21857     BOOT_JDK="$new_path"
21858     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21859 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21860   fi
21861 
21862   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21863 
21864   path="$BOOT_JDK"
21865   has_colon=`$ECHO $path | $GREP ^.:`
21866   new_path="$path"
21867   if test "x$has_colon" = x; then
21868     # Not in mixed or Windows style, start by that.
21869     new_path=`cmd //c echo $path`
21870   fi
21871 
21872 
21873   input_path="$new_path"
21874   # Check if we need to convert this using DOS-style short mode. If the path
21875   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21876   # take no chances and rewrite it.
21877   # Note: m4 eats our [], so we need to use [ and ] instead.
21878   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21879   if test "x$has_forbidden_chars" != x; then
21880     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21881     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21882   fi
21883 
21884 
21885   windows_path="$new_path"
21886   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21887     unix_path=`$CYGPATH -u "$windows_path"`
21888     new_path="$unix_path"
21889   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21890     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21891     new_path="$unix_path"
21892   fi
21893 
21894   if test "x$path" != "x$new_path"; then
21895     BOOT_JDK="$new_path"
21896     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21897 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21898   fi
21899 
21900   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21901   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21902 
21903   else
21904     # We're on a posix platform. Hooray! :)
21905     path="$BOOT_JDK"
21906     has_space=`$ECHO "$path" | $GREP " "`
21907     if test "x$has_space" != x; then
21908       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21909 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21910       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21911     fi
21912 
21913     # Use eval to expand a potential ~
21914     eval path="$path"
21915     if test ! -f "$path" && test ! -d "$path"; then
21916       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21917     fi
21918 
21919     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21920   fi
21921 
21922               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21923 $as_echo_n "checking for Boot JDK... " >&6; }
21924               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21925 $as_echo "$BOOT_JDK" >&6; }
21926               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21927 $as_echo_n "checking Boot JDK version... " >&6; }
21928               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21929               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21930 $as_echo "$BOOT_JDK_VERSION" >&6; }
21931             fi # end check jdk version
21932           fi # end check rt.jar
21933         fi # end check javac
21934       fi # end check java
21935     fi # end check boot jdk found
21936   fi
21937 
21938 
21939   # Test: Is there a JDK installed in default, well-known locations?
21940 
21941   if test "x$BOOT_JDK_FOUND" = xno; then
21942     # Now execute the test
21943 
21944   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21945 
21946   if test "x$BOOT_JDK_FOUND" = xno; then
21947     # Now execute the test
21948 
21949   if test "x$ProgramW6432" != x; then
21950     VIRTUAL_DIR="$ProgramW6432/Java"
21951 
21952   windows_path="$VIRTUAL_DIR"
21953   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21954     unix_path=`$CYGPATH -u "$windows_path"`
21955     VIRTUAL_DIR="$unix_path"
21956   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21957     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21958     VIRTUAL_DIR="$unix_path"
21959   fi
21960 
21961 
21962   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21963   BOOT_JDK_SUFFIX=""
21964   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21965   if test "x$ALL_JDKS_FOUND" != x; then
21966     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21967 
21968   if test "x$BOOT_JDK_FOUND" = xno; then
21969     # Now execute the test
21970 
21971         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21972         if test -d "$BOOT_JDK"; then
21973           BOOT_JDK_FOUND=maybe
21974           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21975 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21976         fi
21977 
21978 
21979     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21980     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21981       # Do we have a bin/java?
21982       if test ! -x "$BOOT_JDK/bin/java"; then
21983         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21984 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21985         BOOT_JDK_FOUND=no
21986       else
21987         # Do we have a bin/javac?
21988         if test ! -x "$BOOT_JDK/bin/javac"; then
21989           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21991           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21992 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21993           BOOT_JDK_FOUND=no
21994         else
21995           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21996           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21997             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21999             BOOT_JDK_FOUND=no
22000           else
22001             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22002             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22003 
22004             # Extra M4 quote needed to protect [] in grep expression.
22005             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22006             if test "x$FOUND_CORRECT_VERSION" = x; then
22007               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22009               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22010 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22011               BOOT_JDK_FOUND=no
22012             else
22013               # We're done! :-)
22014               BOOT_JDK_FOUND=yes
22015 
22016   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22017 
22018   # Input might be given as Windows format, start by converting to
22019   # unix format.
22020   path="$BOOT_JDK"
22021   new_path=`$CYGPATH -u "$path"`
22022 
22023   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22024   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22025   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22026   # "foo.exe" is OK but "foo" is an error.
22027   #
22028   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22029   # It is also a way to make sure we got the proper file name for the real test later on.
22030   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22031   if test "x$test_shortpath" = x; then
22032     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22033 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22034     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22035   fi
22036 
22037   # Call helper function which possibly converts this using DOS-style short mode.
22038   # If so, the updated path is stored in $new_path.
22039 
22040   input_path="$new_path"
22041   # Check if we need to convert this using DOS-style short mode. If the path
22042   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22043   # take no chances and rewrite it.
22044   # Note: m4 eats our [], so we need to use [ and ] instead.
22045   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22046   if test "x$has_forbidden_chars" != x; then
22047     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22048     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22049     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22050     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22051       # Going to short mode and back again did indeed matter. Since short mode is
22052       # case insensitive, let's make it lowercase to improve readability.
22053       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22054       # Now convert it back to Unix-stile (cygpath)
22055       input_path=`$CYGPATH -u "$shortmode_path"`
22056       new_path="$input_path"
22057     fi
22058   fi
22059 
22060   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22061   if test "x$test_cygdrive_prefix" = x; then
22062     # As a simple fix, exclude /usr/bin since it's not a real path.
22063     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22064       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22065       # a path prefixed by /cygdrive for fixpath to work.
22066       new_path="$CYGWIN_ROOT_PATH$input_path"
22067     fi
22068   fi
22069 
22070 
22071   if test "x$path" != "x$new_path"; then
22072     BOOT_JDK="$new_path"
22073     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22075   fi
22076 
22077   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22078 
22079   path="$BOOT_JDK"
22080   has_colon=`$ECHO $path | $GREP ^.:`
22081   new_path="$path"
22082   if test "x$has_colon" = x; then
22083     # Not in mixed or Windows style, start by that.
22084     new_path=`cmd //c echo $path`
22085   fi
22086 
22087 
22088   input_path="$new_path"
22089   # Check if we need to convert this using DOS-style short mode. If the path
22090   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22091   # take no chances and rewrite it.
22092   # Note: m4 eats our [], so we need to use [ and ] instead.
22093   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22094   if test "x$has_forbidden_chars" != x; then
22095     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22096     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22097   fi
22098 
22099 
22100   windows_path="$new_path"
22101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22102     unix_path=`$CYGPATH -u "$windows_path"`
22103     new_path="$unix_path"
22104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22105     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22106     new_path="$unix_path"
22107   fi
22108 
22109   if test "x$path" != "x$new_path"; then
22110     BOOT_JDK="$new_path"
22111     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22112 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22113   fi
22114 
22115   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22116   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22117 
22118   else
22119     # We're on a posix platform. Hooray! :)
22120     path="$BOOT_JDK"
22121     has_space=`$ECHO "$path" | $GREP " "`
22122     if test "x$has_space" != x; then
22123       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22125       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22126     fi
22127 
22128     # Use eval to expand a potential ~
22129     eval path="$path"
22130     if test ! -f "$path" && test ! -d "$path"; then
22131       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22132     fi
22133 
22134     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22135   fi
22136 
22137               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22138 $as_echo_n "checking for Boot JDK... " >&6; }
22139               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22140 $as_echo "$BOOT_JDK" >&6; }
22141               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22142 $as_echo_n "checking Boot JDK version... " >&6; }
22143               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22144               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22145 $as_echo "$BOOT_JDK_VERSION" >&6; }
22146             fi # end check jdk version
22147           fi # end check rt.jar
22148         fi # end check javac
22149       fi # end check java
22150     fi # end check boot jdk found
22151   fi
22152 
22153     done
22154   fi
22155 
22156   fi
22157 
22158 
22159     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22160     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22161       # Do we have a bin/java?
22162       if test ! -x "$BOOT_JDK/bin/java"; then
22163         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22164 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22165         BOOT_JDK_FOUND=no
22166       else
22167         # Do we have a bin/javac?
22168         if test ! -x "$BOOT_JDK/bin/javac"; then
22169           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22170 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22171           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22172 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22173           BOOT_JDK_FOUND=no
22174         else
22175           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22176           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22177             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22178 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22179             BOOT_JDK_FOUND=no
22180           else
22181             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22182             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22183 
22184             # Extra M4 quote needed to protect [] in grep expression.
22185             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22186             if test "x$FOUND_CORRECT_VERSION" = x; then
22187               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22189               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22190 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22191               BOOT_JDK_FOUND=no
22192             else
22193               # We're done! :-)
22194               BOOT_JDK_FOUND=yes
22195 
22196   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22197 
22198   # Input might be given as Windows format, start by converting to
22199   # unix format.
22200   path="$BOOT_JDK"
22201   new_path=`$CYGPATH -u "$path"`
22202 
22203   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22204   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22205   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22206   # "foo.exe" is OK but "foo" is an error.
22207   #
22208   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22209   # It is also a way to make sure we got the proper file name for the real test later on.
22210   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22211   if test "x$test_shortpath" = x; then
22212     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22213 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22214     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22215   fi
22216 
22217   # Call helper function which possibly converts this using DOS-style short mode.
22218   # If so, the updated path is stored in $new_path.
22219 
22220   input_path="$new_path"
22221   # Check if we need to convert this using DOS-style short mode. If the path
22222   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22223   # take no chances and rewrite it.
22224   # Note: m4 eats our [], so we need to use [ and ] instead.
22225   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22226   if test "x$has_forbidden_chars" != x; then
22227     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22228     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22229     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22230     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22231       # Going to short mode and back again did indeed matter. Since short mode is
22232       # case insensitive, let's make it lowercase to improve readability.
22233       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22234       # Now convert it back to Unix-stile (cygpath)
22235       input_path=`$CYGPATH -u "$shortmode_path"`
22236       new_path="$input_path"
22237     fi
22238   fi
22239 
22240   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22241   if test "x$test_cygdrive_prefix" = x; then
22242     # As a simple fix, exclude /usr/bin since it's not a real path.
22243     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22244       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22245       # a path prefixed by /cygdrive for fixpath to work.
22246       new_path="$CYGWIN_ROOT_PATH$input_path"
22247     fi
22248   fi
22249 
22250 
22251   if test "x$path" != "x$new_path"; then
22252     BOOT_JDK="$new_path"
22253     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22254 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22255   fi
22256 
22257   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22258 
22259   path="$BOOT_JDK"
22260   has_colon=`$ECHO $path | $GREP ^.:`
22261   new_path="$path"
22262   if test "x$has_colon" = x; then
22263     # Not in mixed or Windows style, start by that.
22264     new_path=`cmd //c echo $path`
22265   fi
22266 
22267 
22268   input_path="$new_path"
22269   # Check if we need to convert this using DOS-style short mode. If the path
22270   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22271   # take no chances and rewrite it.
22272   # Note: m4 eats our [], so we need to use [ and ] instead.
22273   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22274   if test "x$has_forbidden_chars" != x; then
22275     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22276     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22277   fi
22278 
22279 
22280   windows_path="$new_path"
22281   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22282     unix_path=`$CYGPATH -u "$windows_path"`
22283     new_path="$unix_path"
22284   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22285     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22286     new_path="$unix_path"
22287   fi
22288 
22289   if test "x$path" != "x$new_path"; then
22290     BOOT_JDK="$new_path"
22291     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22292 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22293   fi
22294 
22295   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22296   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22297 
22298   else
22299     # We're on a posix platform. Hooray! :)
22300     path="$BOOT_JDK"
22301     has_space=`$ECHO "$path" | $GREP " "`
22302     if test "x$has_space" != x; then
22303       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22304 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22305       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22306     fi
22307 
22308     # Use eval to expand a potential ~
22309     eval path="$path"
22310     if test ! -f "$path" && test ! -d "$path"; then
22311       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22312     fi
22313 
22314     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22315   fi
22316 
22317               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22318 $as_echo_n "checking for Boot JDK... " >&6; }
22319               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22320 $as_echo "$BOOT_JDK" >&6; }
22321               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22322 $as_echo_n "checking Boot JDK version... " >&6; }
22323               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22324               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22325 $as_echo "$BOOT_JDK_VERSION" >&6; }
22326             fi # end check jdk version
22327           fi # end check rt.jar
22328         fi # end check javac
22329       fi # end check java
22330     fi # end check boot jdk found
22331   fi
22332 
22333 
22334   if test "x$BOOT_JDK_FOUND" = xno; then
22335     # Now execute the test
22336 
22337   if test "x$PROGRAMW6432" != x; then
22338     VIRTUAL_DIR="$PROGRAMW6432/Java"
22339 
22340   windows_path="$VIRTUAL_DIR"
22341   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22342     unix_path=`$CYGPATH -u "$windows_path"`
22343     VIRTUAL_DIR="$unix_path"
22344   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22345     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22346     VIRTUAL_DIR="$unix_path"
22347   fi
22348 
22349 
22350   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22351   BOOT_JDK_SUFFIX=""
22352   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22353   if test "x$ALL_JDKS_FOUND" != x; then
22354     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22355 
22356   if test "x$BOOT_JDK_FOUND" = xno; then
22357     # Now execute the test
22358 
22359         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22360         if test -d "$BOOT_JDK"; then
22361           BOOT_JDK_FOUND=maybe
22362           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22363 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22364         fi
22365 
22366 
22367     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22368     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22369       # Do we have a bin/java?
22370       if test ! -x "$BOOT_JDK/bin/java"; then
22371         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22372 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22373         BOOT_JDK_FOUND=no
22374       else
22375         # Do we have a bin/javac?
22376         if test ! -x "$BOOT_JDK/bin/javac"; then
22377           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22378 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22379           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22380 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22381           BOOT_JDK_FOUND=no
22382         else
22383           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22384           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22385             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22386 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22387             BOOT_JDK_FOUND=no
22388           else
22389             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22390             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22391 
22392             # Extra M4 quote needed to protect [] in grep expression.
22393             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22394             if test "x$FOUND_CORRECT_VERSION" = x; then
22395               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22396 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22397               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22398 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22399               BOOT_JDK_FOUND=no
22400             else
22401               # We're done! :-)
22402               BOOT_JDK_FOUND=yes
22403 
22404   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22405 
22406   # Input might be given as Windows format, start by converting to
22407   # unix format.
22408   path="$BOOT_JDK"
22409   new_path=`$CYGPATH -u "$path"`
22410 
22411   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22412   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22413   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22414   # "foo.exe" is OK but "foo" is an error.
22415   #
22416   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22417   # It is also a way to make sure we got the proper file name for the real test later on.
22418   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22419   if test "x$test_shortpath" = x; then
22420     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22421 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22422     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22423   fi
22424 
22425   # Call helper function which possibly converts this using DOS-style short mode.
22426   # If so, the updated path is stored in $new_path.
22427 
22428   input_path="$new_path"
22429   # Check if we need to convert this using DOS-style short mode. If the path
22430   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22431   # take no chances and rewrite it.
22432   # Note: m4 eats our [], so we need to use [ and ] instead.
22433   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22434   if test "x$has_forbidden_chars" != x; then
22435     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22436     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22437     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22438     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22439       # Going to short mode and back again did indeed matter. Since short mode is
22440       # case insensitive, let's make it lowercase to improve readability.
22441       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22442       # Now convert it back to Unix-stile (cygpath)
22443       input_path=`$CYGPATH -u "$shortmode_path"`
22444       new_path="$input_path"
22445     fi
22446   fi
22447 
22448   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22449   if test "x$test_cygdrive_prefix" = x; then
22450     # As a simple fix, exclude /usr/bin since it's not a real path.
22451     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22452       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22453       # a path prefixed by /cygdrive for fixpath to work.
22454       new_path="$CYGWIN_ROOT_PATH$input_path"
22455     fi
22456   fi
22457 
22458 
22459   if test "x$path" != "x$new_path"; then
22460     BOOT_JDK="$new_path"
22461     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22462 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22463   fi
22464 
22465   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22466 
22467   path="$BOOT_JDK"
22468   has_colon=`$ECHO $path | $GREP ^.:`
22469   new_path="$path"
22470   if test "x$has_colon" = x; then
22471     # Not in mixed or Windows style, start by that.
22472     new_path=`cmd //c echo $path`
22473   fi
22474 
22475 
22476   input_path="$new_path"
22477   # Check if we need to convert this using DOS-style short mode. If the path
22478   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22479   # take no chances and rewrite it.
22480   # Note: m4 eats our [], so we need to use [ and ] instead.
22481   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22482   if test "x$has_forbidden_chars" != x; then
22483     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22484     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22485   fi
22486 
22487 
22488   windows_path="$new_path"
22489   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22490     unix_path=`$CYGPATH -u "$windows_path"`
22491     new_path="$unix_path"
22492   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22493     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22494     new_path="$unix_path"
22495   fi
22496 
22497   if test "x$path" != "x$new_path"; then
22498     BOOT_JDK="$new_path"
22499     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22500 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22501   fi
22502 
22503   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22504   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22505 
22506   else
22507     # We're on a posix platform. Hooray! :)
22508     path="$BOOT_JDK"
22509     has_space=`$ECHO "$path" | $GREP " "`
22510     if test "x$has_space" != x; then
22511       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22512 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22513       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22514     fi
22515 
22516     # Use eval to expand a potential ~
22517     eval path="$path"
22518     if test ! -f "$path" && test ! -d "$path"; then
22519       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22520     fi
22521 
22522     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22523   fi
22524 
22525               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22526 $as_echo_n "checking for Boot JDK... " >&6; }
22527               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22528 $as_echo "$BOOT_JDK" >&6; }
22529               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22530 $as_echo_n "checking Boot JDK version... " >&6; }
22531               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22532               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22533 $as_echo "$BOOT_JDK_VERSION" >&6; }
22534             fi # end check jdk version
22535           fi # end check rt.jar
22536         fi # end check javac
22537       fi # end check java
22538     fi # end check boot jdk found
22539   fi
22540 
22541     done
22542   fi
22543 
22544   fi
22545 
22546 
22547     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22548     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22549       # Do we have a bin/java?
22550       if test ! -x "$BOOT_JDK/bin/java"; then
22551         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22552 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22553         BOOT_JDK_FOUND=no
22554       else
22555         # Do we have a bin/javac?
22556         if test ! -x "$BOOT_JDK/bin/javac"; then
22557           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22558 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22559           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22560 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22561           BOOT_JDK_FOUND=no
22562         else
22563           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22564           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22565             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22566 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22567             BOOT_JDK_FOUND=no
22568           else
22569             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22570             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22571 
22572             # Extra M4 quote needed to protect [] in grep expression.
22573             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22574             if test "x$FOUND_CORRECT_VERSION" = x; then
22575               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22576 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22577               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22578 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22579               BOOT_JDK_FOUND=no
22580             else
22581               # We're done! :-)
22582               BOOT_JDK_FOUND=yes
22583 
22584   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22585 
22586   # Input might be given as Windows format, start by converting to
22587   # unix format.
22588   path="$BOOT_JDK"
22589   new_path=`$CYGPATH -u "$path"`
22590 
22591   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22592   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22593   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22594   # "foo.exe" is OK but "foo" is an error.
22595   #
22596   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22597   # It is also a way to make sure we got the proper file name for the real test later on.
22598   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22599   if test "x$test_shortpath" = x; then
22600     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22601 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22602     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22603   fi
22604 
22605   # Call helper function which possibly converts this using DOS-style short mode.
22606   # If so, the updated path is stored in $new_path.
22607 
22608   input_path="$new_path"
22609   # Check if we need to convert this using DOS-style short mode. If the path
22610   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22611   # take no chances and rewrite it.
22612   # Note: m4 eats our [], so we need to use [ and ] instead.
22613   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22614   if test "x$has_forbidden_chars" != x; then
22615     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22616     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22617     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22618     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22619       # Going to short mode and back again did indeed matter. Since short mode is
22620       # case insensitive, let's make it lowercase to improve readability.
22621       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22622       # Now convert it back to Unix-stile (cygpath)
22623       input_path=`$CYGPATH -u "$shortmode_path"`
22624       new_path="$input_path"
22625     fi
22626   fi
22627 
22628   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22629   if test "x$test_cygdrive_prefix" = x; then
22630     # As a simple fix, exclude /usr/bin since it's not a real path.
22631     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22632       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22633       # a path prefixed by /cygdrive for fixpath to work.
22634       new_path="$CYGWIN_ROOT_PATH$input_path"
22635     fi
22636   fi
22637 
22638 
22639   if test "x$path" != "x$new_path"; then
22640     BOOT_JDK="$new_path"
22641     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22642 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22643   fi
22644 
22645   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22646 
22647   path="$BOOT_JDK"
22648   has_colon=`$ECHO $path | $GREP ^.:`
22649   new_path="$path"
22650   if test "x$has_colon" = x; then
22651     # Not in mixed or Windows style, start by that.
22652     new_path=`cmd //c echo $path`
22653   fi
22654 
22655 
22656   input_path="$new_path"
22657   # Check if we need to convert this using DOS-style short mode. If the path
22658   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22659   # take no chances and rewrite it.
22660   # Note: m4 eats our [], so we need to use [ and ] instead.
22661   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22662   if test "x$has_forbidden_chars" != x; then
22663     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22664     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22665   fi
22666 
22667 
22668   windows_path="$new_path"
22669   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22670     unix_path=`$CYGPATH -u "$windows_path"`
22671     new_path="$unix_path"
22672   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22673     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22674     new_path="$unix_path"
22675   fi
22676 
22677   if test "x$path" != "x$new_path"; then
22678     BOOT_JDK="$new_path"
22679     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22680 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22681   fi
22682 
22683   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22684   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22685 
22686   else
22687     # We're on a posix platform. Hooray! :)
22688     path="$BOOT_JDK"
22689     has_space=`$ECHO "$path" | $GREP " "`
22690     if test "x$has_space" != x; then
22691       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22692 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22693       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22694     fi
22695 
22696     # Use eval to expand a potential ~
22697     eval path="$path"
22698     if test ! -f "$path" && test ! -d "$path"; then
22699       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22700     fi
22701 
22702     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22703   fi
22704 
22705               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22706 $as_echo_n "checking for Boot JDK... " >&6; }
22707               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22708 $as_echo "$BOOT_JDK" >&6; }
22709               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22710 $as_echo_n "checking Boot JDK version... " >&6; }
22711               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22712               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22713 $as_echo "$BOOT_JDK_VERSION" >&6; }
22714             fi # end check jdk version
22715           fi # end check rt.jar
22716         fi # end check javac
22717       fi # end check java
22718     fi # end check boot jdk found
22719   fi
22720 
22721 
22722   if test "x$BOOT_JDK_FOUND" = xno; then
22723     # Now execute the test
22724 
22725   if test "x$PROGRAMFILES" != x; then
22726     VIRTUAL_DIR="$PROGRAMFILES/Java"
22727 
22728   windows_path="$VIRTUAL_DIR"
22729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22730     unix_path=`$CYGPATH -u "$windows_path"`
22731     VIRTUAL_DIR="$unix_path"
22732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22734     VIRTUAL_DIR="$unix_path"
22735   fi
22736 
22737 
22738   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22739   BOOT_JDK_SUFFIX=""
22740   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22741   if test "x$ALL_JDKS_FOUND" != x; then
22742     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22743 
22744   if test "x$BOOT_JDK_FOUND" = xno; then
22745     # Now execute the test
22746 
22747         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22748         if test -d "$BOOT_JDK"; then
22749           BOOT_JDK_FOUND=maybe
22750           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22751 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22752         fi
22753 
22754 
22755     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22756     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22757       # Do we have a bin/java?
22758       if test ! -x "$BOOT_JDK/bin/java"; then
22759         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22760 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22761         BOOT_JDK_FOUND=no
22762       else
22763         # Do we have a bin/javac?
22764         if test ! -x "$BOOT_JDK/bin/javac"; then
22765           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22767           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22768 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22769           BOOT_JDK_FOUND=no
22770         else
22771           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22772           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22773             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22774 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22775             BOOT_JDK_FOUND=no
22776           else
22777             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22778             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22779 
22780             # Extra M4 quote needed to protect [] in grep expression.
22781             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22782             if test "x$FOUND_CORRECT_VERSION" = x; then
22783               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22785               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22786 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22787               BOOT_JDK_FOUND=no
22788             else
22789               # We're done! :-)
22790               BOOT_JDK_FOUND=yes
22791 
22792   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22793 
22794   # Input might be given as Windows format, start by converting to
22795   # unix format.
22796   path="$BOOT_JDK"
22797   new_path=`$CYGPATH -u "$path"`
22798 
22799   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22800   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22801   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22802   # "foo.exe" is OK but "foo" is an error.
22803   #
22804   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22805   # It is also a way to make sure we got the proper file name for the real test later on.
22806   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22807   if test "x$test_shortpath" = x; then
22808     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22809 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22810     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22811   fi
22812 
22813   # Call helper function which possibly converts this using DOS-style short mode.
22814   # If so, the updated path is stored in $new_path.
22815 
22816   input_path="$new_path"
22817   # Check if we need to convert this using DOS-style short mode. If the path
22818   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22819   # take no chances and rewrite it.
22820   # Note: m4 eats our [], so we need to use [ and ] instead.
22821   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22822   if test "x$has_forbidden_chars" != x; then
22823     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22824     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22825     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22826     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22827       # Going to short mode and back again did indeed matter. Since short mode is
22828       # case insensitive, let's make it lowercase to improve readability.
22829       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22830       # Now convert it back to Unix-stile (cygpath)
22831       input_path=`$CYGPATH -u "$shortmode_path"`
22832       new_path="$input_path"
22833     fi
22834   fi
22835 
22836   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22837   if test "x$test_cygdrive_prefix" = x; then
22838     # As a simple fix, exclude /usr/bin since it's not a real path.
22839     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22840       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22841       # a path prefixed by /cygdrive for fixpath to work.
22842       new_path="$CYGWIN_ROOT_PATH$input_path"
22843     fi
22844   fi
22845 
22846 
22847   if test "x$path" != "x$new_path"; then
22848     BOOT_JDK="$new_path"
22849     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22850 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22851   fi
22852 
22853   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22854 
22855   path="$BOOT_JDK"
22856   has_colon=`$ECHO $path | $GREP ^.:`
22857   new_path="$path"
22858   if test "x$has_colon" = x; then
22859     # Not in mixed or Windows style, start by that.
22860     new_path=`cmd //c echo $path`
22861   fi
22862 
22863 
22864   input_path="$new_path"
22865   # Check if we need to convert this using DOS-style short mode. If the path
22866   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22867   # take no chances and rewrite it.
22868   # Note: m4 eats our [], so we need to use [ and ] instead.
22869   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22870   if test "x$has_forbidden_chars" != x; then
22871     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22872     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22873   fi
22874 
22875 
22876   windows_path="$new_path"
22877   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22878     unix_path=`$CYGPATH -u "$windows_path"`
22879     new_path="$unix_path"
22880   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22881     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22882     new_path="$unix_path"
22883   fi
22884 
22885   if test "x$path" != "x$new_path"; then
22886     BOOT_JDK="$new_path"
22887     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22888 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22889   fi
22890 
22891   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22892   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22893 
22894   else
22895     # We're on a posix platform. Hooray! :)
22896     path="$BOOT_JDK"
22897     has_space=`$ECHO "$path" | $GREP " "`
22898     if test "x$has_space" != x; then
22899       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22901       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22902     fi
22903 
22904     # Use eval to expand a potential ~
22905     eval path="$path"
22906     if test ! -f "$path" && test ! -d "$path"; then
22907       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22908     fi
22909 
22910     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22911   fi
22912 
22913               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22914 $as_echo_n "checking for Boot JDK... " >&6; }
22915               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22916 $as_echo "$BOOT_JDK" >&6; }
22917               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22918 $as_echo_n "checking Boot JDK version... " >&6; }
22919               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22920               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22921 $as_echo "$BOOT_JDK_VERSION" >&6; }
22922             fi # end check jdk version
22923           fi # end check rt.jar
22924         fi # end check javac
22925       fi # end check java
22926     fi # end check boot jdk found
22927   fi
22928 
22929     done
22930   fi
22931 
22932   fi
22933 
22934 
22935     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22936     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22937       # Do we have a bin/java?
22938       if test ! -x "$BOOT_JDK/bin/java"; then
22939         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22941         BOOT_JDK_FOUND=no
22942       else
22943         # Do we have a bin/javac?
22944         if test ! -x "$BOOT_JDK/bin/javac"; then
22945           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22947           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22948 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22949           BOOT_JDK_FOUND=no
22950         else
22951           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22952           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22953             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22954 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22955             BOOT_JDK_FOUND=no
22956           else
22957             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22958             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22959 
22960             # Extra M4 quote needed to protect [] in grep expression.
22961             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22962             if test "x$FOUND_CORRECT_VERSION" = x; then
22963               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22964 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22965               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22966 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22967               BOOT_JDK_FOUND=no
22968             else
22969               # We're done! :-)
22970               BOOT_JDK_FOUND=yes
22971 
22972   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22973 
22974   # Input might be given as Windows format, start by converting to
22975   # unix format.
22976   path="$BOOT_JDK"
22977   new_path=`$CYGPATH -u "$path"`
22978 
22979   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22980   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22981   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22982   # "foo.exe" is OK but "foo" is an error.
22983   #
22984   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22985   # It is also a way to make sure we got the proper file name for the real test later on.
22986   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22987   if test "x$test_shortpath" = x; then
22988     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22989 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22990     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22991   fi
22992 
22993   # Call helper function which possibly converts this using DOS-style short mode.
22994   # If so, the updated path is stored in $new_path.
22995 
22996   input_path="$new_path"
22997   # Check if we need to convert this using DOS-style short mode. If the path
22998   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22999   # take no chances and rewrite it.
23000   # Note: m4 eats our [], so we need to use [ and ] instead.
23001   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23002   if test "x$has_forbidden_chars" != x; then
23003     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23004     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23005     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23006     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23007       # Going to short mode and back again did indeed matter. Since short mode is
23008       # case insensitive, let's make it lowercase to improve readability.
23009       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23010       # Now convert it back to Unix-stile (cygpath)
23011       input_path=`$CYGPATH -u "$shortmode_path"`
23012       new_path="$input_path"
23013     fi
23014   fi
23015 
23016   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23017   if test "x$test_cygdrive_prefix" = x; then
23018     # As a simple fix, exclude /usr/bin since it's not a real path.
23019     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23020       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23021       # a path prefixed by /cygdrive for fixpath to work.
23022       new_path="$CYGWIN_ROOT_PATH$input_path"
23023     fi
23024   fi
23025 
23026 
23027   if test "x$path" != "x$new_path"; then
23028     BOOT_JDK="$new_path"
23029     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23030 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23031   fi
23032 
23033   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23034 
23035   path="$BOOT_JDK"
23036   has_colon=`$ECHO $path | $GREP ^.:`
23037   new_path="$path"
23038   if test "x$has_colon" = x; then
23039     # Not in mixed or Windows style, start by that.
23040     new_path=`cmd //c echo $path`
23041   fi
23042 
23043 
23044   input_path="$new_path"
23045   # Check if we need to convert this using DOS-style short mode. If the path
23046   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23047   # take no chances and rewrite it.
23048   # Note: m4 eats our [], so we need to use [ and ] instead.
23049   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23050   if test "x$has_forbidden_chars" != x; then
23051     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23052     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23053   fi
23054 
23055 
23056   windows_path="$new_path"
23057   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23058     unix_path=`$CYGPATH -u "$windows_path"`
23059     new_path="$unix_path"
23060   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23061     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23062     new_path="$unix_path"
23063   fi
23064 
23065   if test "x$path" != "x$new_path"; then
23066     BOOT_JDK="$new_path"
23067     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23068 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23069   fi
23070 
23071   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23072   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23073 
23074   else
23075     # We're on a posix platform. Hooray! :)
23076     path="$BOOT_JDK"
23077     has_space=`$ECHO "$path" | $GREP " "`
23078     if test "x$has_space" != x; then
23079       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23080 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23081       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23082     fi
23083 
23084     # Use eval to expand a potential ~
23085     eval path="$path"
23086     if test ! -f "$path" && test ! -d "$path"; then
23087       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23088     fi
23089 
23090     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23091   fi
23092 
23093               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23094 $as_echo_n "checking for Boot JDK... " >&6; }
23095               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23096 $as_echo "$BOOT_JDK" >&6; }
23097               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23098 $as_echo_n "checking Boot JDK version... " >&6; }
23099               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23100               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23101 $as_echo "$BOOT_JDK_VERSION" >&6; }
23102             fi # end check jdk version
23103           fi # end check rt.jar
23104         fi # end check javac
23105       fi # end check java
23106     fi # end check boot jdk found
23107   fi
23108 
23109 
23110   if test "x$BOOT_JDK_FOUND" = xno; then
23111     # Now execute the test
23112 
23113   if test "x$ProgramFiles" != x; then
23114     VIRTUAL_DIR="$ProgramFiles/Java"
23115 
23116   windows_path="$VIRTUAL_DIR"
23117   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23118     unix_path=`$CYGPATH -u "$windows_path"`
23119     VIRTUAL_DIR="$unix_path"
23120   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23121     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23122     VIRTUAL_DIR="$unix_path"
23123   fi
23124 
23125 
23126   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
23127   BOOT_JDK_SUFFIX=""
23128   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23129   if test "x$ALL_JDKS_FOUND" != x; then
23130     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23131 
23132   if test "x$BOOT_JDK_FOUND" = xno; then
23133     # Now execute the test
23134 
23135         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23136         if test -d "$BOOT_JDK"; then
23137           BOOT_JDK_FOUND=maybe
23138           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23139 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23140         fi
23141 
23142 
23143     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23144     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23145       # Do we have a bin/java?
23146       if test ! -x "$BOOT_JDK/bin/java"; then
23147         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23149         BOOT_JDK_FOUND=no
23150       else
23151         # Do we have a bin/javac?
23152         if test ! -x "$BOOT_JDK/bin/javac"; then
23153           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23154 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23155           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23156 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23157           BOOT_JDK_FOUND=no
23158         else
23159           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23160           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23161             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23162 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23163             BOOT_JDK_FOUND=no
23164           else
23165             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23166             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23167 
23168             # Extra M4 quote needed to protect [] in grep expression.
23169             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23170             if test "x$FOUND_CORRECT_VERSION" = x; then
23171               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23172 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23173               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23174 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23175               BOOT_JDK_FOUND=no
23176             else
23177               # We're done! :-)
23178               BOOT_JDK_FOUND=yes
23179 
23180   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23181 
23182   # Input might be given as Windows format, start by converting to
23183   # unix format.
23184   path="$BOOT_JDK"
23185   new_path=`$CYGPATH -u "$path"`
23186 
23187   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23188   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23189   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23190   # "foo.exe" is OK but "foo" is an error.
23191   #
23192   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23193   # It is also a way to make sure we got the proper file name for the real test later on.
23194   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23195   if test "x$test_shortpath" = x; then
23196     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23197 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23198     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23199   fi
23200 
23201   # Call helper function which possibly converts this using DOS-style short mode.
23202   # If so, the updated path is stored in $new_path.
23203 
23204   input_path="$new_path"
23205   # Check if we need to convert this using DOS-style short mode. If the path
23206   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23207   # take no chances and rewrite it.
23208   # Note: m4 eats our [], so we need to use [ and ] instead.
23209   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23210   if test "x$has_forbidden_chars" != x; then
23211     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23212     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23213     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23214     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23215       # Going to short mode and back again did indeed matter. Since short mode is
23216       # case insensitive, let's make it lowercase to improve readability.
23217       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23218       # Now convert it back to Unix-stile (cygpath)
23219       input_path=`$CYGPATH -u "$shortmode_path"`
23220       new_path="$input_path"
23221     fi
23222   fi
23223 
23224   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23225   if test "x$test_cygdrive_prefix" = x; then
23226     # As a simple fix, exclude /usr/bin since it's not a real path.
23227     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23228       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23229       # a path prefixed by /cygdrive for fixpath to work.
23230       new_path="$CYGWIN_ROOT_PATH$input_path"
23231     fi
23232   fi
23233 
23234 
23235   if test "x$path" != "x$new_path"; then
23236     BOOT_JDK="$new_path"
23237     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23238 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23239   fi
23240 
23241   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23242 
23243   path="$BOOT_JDK"
23244   has_colon=`$ECHO $path | $GREP ^.:`
23245   new_path="$path"
23246   if test "x$has_colon" = x; then
23247     # Not in mixed or Windows style, start by that.
23248     new_path=`cmd //c echo $path`
23249   fi
23250 
23251 
23252   input_path="$new_path"
23253   # Check if we need to convert this using DOS-style short mode. If the path
23254   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23255   # take no chances and rewrite it.
23256   # Note: m4 eats our [], so we need to use [ and ] instead.
23257   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23258   if test "x$has_forbidden_chars" != x; then
23259     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23260     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23261   fi
23262 
23263 
23264   windows_path="$new_path"
23265   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23266     unix_path=`$CYGPATH -u "$windows_path"`
23267     new_path="$unix_path"
23268   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23269     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23270     new_path="$unix_path"
23271   fi
23272 
23273   if test "x$path" != "x$new_path"; then
23274     BOOT_JDK="$new_path"
23275     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23276 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23277   fi
23278 
23279   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23280   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23281 
23282   else
23283     # We're on a posix platform. Hooray! :)
23284     path="$BOOT_JDK"
23285     has_space=`$ECHO "$path" | $GREP " "`
23286     if test "x$has_space" != x; then
23287       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23288 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23289       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23290     fi
23291 
23292     # Use eval to expand a potential ~
23293     eval path="$path"
23294     if test ! -f "$path" && test ! -d "$path"; then
23295       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23296     fi
23297 
23298     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23299   fi
23300 
23301               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23302 $as_echo_n "checking for Boot JDK... " >&6; }
23303               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23304 $as_echo "$BOOT_JDK" >&6; }
23305               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23306 $as_echo_n "checking Boot JDK version... " >&6; }
23307               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23308               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23309 $as_echo "$BOOT_JDK_VERSION" >&6; }
23310             fi # end check jdk version
23311           fi # end check rt.jar
23312         fi # end check javac
23313       fi # end check java
23314     fi # end check boot jdk found
23315   fi
23316 
23317     done
23318   fi
23319 
23320   fi
23321 
23322 
23323     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23324     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23325       # Do we have a bin/java?
23326       if test ! -x "$BOOT_JDK/bin/java"; then
23327         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23328 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23329         BOOT_JDK_FOUND=no
23330       else
23331         # Do we have a bin/javac?
23332         if test ! -x "$BOOT_JDK/bin/javac"; then
23333           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23334 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23335           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23336 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23337           BOOT_JDK_FOUND=no
23338         else
23339           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23340           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23341             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23342 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23343             BOOT_JDK_FOUND=no
23344           else
23345             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23346             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23347 
23348             # Extra M4 quote needed to protect [] in grep expression.
23349             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23350             if test "x$FOUND_CORRECT_VERSION" = x; then
23351               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23352 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23353               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23354 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23355               BOOT_JDK_FOUND=no
23356             else
23357               # We're done! :-)
23358               BOOT_JDK_FOUND=yes
23359 
23360   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23361 
23362   # Input might be given as Windows format, start by converting to
23363   # unix format.
23364   path="$BOOT_JDK"
23365   new_path=`$CYGPATH -u "$path"`
23366 
23367   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23368   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23369   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23370   # "foo.exe" is OK but "foo" is an error.
23371   #
23372   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23373   # It is also a way to make sure we got the proper file name for the real test later on.
23374   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23375   if test "x$test_shortpath" = x; then
23376     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23377 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23378     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23379   fi
23380 
23381   # Call helper function which possibly converts this using DOS-style short mode.
23382   # If so, the updated path is stored in $new_path.
23383 
23384   input_path="$new_path"
23385   # Check if we need to convert this using DOS-style short mode. If the path
23386   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23387   # take no chances and rewrite it.
23388   # Note: m4 eats our [], so we need to use [ and ] instead.
23389   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23390   if test "x$has_forbidden_chars" != x; then
23391     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23392     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23393     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23394     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23395       # Going to short mode and back again did indeed matter. Since short mode is
23396       # case insensitive, let's make it lowercase to improve readability.
23397       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23398       # Now convert it back to Unix-stile (cygpath)
23399       input_path=`$CYGPATH -u "$shortmode_path"`
23400       new_path="$input_path"
23401     fi
23402   fi
23403 
23404   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23405   if test "x$test_cygdrive_prefix" = x; then
23406     # As a simple fix, exclude /usr/bin since it's not a real path.
23407     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23408       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23409       # a path prefixed by /cygdrive for fixpath to work.
23410       new_path="$CYGWIN_ROOT_PATH$input_path"
23411     fi
23412   fi
23413 
23414 
23415   if test "x$path" != "x$new_path"; then
23416     BOOT_JDK="$new_path"
23417     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23418 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23419   fi
23420 
23421   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23422 
23423   path="$BOOT_JDK"
23424   has_colon=`$ECHO $path | $GREP ^.:`
23425   new_path="$path"
23426   if test "x$has_colon" = x; then
23427     # Not in mixed or Windows style, start by that.
23428     new_path=`cmd //c echo $path`
23429   fi
23430 
23431 
23432   input_path="$new_path"
23433   # Check if we need to convert this using DOS-style short mode. If the path
23434   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23435   # take no chances and rewrite it.
23436   # Note: m4 eats our [], so we need to use [ and ] instead.
23437   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23438   if test "x$has_forbidden_chars" != x; then
23439     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23440     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23441   fi
23442 
23443 
23444   windows_path="$new_path"
23445   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23446     unix_path=`$CYGPATH -u "$windows_path"`
23447     new_path="$unix_path"
23448   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23449     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23450     new_path="$unix_path"
23451   fi
23452 
23453   if test "x$path" != "x$new_path"; then
23454     BOOT_JDK="$new_path"
23455     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23456 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23457   fi
23458 
23459   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23460   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23461 
23462   else
23463     # We're on a posix platform. Hooray! :)
23464     path="$BOOT_JDK"
23465     has_space=`$ECHO "$path" | $GREP " "`
23466     if test "x$has_space" != x; then
23467       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23468 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23469       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23470     fi
23471 
23472     # Use eval to expand a potential ~
23473     eval path="$path"
23474     if test ! -f "$path" && test ! -d "$path"; then
23475       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23476     fi
23477 
23478     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23479   fi
23480 
23481               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23482 $as_echo_n "checking for Boot JDK... " >&6; }
23483               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23484 $as_echo "$BOOT_JDK" >&6; }
23485               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23486 $as_echo_n "checking Boot JDK version... " >&6; }
23487               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23488               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23489 $as_echo "$BOOT_JDK_VERSION" >&6; }
23490             fi # end check jdk version
23491           fi # end check rt.jar
23492         fi # end check javac
23493       fi # end check java
23494     fi # end check boot jdk found
23495   fi
23496 
23497 
23498   if test "x$BOOT_JDK_FOUND" = xno; then
23499     # Now execute the test
23500 
23501   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23502   BOOT_JDK_SUFFIX=""
23503   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23504   if test "x$ALL_JDKS_FOUND" != x; then
23505     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23506 
23507   if test "x$BOOT_JDK_FOUND" = xno; then
23508     # Now execute the test
23509 
23510         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23511         if test -d "$BOOT_JDK"; then
23512           BOOT_JDK_FOUND=maybe
23513           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23514 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23515         fi
23516 
23517 
23518     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23519     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23520       # Do we have a bin/java?
23521       if test ! -x "$BOOT_JDK/bin/java"; then
23522         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23523 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23524         BOOT_JDK_FOUND=no
23525       else
23526         # Do we have a bin/javac?
23527         if test ! -x "$BOOT_JDK/bin/javac"; then
23528           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23529 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23530           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23531 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23532           BOOT_JDK_FOUND=no
23533         else
23534           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23535           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23536             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23537 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23538             BOOT_JDK_FOUND=no
23539           else
23540             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23541             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23542 
23543             # Extra M4 quote needed to protect [] in grep expression.
23544             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23545             if test "x$FOUND_CORRECT_VERSION" = x; then
23546               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23547 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23548               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23549 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23550               BOOT_JDK_FOUND=no
23551             else
23552               # We're done! :-)
23553               BOOT_JDK_FOUND=yes
23554 
23555   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23556 
23557   # Input might be given as Windows format, start by converting to
23558   # unix format.
23559   path="$BOOT_JDK"
23560   new_path=`$CYGPATH -u "$path"`
23561 
23562   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23563   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23564   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23565   # "foo.exe" is OK but "foo" is an error.
23566   #
23567   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23568   # It is also a way to make sure we got the proper file name for the real test later on.
23569   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23570   if test "x$test_shortpath" = x; then
23571     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23572 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23573     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23574   fi
23575 
23576   # Call helper function which possibly converts this using DOS-style short mode.
23577   # If so, the updated path is stored in $new_path.
23578 
23579   input_path="$new_path"
23580   # Check if we need to convert this using DOS-style short mode. If the path
23581   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23582   # take no chances and rewrite it.
23583   # Note: m4 eats our [], so we need to use [ and ] instead.
23584   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23585   if test "x$has_forbidden_chars" != x; then
23586     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23587     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23588     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23589     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23590       # Going to short mode and back again did indeed matter. Since short mode is
23591       # case insensitive, let's make it lowercase to improve readability.
23592       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23593       # Now convert it back to Unix-stile (cygpath)
23594       input_path=`$CYGPATH -u "$shortmode_path"`
23595       new_path="$input_path"
23596     fi
23597   fi
23598 
23599   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23600   if test "x$test_cygdrive_prefix" = x; then
23601     # As a simple fix, exclude /usr/bin since it's not a real path.
23602     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23603       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23604       # a path prefixed by /cygdrive for fixpath to work.
23605       new_path="$CYGWIN_ROOT_PATH$input_path"
23606     fi
23607   fi
23608 
23609 
23610   if test "x$path" != "x$new_path"; then
23611     BOOT_JDK="$new_path"
23612     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23613 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23614   fi
23615 
23616   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23617 
23618   path="$BOOT_JDK"
23619   has_colon=`$ECHO $path | $GREP ^.:`
23620   new_path="$path"
23621   if test "x$has_colon" = x; then
23622     # Not in mixed or Windows style, start by that.
23623     new_path=`cmd //c echo $path`
23624   fi
23625 
23626 
23627   input_path="$new_path"
23628   # Check if we need to convert this using DOS-style short mode. If the path
23629   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23630   # take no chances and rewrite it.
23631   # Note: m4 eats our [], so we need to use [ and ] instead.
23632   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23633   if test "x$has_forbidden_chars" != x; then
23634     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23635     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23636   fi
23637 
23638 
23639   windows_path="$new_path"
23640   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23641     unix_path=`$CYGPATH -u "$windows_path"`
23642     new_path="$unix_path"
23643   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23644     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23645     new_path="$unix_path"
23646   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23655   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23656 
23657   else
23658     # We're on a posix platform. Hooray! :)
23659     path="$BOOT_JDK"
23660     has_space=`$ECHO "$path" | $GREP " "`
23661     if test "x$has_space" != x; then
23662       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23663 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23664       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23665     fi
23666 
23667     # Use eval to expand a potential ~
23668     eval path="$path"
23669     if test ! -f "$path" && test ! -d "$path"; then
23670       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23671     fi
23672 
23673     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23674   fi
23675 
23676               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23677 $as_echo_n "checking for Boot JDK... " >&6; }
23678               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23679 $as_echo "$BOOT_JDK" >&6; }
23680               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23681 $as_echo_n "checking Boot JDK version... " >&6; }
23682               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23683               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23684 $as_echo "$BOOT_JDK_VERSION" >&6; }
23685             fi # end check jdk version
23686           fi # end check rt.jar
23687         fi # end check javac
23688       fi # end check java
23689     fi # end check boot jdk found
23690   fi
23691 
23692     done
23693   fi
23694 
23695 
23696     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23697     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23698       # Do we have a bin/java?
23699       if test ! -x "$BOOT_JDK/bin/java"; then
23700         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23701 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23702         BOOT_JDK_FOUND=no
23703       else
23704         # Do we have a bin/javac?
23705         if test ! -x "$BOOT_JDK/bin/javac"; then
23706           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23707 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23708           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23709 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23710           BOOT_JDK_FOUND=no
23711         else
23712           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23713           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23714             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23715 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23716             BOOT_JDK_FOUND=no
23717           else
23718             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23719             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23720 
23721             # Extra M4 quote needed to protect [] in grep expression.
23722             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23723             if test "x$FOUND_CORRECT_VERSION" = x; then
23724               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23725 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23726               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23727 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23728               BOOT_JDK_FOUND=no
23729             else
23730               # We're done! :-)
23731               BOOT_JDK_FOUND=yes
23732 
23733   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23734 
23735   # Input might be given as Windows format, start by converting to
23736   # unix format.
23737   path="$BOOT_JDK"
23738   new_path=`$CYGPATH -u "$path"`
23739 
23740   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23741   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23742   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23743   # "foo.exe" is OK but "foo" is an error.
23744   #
23745   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23746   # It is also a way to make sure we got the proper file name for the real test later on.
23747   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23748   if test "x$test_shortpath" = x; then
23749     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23750 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23751     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23752   fi
23753 
23754   # Call helper function which possibly converts this using DOS-style short mode.
23755   # If so, the updated path is stored in $new_path.
23756 
23757   input_path="$new_path"
23758   # Check if we need to convert this using DOS-style short mode. If the path
23759   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23760   # take no chances and rewrite it.
23761   # Note: m4 eats our [], so we need to use [ and ] instead.
23762   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23763   if test "x$has_forbidden_chars" != x; then
23764     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23765     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23766     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23767     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23768       # Going to short mode and back again did indeed matter. Since short mode is
23769       # case insensitive, let's make it lowercase to improve readability.
23770       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23771       # Now convert it back to Unix-stile (cygpath)
23772       input_path=`$CYGPATH -u "$shortmode_path"`
23773       new_path="$input_path"
23774     fi
23775   fi
23776 
23777   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23778   if test "x$test_cygdrive_prefix" = x; then
23779     # As a simple fix, exclude /usr/bin since it's not a real path.
23780     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23781       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23782       # a path prefixed by /cygdrive for fixpath to work.
23783       new_path="$CYGWIN_ROOT_PATH$input_path"
23784     fi
23785   fi
23786 
23787 
23788   if test "x$path" != "x$new_path"; then
23789     BOOT_JDK="$new_path"
23790     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23791 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23792   fi
23793 
23794   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23795 
23796   path="$BOOT_JDK"
23797   has_colon=`$ECHO $path | $GREP ^.:`
23798   new_path="$path"
23799   if test "x$has_colon" = x; then
23800     # Not in mixed or Windows style, start by that.
23801     new_path=`cmd //c echo $path`
23802   fi
23803 
23804 
23805   input_path="$new_path"
23806   # Check if we need to convert this using DOS-style short mode. If the path
23807   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23808   # take no chances and rewrite it.
23809   # Note: m4 eats our [], so we need to use [ and ] instead.
23810   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23811   if test "x$has_forbidden_chars" != x; then
23812     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23813     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23814   fi
23815 
23816 
23817   windows_path="$new_path"
23818   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23819     unix_path=`$CYGPATH -u "$windows_path"`
23820     new_path="$unix_path"
23821   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23822     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23823     new_path="$unix_path"
23824   fi
23825 
23826   if test "x$path" != "x$new_path"; then
23827     BOOT_JDK="$new_path"
23828     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23829 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23830   fi
23831 
23832   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23833   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23834 
23835   else
23836     # We're on a posix platform. Hooray! :)
23837     path="$BOOT_JDK"
23838     has_space=`$ECHO "$path" | $GREP " "`
23839     if test "x$has_space" != x; then
23840       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23841 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23842       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23843     fi
23844 
23845     # Use eval to expand a potential ~
23846     eval path="$path"
23847     if test ! -f "$path" && test ! -d "$path"; then
23848       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23849     fi
23850 
23851     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23852   fi
23853 
23854               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23855 $as_echo_n "checking for Boot JDK... " >&6; }
23856               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23857 $as_echo "$BOOT_JDK" >&6; }
23858               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23859 $as_echo_n "checking Boot JDK version... " >&6; }
23860               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23861               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23862 $as_echo "$BOOT_JDK_VERSION" >&6; }
23863             fi # end check jdk version
23864           fi # end check rt.jar
23865         fi # end check javac
23866       fi # end check java
23867     fi # end check boot jdk found
23868   fi
23869 
23870   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23871 
23872   if test "x$BOOT_JDK_FOUND" = xno; then
23873     # Now execute the test
23874 
23875   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23876   BOOT_JDK_SUFFIX="/Contents/Home"
23877   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23878   if test "x$ALL_JDKS_FOUND" != x; then
23879     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23880 
23881   if test "x$BOOT_JDK_FOUND" = xno; then
23882     # Now execute the test
23883 
23884         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23885         if test -d "$BOOT_JDK"; then
23886           BOOT_JDK_FOUND=maybe
23887           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23888 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23889         fi
23890 
23891 
23892     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23893     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23894       # Do we have a bin/java?
23895       if test ! -x "$BOOT_JDK/bin/java"; then
23896         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23897 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23898         BOOT_JDK_FOUND=no
23899       else
23900         # Do we have a bin/javac?
23901         if test ! -x "$BOOT_JDK/bin/javac"; then
23902           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23903 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23904           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23905 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23906           BOOT_JDK_FOUND=no
23907         else
23908           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23909           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23910             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23912             BOOT_JDK_FOUND=no
23913           else
23914             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23915             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23916 
23917             # Extra M4 quote needed to protect [] in grep expression.
23918             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23919             if test "x$FOUND_CORRECT_VERSION" = x; then
23920               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23921 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23922               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23923 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23924               BOOT_JDK_FOUND=no
23925             else
23926               # We're done! :-)
23927               BOOT_JDK_FOUND=yes
23928 
23929   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23930 
23931   # Input might be given as Windows format, start by converting to
23932   # unix format.
23933   path="$BOOT_JDK"
23934   new_path=`$CYGPATH -u "$path"`
23935 
23936   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23937   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23938   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23939   # "foo.exe" is OK but "foo" is an error.
23940   #
23941   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23942   # It is also a way to make sure we got the proper file name for the real test later on.
23943   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23944   if test "x$test_shortpath" = x; then
23945     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23946 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23947     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23948   fi
23949 
23950   # Call helper function which possibly converts this using DOS-style short mode.
23951   # If so, the updated path is stored in $new_path.
23952 
23953   input_path="$new_path"
23954   # Check if we need to convert this using DOS-style short mode. If the path
23955   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23956   # take no chances and rewrite it.
23957   # Note: m4 eats our [], so we need to use [ and ] instead.
23958   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23959   if test "x$has_forbidden_chars" != x; then
23960     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23961     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23962     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23963     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23964       # Going to short mode and back again did indeed matter. Since short mode is
23965       # case insensitive, let's make it lowercase to improve readability.
23966       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23967       # Now convert it back to Unix-stile (cygpath)
23968       input_path=`$CYGPATH -u "$shortmode_path"`
23969       new_path="$input_path"
23970     fi
23971   fi
23972 
23973   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23974   if test "x$test_cygdrive_prefix" = x; then
23975     # As a simple fix, exclude /usr/bin since it's not a real path.
23976     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23977       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23978       # a path prefixed by /cygdrive for fixpath to work.
23979       new_path="$CYGWIN_ROOT_PATH$input_path"
23980     fi
23981   fi
23982 
23983 
23984   if test "x$path" != "x$new_path"; then
23985     BOOT_JDK="$new_path"
23986     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23987 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23988   fi
23989 
23990   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23991 
23992   path="$BOOT_JDK"
23993   has_colon=`$ECHO $path | $GREP ^.:`
23994   new_path="$path"
23995   if test "x$has_colon" = x; then
23996     # Not in mixed or Windows style, start by that.
23997     new_path=`cmd //c echo $path`
23998   fi
23999 
24000 
24001   input_path="$new_path"
24002   # Check if we need to convert this using DOS-style short mode. If the path
24003   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24004   # take no chances and rewrite it.
24005   # Note: m4 eats our [], so we need to use [ and ] instead.
24006   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24007   if test "x$has_forbidden_chars" != x; then
24008     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24009     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24010   fi
24011 
24012 
24013   windows_path="$new_path"
24014   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24015     unix_path=`$CYGPATH -u "$windows_path"`
24016     new_path="$unix_path"
24017   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24018     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24019     new_path="$unix_path"
24020   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24029   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24030 
24031   else
24032     # We're on a posix platform. Hooray! :)
24033     path="$BOOT_JDK"
24034     has_space=`$ECHO "$path" | $GREP " "`
24035     if test "x$has_space" != x; then
24036       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24037 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24038       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24039     fi
24040 
24041     # Use eval to expand a potential ~
24042     eval path="$path"
24043     if test ! -f "$path" && test ! -d "$path"; then
24044       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24045     fi
24046 
24047     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24048   fi
24049 
24050               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24051 $as_echo_n "checking for Boot JDK... " >&6; }
24052               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24053 $as_echo "$BOOT_JDK" >&6; }
24054               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24055 $as_echo_n "checking Boot JDK version... " >&6; }
24056               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24057               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24058 $as_echo "$BOOT_JDK_VERSION" >&6; }
24059             fi # end check jdk version
24060           fi # end check rt.jar
24061         fi # end check javac
24062       fi # end check java
24063     fi # end check boot jdk found
24064   fi
24065 
24066     done
24067   fi
24068 
24069 
24070     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24071     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24072       # Do we have a bin/java?
24073       if test ! -x "$BOOT_JDK/bin/java"; then
24074         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24075 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24076         BOOT_JDK_FOUND=no
24077       else
24078         # Do we have a bin/javac?
24079         if test ! -x "$BOOT_JDK/bin/javac"; then
24080           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24082           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24083 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24084           BOOT_JDK_FOUND=no
24085         else
24086           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24087           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24088             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24089 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24090             BOOT_JDK_FOUND=no
24091           else
24092             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24093             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24094 
24095             # Extra M4 quote needed to protect [] in grep expression.
24096             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24097             if test "x$FOUND_CORRECT_VERSION" = x; then
24098               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24099 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24100               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24101 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24102               BOOT_JDK_FOUND=no
24103             else
24104               # We're done! :-)
24105               BOOT_JDK_FOUND=yes
24106 
24107   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24108 
24109   # Input might be given as Windows format, start by converting to
24110   # unix format.
24111   path="$BOOT_JDK"
24112   new_path=`$CYGPATH -u "$path"`
24113 
24114   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24115   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24116   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24117   # "foo.exe" is OK but "foo" is an error.
24118   #
24119   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24120   # It is also a way to make sure we got the proper file name for the real test later on.
24121   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24122   if test "x$test_shortpath" = x; then
24123     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24125     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24126   fi
24127 
24128   # Call helper function which possibly converts this using DOS-style short mode.
24129   # If so, the updated path is stored in $new_path.
24130 
24131   input_path="$new_path"
24132   # Check if we need to convert this using DOS-style short mode. If the path
24133   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24134   # take no chances and rewrite it.
24135   # Note: m4 eats our [], so we need to use [ and ] instead.
24136   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24137   if test "x$has_forbidden_chars" != x; then
24138     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24139     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24140     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24141     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24142       # Going to short mode and back again did indeed matter. Since short mode is
24143       # case insensitive, let's make it lowercase to improve readability.
24144       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24145       # Now convert it back to Unix-stile (cygpath)
24146       input_path=`$CYGPATH -u "$shortmode_path"`
24147       new_path="$input_path"
24148     fi
24149   fi
24150 
24151   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24152   if test "x$test_cygdrive_prefix" = x; then
24153     # As a simple fix, exclude /usr/bin since it's not a real path.
24154     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24155       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24156       # a path prefixed by /cygdrive for fixpath to work.
24157       new_path="$CYGWIN_ROOT_PATH$input_path"
24158     fi
24159   fi
24160 
24161 
24162   if test "x$path" != "x$new_path"; then
24163     BOOT_JDK="$new_path"
24164     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24165 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24166   fi
24167 
24168   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24169 
24170   path="$BOOT_JDK"
24171   has_colon=`$ECHO $path | $GREP ^.:`
24172   new_path="$path"
24173   if test "x$has_colon" = x; then
24174     # Not in mixed or Windows style, start by that.
24175     new_path=`cmd //c echo $path`
24176   fi
24177 
24178 
24179   input_path="$new_path"
24180   # Check if we need to convert this using DOS-style short mode. If the path
24181   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24182   # take no chances and rewrite it.
24183   # Note: m4 eats our [], so we need to use [ and ] instead.
24184   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24185   if test "x$has_forbidden_chars" != x; then
24186     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24187     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24188   fi
24189 
24190 
24191   windows_path="$new_path"
24192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24193     unix_path=`$CYGPATH -u "$windows_path"`
24194     new_path="$unix_path"
24195   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24196     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24197     new_path="$unix_path"
24198   fi
24199 
24200   if test "x$path" != "x$new_path"; then
24201     BOOT_JDK="$new_path"
24202     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24203 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24204   fi
24205 
24206   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24207   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24208 
24209   else
24210     # We're on a posix platform. Hooray! :)
24211     path="$BOOT_JDK"
24212     has_space=`$ECHO "$path" | $GREP " "`
24213     if test "x$has_space" != x; then
24214       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24215 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24216       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24217     fi
24218 
24219     # Use eval to expand a potential ~
24220     eval path="$path"
24221     if test ! -f "$path" && test ! -d "$path"; then
24222       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24223     fi
24224 
24225     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24226   fi
24227 
24228               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24229 $as_echo_n "checking for Boot JDK... " >&6; }
24230               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24231 $as_echo "$BOOT_JDK" >&6; }
24232               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24233 $as_echo_n "checking Boot JDK version... " >&6; }
24234               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24235               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24236 $as_echo "$BOOT_JDK_VERSION" >&6; }
24237             fi # end check jdk version
24238           fi # end check rt.jar
24239         fi # end check javac
24240       fi # end check java
24241     fi # end check boot jdk found
24242   fi
24243 
24244 
24245   if test "x$BOOT_JDK_FOUND" = xno; then
24246     # Now execute the test
24247 
24248   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24249   BOOT_JDK_SUFFIX="/Contents/Home"
24250   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24251   if test "x$ALL_JDKS_FOUND" != x; then
24252     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24253 
24254   if test "x$BOOT_JDK_FOUND" = xno; then
24255     # Now execute the test
24256 
24257         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24258         if test -d "$BOOT_JDK"; then
24259           BOOT_JDK_FOUND=maybe
24260           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24261 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24262         fi
24263 
24264 
24265     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24266     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24267       # Do we have a bin/java?
24268       if test ! -x "$BOOT_JDK/bin/java"; then
24269         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24271         BOOT_JDK_FOUND=no
24272       else
24273         # Do we have a bin/javac?
24274         if test ! -x "$BOOT_JDK/bin/javac"; then
24275           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24276 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24277           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24278 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24279           BOOT_JDK_FOUND=no
24280         else
24281           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24282           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24283             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24284 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24285             BOOT_JDK_FOUND=no
24286           else
24287             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24288             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24289 
24290             # Extra M4 quote needed to protect [] in grep expression.
24291             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24292             if test "x$FOUND_CORRECT_VERSION" = x; then
24293               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24295               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24296 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24297               BOOT_JDK_FOUND=no
24298             else
24299               # We're done! :-)
24300               BOOT_JDK_FOUND=yes
24301 
24302   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24303 
24304   # Input might be given as Windows format, start by converting to
24305   # unix format.
24306   path="$BOOT_JDK"
24307   new_path=`$CYGPATH -u "$path"`
24308 
24309   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24310   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24311   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24312   # "foo.exe" is OK but "foo" is an error.
24313   #
24314   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24315   # It is also a way to make sure we got the proper file name for the real test later on.
24316   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24317   if test "x$test_shortpath" = x; then
24318     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24319 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24320     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24321   fi
24322 
24323   # Call helper function which possibly converts this using DOS-style short mode.
24324   # If so, the updated path is stored in $new_path.
24325 
24326   input_path="$new_path"
24327   # Check if we need to convert this using DOS-style short mode. If the path
24328   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24329   # take no chances and rewrite it.
24330   # Note: m4 eats our [], so we need to use [ and ] instead.
24331   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24332   if test "x$has_forbidden_chars" != x; then
24333     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24334     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24335     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24336     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24337       # Going to short mode and back again did indeed matter. Since short mode is
24338       # case insensitive, let's make it lowercase to improve readability.
24339       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24340       # Now convert it back to Unix-stile (cygpath)
24341       input_path=`$CYGPATH -u "$shortmode_path"`
24342       new_path="$input_path"
24343     fi
24344   fi
24345 
24346   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24347   if test "x$test_cygdrive_prefix" = x; then
24348     # As a simple fix, exclude /usr/bin since it's not a real path.
24349     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24350       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24351       # a path prefixed by /cygdrive for fixpath to work.
24352       new_path="$CYGWIN_ROOT_PATH$input_path"
24353     fi
24354   fi
24355 
24356 
24357   if test "x$path" != "x$new_path"; then
24358     BOOT_JDK="$new_path"
24359     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24361   fi
24362 
24363   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24364 
24365   path="$BOOT_JDK"
24366   has_colon=`$ECHO $path | $GREP ^.:`
24367   new_path="$path"
24368   if test "x$has_colon" = x; then
24369     # Not in mixed or Windows style, start by that.
24370     new_path=`cmd //c echo $path`
24371   fi
24372 
24373 
24374   input_path="$new_path"
24375   # Check if we need to convert this using DOS-style short mode. If the path
24376   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24377   # take no chances and rewrite it.
24378   # Note: m4 eats our [], so we need to use [ and ] instead.
24379   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24380   if test "x$has_forbidden_chars" != x; then
24381     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24382     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24383   fi
24384 
24385 
24386   windows_path="$new_path"
24387   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24388     unix_path=`$CYGPATH -u "$windows_path"`
24389     new_path="$unix_path"
24390   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24391     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24392     new_path="$unix_path"
24393   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24402   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24403 
24404   else
24405     # We're on a posix platform. Hooray! :)
24406     path="$BOOT_JDK"
24407     has_space=`$ECHO "$path" | $GREP " "`
24408     if test "x$has_space" != x; then
24409       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24410 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24411       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24412     fi
24413 
24414     # Use eval to expand a potential ~
24415     eval path="$path"
24416     if test ! -f "$path" && test ! -d "$path"; then
24417       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24418     fi
24419 
24420     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24421   fi
24422 
24423               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24424 $as_echo_n "checking for Boot JDK... " >&6; }
24425               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24426 $as_echo "$BOOT_JDK" >&6; }
24427               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24428 $as_echo_n "checking Boot JDK version... " >&6; }
24429               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24430               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24431 $as_echo "$BOOT_JDK_VERSION" >&6; }
24432             fi # end check jdk version
24433           fi # end check rt.jar
24434         fi # end check javac
24435       fi # end check java
24436     fi # end check boot jdk found
24437   fi
24438 
24439     done
24440   fi
24441 
24442 
24443     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24444     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24445       # Do we have a bin/java?
24446       if test ! -x "$BOOT_JDK/bin/java"; then
24447         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24449         BOOT_JDK_FOUND=no
24450       else
24451         # Do we have a bin/javac?
24452         if test ! -x "$BOOT_JDK/bin/javac"; then
24453           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24454 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24455           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24456 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24457           BOOT_JDK_FOUND=no
24458         else
24459           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24460           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24461             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24462 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24463             BOOT_JDK_FOUND=no
24464           else
24465             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24466             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24467 
24468             # Extra M4 quote needed to protect [] in grep expression.
24469             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24470             if test "x$FOUND_CORRECT_VERSION" = x; then
24471               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24472 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24473               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24474 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24475               BOOT_JDK_FOUND=no
24476             else
24477               # We're done! :-)
24478               BOOT_JDK_FOUND=yes
24479 
24480   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24481 
24482   # Input might be given as Windows format, start by converting to
24483   # unix format.
24484   path="$BOOT_JDK"
24485   new_path=`$CYGPATH -u "$path"`
24486 
24487   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24488   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24489   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24490   # "foo.exe" is OK but "foo" is an error.
24491   #
24492   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24493   # It is also a way to make sure we got the proper file name for the real test later on.
24494   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24495   if test "x$test_shortpath" = x; then
24496     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24497 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24498     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24499   fi
24500 
24501   # Call helper function which possibly converts this using DOS-style short mode.
24502   # If so, the updated path is stored in $new_path.
24503 
24504   input_path="$new_path"
24505   # Check if we need to convert this using DOS-style short mode. If the path
24506   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24507   # take no chances and rewrite it.
24508   # Note: m4 eats our [], so we need to use [ and ] instead.
24509   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24510   if test "x$has_forbidden_chars" != x; then
24511     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24512     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24513     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24514     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24515       # Going to short mode and back again did indeed matter. Since short mode is
24516       # case insensitive, let's make it lowercase to improve readability.
24517       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24518       # Now convert it back to Unix-stile (cygpath)
24519       input_path=`$CYGPATH -u "$shortmode_path"`
24520       new_path="$input_path"
24521     fi
24522   fi
24523 
24524   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24525   if test "x$test_cygdrive_prefix" = x; then
24526     # As a simple fix, exclude /usr/bin since it's not a real path.
24527     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24528       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24529       # a path prefixed by /cygdrive for fixpath to work.
24530       new_path="$CYGWIN_ROOT_PATH$input_path"
24531     fi
24532   fi
24533 
24534 
24535   if test "x$path" != "x$new_path"; then
24536     BOOT_JDK="$new_path"
24537     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24538 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24539   fi
24540 
24541   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24542 
24543   path="$BOOT_JDK"
24544   has_colon=`$ECHO $path | $GREP ^.:`
24545   new_path="$path"
24546   if test "x$has_colon" = x; then
24547     # Not in mixed or Windows style, start by that.
24548     new_path=`cmd //c echo $path`
24549   fi
24550 
24551 
24552   input_path="$new_path"
24553   # Check if we need to convert this using DOS-style short mode. If the path
24554   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24555   # take no chances and rewrite it.
24556   # Note: m4 eats our [], so we need to use [ and ] instead.
24557   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24558   if test "x$has_forbidden_chars" != x; then
24559     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24560     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24561   fi
24562 
24563 
24564   windows_path="$new_path"
24565   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24566     unix_path=`$CYGPATH -u "$windows_path"`
24567     new_path="$unix_path"
24568   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24569     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24570     new_path="$unix_path"
24571   fi
24572 
24573   if test "x$path" != "x$new_path"; then
24574     BOOT_JDK="$new_path"
24575     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24576 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24577   fi
24578 
24579   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24580   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24581 
24582   else
24583     # We're on a posix platform. Hooray! :)
24584     path="$BOOT_JDK"
24585     has_space=`$ECHO "$path" | $GREP " "`
24586     if test "x$has_space" != x; then
24587       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24588 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24589       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24590     fi
24591 
24592     # Use eval to expand a potential ~
24593     eval path="$path"
24594     if test ! -f "$path" && test ! -d "$path"; then
24595       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24596     fi
24597 
24598     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24599   fi
24600 
24601               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24602 $as_echo_n "checking for Boot JDK... " >&6; }
24603               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24604 $as_echo "$BOOT_JDK" >&6; }
24605               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24606 $as_echo_n "checking Boot JDK version... " >&6; }
24607               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24608               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24609 $as_echo "$BOOT_JDK_VERSION" >&6; }
24610             fi # end check jdk version
24611           fi # end check rt.jar
24612         fi # end check javac
24613       fi # end check java
24614     fi # end check boot jdk found
24615   fi
24616 
24617   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24618 
24619   if test "x$BOOT_JDK_FOUND" = xno; then
24620     # Now execute the test
24621 
24622   BOOT_JDK_PREFIX="/usr/lib/jvm"
24623   BOOT_JDK_SUFFIX=""
24624   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24625   if test "x$ALL_JDKS_FOUND" != x; then
24626     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24627 
24628   if test "x$BOOT_JDK_FOUND" = xno; then
24629     # Now execute the test
24630 
24631         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24632         if test -d "$BOOT_JDK"; then
24633           BOOT_JDK_FOUND=maybe
24634           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24635 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24636         fi
24637 
24638 
24639     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24640     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24641       # Do we have a bin/java?
24642       if test ! -x "$BOOT_JDK/bin/java"; then
24643         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24645         BOOT_JDK_FOUND=no
24646       else
24647         # Do we have a bin/javac?
24648         if test ! -x "$BOOT_JDK/bin/javac"; then
24649           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24651           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24652 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24653           BOOT_JDK_FOUND=no
24654         else
24655           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24656           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24657             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24658 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24659             BOOT_JDK_FOUND=no
24660           else
24661             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24662             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24663 
24664             # Extra M4 quote needed to protect [] in grep expression.
24665             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24666             if test "x$FOUND_CORRECT_VERSION" = x; then
24667               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24668 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24669               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24670 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24671               BOOT_JDK_FOUND=no
24672             else
24673               # We're done! :-)
24674               BOOT_JDK_FOUND=yes
24675 
24676   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24677 
24678   # Input might be given as Windows format, start by converting to
24679   # unix format.
24680   path="$BOOT_JDK"
24681   new_path=`$CYGPATH -u "$path"`
24682 
24683   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24684   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24685   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24686   # "foo.exe" is OK but "foo" is an error.
24687   #
24688   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24689   # It is also a way to make sure we got the proper file name for the real test later on.
24690   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24691   if test "x$test_shortpath" = x; then
24692     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24694     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24695   fi
24696 
24697   # Call helper function which possibly converts this using DOS-style short mode.
24698   # If so, the updated path is stored in $new_path.
24699 
24700   input_path="$new_path"
24701   # Check if we need to convert this using DOS-style short mode. If the path
24702   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24703   # take no chances and rewrite it.
24704   # Note: m4 eats our [], so we need to use [ and ] instead.
24705   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24706   if test "x$has_forbidden_chars" != x; then
24707     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24708     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24709     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24710     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24711       # Going to short mode and back again did indeed matter. Since short mode is
24712       # case insensitive, let's make it lowercase to improve readability.
24713       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24714       # Now convert it back to Unix-stile (cygpath)
24715       input_path=`$CYGPATH -u "$shortmode_path"`
24716       new_path="$input_path"
24717     fi
24718   fi
24719 
24720   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24721   if test "x$test_cygdrive_prefix" = x; then
24722     # As a simple fix, exclude /usr/bin since it's not a real path.
24723     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24724       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24725       # a path prefixed by /cygdrive for fixpath to work.
24726       new_path="$CYGWIN_ROOT_PATH$input_path"
24727     fi
24728   fi
24729 
24730 
24731   if test "x$path" != "x$new_path"; then
24732     BOOT_JDK="$new_path"
24733     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_pa