1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 MSVCR_DLL
 644 LIBCXX
 645 LLVM_LIBS
 646 LLVM_LDFLAGS
 647 LLVM_CFLAGS
 648 LLVM_CONFIG
 649 LIBFFI_LIBS
 650 LIBFFI_CFLAGS
 651 STATIC_CXX_SETTING
 652 LIBDL
 653 LIBM
 654 LIBZIP_CAN_USE_MMAP
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBPNG
 657 PNG_LIBS
 658 PNG_CFLAGS
 659 USE_EXTERNAL_LIBGIF
 660 USE_EXTERNAL_LIBJPEG
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 OPENWIN_HOME
 668 X_EXTRA_LIBS
 669 X_LIBS
 670 X_PRE_LIBS
 671 X_CFLAGS
 672 XMKMF
 673 FIXPATH
 674 ZIP_DEBUGINFO_FILES
 675 ENABLE_DEBUG_SYMBOLS
 676 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 677 ZERO_ARCHFLAG
 678 LDFLAGS_CXX_JDK
 679 LDFLAGS_JDKEXE_SUFFIX
 680 LDFLAGS_JDKLIB_SUFFIX
 681 LDFLAGS_JDKEXE
 682 LDFLAGS_JDKLIB
 683 CXXFLAGS_JDKEXE
 684 CXXFLAGS_JDKLIB
 685 CFLAGS_JDKEXE
 686 CFLAGS_JDKLIB
 687 MACOSX_VERSION_MIN
 688 LEGACY_EXTRA_LDFLAGS
 689 LEGACY_EXTRA_CXXFLAGS
 690 LEGACY_EXTRA_CFLAGS
 691 CXX_O_FLAG_NONE
 692 CXX_O_FLAG_NORM
 693 CXX_O_FLAG_HI
 694 CXX_O_FLAG_HIGHEST
 695 C_O_FLAG_NONE
 696 C_O_FLAG_NORM
 697 C_O_FLAG_HI
 698 C_O_FLAG_HIGHEST
 699 CXXFLAGS_DEBUG_SYMBOLS
 700 CFLAGS_DEBUG_SYMBOLS
 701 CXX_FLAG_DEPS
 702 C_FLAG_DEPS
 703 SET_SHARED_LIBRARY_MAPFILE
 704 SET_SHARED_LIBRARY_NAME
 705 SET_SHARED_LIBRARY_ORIGIN
 706 SET_EXECUTABLE_ORIGIN
 707 SHARED_LIBRARY_FLAGS
 708 CXX_FLAG_REORDER
 709 C_FLAG_REORDER
 710 RC_FLAGS
 711 AR_OUT_OPTION
 712 LD_OUT_OPTION
 713 EXE_OUT_OPTION
 714 CC_OUT_OPTION
 715 POST_MCS_CMD
 716 POST_STRIP_CMD
 717 ARFLAGS
 718 COMPILER_TARGET_BITS_FLAG
 719 JT_HOME
 720 JTREGEXE
 721 USING_BROKEN_SUSE_LD
 722 PACKAGE_PATH
 723 LDEXECXX
 724 LDEXE
 725 USE_CLANG
 726 HOTSPOT_LD
 727 HOTSPOT_CXX
 728 HOTSPOT_RC
 729 HOTSPOT_MT
 730 BUILD_LD
 731 BUILD_CXX
 732 BUILD_CC
 733 ac_ct_OBJDUMP
 734 OBJDUMP
 735 ac_ct_OBJCOPY
 736 OBJCOPY
 737 ac_ct_NM
 738 ac_ct_STRIP
 739 MCS
 740 GNM
 741 NM
 742 STRIP
 743 DUMPBIN
 744 RC
 745 MT
 746 LIPO
 747 ac_ct_OBJC
 748 OBJCFLAGS
 749 OBJC
 750 ac_ct_AR
 751 AR
 752 AS
 753 LDCXX
 754 LD
 755 CXXCPP
 756 CPP
 757 ac_ct_CXX
 758 CXXFLAGS
 759 CXX
 760 ac_ct_PROPER_COMPILER_CXX
 761 PROPER_COMPILER_CXX
 762 TOOLS_DIR_CXX
 763 POTENTIAL_CXX
 764 OBJEXT
 765 EXEEXT
 766 ac_ct_CC
 767 CPPFLAGS
 768 LDFLAGS
 769 CFLAGS
 770 CC
 771 ac_ct_PROPER_COMPILER_CC
 772 PROPER_COMPILER_CC
 773 TOOLS_DIR_CC
 774 POTENTIAL_CC
 775 VS_PATH
 776 VS_LIB
 777 VS_INCLUDE
 778 CYGWIN_LINK
 779 EXE_SUFFIX
 780 OBJ_SUFFIX
 781 STATIC_LIBRARY
 782 SHARED_LIBRARY
 783 STATIC_LIBRARY_SUFFIX
 784 SHARED_LIBRARY_SUFFIX
 785 LIBRARY_PREFIX
 786 TOOLCHAIN_TYPE
 787 BUILD_HOTSPOT
 788 HOTSPOT_DIST
 789 BUILD_OUTPUT
 790 OVERRIDE_SRC_ROOT
 791 ADD_SRC_ROOT
 792 JDK_TOPDIR
 793 NASHORN_TOPDIR
 794 HOTSPOT_TOPDIR
 795 JAXWS_TOPDIR
 796 JAXP_TOPDIR
 797 CORBA_TOPDIR
 798 LANGTOOLS_TOPDIR
 799 JAVA_FLAGS_SMALL
 800 JAVA_FLAGS_BIG
 801 JAVA_FLAGS
 802 JAVAC_FLAGS
 803 BOOT_JDK_SOURCETARGET
 804 JARSIGNER
 805 NATIVE2ASCII
 806 JAR
 807 JAVAH
 808 JAVAC
 809 JAVA
 810 BOOT_JDK
 811 BOOT_TOOLSJAR
 812 BOOT_RTJAR
 813 JAVA_CHECK
 814 JAVAC_CHECK
 815 COOKED_BUILD_NUMBER
 816 JDK_VERSION
 817 COPYRIGHT_YEAR
 818 MACOSX_BUNDLE_ID_BASE
 819 MACOSX_BUNDLE_NAME_BASE
 820 COMPANY_NAME
 821 JDK_RC_PLATFORM_NAME
 822 PRODUCT_SUFFIX
 823 PRODUCT_NAME
 824 LAUNCHER_NAME
 825 MILESTONE
 826 JDK_BUILD_NUMBER
 827 JDK_UPDATE_VERSION
 828 JDK_MICRO_VERSION
 829 JDK_MINOR_VERSION
 830 JDK_MAJOR_VERSION
 831 USER_RELEASE_SUFFIX
 832 COMPRESS_JARS
 833 RMICONNECTOR_IIOP
 834 UNLIMITED_CRYPTO
 835 CACERTS_FILE
 836 TEST_IN_BUILD
 837 BUILD_HEADLESS
 838 SUPPORT_HEADFUL
 839 SUPPORT_HEADLESS
 840 BDEPS_FTP
 841 BDEPS_UNZIP
 842 OS_VERSION_MICRO
 843 OS_VERSION_MINOR
 844 OS_VERSION_MAJOR
 845 PKG_CONFIG
 846 CODESIGN
 847 XATTR
 848 DSYMUTIL
 849 IS_GNU_TIME
 850 TIME
 851 STAT
 852 HG
 853 READELF
 854 OTOOL
 855 LDD
 856 ZIP
 857 UNZIP
 858 FIND_DELETE
 859 MAKE
 860 CHECK_TOOLSDIR_MAKE
 861 CHECK_TOOLSDIR_GMAKE
 862 CHECK_MAKE
 863 CHECK_GMAKE
 864 PKGHANDLER
 865 OUTPUT_ROOT
 866 CONF_NAME
 867 SPEC
 868 BUILD_VARIANT_RELEASE
 869 DEBUG_CLASSFILES
 870 FASTDEBUG
 871 VARIANT
 872 DEBUG_LEVEL
 873 MACOSX_UNIVERSAL
 874 INCLUDE_SA
 875 JVM_VARIANT_CORE
 876 JVM_VARIANT_ZEROSHARK
 877 JVM_VARIANT_ZERO
 878 JVM_VARIANT_KERNEL
 879 JVM_VARIANT_MINIMAL1
 880 JVM_VARIANT_CLIENT
 881 JVM_VARIANT_SERVER
 882 JVM_VARIANTS
 883 JVM_INTERPRETER
 884 JDK_VARIANT
 885 SET_OPENJDK
 886 BUILD_LOG_WRAPPER
 887 BUILD_LOG_PREVIOUS
 888 BUILD_LOG
 889 SYS_ROOT
 890 TOPDIR
 891 PATH_SEP
 892 ZERO_ARCHDEF
 893 DEFINE_CROSS_COMPILE_ARCH
 894 LP64
 895 OPENJDK_TARGET_OS_EXPORT_DIR
 896 OPENJDK_TARGET_OS_API_DIR
 897 OPENJDK_TARGET_CPU_JLI_CFLAGS
 898 OPENJDK_TARGET_CPU_OSARCH
 899 OPENJDK_TARGET_CPU_ISADIR
 900 OPENJDK_TARGET_CPU_LIBDIR
 901 OPENJDK_TARGET_CPU_LEGACY_LIB
 902 OPENJDK_TARGET_CPU_LEGACY
 903 REQUIRED_OS_VERSION
 904 REQUIRED_OS_NAME
 905 COMPILE_TYPE
 906 OPENJDK_TARGET_CPU_ENDIAN
 907 OPENJDK_TARGET_CPU_BITS
 908 OPENJDK_TARGET_CPU_ARCH
 909 OPENJDK_TARGET_CPU
 910 OPENJDK_TARGET_OS_API
 911 OPENJDK_TARGET_OS
 912 OPENJDK_BUILD_CPU_ENDIAN
 913 OPENJDK_BUILD_CPU_BITS
 914 OPENJDK_BUILD_CPU_ARCH
 915 OPENJDK_BUILD_CPU
 916 OPENJDK_BUILD_OS_API
 917 OPENJDK_BUILD_OS
 918 OPENJDK_BUILD_AUTOCONF_NAME
 919 OPENJDK_TARGET_AUTOCONF_NAME
 920 target_os
 921 target_vendor
 922 target_cpu
 923 target
 924 host_os
 925 host_vendor
 926 host_cpu
 927 host
 928 build_os
 929 build_vendor
 930 build_cpu
 931 build
 932 SETFILE
 933 DF
 934 READLINK
 935 CYGPATH
 936 SED
 937 FGREP
 938 EGREP
 939 GREP
 940 AWK
 941 XARGS
 942 WHICH
 943 WC
 944 UNIQ
 945 UNAME
 946 TR
 947 TOUCH
 948 TEE
 949 TAR
 950 TAIL
 951 SORT
 952 SH
 953 RM
 954 PRINTF
 955 NAWK
 956 MV
 957 MKTEMP
 958 MKDIR
 959 LS
 960 LN
 961 HEAD
 962 FIND
 963 FILE
 964 EXPR
 965 ECHO
 966 DIRNAME
 967 DIFF
 968 DATE
 969 CUT
 970 CPIO
 971 CP
 972 COMM
 973 CMP
 974 CHMOD
 975 CAT
 976 BASH
 977 BASENAME
 978 DATE_WHEN_CONFIGURED
 979 CONFIGURE_COMMAND_LINE
 980 target_alias
 981 host_alias
 982 build_alias
 983 LIBS
 984 ECHO_T
 985 ECHO_N
 986 ECHO_C
 987 DEFS
 988 mandir
 989 localedir
 990 libdir
 991 psdir
 992 pdfdir
 993 dvidir
 994 htmldir
 995 infodir
 996 docdir
 997 oldincludedir
 998 includedir
 999 localstatedir
1000 sharedstatedir
1001 sysconfdir
1002 datadir
1003 datarootdir
1004 libexecdir
1005 sbindir
1006 bindir
1007 program_transform_name
1008 prefix
1009 exec_prefix
1010 PACKAGE_URL
1011 PACKAGE_BUGREPORT
1012 PACKAGE_STRING
1013 PACKAGE_VERSION
1014 PACKAGE_TARNAME
1015 PACKAGE_NAME
1016 PATH_SEPARATOR
1017 SHELL'
1018 ac_subst_files=''
1019 ac_user_opts='
1020 enable_option_checking
1021 with_target_bits
1022 with_sys_root
1023 with_tools_dir
1024 with_devkit
1025 enable_openjdk_only
1026 with_custom_make_dir
1027 with_jdk_variant
1028 with_jvm_interpreter
1029 with_jvm_variants
1030 enable_debug
1031 with_debug_level
1032 with_conf_name
1033 with_builddeps_conf
1034 with_builddeps_server
1035 with_builddeps_dir
1036 with_builddeps_group
1037 enable_headful
1038 enable_hotspot_test_in_build
1039 with_cacerts_file
1040 enable_unlimited_crypto
1041 enable_rmiconnector_iiop
1042 with_milestone
1043 with_update_version
1044 with_user_release_suffix
1045 with_build_number
1046 with_boot_jdk
1047 with_boot_jdk_jvmargs
1048 with_add_source_root
1049 with_override_source_root
1050 with_adds_and_overrides
1051 with_override_langtools
1052 with_override_corba
1053 with_override_jaxp
1054 with_override_jaxws
1055 with_override_hotspot
1056 with_override_nashorn
1057 with_override_jdk
1058 with_import_hotspot
1059 with_toolchain_type
1060 with_jtreg
1061 with_extra_cflags
1062 with_extra_cxxflags
1063 with_extra_ldflags
1064 enable_debug_symbols
1065 enable_zip_debug_info
1066 enable_macosx_runtime_support
1067 with_x
1068 with_cups
1069 with_cups_include
1070 with_freetype
1071 with_freetype_include
1072 with_freetype_lib
1073 enable_freetype_bundling
1074 with_alsa
1075 with_alsa_include
1076 with_alsa_lib
1077 with_giflib
1078 with_libpng
1079 with_zlib
1080 with_stdc__lib
1081 with_msvcr_dll
1082 with_dxsdk
1083 with_dxsdk_lib
1084 with_dxsdk_include
1085 with_num_cores
1086 with_memory_size
1087 with_jobs
1088 with_sjavac_server_java
1089 enable_sjavac
1090 enable_precompiled_headers
1091 enable_ccache
1092 with_ccache_dir
1093 '
1094       ac_precious_vars='build_alias
1095 host_alias
1096 target_alias
1097 BASENAME
1098 BASH
1099 CAT
1100 CHMOD
1101 CMP
1102 COMM
1103 CP
1104 CPIO
1105 CUT
1106 DATE
1107 DIFF
1108 DIRNAME
1109 ECHO
1110 EXPR
1111 FILE
1112 FIND
1113 HEAD
1114 LN
1115 LS
1116 MKDIR
1117 MKTEMP
1118 MV
1119 NAWK
1120 PRINTF
1121 RM
1122 SH
1123 SORT
1124 TAIL
1125 TAR
1126 TEE
1127 TOUCH
1128 TR
1129 UNAME
1130 UNIQ
1131 WC
1132 WHICH
1133 XARGS
1134 AWK
1135 GREP
1136 EGREP
1137 FGREP
1138 SED
1139 CYGPATH
1140 READLINK
1141 DF
1142 SETFILE
1143 UNZIP
1144 ZIP
1145 LDD
1146 OTOOL
1147 READELF
1148 HG
1149 STAT
1150 TIME
1151 DSYMUTIL
1152 XATTR
1153 CODESIGN
1154 PKG_CONFIG
1155 JAVA
1156 JAVAC
1157 JAVAH
1158 JAR
1159 NATIVE2ASCII
1160 JARSIGNER
1161 CC
1162 CFLAGS
1163 LDFLAGS
1164 LIBS
1165 CPPFLAGS
1166 CXX
1167 CXXFLAGS
1168 CCC
1169 CPP
1170 CXXCPP
1171 AS
1172 AR
1173 OBJC
1174 OBJCFLAGS
1175 LIPO
1176 STRIP
1177 NM
1178 GNM
1179 MCS
1180 OBJCOPY
1181 OBJDUMP
1182 BUILD_CC
1183 BUILD_CXX
1184 BUILD_LD
1185 JTREGEXE
1186 XMKMF
1187 FREETYPE_CFLAGS
1188 FREETYPE_LIBS
1189 ALSA_CFLAGS
1190 ALSA_LIBS
1191 PNG_CFLAGS
1192 PNG_LIBS
1193 LIBFFI_CFLAGS
1194 LIBFFI_LIBS
1195 CCACHE'
1196 
1197 
1198 # Initialize some variables set by options.
1199 ac_init_help=
1200 ac_init_version=false
1201 ac_unrecognized_opts=
1202 ac_unrecognized_sep=
1203 # The variables have the same names as the options, with
1204 # dashes changed to underlines.
1205 cache_file=/dev/null
1206 exec_prefix=NONE
1207 no_create=
1208 no_recursion=
1209 prefix=NONE
1210 program_prefix=NONE
1211 program_suffix=NONE
1212 program_transform_name=s,x,x,
1213 silent=
1214 site=
1215 srcdir=
1216 verbose=
1217 x_includes=NONE
1218 x_libraries=NONE
1219 
1220 # Installation directory options.
1221 # These are left unexpanded so users can "make install exec_prefix=/foo"
1222 # and all the variables that are supposed to be based on exec_prefix
1223 # by default will actually change.
1224 # Use braces instead of parens because sh, perl, etc. also accept them.
1225 # (The list follows the same order as the GNU Coding Standards.)
1226 bindir='${exec_prefix}/bin'
1227 sbindir='${exec_prefix}/sbin'
1228 libexecdir='${exec_prefix}/libexec'
1229 datarootdir='${prefix}/share'
1230 datadir='${datarootdir}'
1231 sysconfdir='${prefix}/etc'
1232 sharedstatedir='${prefix}/com'
1233 localstatedir='${prefix}/var'
1234 includedir='${prefix}/include'
1235 oldincludedir='/usr/include'
1236 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237 infodir='${datarootdir}/info'
1238 htmldir='${docdir}'
1239 dvidir='${docdir}'
1240 pdfdir='${docdir}'
1241 psdir='${docdir}'
1242 libdir='${exec_prefix}/lib'
1243 localedir='${datarootdir}/locale'
1244 mandir='${datarootdir}/man'
1245 
1246 ac_prev=
1247 ac_dashdash=
1248 for ac_option
1249 do
1250   # If the previous option needs an argument, assign it.
1251   if test -n "$ac_prev"; then
1252     eval $ac_prev=\$ac_option
1253     ac_prev=
1254     continue
1255   fi
1256 
1257   case $ac_option in
1258   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1259   *=)   ac_optarg= ;;
1260   *)    ac_optarg=yes ;;
1261   esac
1262 
1263   # Accept the important Cygnus configure options, so we can diagnose typos.
1264 
1265   case $ac_dashdash$ac_option in
1266   --)
1267     ac_dashdash=yes ;;
1268 
1269   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270     ac_prev=bindir ;;
1271   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272     bindir=$ac_optarg ;;
1273 
1274   -build | --build | --buil | --bui | --bu)
1275     ac_prev=build_alias ;;
1276   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277     build_alias=$ac_optarg ;;
1278 
1279   -cache-file | --cache-file | --cache-fil | --cache-fi \
1280   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281     ac_prev=cache_file ;;
1282   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284     cache_file=$ac_optarg ;;
1285 
1286   --config-cache | -C)
1287     cache_file=config.cache ;;
1288 
1289   -datadir | --datadir | --datadi | --datad)
1290     ac_prev=datadir ;;
1291   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292     datadir=$ac_optarg ;;
1293 
1294   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295   | --dataroo | --dataro | --datar)
1296     ac_prev=datarootdir ;;
1297   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299     datarootdir=$ac_optarg ;;
1300 
1301   -disable-* | --disable-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid feature name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "enable_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval enable_$ac_useropt=no ;;
1316 
1317   -docdir | --docdir | --docdi | --doc | --do)
1318     ac_prev=docdir ;;
1319   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320     docdir=$ac_optarg ;;
1321 
1322   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323     ac_prev=dvidir ;;
1324   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325     dvidir=$ac_optarg ;;
1326 
1327   -enable-* | --enable-*)
1328     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329     # Reject names that are not valid shell variable names.
1330     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331       as_fn_error $? "invalid feature name: $ac_useropt"
1332     ac_useropt_orig=$ac_useropt
1333     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334     case $ac_user_opts in
1335       *"
1336 "enable_$ac_useropt"
1337 "*) ;;
1338       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339          ac_unrecognized_sep=', ';;
1340     esac
1341     eval enable_$ac_useropt=\$ac_optarg ;;
1342 
1343   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345   | --exec | --exe | --ex)
1346     ac_prev=exec_prefix ;;
1347   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349   | --exec=* | --exe=* | --ex=*)
1350     exec_prefix=$ac_optarg ;;
1351 
1352   -gas | --gas | --ga | --g)
1353     # Obsolete; use --with-gas.
1354     with_gas=yes ;;
1355 
1356   -help | --help | --hel | --he | -h)
1357     ac_init_help=long ;;
1358   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359     ac_init_help=recursive ;;
1360   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361     ac_init_help=short ;;
1362 
1363   -host | --host | --hos | --ho)
1364     ac_prev=host_alias ;;
1365   -host=* | --host=* | --hos=* | --ho=*)
1366     host_alias=$ac_optarg ;;
1367 
1368   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369     ac_prev=htmldir ;;
1370   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371   | --ht=*)
1372     htmldir=$ac_optarg ;;
1373 
1374   -includedir | --includedir | --includedi | --included | --include \
1375   | --includ | --inclu | --incl | --inc)
1376     ac_prev=includedir ;;
1377   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378   | --includ=* | --inclu=* | --incl=* | --inc=*)
1379     includedir=$ac_optarg ;;
1380 
1381   -infodir | --infodir | --infodi | --infod | --info | --inf)
1382     ac_prev=infodir ;;
1383   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384     infodir=$ac_optarg ;;
1385 
1386   -libdir | --libdir | --libdi | --libd)
1387     ac_prev=libdir ;;
1388   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389     libdir=$ac_optarg ;;
1390 
1391   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392   | --libexe | --libex | --libe)
1393     ac_prev=libexecdir ;;
1394   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395   | --libexe=* | --libex=* | --libe=*)
1396     libexecdir=$ac_optarg ;;
1397 
1398   -localedir | --localedir | --localedi | --localed | --locale)
1399     ac_prev=localedir ;;
1400   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401     localedir=$ac_optarg ;;
1402 
1403   -localstatedir | --localstatedir | --localstatedi | --localstated \
1404   | --localstate | --localstat | --localsta | --localst | --locals)
1405     ac_prev=localstatedir ;;
1406   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408     localstatedir=$ac_optarg ;;
1409 
1410   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411     ac_prev=mandir ;;
1412   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413     mandir=$ac_optarg ;;
1414 
1415   -nfp | --nfp | --nf)
1416     # Obsolete; use --without-fp.
1417     with_fp=no ;;
1418 
1419   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420   | --no-cr | --no-c | -n)
1421     no_create=yes ;;
1422 
1423   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1425     no_recursion=yes ;;
1426 
1427   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429   | --oldin | --oldi | --old | --ol | --o)
1430     ac_prev=oldincludedir ;;
1431   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434     oldincludedir=$ac_optarg ;;
1435 
1436   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437     ac_prev=prefix ;;
1438   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439     prefix=$ac_optarg ;;
1440 
1441   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442   | --program-pre | --program-pr | --program-p)
1443     ac_prev=program_prefix ;;
1444   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446     program_prefix=$ac_optarg ;;
1447 
1448   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449   | --program-suf | --program-su | --program-s)
1450     ac_prev=program_suffix ;;
1451   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453     program_suffix=$ac_optarg ;;
1454 
1455   -program-transform-name | --program-transform-name \
1456   | --program-transform-nam | --program-transform-na \
1457   | --program-transform-n | --program-transform- \
1458   | --program-transform | --program-transfor \
1459   | --program-transfo | --program-transf \
1460   | --program-trans | --program-tran \
1461   | --progr-tra | --program-tr | --program-t)
1462     ac_prev=program_transform_name ;;
1463   -program-transform-name=* | --program-transform-name=* \
1464   | --program-transform-nam=* | --program-transform-na=* \
1465   | --program-transform-n=* | --program-transform-=* \
1466   | --program-transform=* | --program-transfor=* \
1467   | --program-transfo=* | --program-transf=* \
1468   | --program-trans=* | --program-tran=* \
1469   | --progr-tra=* | --program-tr=* | --program-t=*)
1470     program_transform_name=$ac_optarg ;;
1471 
1472   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473     ac_prev=pdfdir ;;
1474   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475     pdfdir=$ac_optarg ;;
1476 
1477   -psdir | --psdir | --psdi | --psd | --ps)
1478     ac_prev=psdir ;;
1479   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1480     psdir=$ac_optarg ;;
1481 
1482   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483   | -silent | --silent | --silen | --sile | --sil)
1484     silent=yes ;;
1485 
1486   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1487     ac_prev=sbindir ;;
1488   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1489   | --sbi=* | --sb=*)
1490     sbindir=$ac_optarg ;;
1491 
1492   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1493   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1494   | --sharedst | --shareds | --shared | --share | --shar \
1495   | --sha | --sh)
1496     ac_prev=sharedstatedir ;;
1497   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1498   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1499   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1500   | --sha=* | --sh=*)
1501     sharedstatedir=$ac_optarg ;;
1502 
1503   -site | --site | --sit)
1504     ac_prev=site ;;
1505   -site=* | --site=* | --sit=*)
1506     site=$ac_optarg ;;
1507 
1508   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1509     ac_prev=srcdir ;;
1510   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1511     srcdir=$ac_optarg ;;
1512 
1513   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1514   | --syscon | --sysco | --sysc | --sys | --sy)
1515     ac_prev=sysconfdir ;;
1516   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1517   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1518     sysconfdir=$ac_optarg ;;
1519 
1520   -target | --target | --targe | --targ | --tar | --ta | --t)
1521     ac_prev=target_alias ;;
1522   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1523     target_alias=$ac_optarg ;;
1524 
1525   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1526     verbose=yes ;;
1527 
1528   -version | --version | --versio | --versi | --vers | -V)
1529     ac_init_version=: ;;
1530 
1531   -with-* | --with-*)
1532     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1533     # Reject names that are not valid shell variable names.
1534     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1535       as_fn_error $? "invalid package name: $ac_useropt"
1536     ac_useropt_orig=$ac_useropt
1537     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538     case $ac_user_opts in
1539       *"
1540 "with_$ac_useropt"
1541 "*) ;;
1542       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1543          ac_unrecognized_sep=', ';;
1544     esac
1545     eval with_$ac_useropt=\$ac_optarg ;;
1546 
1547   -without-* | --without-*)
1548     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1549     # Reject names that are not valid shell variable names.
1550     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1551       as_fn_error $? "invalid package name: $ac_useropt"
1552     ac_useropt_orig=$ac_useropt
1553     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554     case $ac_user_opts in
1555       *"
1556 "with_$ac_useropt"
1557 "*) ;;
1558       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1559          ac_unrecognized_sep=', ';;
1560     esac
1561     eval with_$ac_useropt=no ;;
1562 
1563   --x)
1564     # Obsolete; use --with-x.
1565     with_x=yes ;;
1566 
1567   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1568   | --x-incl | --x-inc | --x-in | --x-i)
1569     ac_prev=x_includes ;;
1570   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1571   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1572     x_includes=$ac_optarg ;;
1573 
1574   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1575   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1576     ac_prev=x_libraries ;;
1577   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1578   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1579     x_libraries=$ac_optarg ;;
1580 
1581   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1582 Try \`$0 --help' for more information"
1583     ;;
1584 
1585   *=*)
1586     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1587     # Reject names that are not valid shell variable names.
1588     case $ac_envvar in #(
1589       '' | [0-9]* | *[!_$as_cr_alnum]* )
1590       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1591     esac
1592     eval $ac_envvar=\$ac_optarg
1593     export $ac_envvar ;;
1594 
1595   *)
1596     # FIXME: should be removed in autoconf 3.0.
1597     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1598     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1599       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1600     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1601     ;;
1602 
1603   esac
1604 done
1605 
1606 if test -n "$ac_prev"; then
1607   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1608   as_fn_error $? "missing argument to $ac_option"
1609 fi
1610 
1611 if test -n "$ac_unrecognized_opts"; then
1612   case $enable_option_checking in
1613     no) ;;
1614     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1615     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1616   esac
1617 fi
1618 
1619 # Check all directory arguments for consistency.
1620 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1621                 datadir sysconfdir sharedstatedir localstatedir includedir \
1622                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1623                 libdir localedir mandir
1624 do
1625   eval ac_val=\$$ac_var
1626   # Remove trailing slashes.
1627   case $ac_val in
1628     */ )
1629       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1630       eval $ac_var=\$ac_val;;
1631   esac
1632   # Be sure to have absolute directory names.
1633   case $ac_val in
1634     [\\/$]* | ?:[\\/]* )  continue;;
1635     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1636   esac
1637   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1638 done
1639 
1640 # There might be people who depend on the old broken behavior: `$host'
1641 # used to hold the argument of --host etc.
1642 # FIXME: To remove some day.
1643 build=$build_alias
1644 host=$host_alias
1645 target=$target_alias
1646 
1647 # FIXME: To remove some day.
1648 if test "x$host_alias" != x; then
1649   if test "x$build_alias" = x; then
1650     cross_compiling=maybe
1651   elif test "x$build_alias" != "x$host_alias"; then
1652     cross_compiling=yes
1653   fi
1654 fi
1655 
1656 ac_tool_prefix=
1657 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1658 
1659 test "$silent" = yes && exec 6>/dev/null
1660 
1661 
1662 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1663 ac_ls_di=`ls -di .` &&
1664 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1665   as_fn_error $? "working directory cannot be determined"
1666 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1667   as_fn_error $? "pwd does not report name of working directory"
1668 
1669 
1670 # Find the source files, if location was not specified.
1671 if test -z "$srcdir"; then
1672   ac_srcdir_defaulted=yes
1673   # Try the directory containing this script, then the parent directory.
1674   ac_confdir=`$as_dirname -- "$as_myself" ||
1675 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1676          X"$as_myself" : 'X\(//\)[^/]' \| \
1677          X"$as_myself" : 'X\(//\)$' \| \
1678          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1679 $as_echo X"$as_myself" |
1680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1681             s//\1/
1682             q
1683           }
1684           /^X\(\/\/\)[^/].*/{
1685             s//\1/
1686             q
1687           }
1688           /^X\(\/\/\)$/{
1689             s//\1/
1690             q
1691           }
1692           /^X\(\/\).*/{
1693             s//\1/
1694             q
1695           }
1696           s/.*/./; q'`
1697   srcdir=$ac_confdir
1698   if test ! -r "$srcdir/$ac_unique_file"; then
1699     srcdir=..
1700   fi
1701 else
1702   ac_srcdir_defaulted=no
1703 fi
1704 if test ! -r "$srcdir/$ac_unique_file"; then
1705   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1706   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1707 fi
1708 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1709 ac_abs_confdir=`(
1710         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1711         pwd)`
1712 # When building in place, set srcdir=.
1713 if test "$ac_abs_confdir" = "$ac_pwd"; then
1714   srcdir=.
1715 fi
1716 # Remove unnecessary trailing slashes from srcdir.
1717 # Double slashes in file names in object file debugging info
1718 # mess up M-x gdb in Emacs.
1719 case $srcdir in
1720 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1721 esac
1722 for ac_var in $ac_precious_vars; do
1723   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1724   eval ac_env_${ac_var}_value=\$${ac_var}
1725   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1726   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1727 done
1728 
1729 #
1730 # Report the --help message.
1731 #
1732 if test "$ac_init_help" = "long"; then
1733   # Omit some internal or obsolete options to make the list less imposing.
1734   # This message is too long to be a string in the A/UX 3.1 sh.
1735   cat <<_ACEOF
1736 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1737 
1738 Usage: $0 [OPTION]... [VAR=VALUE]...
1739 
1740 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1741 VAR=VALUE.  See below for descriptions of some of the useful variables.
1742 
1743 Defaults for the options are specified in brackets.
1744 
1745 Configuration:
1746   -h, --help              display this help and exit
1747       --help=short        display options specific to this package
1748       --help=recursive    display the short help of all the included packages
1749   -V, --version           display version information and exit
1750   -q, --quiet, --silent   do not print \`checking ...' messages
1751       --cache-file=FILE   cache test results in FILE [disabled]
1752   -C, --config-cache      alias for \`--cache-file=config.cache'
1753   -n, --no-create         do not create output files
1754       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1755 
1756 Installation directories:
1757   --prefix=PREFIX         install architecture-independent files in PREFIX
1758                           [$ac_default_prefix]
1759   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1760                           [PREFIX]
1761 
1762 By default, \`make install' will install all the files in
1763 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1764 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1765 for instance \`--prefix=\$HOME'.
1766 
1767 For better control, use the options below.
1768 
1769 Fine tuning of the installation directories:
1770   --bindir=DIR            user executables [EPREFIX/bin]
1771   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1772   --libexecdir=DIR        program executables [EPREFIX/libexec]
1773   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1774   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1775   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1776   --libdir=DIR            object code libraries [EPREFIX/lib]
1777   --includedir=DIR        C header files [PREFIX/include]
1778   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1779   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1780   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1781   --infodir=DIR           info documentation [DATAROOTDIR/info]
1782   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1783   --mandir=DIR            man documentation [DATAROOTDIR/man]
1784   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1785   --htmldir=DIR           html documentation [DOCDIR]
1786   --dvidir=DIR            dvi documentation [DOCDIR]
1787   --pdfdir=DIR            pdf documentation [DOCDIR]
1788   --psdir=DIR             ps documentation [DOCDIR]
1789 _ACEOF
1790 
1791   cat <<\_ACEOF
1792 
1793 X features:
1794   --x-includes=DIR    X include files are in DIR
1795   --x-libraries=DIR   X library files are in DIR
1796 
1797 System types:
1798   --build=BUILD     configure for building on BUILD [guessed]
1799   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1800   --target=TARGET   configure for building compilers for TARGET [HOST]
1801 _ACEOF
1802 fi
1803 
1804 if test -n "$ac_init_help"; then
1805   case $ac_init_help in
1806      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1807    esac
1808   cat <<\_ACEOF
1809 
1810 Optional Features:
1811   --disable-option-checking  ignore unrecognized --enable/--with options
1812   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1813   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1814   --enable-openjdk-only   suppress building custom source even if present
1815                           [disabled]
1816   --enable-debug          set the debug level to fastdebug (shorthand for
1817                           --with-debug-level=fastdebug) [disabled]
1818   --disable-headful       disable building headful support (graphical UI
1819                           support) [enabled]
1820   --enable-hotspot-test-in-build
1821                           run the Queens test after Hotspot build [disabled]
1822   --enable-unlimited-crypto
1823                           Enable unlimited crypto policy [disabled]
1824   --enable-rmiconnector-iiop
1825                           enable the JMX RMIConnector iiop transport
1826                           [disabled]
1827   --disable-debug-symbols disable generation of debug symbols [enabled]
1828   --disable-zip-debug-info
1829                           disable zipping of debug-info files [enabled]
1830   --enable-macosx-runtime-support
1831                           Deprecated. Option is kept for backwards
1832                           compatibility and is ignored
1833   --disable-freetype-bundling
1834                           disable bundling of the freetype library with the
1835                           build result [enabled on Windows or when using
1836                           --with-freetype, disabled otherwise]
1837   --enable-sjavac         use sjavac to do fast incremental compiles
1838                           [disabled]
1839   --disable-precompiled-headers
1840                           disable using precompiled headers when compiling C++
1841                           [enabled]
1842   --enable-ccache         enable using ccache to speed up recompilations
1843                           [disabled]
1844 
1845 Optional Packages:
1846   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1847   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1848   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1849                           support it), e.g. --with-target-bits=32 [guessed]
1850   --with-sys-root         pass this sys-root to the compilers and tools (for
1851                           cross-compiling)
1852   --with-tools-dir        search this directory for compilers and tools (for
1853                           cross-compiling)
1854   --with-devkit           use this directory as base for tools-dir and
1855                           sys-root (for cross-compiling)
1856   --with-custom-make-dir  Deprecated. Option is kept for backwards
1857                           compatibility and is ignored
1858   --with-jdk-variant      JDK variant to build (normal) [normal]
1859   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1860   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1861                           client, minimal1, kernel, zero, zeroshark, core)
1862                           [server]
1863   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1864                           [release]
1865   --with-conf-name        use this as the name of the configuration [generated
1866                           from important configuration options]
1867   --with-builddeps-conf   use this configuration file for the builddeps
1868   --with-builddeps-server download and use build dependencies from this server
1869                           url
1870   --with-builddeps-dir    store downloaded build dependencies here
1871                           [/localhome/builddeps]
1872   --with-builddeps-group  chgrp the downloaded build dependencies to this
1873                           group
1874   --with-cacerts-file     specify alternative cacerts file
1875   --with-milestone        Set milestone value for build [internal]
1876   --with-update-version   Set update version value for build [b00]
1877   --with-user-release-suffix
1878                           Add a custom string to the version string if build
1879                           number is not set.[username_builddateb00]
1880   --with-build-number     Set build number value for build [b00]
1881   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1882   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
1883                           invocations of boot JDK, overriding the default
1884                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1885                           -enableassertions"
1886   --with-add-source-root  for each and every source directory, look in this
1887                           additional source root for the same directory; if it
1888                           exists and have files in it, include it in the build
1889   --with-override-source-root
1890                           for each and every source directory, look in this
1891                           override source root for the same directory; if it
1892                           exists, use that directory instead and ignore the
1893                           directory in the original source root
1894   --with-adds-and-overrides
1895                           use the subdirs 'adds' and 'overrides' in the
1896                           specified directory as add-source-root and
1897                           override-source-root
1898   --with-override-langtools
1899                           use this langtools dir for the build
1900   --with-override-corba   use this corba dir for the build
1901   --with-override-jaxp    use this jaxp dir for the build
1902   --with-override-jaxws   use this jaxws dir for the build
1903   --with-override-hotspot use this hotspot dir for the build
1904   --with-override-nashorn use this nashorn dir for the build
1905   --with-override-jdk     use this jdk dir for the build
1906   --with-import-hotspot   import hotspot binaries from this jdk image or
1907                           hotspot build dist dir instead of building from
1908                           source
1909   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1910                           to show possible values [platform dependent]
1911   --with-jtreg            Regression Test Harness [probed]
1912   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1913   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1914   --with-extra-ldflags    extra flags to be used when linking jdk
1915   --with-x                use the X Window System
1916   --with-cups             specify prefix directory for the cups package
1917                           (expecting the headers under PATH/include)
1918   --with-cups-include     specify directory for the cups include files
1919   --with-freetype         specify prefix directory for the freetype package
1920                           (expecting the libraries under PATH/lib and the
1921                           headers under PATH/include)
1922   --with-freetype-include specify directory for the freetype include files
1923   --with-freetype-lib     specify directory for the freetype library
1924   --with-alsa             specify prefix directory for the alsa package
1925                           (expecting the libraries under PATH/lib and the
1926                           headers under PATH/include)
1927   --with-alsa-include     specify directory for the alsa include files
1928   --with-alsa-lib         specify directory for the alsa library
1929   --with-giflib           use giflib from build system or OpenJDK source
1930                           (system, bundled) [bundled]
1931   --with-libpng           use libpng from build system or OpenJDK source
1932                           (system, bundled) [bundled]
1933   --with-zlib             use zlib from build system or OpenJDK source
1934                           (system, bundled) [bundled]
1935   --with-stdc++lib=<static>,<dynamic>,<default>
1936                           force linking of the C++ runtime on Linux to either
1937                           static or dynamic, default is static with dynamic as
1938                           fallback
1939   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1940                           only) [probed]
1941   --with-dxsdk            Deprecated. Option is kept for backwards
1942                           compatibility and is ignored
1943   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1944                           compatibility and is ignored
1945   --with-dxsdk-include    Deprecated. Option is kept for backwards
1946                           compatibility and is ignored
1947   --with-num-cores        number of cores in the build system, e.g.
1948                           --with-num-cores=8 [probed]
1949   --with-memory-size      memory (in MB) available in the build system, e.g.
1950                           --with-memory-size=1024 [probed]
1951   --with-jobs             number of parallel jobs to let make run [calculated
1952                           based on cores and memory]
1953   --with-sjavac-server-java
1954                           use this java binary for running the sjavac
1955                           background server [Boot JDK java]
1956   --with-ccache-dir       where to store ccache files [~/.ccache]
1957 
1958 Some influential environment variables:
1959   BASENAME    Override default value for BASENAME
1960   BASH        Override default value for BASH
1961   CAT         Override default value for CAT
1962   CHMOD       Override default value for CHMOD
1963   CMP         Override default value for CMP
1964   COMM        Override default value for COMM
1965   CP          Override default value for CP
1966   CPIO        Override default value for CPIO
1967   CUT         Override default value for CUT
1968   DATE        Override default value for DATE
1969   DIFF        Override default value for DIFF
1970   DIRNAME     Override default value for DIRNAME
1971   ECHO        Override default value for ECHO
1972   EXPR        Override default value for EXPR
1973   FILE        Override default value for FILE
1974   FIND        Override default value for FIND
1975   HEAD        Override default value for HEAD
1976   LN          Override default value for LN
1977   LS          Override default value for LS
1978   MKDIR       Override default value for MKDIR
1979   MKTEMP      Override default value for MKTEMP
1980   MV          Override default value for MV
1981   NAWK        Override default value for NAWK
1982   PRINTF      Override default value for PRINTF
1983   RM          Override default value for RM
1984   SH          Override default value for SH
1985   SORT        Override default value for SORT
1986   TAIL        Override default value for TAIL
1987   TAR         Override default value for TAR
1988   TEE         Override default value for TEE
1989   TOUCH       Override default value for TOUCH
1990   TR          Override default value for TR
1991   UNAME       Override default value for UNAME
1992   UNIQ        Override default value for UNIQ
1993   WC          Override default value for WC
1994   WHICH       Override default value for WHICH
1995   XARGS       Override default value for XARGS
1996   AWK         Override default value for AWK
1997   GREP        Override default value for GREP
1998   EGREP       Override default value for EGREP
1999   FGREP       Override default value for FGREP
2000   SED         Override default value for SED
2001   CYGPATH     Override default value for CYGPATH
2002   READLINK    Override default value for READLINK
2003   DF          Override default value for DF
2004   SETFILE     Override default value for SETFILE
2005   UNZIP       Override default value for UNZIP
2006   ZIP         Override default value for ZIP
2007   LDD         Override default value for LDD
2008   OTOOL       Override default value for OTOOL
2009   READELF     Override default value for READELF
2010   HG          Override default value for HG
2011   STAT        Override default value for STAT
2012   TIME        Override default value for TIME
2013   DSYMUTIL    Override default value for DSYMUTIL
2014   XATTR       Override default value for XATTR
2015   CODESIGN    Override default value for CODESIGN
2016   PKG_CONFIG  path to pkg-config utility
2017   JAVA        Override default value for JAVA
2018   JAVAC       Override default value for JAVAC
2019   JAVAH       Override default value for JAVAH
2020   JAR         Override default value for JAR
2021   NATIVE2ASCII
2022               Override default value for NATIVE2ASCII
2023   JARSIGNER   Override default value for JARSIGNER
2024   CC          C compiler command
2025   CFLAGS      C compiler flags
2026   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2027               nonstandard directory <lib dir>
2028   LIBS        libraries to pass to the linker, e.g. -l<library>
2029   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2030               you have headers in a nonstandard directory <include dir>
2031   CXX         C++ compiler command
2032   CXXFLAGS    C++ compiler flags
2033   CPP         C preprocessor
2034   CXXCPP      C++ preprocessor
2035   AS          Override default value for AS
2036   AR          Override default value for AR
2037   OBJC        Objective C compiler command
2038   OBJCFLAGS   Objective C compiler flags
2039   LIPO        Override default value for LIPO
2040   STRIP       Override default value for STRIP
2041   NM          Override default value for NM
2042   GNM         Override default value for GNM
2043   MCS         Override default value for MCS
2044   OBJCOPY     Override default value for OBJCOPY
2045   OBJDUMP     Override default value for OBJDUMP
2046   BUILD_CC    Override default value for BUILD_CC
2047   BUILD_CXX   Override default value for BUILD_CXX
2048   BUILD_LD    Override default value for BUILD_LD
2049   JTREGEXE    Override default value for JTREGEXE
2050   XMKMF       Path to xmkmf, Makefile generator for X Window System
2051   FREETYPE_CFLAGS
2052               C compiler flags for FREETYPE, overriding pkg-config
2053   FREETYPE_LIBS
2054               linker flags for FREETYPE, overriding pkg-config
2055   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2056   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2057   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2058   PNG_LIBS    linker flags for PNG, overriding pkg-config
2059   LIBFFI_CFLAGS
2060               C compiler flags for LIBFFI, overriding pkg-config
2061   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2062   CCACHE      Override default value for CCACHE
2063 
2064 Use these variables to override the choices made by `configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2066 
2067 Report bugs to <build-dev@openjdk.java.net>.
2068 OpenJDK home page: <http://openjdk.java.net>.
2069 _ACEOF
2070 ac_status=$?
2071 fi
2072 
2073 if test "$ac_init_help" = "recursive"; then
2074   # If there are subdirs, report their specific --help.
2075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2076     test -d "$ac_dir" ||
2077       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2078       continue
2079     ac_builddir=.
2080 
2081 case "$ac_dir" in
2082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 *)
2084   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2085   # A ".." for each directory in $ac_dir_suffix.
2086   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2087   case $ac_top_builddir_sub in
2088   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2089   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2090   esac ;;
2091 esac
2092 ac_abs_top_builddir=$ac_pwd
2093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2094 # for backward compatibility:
2095 ac_top_builddir=$ac_top_build_prefix
2096 
2097 case $srcdir in
2098   .)  # We are building in place.
2099     ac_srcdir=.
2100     ac_top_srcdir=$ac_top_builddir_sub
2101     ac_abs_top_srcdir=$ac_pwd ;;
2102   [\\/]* | ?:[\\/]* )  # Absolute name.
2103     ac_srcdir=$srcdir$ac_dir_suffix;
2104     ac_top_srcdir=$srcdir
2105     ac_abs_top_srcdir=$srcdir ;;
2106   *) # Relative name.
2107     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2108     ac_top_srcdir=$ac_top_build_prefix$srcdir
2109     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2110 esac
2111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2112 
2113     cd "$ac_dir" || { ac_status=$?; continue; }
2114     # Check for guested configure.
2115     if test -f "$ac_srcdir/configure.gnu"; then
2116       echo &&
2117       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2118     elif test -f "$ac_srcdir/configure"; then
2119       echo &&
2120       $SHELL "$ac_srcdir/configure" --help=recursive
2121     else
2122       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2123     fi || ac_status=$?
2124     cd "$ac_pwd" || { ac_status=$?; break; }
2125   done
2126 fi
2127 
2128 test -n "$ac_init_help" && exit $ac_status
2129 if $ac_init_version; then
2130   cat <<\_ACEOF
2131 OpenJDK configure jdk9
2132 generated by GNU Autoconf 2.69
2133 
2134 Copyright (C) 2012 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2137 _ACEOF
2138   exit
2139 fi
2140 
2141 ## ------------------------ ##
2142 ## Autoconf initialization. ##
2143 ## ------------------------ ##
2144 
2145 # ac_fn_c_try_compile LINENO
2146 # --------------------------
2147 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_c_try_compile ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   rm -f conftest.$ac_objext
2152   if { { ac_try="$ac_compile"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159   (eval "$ac_compile") 2>conftest.err
2160   ac_status=$?
2161   if test -s conftest.err; then
2162     grep -v '^ *+' conftest.err >conftest.er1
2163     cat conftest.er1 >&5
2164     mv -f conftest.er1 conftest.err
2165   fi
2166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167   test $ac_status = 0; } && {
2168          test -z "$ac_c_werror_flag" ||
2169          test ! -s conftest.err
2170        } && test -s conftest.$ac_objext; then :
2171   ac_retval=0
2172 else
2173   $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2175 
2176         ac_retval=1
2177 fi
2178   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179   as_fn_set_status $ac_retval
2180 
2181 } # ac_fn_c_try_compile
2182 
2183 # ac_fn_cxx_try_compile LINENO
2184 # ----------------------------
2185 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_cxx_try_compile ()
2187 {
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   rm -f conftest.$ac_objext
2190   if { { ac_try="$ac_compile"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197   (eval "$ac_compile") 2>conftest.err
2198   ac_status=$?
2199   if test -s conftest.err; then
2200     grep -v '^ *+' conftest.err >conftest.er1
2201     cat conftest.er1 >&5
2202     mv -f conftest.er1 conftest.err
2203   fi
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; } && {
2206          test -z "$ac_cxx_werror_flag" ||
2207          test ! -s conftest.err
2208        } && test -s conftest.$ac_objext; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213 
2214         ac_retval=1
2215 fi
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217   as_fn_set_status $ac_retval
2218 
2219 } # ac_fn_cxx_try_compile
2220 
2221 # ac_fn_c_try_cpp LINENO
2222 # ----------------------
2223 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_c_try_cpp ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   if { { ac_try="$ac_cpp conftest.$ac_ext"
2228 case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2235   ac_status=$?
2236   if test -s conftest.err; then
2237     grep -v '^ *+' conftest.err >conftest.er1
2238     cat conftest.er1 >&5
2239     mv -f conftest.er1 conftest.err
2240   fi
2241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242   test $ac_status = 0; } > conftest.i && {
2243          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2244          test ! -s conftest.err
2245        }; then :
2246   ac_retval=0
2247 else
2248   $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250 
2251     ac_retval=1
2252 fi
2253   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254   as_fn_set_status $ac_retval
2255 
2256 } # ac_fn_c_try_cpp
2257 
2258 # ac_fn_cxx_try_cpp LINENO
2259 # ------------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_cxx_try_cpp ()
2262 {
2263   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264   if { { ac_try="$ac_cpp conftest.$ac_ext"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2272   ac_status=$?
2273   if test -s conftest.err; then
2274     grep -v '^ *+' conftest.err >conftest.er1
2275     cat conftest.er1 >&5
2276     mv -f conftest.er1 conftest.err
2277   fi
2278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279   test $ac_status = 0; } > conftest.i && {
2280          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2281          test ! -s conftest.err
2282        }; then :
2283   ac_retval=0
2284 else
2285   $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287 
2288     ac_retval=1
2289 fi
2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291   as_fn_set_status $ac_retval
2292 
2293 } # ac_fn_cxx_try_cpp
2294 
2295 # ac_fn_objc_try_compile LINENO
2296 # -----------------------------
2297 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2298 ac_fn_objc_try_compile ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   rm -f conftest.$ac_objext
2302   if { { ac_try="$ac_compile"
2303 case "(($ac_try" in
2304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305   *) ac_try_echo=$ac_try;;
2306 esac
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309   (eval "$ac_compile") 2>conftest.err
2310   ac_status=$?
2311   if test -s conftest.err; then
2312     grep -v '^ *+' conftest.err >conftest.er1
2313     cat conftest.er1 >&5
2314     mv -f conftest.er1 conftest.err
2315   fi
2316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317   test $ac_status = 0; } && {
2318          test -z "$ac_objc_werror_flag" ||
2319          test ! -s conftest.err
2320        } && test -s conftest.$ac_objext; then :
2321   ac_retval=0
2322 else
2323   $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325 
2326         ac_retval=1
2327 fi
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329   as_fn_set_status $ac_retval
2330 
2331 } # ac_fn_objc_try_compile
2332 
2333 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2334 # ---------------------------------------------------------
2335 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2336 # the include files in INCLUDES and setting the cache variable VAR
2337 # accordingly.
2338 ac_fn_cxx_check_header_mongrel ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   if eval \${$3+:} false; then :
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if eval \${$3+:} false; then :
2345   $as_echo_n "(cached) " >&6
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 else
2351   # Is the header compilable?
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2353 $as_echo_n "checking $2 usability... " >&6; }
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 #include <$2>
2358 _ACEOF
2359 if ac_fn_cxx_try_compile "$LINENO"; then :
2360   ac_header_compiler=yes
2361 else
2362   ac_header_compiler=no
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2366 $as_echo "$ac_header_compiler" >&6; }
2367 
2368 # Is the header present?
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2370 $as_echo_n "checking $2 presence... " >&6; }
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 #include <$2>
2374 _ACEOF
2375 if ac_fn_cxx_try_cpp "$LINENO"; then :
2376   ac_header_preproc=yes
2377 else
2378   ac_header_preproc=no
2379 fi
2380 rm -f conftest.err conftest.i conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2382 $as_echo "$ac_header_preproc" >&6; }
2383 
2384 # So?  What about this header?
2385 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2386   yes:no: )
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2388 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2390 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2391     ;;
2392   no:yes:* )
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2394 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2396 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2398 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2400 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2402 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2403 ( $as_echo "## ----------------------------------------- ##
2404 ## Report this to build-dev@openjdk.java.net ##
2405 ## ----------------------------------------- ##"
2406      ) | sed "s/^/$as_me: WARNING:     /" >&2
2407     ;;
2408 esac
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=\$ac_header_compiler"
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 fi
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 
2422 } # ac_fn_cxx_check_header_mongrel
2423 
2424 # ac_fn_cxx_try_run LINENO
2425 # ------------------------
2426 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2427 # that executables *can* be run.
2428 ac_fn_cxx_try_run ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   if { { ac_try="$ac_link"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438   (eval "$ac_link") 2>&5
2439   ac_status=$?
2440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2442   { { case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447 $as_echo "$ac_try_echo"; } >&5
2448   (eval "$ac_try") 2>&5
2449   ac_status=$?
2450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451   test $ac_status = 0; }; }; then :
2452   ac_retval=0
2453 else
2454   $as_echo "$as_me: program exited with status $ac_status" >&5
2455        $as_echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457 
2458        ac_retval=$ac_status
2459 fi
2460   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2461   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2462   as_fn_set_status $ac_retval
2463 
2464 } # ac_fn_cxx_try_run
2465 
2466 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2467 # ---------------------------------------------------------
2468 # Tests whether HEADER exists and can be compiled using the include files in
2469 # INCLUDES, setting the cache variable VAR accordingly.
2470 ac_fn_cxx_check_header_compile ()
2471 {
2472   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if eval \${$3+:} false; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h.  */
2480 $4
2481 #include <$2>
2482 _ACEOF
2483 if ac_fn_cxx_try_compile "$LINENO"; then :
2484   eval "$3=yes"
2485 else
2486   eval "$3=no"
2487 fi
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 fi
2490 eval ac_res=\$$3
2491                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 
2495 } # ac_fn_cxx_check_header_compile
2496 
2497 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2498 # ----------------------------------------------
2499 # Tries to find the compile-time value of EXPR in a program that includes
2500 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2501 # computed
2502 ac_fn_cxx_compute_int ()
2503 {
2504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505   if test "$cross_compiling" = yes; then
2506     # Depending upon the size, compute the lo and hi bounds.
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h.  */
2509 $4
2510 int
2511 main ()
2512 {
2513 static int test_array [1 - 2 * !(($2) >= 0)];
2514 test_array [0] = 0;
2515 return test_array [0];
2516 
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_cxx_try_compile "$LINENO"; then :
2522   ac_lo=0 ac_mid=0
2523   while :; do
2524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h.  */
2526 $4
2527 int
2528 main ()
2529 {
2530 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2531 test_array [0] = 0;
2532 return test_array [0];
2533 
2534   ;
2535   return 0;
2536 }
2537 _ACEOF
2538 if ac_fn_cxx_try_compile "$LINENO"; then :
2539   ac_hi=$ac_mid; break
2540 else
2541   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2542                         if test $ac_lo -le $ac_mid; then
2543                           ac_lo= ac_hi=
2544                           break
2545                         fi
2546                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549   done
2550 else
2551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $4
2554 int
2555 main ()
2556 {
2557 static int test_array [1 - 2 * !(($2) < 0)];
2558 test_array [0] = 0;
2559 return test_array [0];
2560 
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_cxx_try_compile "$LINENO"; then :
2566   ac_hi=-1 ac_mid=-1
2567   while :; do
2568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h.  */
2570 $4
2571 int
2572 main ()
2573 {
2574 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2575 test_array [0] = 0;
2576 return test_array [0];
2577 
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 if ac_fn_cxx_try_compile "$LINENO"; then :
2583   ac_lo=$ac_mid; break
2584 else
2585   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2586                         if test $ac_mid -le $ac_hi; then
2587                           ac_lo= ac_hi=
2588                           break
2589                         fi
2590                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593   done
2594 else
2595   ac_lo= ac_hi=
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 # Binary search between lo and hi bounds.
2601 while test "x$ac_lo" != "x$ac_hi"; do
2602   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 int
2607 main ()
2608 {
2609 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2610 test_array [0] = 0;
2611 return test_array [0];
2612 
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 if ac_fn_cxx_try_compile "$LINENO"; then :
2618   ac_hi=$ac_mid
2619 else
2620   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 case $ac_lo in #((
2625 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2626 '') ac_retval=1 ;;
2627 esac
2628   else
2629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h.  */
2631 $4
2632 static long int longval () { return $2; }
2633 static unsigned long int ulongval () { return $2; }
2634 #include <stdio.h>
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639 
2640   FILE *f = fopen ("conftest.val", "w");
2641   if (! f)
2642     return 1;
2643   if (($2) < 0)
2644     {
2645       long int i = longval ();
2646       if (i != ($2))
2647         return 1;
2648       fprintf (f, "%ld", i);
2649     }
2650   else
2651     {
2652       unsigned long int i = ulongval ();
2653       if (i != ($2))
2654         return 1;
2655       fprintf (f, "%lu", i);
2656     }
2657   /* Do not output a trailing newline, as this causes \r\n confusion
2658      on some platforms.  */
2659   return ferror (f) || fclose (f) != 0;
2660 
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_cxx_try_run "$LINENO"; then :
2666   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2667 else
2668   ac_retval=1
2669 fi
2670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2671   conftest.$ac_objext conftest.beam conftest.$ac_ext
2672 rm -f conftest.val
2673 
2674   fi
2675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676   as_fn_set_status $ac_retval
2677 
2678 } # ac_fn_cxx_compute_int
2679 
2680 # ac_fn_cxx_try_link LINENO
2681 # -------------------------
2682 # Try to link conftest.$ac_ext, and return whether this succeeded.
2683 ac_fn_cxx_try_link ()
2684 {
2685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686   rm -f conftest.$ac_objext conftest$ac_exeext
2687   if { { ac_try="$ac_link"
2688 case "(($ac_try" in
2689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690   *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694   (eval "$ac_link") 2>conftest.err
2695   ac_status=$?
2696   if test -s conftest.err; then
2697     grep -v '^ *+' conftest.err >conftest.er1
2698     cat conftest.er1 >&5
2699     mv -f conftest.er1 conftest.err
2700   fi
2701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702   test $ac_status = 0; } && {
2703          test -z "$ac_cxx_werror_flag" ||
2704          test ! -s conftest.err
2705        } && test -s conftest$ac_exeext && {
2706          test "$cross_compiling" = yes ||
2707          test -x conftest$ac_exeext
2708        }; then :
2709   ac_retval=0
2710 else
2711   $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713 
2714         ac_retval=1
2715 fi
2716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2718   # interfere with the next link command; also delete a directory that is
2719   # left behind by Apple's compiler.  We do this before executing the actions.
2720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722   as_fn_set_status $ac_retval
2723 
2724 } # ac_fn_cxx_try_link
2725 
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2730 {
2731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h.  */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2741 #define $2 innocuous_$2
2742 
2743 /* System header to define __stub macros and hopefully few prototypes,
2744     which can conflict with char $2 (); below.
2745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746     <limits.h> exists even on freestanding compilers.  */
2747 
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2753 
2754 #undef $2
2755 
2756 /* Override any GCC internal prototype to avoid an error.
2757    Use char because int might match the return type of a GCC
2758    builtin and then its argument prototype would still apply.  */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764     to always fail with ENOSYS.  Some functions are actually named
2765     something starting with __ and the normal name is an alias.  */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2769 
2770 int
2771 main ()
2772 {
2773 return $2 ();
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779   eval "$3=yes"
2780 else
2781   eval "$3=no"
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext \
2784     conftest$ac_exeext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 
2791 } # ac_fn_cxx_check_func
2792 
2793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2794 # -------------------------------------------------------
2795 # Tests whether HEADER exists and can be compiled using the include files in
2796 # INCLUDES, setting the cache variable VAR accordingly.
2797 ac_fn_c_check_header_compile ()
2798 {
2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if eval \${$3+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h.  */
2807 $4
2808 #include <$2>
2809 _ACEOF
2810 if ac_fn_c_try_compile "$LINENO"; then :
2811   eval "$3=yes"
2812 else
2813   eval "$3=no"
2814 fi
2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 fi
2817 eval ac_res=\$$3
2818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2819 $as_echo "$ac_res" >&6; }
2820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2821 
2822 } # ac_fn_c_check_header_compile
2823 cat >config.log <<_ACEOF
2824 This file contains any messages produced by compilers while
2825 running configure, to aid debugging if configure makes a mistake.
2826 
2827 It was created by OpenJDK $as_me jdk9, which was
2828 generated by GNU Autoconf 2.69.  Invocation command line was
2829 
2830   $ $0 $@
2831 
2832 _ACEOF
2833 exec 5>>config.log
2834 {
2835 cat <<_ASUNAME
2836 ## --------- ##
2837 ## Platform. ##
2838 ## --------- ##
2839 
2840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2845 
2846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2847 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2848 
2849 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2850 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2852 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2853 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2854 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2855 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2856 
2857 _ASUNAME
2858 
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     $as_echo "PATH: $as_dir"
2865   done
2866 IFS=$as_save_IFS
2867 
2868 } >&5
2869 
2870 cat >&5 <<_ACEOF
2871 
2872 
2873 ## ----------- ##
2874 ## Core tests. ##
2875 ## ----------- ##
2876 
2877 _ACEOF
2878 
2879 
2880 # Keep a trace of the command line.
2881 # Strip out --no-create and --no-recursion so they do not pile up.
2882 # Strip out --silent because we don't want to record it for future runs.
2883 # Also quote any args containing shell meta-characters.
2884 # Make two passes to allow for proper duplicate-argument suppression.
2885 ac_configure_args=
2886 ac_configure_args0=
2887 ac_configure_args1=
2888 ac_must_keep_next=false
2889 for ac_pass in 1 2
2890 do
2891   for ac_arg
2892   do
2893     case $ac_arg in
2894     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2895     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2896     | -silent | --silent | --silen | --sile | --sil)
2897       continue ;;
2898     *\'*)
2899       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2900     esac
2901     case $ac_pass in
2902     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2903     2)
2904       as_fn_append ac_configure_args1 " '$ac_arg'"
2905       if test $ac_must_keep_next = true; then
2906         ac_must_keep_next=false # Got value, back to normal.
2907       else
2908         case $ac_arg in
2909           *=* | --config-cache | -C | -disable-* | --disable-* \
2910           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2911           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2912           | -with-* | --with-* | -without-* | --without-* | --x)
2913             case "$ac_configure_args0 " in
2914               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2915             esac
2916             ;;
2917           -* ) ac_must_keep_next=true ;;
2918         esac
2919       fi
2920       as_fn_append ac_configure_args " '$ac_arg'"
2921       ;;
2922     esac
2923   done
2924 done
2925 { ac_configure_args0=; unset ac_configure_args0;}
2926 { ac_configure_args1=; unset ac_configure_args1;}
2927 
2928 # When interrupted or exit'd, cleanup temporary files, and complete
2929 # config.log.  We remove comments because anyway the quotes in there
2930 # would cause problems or look ugly.
2931 # WARNING: Use '\'' to represent an apostrophe within the trap.
2932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2933 trap 'exit_status=$?
2934   # Save into config.log some information that might help in debugging.
2935   {
2936     echo
2937 
2938     $as_echo "## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##"
2941     echo
2942     # The following way of writing the cache mishandles newlines in values,
2943 (
2944   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2945     eval ac_val=\$$ac_var
2946     case $ac_val in #(
2947     *${as_nl}*)
2948       case $ac_var in #(
2949       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2950 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2951       esac
2952       case $ac_var in #(
2953       _ | IFS | as_nl) ;; #(
2954       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2955       *) { eval $ac_var=; unset $ac_var;} ;;
2956       esac ;;
2957     esac
2958   done
2959   (set) 2>&1 |
2960     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2961     *${as_nl}ac_space=\ *)
2962       sed -n \
2963         "s/'\''/'\''\\\\'\'''\''/g;
2964           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2965       ;; #(
2966     *)
2967       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2968       ;;
2969     esac |
2970     sort
2971 )
2972     echo
2973 
2974     $as_echo "## ----------------- ##
2975 ## Output variables. ##
2976 ## ----------------- ##"
2977     echo
2978     for ac_var in $ac_subst_vars
2979     do
2980       eval ac_val=\$$ac_var
2981       case $ac_val in
2982       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2983       esac
2984       $as_echo "$ac_var='\''$ac_val'\''"
2985     done | sort
2986     echo
2987 
2988     if test -n "$ac_subst_files"; then
2989       $as_echo "## ------------------- ##
2990 ## File substitutions. ##
2991 ## ------------------- ##"
2992       echo
2993       for ac_var in $ac_subst_files
2994       do
2995         eval ac_val=\$$ac_var
2996         case $ac_val in
2997         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998         esac
2999         $as_echo "$ac_var='\''$ac_val'\''"
3000       done | sort
3001       echo
3002     fi
3003 
3004     if test -s confdefs.h; then
3005       $as_echo "## ----------- ##
3006 ## confdefs.h. ##
3007 ## ----------- ##"
3008       echo
3009       cat confdefs.h
3010       echo
3011     fi
3012     test "$ac_signal" != 0 &&
3013       $as_echo "$as_me: caught signal $ac_signal"
3014     $as_echo "$as_me: exit $exit_status"
3015   } >&5
3016   rm -f core *.core core.conftest.* &&
3017     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3018     exit $exit_status
3019 ' 0
3020 for ac_signal in 1 2 13 15; do
3021   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3022 done
3023 ac_signal=0
3024 
3025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3026 rm -f -r conftest* confdefs.h
3027 
3028 $as_echo "/* confdefs.h */" > confdefs.h
3029 
3030 # Predefined preprocessor variables.
3031 
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_NAME "$PACKAGE_NAME"
3034 _ACEOF
3035 
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3038 _ACEOF
3039 
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3042 _ACEOF
3043 
3044 cat >>confdefs.h <<_ACEOF
3045 #define PACKAGE_STRING "$PACKAGE_STRING"
3046 _ACEOF
3047 
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3050 _ACEOF
3051 
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE_URL "$PACKAGE_URL"
3054 _ACEOF
3055 
3056 
3057 # Let the site file select an alternate cache file if it wants to.
3058 # Prefer an explicitly selected file to automatically selected ones.
3059 ac_site_file1=NONE
3060 ac_site_file2=NONE
3061 if test -n "$CONFIG_SITE"; then
3062   # We do not want a PATH search for config.site.
3063   case $CONFIG_SITE in #((
3064     -*)  ac_site_file1=./$CONFIG_SITE;;
3065     */*) ac_site_file1=$CONFIG_SITE;;
3066     *)   ac_site_file1=./$CONFIG_SITE;;
3067   esac
3068 elif test "x$prefix" != xNONE; then
3069   ac_site_file1=$prefix/share/config.site
3070   ac_site_file2=$prefix/etc/config.site
3071 else
3072   ac_site_file1=$ac_default_prefix/share/config.site
3073   ac_site_file2=$ac_default_prefix/etc/config.site
3074 fi
3075 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3076 do
3077   test "x$ac_site_file" = xNONE && continue
3078   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3079     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3080 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3081     sed 's/^/| /' "$ac_site_file" >&5
3082     . "$ac_site_file" \
3083       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $? "failed to load site script $ac_site_file
3086 See \`config.log' for more details" "$LINENO" 5; }
3087   fi
3088 done
3089 
3090 if test -r "$cache_file"; then
3091   # Some versions of bash will fail to source /dev/null (special files
3092   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3093   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3094     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3095 $as_echo "$as_me: loading cache $cache_file" >&6;}
3096     case $cache_file in
3097       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3098       *)                      . "./$cache_file";;
3099     esac
3100   fi
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3103 $as_echo "$as_me: creating cache $cache_file" >&6;}
3104   >$cache_file
3105 fi
3106 
3107 # Check that the precious variables saved in the cache have kept the same
3108 # value.
3109 ac_cache_corrupted=false
3110 for ac_var in $ac_precious_vars; do
3111   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3112   eval ac_new_set=\$ac_env_${ac_var}_set
3113   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3114   eval ac_new_val=\$ac_env_${ac_var}_value
3115   case $ac_old_set,$ac_new_set in
3116     set,)
3117       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3119       ac_cache_corrupted=: ;;
3120     ,set)
3121       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3123       ac_cache_corrupted=: ;;
3124     ,);;
3125     *)
3126       if test "x$ac_old_val" != "x$ac_new_val"; then
3127         # differences in whitespace do not lead to failure.
3128         ac_old_val_w=`echo x $ac_old_val`
3129         ac_new_val_w=`echo x $ac_new_val`
3130         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3131           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3133           ac_cache_corrupted=:
3134         else
3135           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3137           eval $ac_var=\$ac_old_val
3138         fi
3139         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3140 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3141         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3142 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3143       fi;;
3144   esac
3145   # Pass precious variables to config.status.
3146   if test "$ac_new_set" = set; then
3147     case $ac_new_val in
3148     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3149     *) ac_arg=$ac_var=$ac_new_val ;;
3150     esac
3151     case " $ac_configure_args " in
3152       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3153       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3154     esac
3155   fi
3156 done
3157 if $ac_cache_corrupted; then
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3162   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3163 fi
3164 ## -------------------- ##
3165 ## Main body of script. ##
3166 ## -------------------- ##
3167 
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 
3174 
3175 
3176 ac_aux_dir=
3177 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3178   if test -f "$ac_dir/install-sh"; then
3179     ac_aux_dir=$ac_dir
3180     ac_install_sh="$ac_aux_dir/install-sh -c"
3181     break
3182   elif test -f "$ac_dir/install.sh"; then
3183     ac_aux_dir=$ac_dir
3184     ac_install_sh="$ac_aux_dir/install.sh -c"
3185     break
3186   elif test -f "$ac_dir/shtool"; then
3187     ac_aux_dir=$ac_dir
3188     ac_install_sh="$ac_aux_dir/shtool install -c"
3189     break
3190   fi
3191 done
3192 if test -z "$ac_aux_dir"; then
3193   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
3194 fi
3195 
3196 # These three variables are undocumented and unsupported,
3197 # and are intended to be withdrawn in a future Autoconf release.
3198 # They can cause serious problems if a builder's source tree is in a directory
3199 # whose full name contains unusual characters.
3200 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3201 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3202 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3203 
3204 
3205 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3206 
3207 #
3208 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3209 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3210 #
3211 # This code is free software; you can redistribute it and/or modify it
3212 # under the terms of the GNU General Public License version 2 only, as
3213 # published by the Free Software Foundation.  Oracle designates this
3214 # particular file as subject to the "Classpath" exception as provided
3215 # by Oracle in the LICENSE file that accompanied this code.
3216 #
3217 # This code is distributed in the hope that it will be useful, but WITHOUT
3218 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3219 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3220 # version 2 for more details (a copy is included in the LICENSE file that
3221 # accompanied this code).
3222 #
3223 # You should have received a copy of the GNU General Public License version
3224 # 2 along with this work; if not, write to the Free Software Foundation,
3225 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3226 #
3227 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3228 # or visit www.oracle.com if you need additional information or have any
3229 # questions.
3230 #
3231 
3232 #
3233 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3234 #
3235 # This program is free software; you can redistribute it and/or modify
3236 # it under the terms of the GNU General Public License as published by
3237 # the Free Software Foundation; either version 2 of the License, or
3238 # (at your option) any later version.
3239 #
3240 # This program is distributed in the hope that it will be useful, but
3241 # WITHOUT ANY WARRANTY; without even the implied warranty of
3242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3243 # General Public License for more details.
3244 #
3245 # You should have received a copy of the GNU General Public License
3246 # along with this program; if not, write to the Free Software
3247 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3248 #
3249 # As a special exception to the GNU General Public License, if you
3250 # distribute this file as part of a program that contains a
3251 # configuration script generated by Autoconf, you may include it under
3252 # the same distribution terms that you use for the rest of that program.
3253 
3254 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3255 # ----------------------------------
3256 # PKG_PROG_PKG_CONFIG
3257 
3258 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3259 #
3260 # Check to see whether a particular set of modules exists.  Similar
3261 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3262 #
3263 #
3264 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3265 # this or PKG_CHECK_MODULES is called, or make sure to call
3266 # PKG_CHECK_EXISTS manually
3267 # --------------------------------------------------------------
3268 
3269 
3270 
3271 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3272 # ---------------------------------------------
3273 # _PKG_CONFIG
3274 
3275 # _PKG_SHORT_ERRORS_SUPPORTED
3276 # -----------------------------
3277 # _PKG_SHORT_ERRORS_SUPPORTED
3278 
3279 
3280 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3281 # [ACTION-IF-NOT-FOUND])
3282 #
3283 #
3284 # Note that if there is a possibility the first call to
3285 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3286 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3287 #
3288 #
3289 # --------------------------------------------------------------
3290 # PKG_CHECK_MODULES
3291 
3292 
3293 # Include these first...
3294 #
3295 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3296 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3297 #
3298 # This code is free software; you can redistribute it and/or modify it
3299 # under the terms of the GNU General Public License version 2 only, as
3300 # published by the Free Software Foundation.  Oracle designates this
3301 # particular file as subject to the "Classpath" exception as provided
3302 # by Oracle in the LICENSE file that accompanied this code.
3303 #
3304 # This code is distributed in the hope that it will be useful, but WITHOUT
3305 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3306 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3307 # version 2 for more details (a copy is included in the LICENSE file that
3308 # accompanied this code).
3309 #
3310 # You should have received a copy of the GNU General Public License version
3311 # 2 along with this work; if not, write to the Free Software Foundation,
3312 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3313 #
3314 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3315 # or visit www.oracle.com if you need additional information or have any
3316 # questions.
3317 #
3318 
3319 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3320 # If so, then append $1 to $2 \
3321 # Also set JVM_ARG_OK to true/false depending on outcome.
3322 
3323 
3324 # Appends a string to a path variable, only adding the : when needed.
3325 
3326 
3327 # This will make sure the given variable points to a full and proper
3328 # path. This means:
3329 # 1) There will be no spaces in the path. On posix platforms,
3330 #    spaces in the path will result in an error. On Windows,
3331 #    the path will be rewritten using short-style to be space-free.
3332 # 2) The path will be absolute, and it will be in unix-style (on
3333 #     cygwin).
3334 # $1: The name of the variable to fix
3335 
3336 
3337 # This will make sure the given variable points to a executable
3338 # with a full and proper 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 # Any arguments given to the executable is preserved.
3345 # If the input variable does not have a directory specification, then
3346 # it need to be in the PATH.
3347 # $1: The name of the variable to fix
3348 
3349 
3350 
3351 
3352 # Register a --with argument but mark it as deprecated
3353 # $1: The name of the with argument to deprecate, not including --with-
3354 
3355 
3356 # Register a --enable argument but mark it as deprecated
3357 # $1: The name of the with argument to deprecate, not including --enable-
3358 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3359 
3360 
3361 
3362 
3363 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3364 # $1: variable to check
3365 
3366 
3367 # Check that there are no unprocessed overridden variables left.
3368 # If so, they are an incorrect argument and we will exit with an error.
3369 
3370 
3371 # Setup a tool for the given variable. If correctly specified by the user,
3372 # use that value, otherwise search for the tool using the supplied code snippet.
3373 # $1: variable to set
3374 # $2: code snippet to call to look for the tool
3375 
3376 
3377 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3378 # $1: variable to set
3379 # $2: executable name (or list of names) to look for
3380 
3381 
3382 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3383 # $1: variable to set
3384 # $2: executable name (or list of names) to look for
3385 
3386 
3387 # Like BASIC_PATH_PROGS but fails if no tool was found.
3388 # $1: variable to set
3389 # $2: executable name (or list of names) to look for
3390 
3391 
3392 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3393 # $1: variable to set
3394 # $2: autoconf macro to call to look for the special tool
3395 
3396 
3397 # Setup the most fundamental tools that relies on not much else to set up,
3398 # but is used by much of the early bootstrap code.
3399 
3400 
3401 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3402 
3403 
3404 
3405 
3406 
3407 
3408 
3409 #%%% Simple tools %%%
3410 
3411 # Check if we have found a usable version of make
3412 # $1: the path to a potential make binary (or empty)
3413 # $2: the description on how we found this
3414 
3415 
3416 # Goes looking for a usable version of GNU make.
3417 
3418 
3419 
3420 
3421 
3422 
3423 # Check if build directory is on local disk. If not possible to determine,
3424 # we prefer to claim it's local.
3425 # Argument 1: directory to test
3426 # Argument 2: what to do if it is on local disk
3427 # Argument 3: what to do otherwise (remote disk or failure)
3428 
3429 
3430 # Check that source files have basic read permissions set. This might
3431 # not be the case in cygwin in certain conditions.
3432 
3433 
3434 
3435 
3436 #
3437 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3438 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3439 #
3440 # This code is free software; you can redistribute it and/or modify it
3441 # under the terms of the GNU General Public License version 2 only, as
3442 # published by the Free Software Foundation.  Oracle designates this
3443 # particular file as subject to the "Classpath" exception as provided
3444 # by Oracle in the LICENSE file that accompanied this code.
3445 #
3446 # This code is distributed in the hope that it will be useful, but WITHOUT
3447 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3448 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3449 # version 2 for more details (a copy is included in the LICENSE file that
3450 # accompanied this code).
3451 #
3452 # You should have received a copy of the GNU General Public License version
3453 # 2 along with this work; if not, write to the Free Software Foundation,
3454 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3455 #
3456 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3457 # or visit www.oracle.com if you need additional information or have any
3458 # questions.
3459 #
3460 
3461 
3462 
3463 
3464 
3465 # Helper function which possibly converts a path using DOS-style short mode.
3466 # If so, the updated path is stored in $new_path.
3467 # $1: The path to check
3468 
3469 
3470 # Helper function which possibly converts a path using DOS-style short mode.
3471 # If so, the updated path is stored in $new_path.
3472 # $1: The path to check
3473 
3474 
3475 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3476 # and could probably be heavily simplified. However, all changes in this
3477 # area tend to need lot of testing in different scenarios, and in lack of
3478 # proper unit testing, cleaning this up has not been deemed worth the effort
3479 # at the moment.
3480 
3481 
3482 
3483 
3484 
3485 
3486 
3487 
3488 
3489 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3490 
3491 
3492 
3493 
3494 #
3495 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3496 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3497 #
3498 # This code is free software; you can redistribute it and/or modify it
3499 # under the terms of the GNU General Public License version 2 only, as
3500 # published by the Free Software Foundation.  Oracle designates this
3501 # particular file as subject to the "Classpath" exception as provided
3502 # by Oracle in the LICENSE file that accompanied this code.
3503 #
3504 # This code is distributed in the hope that it will be useful, but WITHOUT
3505 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3506 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3507 # version 2 for more details (a copy is included in the LICENSE file that
3508 # accompanied this code).
3509 #
3510 # You should have received a copy of the GNU General Public License version
3511 # 2 along with this work; if not, write to the Free Software Foundation,
3512 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3513 #
3514 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3515 # or visit www.oracle.com if you need additional information or have any
3516 # questions.
3517 #
3518 
3519 
3520 
3521 
3522 
3523 
3524 
3525 
3526 
3527 
3528 
3529 # ... then the rest
3530 #
3531 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3532 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3533 #
3534 # This code is free software; you can redistribute it and/or modify it
3535 # under the terms of the GNU General Public License version 2 only, as
3536 # published by the Free Software Foundation.  Oracle designates this
3537 # particular file as subject to the "Classpath" exception as provided
3538 # by Oracle in the LICENSE file that accompanied this code.
3539 #
3540 # This code is distributed in the hope that it will be useful, but WITHOUT
3541 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3542 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3543 # version 2 for more details (a copy is included in the LICENSE file that
3544 # accompanied this code).
3545 #
3546 # You should have received a copy of the GNU General Public License version
3547 # 2 along with this work; if not, write to the Free Software Foundation,
3548 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3549 #
3550 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3551 # or visit www.oracle.com if you need additional information or have any
3552 # questions.
3553 #
3554 
3555 ########################################################################
3556 # This file handles detection of the Boot JDK. The Boot JDK detection
3557 # process has been developed as a response to solve a complex real-world
3558 # problem. Initially, it was simple, but it has grown as platform after
3559 # platform, idiosyncracy after idiosyncracy has been supported.
3560 #
3561 # The basic idea is this:
3562 # 1) You need an acceptable *) JDK to use as a Boot JDK
3563 # 2) There are several ways to locate a JDK, that are mostly platform
3564 #    dependent **)
3565 # 3) You can have multiple JDKs installed
3566 # 4) If possible, configure should try to dig out an acceptable JDK
3567 #    automatically, without having to resort to command-line options
3568 #
3569 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3570 #     javac) and not a JRE, etc.
3571 #
3572 # **) On Windows we typically use a well-known path.
3573 #     On MacOSX we typically use the tool java_home.
3574 #     On Linux we typically find javac in the $PATH, and then follow a
3575 #     chain of symlinks that often ends up in a real JDK.
3576 #
3577 # This leads to the code where we check in different ways to locate a
3578 # JDK, and if one is found, check if it is acceptable. If not, we print
3579 # our reasons for rejecting it (useful when debugging non-working
3580 # configure situations) and continue checking the next one.
3581 ########################################################################
3582 
3583 # Execute the check given as argument, and verify the result
3584 # If the Boot JDK was previously found, do nothing
3585 # $1 A command line (typically autoconf macro) to execute
3586 
3587 
3588 # Test: Is bootjdk explicitely set by command line arguments?
3589 
3590 
3591 # Test: Is bootjdk available from builddeps?
3592 
3593 
3594 # Test: Is $JAVA_HOME set?
3595 
3596 
3597 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3598 
3599 
3600 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3601 # $1: Argument to the java_home binary (optional)
3602 
3603 
3604 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3605 
3606 
3607 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3608 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3609 # $1 = Path to directory containing jdk installations.
3610 # $2 = String to append to the found JDK directory to get the proper JDK home
3611 
3612 
3613 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3614 # environmental variable as base for where to look.
3615 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3616 
3617 
3618 # Test: Is there a JDK installed in default, well-known locations?
3619 
3620 
3621 # Check that a command-line tool in the Boot JDK is correct
3622 # $1 = name of variable to assign
3623 # $2 = name of binary
3624 
3625 
3626 ###############################################################################
3627 #
3628 # We need a Boot JDK to bootstrap the build.
3629 #
3630 
3631 
3632 
3633 
3634 
3635 #
3636 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3637 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3638 #
3639 # This code is free software; you can redistribute it and/or modify it
3640 # under the terms of the GNU General Public License version 2 only, as
3641 # published by the Free Software Foundation.  Oracle designates this
3642 # particular file as subject to the "Classpath" exception as provided
3643 # by Oracle in the LICENSE file that accompanied this code.
3644 #
3645 # This code is distributed in the hope that it will be useful, but WITHOUT
3646 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3647 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3648 # version 2 for more details (a copy is included in the LICENSE file that
3649 # accompanied this code).
3650 #
3651 # You should have received a copy of the GNU General Public License version
3652 # 2 along with this work; if not, write to the Free Software Foundation,
3653 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3654 #
3655 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3656 # or visit www.oracle.com if you need additional information or have any
3657 # questions.
3658 #
3659 
3660 
3661 
3662 
3663 
3664 
3665 
3666 
3667 
3668 
3669 
3670 
3671 
3672 
3673 
3674 
3675 
3676 
3677 
3678 
3679 #
3680 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3681 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3682 #
3683 # This code is free software; you can redistribute it and/or modify it
3684 # under the terms of the GNU General Public License version 2 only, as
3685 # published by the Free Software Foundation.  Oracle designates this
3686 # particular file as subject to the "Classpath" exception as provided
3687 # by Oracle in the LICENSE file that accompanied this code.
3688 #
3689 # This code is distributed in the hope that it will be useful, but WITHOUT
3690 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3691 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3692 # version 2 for more details (a copy is included in the LICENSE file that
3693 # accompanied this code).
3694 #
3695 # You should have received a copy of the GNU General Public License version
3696 # 2 along with this work; if not, write to the Free Software Foundation,
3697 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3698 #
3699 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3700 # or visit www.oracle.com if you need additional information or have any
3701 # questions.
3702 #
3703 
3704 
3705 
3706 
3707 
3708 # Documentation on common flags used for solstudio in HIGHEST.
3709 #
3710 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3711 #          done with care, there are some assumptions below that need to
3712 #          be understood about the use of pointers, and IEEE behavior.
3713 #
3714 # -fns: Use non-standard floating point mode (not IEEE 754)
3715 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3716 # -fsingle: Use single precision floating point with 'float'
3717 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3718 #   (Source with excessing pointer casting and data access with mixed
3719 #    pointer types are not recommended)
3720 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3721 #   (If you expect perfect errno behavior, do not use this)
3722 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3723 # -xrestrict: Pointer parameters to functions do not overlap
3724 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3725 #    If you pass in multiple pointers to the same data, do not use this)
3726 # -xlibmil: Inline some library routines
3727 #   (If you expect perfect errno behavior, do not use this)
3728 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3729 #   (If you expect perfect errno behavior, do not use this)
3730 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3731 
3732     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3733     # Bug?
3734     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3735     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3736     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3737     #fi
3738 
3739 
3740 
3741 
3742 
3743 
3744 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3745 #                                   [RUN-IF-FALSE])
3746 # ------------------------------------------------------------
3747 # Check that the c and c++ compilers support an argument
3748 
3749 
3750 
3751 
3752 #
3753 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3754 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3755 #
3756 # This code is free software; you can redistribute it and/or modify it
3757 # under the terms of the GNU General Public License version 2 only, as
3758 # published by the Free Software Foundation.  Oracle designates this
3759 # particular file as subject to the "Classpath" exception as provided
3760 # by Oracle in the LICENSE file that accompanied this code.
3761 #
3762 # This code is distributed in the hope that it will be useful, but WITHOUT
3763 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3764 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3765 # version 2 for more details (a copy is included in the LICENSE file that
3766 # accompanied this code).
3767 #
3768 # You should have received a copy of the GNU General Public License version
3769 # 2 along with this work; if not, write to the Free Software Foundation,
3770 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3771 #
3772 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3773 # or visit www.oracle.com if you need additional information or have any
3774 # questions.
3775 #
3776 
3777 
3778 
3779 
3780 
3781 cygwin_help() {
3782   case $1 in
3783     unzip)
3784       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3785       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3786       ;;
3787     zip)
3788       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3789       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3790       ;;
3791     make)
3792       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3793       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3794       ;;
3795     freetype)
3796       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3797         HELP_MSG="To install freetype, run:
3798 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3799 chmod +x /tmp/freetype-setup.exe
3800 /tmp/freetype-setup.exe
3801 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3802 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3803       else
3804         HELP_MSG="You need to build a 64-bit version of freetype.
3805 This is not readily available.
3806 You can find source code and build instructions on
3807 http://www.freetype.org/
3808 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3809       fi
3810       ;;
3811   esac
3812 }
3813 
3814 msys_help() {
3815   PKGHANDLER_COMMAND=""
3816 }
3817 
3818 apt_help() {
3819   case $1 in
3820     devkit)
3821       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3822     openjdk)
3823       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3824     alsa)
3825       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3826     cups)
3827       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3828     freetype)
3829       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3830     pulse)
3831       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3832     x11)
3833       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3834     ccache)
3835       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3836   esac
3837 }
3838 
3839 yum_help() {
3840   case $1 in
3841     devkit)
3842       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3843     openjdk)
3844       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3845     alsa)
3846       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3847     cups)
3848       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3849     freetype)
3850       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3851     pulse)
3852       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3853     x11)
3854       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3855     ccache)
3856       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3857   esac
3858 }
3859 
3860 port_help() {
3861   PKGHANDLER_COMMAND=""
3862 }
3863 
3864 pkgutil_help() {
3865   PKGHANDLER_COMMAND=""
3866 }
3867 
3868 pkgadd_help() {
3869   PKGHANDLER_COMMAND=""
3870 }
3871 
3872 # This function will check if we're called from the "configure" wrapper while
3873 # printing --help. If so, we will print out additional information that can
3874 # only be extracted within the autoconf script, and then exit. This must be
3875 # called at the very beginning in configure.ac.
3876 
3877 
3878 
3879 
3880 #
3881 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3882 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3883 #
3884 # This code is free software; you can redistribute it and/or modify it
3885 # under the terms of the GNU General Public License version 2 only, as
3886 # published by the Free Software Foundation.  Oracle designates this
3887 # particular file as subject to the "Classpath" exception as provided
3888 # by Oracle in the LICENSE file that accompanied this code.
3889 #
3890 # This code is distributed in the hope that it will be useful, but WITHOUT
3891 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3892 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3893 # version 2 for more details (a copy is included in the LICENSE file that
3894 # accompanied this code).
3895 #
3896 # You should have received a copy of the GNU General Public License version
3897 # 2 along with this work; if not, write to the Free Software Foundation,
3898 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3899 #
3900 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3901 # or visit www.oracle.com if you need additional information or have any
3902 # questions.
3903 #
3904 
3905 
3906 
3907 
3908 
3909 
3910 
3911 
3912 
3913 
3914 ###############################################################################
3915 #
3916 # Should we build only OpenJDK even if closed sources are present?
3917 #
3918 
3919 
3920 
3921 
3922 ###############################################################################
3923 #
3924 # Setup version numbers
3925 #
3926 
3927 
3928 
3929 
3930 
3931 
3932 #
3933 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3934 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3935 #
3936 # This code is free software; you can redistribute it and/or modify it
3937 # under the terms of the GNU General Public License version 2 only, as
3938 # published by the Free Software Foundation.  Oracle designates this
3939 # particular file as subject to the "Classpath" exception as provided
3940 # by Oracle in the LICENSE file that accompanied this code.
3941 #
3942 # This code is distributed in the hope that it will be useful, but WITHOUT
3943 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3944 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3945 # version 2 for more details (a copy is included in the LICENSE file that
3946 # accompanied this code).
3947 #
3948 # You should have received a copy of the GNU General Public License version
3949 # 2 along with this work; if not, write to the Free Software Foundation,
3950 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3951 #
3952 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3953 # or visit www.oracle.com if you need additional information or have any
3954 # questions.
3955 #
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 #
3976 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3977 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3978 #
3979 # This code is free software; you can redistribute it and/or modify it
3980 # under the terms of the GNU General Public License version 2 only, as
3981 # published by the Free Software Foundation.  Oracle designates this
3982 # particular file as subject to the "Classpath" exception as provided
3983 # by Oracle in the LICENSE file that accompanied this code.
3984 #
3985 # This code is distributed in the hope that it will be useful, but WITHOUT
3986 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3987 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3988 # version 2 for more details (a copy is included in the LICENSE file that
3989 # accompanied this code).
3990 #
3991 # You should have received a copy of the GNU General Public License version
3992 # 2 along with this work; if not, write to the Free Software Foundation,
3993 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3994 #
3995 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3996 # or visit www.oracle.com if you need additional information or have any
3997 # questions.
3998 #
3999 
4000 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4001 # Converts autoconf style CPU name to OpenJDK style, into
4002 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4003 
4004 
4005 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4006 # Converts autoconf style OS name to OpenJDK style, into
4007 # VAR_OS and VAR_OS_API.
4008 
4009 
4010 # Expects $host_os $host_cpu $build_os and $build_cpu
4011 # and $with_target_bits to have been setup!
4012 #
4013 # Translate the standard triplet(quadruplet) definition
4014 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4015 # OPENJDK_BUILD_OS, etc.
4016 
4017 
4018 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4019 # accordingly. Must be done after setting up build and target system, but before
4020 # doing anything else with these values.
4021 
4022 
4023 # Setup the legacy variables, for controlling the old makefiles.
4024 #
4025 
4026 
4027 
4028 
4029 #%%% Build and target systems %%%
4030 
4031 
4032 
4033 
4034 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4035 # Add -mX to various FLAGS variables.
4036 
4037 
4038 
4039 
4040 
4041 
4042 #
4043 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4044 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4045 #
4046 # This code is free software; you can redistribute it and/or modify it
4047 # under the terms of the GNU General Public License version 2 only, as
4048 # published by the Free Software Foundation.  Oracle designates this
4049 # particular file as subject to the "Classpath" exception as provided
4050 # by Oracle in the LICENSE file that accompanied this code.
4051 #
4052 # This code is distributed in the hope that it will be useful, but WITHOUT
4053 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4054 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4055 # version 2 for more details (a copy is included in the LICENSE file that
4056 # accompanied this code).
4057 #
4058 # You should have received a copy of the GNU General Public License version
4059 # 2 along with this work; if not, write to the Free Software Foundation,
4060 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4061 #
4062 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4063 # or visit www.oracle.com if you need additional information or have any
4064 # questions.
4065 #
4066 
4067 
4068 
4069 
4070 
4071 
4072 
4073 
4074 #
4075 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4076 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4077 #
4078 # This code is free software; you can redistribute it and/or modify it
4079 # under the terms of the GNU General Public License version 2 only, as
4080 # published by the Free Software Foundation.  Oracle designates this
4081 # particular file as subject to the "Classpath" exception as provided
4082 # by Oracle in the LICENSE file that accompanied this code.
4083 #
4084 # This code is distributed in the hope that it will be useful, but WITHOUT
4085 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4086 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4087 # version 2 for more details (a copy is included in the LICENSE file that
4088 # accompanied this code).
4089 #
4090 # You should have received a copy of the GNU General Public License version
4091 # 2 along with this work; if not, write to the Free Software Foundation,
4092 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4093 #
4094 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4095 # or visit www.oracle.com if you need additional information or have any
4096 # questions.
4097 #
4098 
4099 ########################################################################
4100 # This file is responsible for detecting, verifying and setting up the
4101 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4102 # proper paths to the binaries, but it will not setup any flags.
4103 #
4104 # The binaries used is determined by the toolchain type, which is the family of
4105 # compilers and related tools that are used.
4106 ########################################################################
4107 
4108 
4109 # All valid toolchains, regardless of platform (used by help.m4)
4110 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4111 
4112 # These toolchains are valid on different platforms
4113 VALID_TOOLCHAINS_linux="gcc clang"
4114 VALID_TOOLCHAINS_solaris="solstudio"
4115 VALID_TOOLCHAINS_macosx="gcc clang"
4116 VALID_TOOLCHAINS_aix="xlc"
4117 VALID_TOOLCHAINS_windows="microsoft"
4118 
4119 # Toolchain descriptions
4120 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4121 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4122 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4123 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4124 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4125 
4126 # Setup a number of variables describing how native output files are
4127 # named on this platform/toolchain.
4128 
4129 
4130 # Determine which toolchain type to use, and make sure it is valid for this
4131 # platform. Setup various information about the selected toolchain.
4132 
4133 
4134 # Before we start detecting the toolchain executables, we might need some
4135 # special setup, e.g. additional paths etc.
4136 
4137 
4138 # Restore path, etc
4139 
4140 
4141 # Check if a compiler is of the toolchain type we expect, and save the version
4142 # information from it. If the compiler does not match the expected type,
4143 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4144 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4145 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4146 #
4147 # $1 = compiler to test (CC or CXX)
4148 # $2 = human readable name of compiler (C or C++)
4149 
4150 
4151 # Try to locate the given C or C++ compiler in the path, or otherwise.
4152 #
4153 # $1 = compiler to test (CC or CXX)
4154 # $2 = human readable name of compiler (C or C++)
4155 # $3 = list of compiler names to search for
4156 
4157 
4158 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4159 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4160 # archiver (AR). Verify that the compilers are correct according to the
4161 # toolchain type.
4162 
4163 
4164 # Setup additional tools that is considered a part of the toolchain, but not the
4165 # core part. Many of these are highly platform-specific and do not exist,
4166 # and/or are not needed on all platforms.
4167 
4168 
4169 # Setup the build tools (i.e, the compiler and linker used to build programs
4170 # that should be run on the build platform, not the target platform, as a build
4171 # helper). Since the non-cross-compile case uses the normal, target compilers
4172 # for this, we can only do this after these have been setup.
4173 
4174 
4175 # Setup legacy variables that are still needed as alternative ways to refer to
4176 # parts of the toolchain.
4177 
4178 
4179 # Do some additional checks on the detected tools.
4180 
4181 
4182 # Setup the JTReg Regression Test Harness.
4183 
4184 
4185 #
4186 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4187 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4188 #
4189 # This code is free software; you can redistribute it and/or modify it
4190 # under the terms of the GNU General Public License version 2 only, as
4191 # published by the Free Software Foundation.  Oracle designates this
4192 # particular file as subject to the "Classpath" exception as provided
4193 # by Oracle in the LICENSE file that accompanied this code.
4194 #
4195 # This code is distributed in the hope that it will be useful, but WITHOUT
4196 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4197 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4198 # version 2 for more details (a copy is included in the LICENSE file that
4199 # accompanied this code).
4200 #
4201 # You should have received a copy of the GNU General Public License version
4202 # 2 along with this work; if not, write to the Free Software Foundation,
4203 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4204 #
4205 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4206 # or visit www.oracle.com if you need additional information or have any
4207 # questions.
4208 #
4209 
4210 
4211 
4212 
4213 
4214 
4215 
4216 # Check if the VS env variables were setup prior to running configure.
4217 # If not, then find vcvarsall.bat and run it automatically, and integrate
4218 # the set env variables into the spec file.
4219 
4220 
4221 
4222 
4223 
4224 
4225 
4226 
4227 
4228 
4229 # This line needs to be here, verbatim, after all includes and the dummy hook
4230 # definitions. It is replaced with custom functionality when building
4231 # custom sources.
4232 #CUSTOM_AUTOCONF_INCLUDE
4233 
4234 # Do not change or remove the following line, it is needed for consistency checks:
4235 DATE_WHEN_GENERATED=1394794899
4236 
4237 ###############################################################################
4238 #
4239 # Initialization / Boot-strapping
4240 #
4241 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4242 # thus it jumps back and forth, each time gaining something needed later on.
4243 #
4244 ###############################################################################
4245 
4246 # If we are requested to print additional help, do that and then exit.
4247 # This must be the very first call.
4248 
4249   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4250     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4251     $PRINTF "Which are valid to use depends on the build platform.\n"
4252     for toolchain in $VALID_TOOLCHAINS_all; do
4253       # Use indirect variable referencing
4254       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4255       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4256       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4257     done
4258 
4259     # And now exit directly
4260     exit 0
4261   fi
4262 
4263 
4264 # Basic initialization that must happen first of all in the normal process.
4265 
4266   # Save the original command line. This is passed to us by the wrapper configure script.
4267 
4268   DATE_WHEN_CONFIGURED=`LANG=C date`
4269 
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4271 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4272   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4273 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4274 
4275 
4276   # Start with tools that do not need have cross compilation support
4277   # and can be expected to be found in the default PATH. These tools are
4278   # used by configure. Nor are these tools expected to be found in the
4279   # devkit from the builddeps server either, since they are
4280   # needed to download the devkit.
4281 
4282   # First are all the simple required tools.
4283 
4284 
4285 
4286   # Publish this variable in the help.
4287 
4288 
4289   if test "x$BASENAME" = x; then
4290     # The variable is not set by user, try to locate tool using the code snippet
4291     for ac_prog in basename
4292 do
4293   # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy $ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_path_BASENAME+:} false; then :
4298   $as_echo_n "(cached) " >&6
4299 else
4300   case $BASENAME in
4301   [\\/]* | ?:[\\/]*)
4302   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4303   ;;
4304   *)
4305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310     for ac_exec_ext in '' $ac_executable_extensions; do
4311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317   done
4318 IFS=$as_save_IFS
4319 
4320   ;;
4321 esac
4322 fi
4323 BASENAME=$ac_cv_path_BASENAME
4324 if test -n "$BASENAME"; then
4325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4326 $as_echo "$BASENAME" >&6; }
4327 else
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4330 fi
4331 
4332 
4333   test -n "$BASENAME" && break
4334 done
4335 
4336   else
4337     # The variable is set, but is it from the command line or the environment?
4338 
4339     # Try to remove the string !BASENAME! from our list.
4340     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4341     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4342       # If it failed, the variable was not from the command line. Ignore it,
4343       # but warn the user (except for BASH, which is always set by the calling BASH).
4344       if test "xBASENAME" != xBASH; then
4345         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4346 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4347       fi
4348       # Try to locate tool using the code snippet
4349       for ac_prog in basename
4350 do
4351   # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_path_BASENAME+:} false; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   case $BASENAME in
4359   [\\/]* | ?:[\\/]*)
4360   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4361   ;;
4362   *)
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_exec_ext in '' $ac_executable_extensions; do
4369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375   done
4376 IFS=$as_save_IFS
4377 
4378   ;;
4379 esac
4380 fi
4381 BASENAME=$ac_cv_path_BASENAME
4382 if test -n "$BASENAME"; then
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4384 $as_echo "$BASENAME" >&6; }
4385 else
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389 
4390 
4391   test -n "$BASENAME" && break
4392 done
4393 
4394     else
4395       # If it succeeded, then it was overridden by the user. We will use it
4396       # for the tool.
4397 
4398       # First remove it from the list of overridden variables, so we can test
4399       # for unknown variables in the end.
4400       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4401 
4402       # Check if the provided tool contains a complete path.
4403       tool_specified="$BASENAME"
4404       tool_basename="${tool_specified##*/}"
4405       if test "x$tool_basename" = "x$tool_specified"; then
4406         # A command without a complete path is provided, search $PATH.
4407         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4408 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4409         # Extract the first word of "$tool_basename", so it can be a program name with args.
4410 set dummy $tool_basename; ac_word=$2
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412 $as_echo_n "checking for $ac_word... " >&6; }
4413 if ${ac_cv_path_BASENAME+:} false; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416   case $BASENAME in
4417   [\\/]* | ?:[\\/]*)
4418   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4419   ;;
4420   *)
4421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426     for ac_exec_ext in '' $ac_executable_extensions; do
4427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433   done
4434 IFS=$as_save_IFS
4435 
4436   ;;
4437 esac
4438 fi
4439 BASENAME=$ac_cv_path_BASENAME
4440 if test -n "$BASENAME"; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4442 $as_echo "$BASENAME" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447 
4448 
4449         if test "x$BASENAME" = x; then
4450           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4451         fi
4452       else
4453         # Otherwise we believe it is a complete path. Use it as it is.
4454         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4455 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4457 $as_echo_n "checking for BASENAME... " >&6; }
4458         if test ! -x "$tool_specified"; then
4459           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4460 $as_echo "not found" >&6; }
4461           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4462         fi
4463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4464 $as_echo "$tool_specified" >&6; }
4465       fi
4466     fi
4467   fi
4468 
4469 
4470 
4471   if test "x$BASENAME" = x; then
4472     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4473   fi
4474 
4475 
4476 
4477 
4478 
4479   # Publish this variable in the help.
4480 
4481 
4482   if test "x$BASH" = x; then
4483     # The variable is not set by user, try to locate tool using the code snippet
4484     for ac_prog in bash
4485 do
4486   # Extract the first word of "$ac_prog", so it can be a program name with args.
4487 set dummy $ac_prog; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if ${ac_cv_path_BASH+:} false; then :
4491   $as_echo_n "(cached) " >&6
4492 else
4493   case $BASH in
4494   [\\/]* | ?:[\\/]*)
4495   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4496   ;;
4497   *)
4498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503     for ac_exec_ext in '' $ac_executable_extensions; do
4504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510   done
4511 IFS=$as_save_IFS
4512 
4513   ;;
4514 esac
4515 fi
4516 BASH=$ac_cv_path_BASH
4517 if test -n "$BASH"; then
4518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4519 $as_echo "$BASH" >&6; }
4520 else
4521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524 
4525 
4526   test -n "$BASH" && break
4527 done
4528 
4529   else
4530     # The variable is set, but is it from the command line or the environment?
4531 
4532     # Try to remove the string !BASH! from our list.
4533     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4534     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4535       # If it failed, the variable was not from the command line. Ignore it,
4536       # but warn the user (except for BASH, which is always set by the calling BASH).
4537       if test "xBASH" != xBASH; then
4538         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4539 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4540       fi
4541       # Try to locate tool using the code snippet
4542       for ac_prog in bash
4543 do
4544   # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_path_BASH+:} false; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   case $BASH in
4552   [\\/]* | ?:[\\/]*)
4553   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4554   ;;
4555   *)
4556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568   done
4569 IFS=$as_save_IFS
4570 
4571   ;;
4572 esac
4573 fi
4574 BASH=$ac_cv_path_BASH
4575 if test -n "$BASH"; then
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4577 $as_echo "$BASH" >&6; }
4578 else
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582 
4583 
4584   test -n "$BASH" && break
4585 done
4586 
4587     else
4588       # If it succeeded, then it was overridden by the user. We will use it
4589       # for the tool.
4590 
4591       # First remove it from the list of overridden variables, so we can test
4592       # for unknown variables in the end.
4593       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4594 
4595       # Check if the provided tool contains a complete path.
4596       tool_specified="$BASH"
4597       tool_basename="${tool_specified##*/}"
4598       if test "x$tool_basename" = "x$tool_specified"; then
4599         # A command without a complete path is provided, search $PATH.
4600         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4601 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4602         # Extract the first word of "$tool_basename", so it can be a program name with args.
4603 set dummy $tool_basename; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_path_BASH+:} false; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609   case $BASH in
4610   [\\/]* | ?:[\\/]*)
4611   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4612   ;;
4613   *)
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_exec_ext in '' $ac_executable_extensions; do
4620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626   done
4627 IFS=$as_save_IFS
4628 
4629   ;;
4630 esac
4631 fi
4632 BASH=$ac_cv_path_BASH
4633 if test -n "$BASH"; then
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4635 $as_echo "$BASH" >&6; }
4636 else
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4639 fi
4640 
4641 
4642         if test "x$BASH" = x; then
4643           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4644         fi
4645       else
4646         # Otherwise we believe it is a complete path. Use it as it is.
4647         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4648 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4650 $as_echo_n "checking for BASH... " >&6; }
4651         if test ! -x "$tool_specified"; then
4652           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4653 $as_echo "not found" >&6; }
4654           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4655         fi
4656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4657 $as_echo "$tool_specified" >&6; }
4658       fi
4659     fi
4660   fi
4661 
4662 
4663 
4664   if test "x$BASH" = x; then
4665     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4666   fi
4667 
4668 
4669 
4670 
4671 
4672   # Publish this variable in the help.
4673 
4674 
4675   if test "x$CAT" = x; then
4676     # The variable is not set by user, try to locate tool using the code snippet
4677     for ac_prog in cat
4678 do
4679   # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_path_CAT+:} false; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   case $CAT in
4687   [\\/]* | ?:[\\/]*)
4688   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4689   ;;
4690   *)
4691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696     for ac_exec_ext in '' $ac_executable_extensions; do
4697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700     break 2
4701   fi
4702 done
4703   done
4704 IFS=$as_save_IFS
4705 
4706   ;;
4707 esac
4708 fi
4709 CAT=$ac_cv_path_CAT
4710 if test -n "$CAT"; then
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4712 $as_echo "$CAT" >&6; }
4713 else
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717 
4718 
4719   test -n "$CAT" && break
4720 done
4721 
4722   else
4723     # The variable is set, but is it from the command line or the environment?
4724 
4725     # Try to remove the string !CAT! from our list.
4726     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4727     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4728       # If it failed, the variable was not from the command line. Ignore it,
4729       # but warn the user (except for BASH, which is always set by the calling BASH).
4730       if test "xCAT" != xBASH; then
4731         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4732 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4733       fi
4734       # Try to locate tool using the code snippet
4735       for ac_prog in cat
4736 do
4737   # Extract the first word of "$ac_prog", so it can be a program name with args.
4738 set dummy $ac_prog; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_path_CAT+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   case $CAT in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763 
4764   ;;
4765 esac
4766 fi
4767 CAT=$ac_cv_path_CAT
4768 if test -n "$CAT"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4770 $as_echo "$CAT" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775 
4776 
4777   test -n "$CAT" && break
4778 done
4779 
4780     else
4781       # If it succeeded, then it was overridden by the user. We will use it
4782       # for the tool.
4783 
4784       # First remove it from the list of overridden variables, so we can test
4785       # for unknown variables in the end.
4786       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4787 
4788       # Check if the provided tool contains a complete path.
4789       tool_specified="$CAT"
4790       tool_basename="${tool_specified##*/}"
4791       if test "x$tool_basename" = "x$tool_specified"; then
4792         # A command without a complete path is provided, search $PATH.
4793         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4794 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4795         # Extract the first word of "$tool_basename", so it can be a program name with args.
4796 set dummy $tool_basename; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_path_CAT+:} false; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   case $CAT in
4803   [\\/]* | ?:[\\/]*)
4804   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4805   ;;
4806   *)
4807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810   IFS=$as_save_IFS
4811   test -z "$as_dir" && as_dir=.
4812     for ac_exec_ext in '' $ac_executable_extensions; do
4813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816     break 2
4817   fi
4818 done
4819   done
4820 IFS=$as_save_IFS
4821 
4822   ;;
4823 esac
4824 fi
4825 CAT=$ac_cv_path_CAT
4826 if test -n "$CAT"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4828 $as_echo "$CAT" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833 
4834 
4835         if test "x$CAT" = x; then
4836           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4837         fi
4838       else
4839         # Otherwise we believe it is a complete path. Use it as it is.
4840         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4841 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4843 $as_echo_n "checking for CAT... " >&6; }
4844         if test ! -x "$tool_specified"; then
4845           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4846 $as_echo "not found" >&6; }
4847           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4848         fi
4849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4850 $as_echo "$tool_specified" >&6; }
4851       fi
4852     fi
4853   fi
4854 
4855 
4856 
4857   if test "x$CAT" = x; then
4858     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4859   fi
4860 
4861 
4862 
4863 
4864 
4865   # Publish this variable in the help.
4866 
4867 
4868   if test "x$CHMOD" = x; then
4869     # The variable is not set by user, try to locate tool using the code snippet
4870     for ac_prog in chmod
4871 do
4872   # Extract the first word of "$ac_prog", so it can be a program name with args.
4873 set dummy $ac_prog; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if ${ac_cv_path_CHMOD+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   case $CHMOD in
4880   [\\/]* | ?:[\\/]*)
4881   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4882   ;;
4883   *)
4884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887   IFS=$as_save_IFS
4888   test -z "$as_dir" && as_dir=.
4889     for ac_exec_ext in '' $ac_executable_extensions; do
4890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893     break 2
4894   fi
4895 done
4896   done
4897 IFS=$as_save_IFS
4898 
4899   ;;
4900 esac
4901 fi
4902 CHMOD=$ac_cv_path_CHMOD
4903 if test -n "$CHMOD"; then
4904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4905 $as_echo "$CHMOD" >&6; }
4906 else
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910 
4911 
4912   test -n "$CHMOD" && break
4913 done
4914 
4915   else
4916     # The variable is set, but is it from the command line or the environment?
4917 
4918     # Try to remove the string !CHMOD! from our list.
4919     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4920     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4921       # If it failed, the variable was not from the command line. Ignore it,
4922       # but warn the user (except for BASH, which is always set by the calling BASH).
4923       if test "xCHMOD" != xBASH; then
4924         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4925 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4926       fi
4927       # Try to locate tool using the code snippet
4928       for ac_prog in chmod
4929 do
4930   # Extract the first word of "$ac_prog", so it can be a program name with args.
4931 set dummy $ac_prog; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_path_CHMOD+:} false; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937   case $CHMOD in
4938   [\\/]* | ?:[\\/]*)
4939   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4940   ;;
4941   *)
4942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947     for ac_exec_ext in '' $ac_executable_extensions; do
4948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954   done
4955 IFS=$as_save_IFS
4956 
4957   ;;
4958 esac
4959 fi
4960 CHMOD=$ac_cv_path_CHMOD
4961 if test -n "$CHMOD"; then
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4963 $as_echo "$CHMOD" >&6; }
4964 else
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968 
4969 
4970   test -n "$CHMOD" && break
4971 done
4972 
4973     else
4974       # If it succeeded, then it was overridden by the user. We will use it
4975       # for the tool.
4976 
4977       # First remove it from the list of overridden variables, so we can test
4978       # for unknown variables in the end.
4979       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4980 
4981       # Check if the provided tool contains a complete path.
4982       tool_specified="$CHMOD"
4983       tool_basename="${tool_specified##*/}"
4984       if test "x$tool_basename" = "x$tool_specified"; then
4985         # A command without a complete path is provided, search $PATH.
4986         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4987 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4988         # Extract the first word of "$tool_basename", so it can be a program name with args.
4989 set dummy $tool_basename; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_CHMOD+:} false; then :
4993   $as_echo_n "(cached) " >&6
4994 else
4995   case $CHMOD in
4996   [\\/]* | ?:[\\/]*)
4997   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4998   ;;
4999   *)
5000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014 
5015   ;;
5016 esac
5017 fi
5018 CHMOD=$ac_cv_path_CHMOD
5019 if test -n "$CHMOD"; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5021 $as_echo "$CHMOD" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026 
5027 
5028         if test "x$CHMOD" = x; then
5029           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5030         fi
5031       else
5032         # Otherwise we believe it is a complete path. Use it as it is.
5033         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5034 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5036 $as_echo_n "checking for CHMOD... " >&6; }
5037         if test ! -x "$tool_specified"; then
5038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5039 $as_echo "not found" >&6; }
5040           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5041         fi
5042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5043 $as_echo "$tool_specified" >&6; }
5044       fi
5045     fi
5046   fi
5047 
5048 
5049 
5050   if test "x$CHMOD" = x; then
5051     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5052   fi
5053 
5054 
5055 
5056 
5057 
5058   # Publish this variable in the help.
5059 
5060 
5061   if test "x$CMP" = x; then
5062     # The variable is not set by user, try to locate tool using the code snippet
5063     for ac_prog in cmp
5064 do
5065   # Extract the first word of "$ac_prog", so it can be a program name with args.
5066 set dummy $ac_prog; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_path_CMP+:} false; then :
5070   $as_echo_n "(cached) " >&6
5071 else
5072   case $CMP in
5073   [\\/]* | ?:[\\/]*)
5074   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5075   ;;
5076   *)
5077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082     for ac_exec_ext in '' $ac_executable_extensions; do
5083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089   done
5090 IFS=$as_save_IFS
5091 
5092   ;;
5093 esac
5094 fi
5095 CMP=$ac_cv_path_CMP
5096 if test -n "$CMP"; then
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5098 $as_echo "$CMP" >&6; }
5099 else
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103 
5104 
5105   test -n "$CMP" && break
5106 done
5107 
5108   else
5109     # The variable is set, but is it from the command line or the environment?
5110 
5111     # Try to remove the string !CMP! from our list.
5112     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5113     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5114       # If it failed, the variable was not from the command line. Ignore it,
5115       # but warn the user (except for BASH, which is always set by the calling BASH).
5116       if test "xCMP" != xBASH; then
5117         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5118 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5119       fi
5120       # Try to locate tool using the code snippet
5121       for ac_prog in cmp
5122 do
5123   # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_path_CMP+:} false; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   case $CMP in
5131   [\\/]* | ?:[\\/]*)
5132   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5133   ;;
5134   *)
5135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149 
5150   ;;
5151 esac
5152 fi
5153 CMP=$ac_cv_path_CMP
5154 if test -n "$CMP"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5156 $as_echo "$CMP" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161 
5162 
5163   test -n "$CMP" && break
5164 done
5165 
5166     else
5167       # If it succeeded, then it was overridden by the user. We will use it
5168       # for the tool.
5169 
5170       # First remove it from the list of overridden variables, so we can test
5171       # for unknown variables in the end.
5172       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5173 
5174       # Check if the provided tool contains a complete path.
5175       tool_specified="$CMP"
5176       tool_basename="${tool_specified##*/}"
5177       if test "x$tool_basename" = "x$tool_specified"; then
5178         # A command without a complete path is provided, search $PATH.
5179         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5180 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5181         # Extract the first word of "$tool_basename", so it can be a program name with args.
5182 set dummy $tool_basename; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_path_CMP+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   case $CMP in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205   done
5206 IFS=$as_save_IFS
5207 
5208   ;;
5209 esac
5210 fi
5211 CMP=$ac_cv_path_CMP
5212 if test -n "$CMP"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5214 $as_echo "$CMP" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219 
5220 
5221         if test "x$CMP" = x; then
5222           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5223         fi
5224       else
5225         # Otherwise we believe it is a complete path. Use it as it is.
5226         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5227 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5229 $as_echo_n "checking for CMP... " >&6; }
5230         if test ! -x "$tool_specified"; then
5231           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5232 $as_echo "not found" >&6; }
5233           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5234         fi
5235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5236 $as_echo "$tool_specified" >&6; }
5237       fi
5238     fi
5239   fi
5240 
5241 
5242 
5243   if test "x$CMP" = x; then
5244     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5245   fi
5246 
5247 
5248 
5249 
5250 
5251   # Publish this variable in the help.
5252 
5253 
5254   if test "x$COMM" = x; then
5255     # The variable is not set by user, try to locate tool using the code snippet
5256     for ac_prog in comm
5257 do
5258   # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_path_COMM+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   case $COMM in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done
5283 IFS=$as_save_IFS
5284 
5285   ;;
5286 esac
5287 fi
5288 COMM=$ac_cv_path_COMM
5289 if test -n "$COMM"; then
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5291 $as_echo "$COMM" >&6; }
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296 
5297 
5298   test -n "$COMM" && break
5299 done
5300 
5301   else
5302     # The variable is set, but is it from the command line or the environment?
5303 
5304     # Try to remove the string !COMM! from our list.
5305     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5306     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5307       # If it failed, the variable was not from the command line. Ignore it,
5308       # but warn the user (except for BASH, which is always set by the calling BASH).
5309       if test "xCOMM" != xBASH; then
5310         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5311 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5312       fi
5313       # Try to locate tool using the code snippet
5314       for ac_prog in comm
5315 do
5316   # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_COMM+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   case $COMM in
5324   [\\/]* | ?:[\\/]*)
5325   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5326   ;;
5327   *)
5328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333     for ac_exec_ext in '' $ac_executable_extensions; do
5334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342 
5343   ;;
5344 esac
5345 fi
5346 COMM=$ac_cv_path_COMM
5347 if test -n "$COMM"; then
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5349 $as_echo "$COMM" >&6; }
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354 
5355 
5356   test -n "$COMM" && break
5357 done
5358 
5359     else
5360       # If it succeeded, then it was overridden by the user. We will use it
5361       # for the tool.
5362 
5363       # First remove it from the list of overridden variables, so we can test
5364       # for unknown variables in the end.
5365       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5366 
5367       # Check if the provided tool contains a complete path.
5368       tool_specified="$COMM"
5369       tool_basename="${tool_specified##*/}"
5370       if test "x$tool_basename" = "x$tool_specified"; then
5371         # A command without a complete path is provided, search $PATH.
5372         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5373 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5374         # Extract the first word of "$tool_basename", so it can be a program name with args.
5375 set dummy $tool_basename; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_path_COMM+:} false; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   case $COMM in
5382   [\\/]* | ?:[\\/]*)
5383   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5384   ;;
5385   *)
5386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391     for ac_exec_ext in '' $ac_executable_extensions; do
5392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398   done
5399 IFS=$as_save_IFS
5400 
5401   ;;
5402 esac
5403 fi
5404 COMM=$ac_cv_path_COMM
5405 if test -n "$COMM"; then
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5407 $as_echo "$COMM" >&6; }
5408 else
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412 
5413 
5414         if test "x$COMM" = x; then
5415           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5416         fi
5417       else
5418         # Otherwise we believe it is a complete path. Use it as it is.
5419         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5420 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5422 $as_echo_n "checking for COMM... " >&6; }
5423         if test ! -x "$tool_specified"; then
5424           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5425 $as_echo "not found" >&6; }
5426           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5427         fi
5428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5429 $as_echo "$tool_specified" >&6; }
5430       fi
5431     fi
5432   fi
5433 
5434 
5435 
5436   if test "x$COMM" = x; then
5437     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5438   fi
5439 
5440 
5441 
5442 
5443 
5444   # Publish this variable in the help.
5445 
5446 
5447   if test "x$CP" = x; then
5448     # The variable is not set by user, try to locate tool using the code snippet
5449     for ac_prog in cp
5450 do
5451   # Extract the first word of "$ac_prog", so it can be a program name with args.
5452 set dummy $ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_path_CP+:} false; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   case $CP in
5459   [\\/]* | ?:[\\/]*)
5460   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5461   ;;
5462   *)
5463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477 
5478   ;;
5479 esac
5480 fi
5481 CP=$ac_cv_path_CP
5482 if test -n "$CP"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5484 $as_echo "$CP" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489 
5490 
5491   test -n "$CP" && break
5492 done
5493 
5494   else
5495     # The variable is set, but is it from the command line or the environment?
5496 
5497     # Try to remove the string !CP! from our list.
5498     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5499     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5500       # If it failed, the variable was not from the command line. Ignore it,
5501       # but warn the user (except for BASH, which is always set by the calling BASH).
5502       if test "xCP" != xBASH; then
5503         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5504 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5505       fi
5506       # Try to locate tool using the code snippet
5507       for ac_prog in cp
5508 do
5509   # Extract the first word of "$ac_prog", so it can be a program name with args.
5510 set dummy $ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_path_CP+:} false; then :
5514   $as_echo_n "(cached) " >&6
5515 else
5516   case $CP in
5517   [\\/]* | ?:[\\/]*)
5518   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5519   ;;
5520   *)
5521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526     for ac_exec_ext in '' $ac_executable_extensions; do
5527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533   done
5534 IFS=$as_save_IFS
5535 
5536   ;;
5537 esac
5538 fi
5539 CP=$ac_cv_path_CP
5540 if test -n "$CP"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5542 $as_echo "$CP" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547 
5548 
5549   test -n "$CP" && break
5550 done
5551 
5552     else
5553       # If it succeeded, then it was overridden by the user. We will use it
5554       # for the tool.
5555 
5556       # First remove it from the list of overridden variables, so we can test
5557       # for unknown variables in the end.
5558       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5559 
5560       # Check if the provided tool contains a complete path.
5561       tool_specified="$CP"
5562       tool_basename="${tool_specified##*/}"
5563       if test "x$tool_basename" = "x$tool_specified"; then
5564         # A command without a complete path is provided, search $PATH.
5565         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5566 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5567         # Extract the first word of "$tool_basename", so it can be a program name with args.
5568 set dummy $tool_basename; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_path_CP+:} false; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   case $CP in
5575   [\\/]* | ?:[\\/]*)
5576   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5577   ;;
5578   *)
5579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582   IFS=$as_save_IFS
5583   test -z "$as_dir" && as_dir=.
5584     for ac_exec_ext in '' $ac_executable_extensions; do
5585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588     break 2
5589   fi
5590 done
5591   done
5592 IFS=$as_save_IFS
5593 
5594   ;;
5595 esac
5596 fi
5597 CP=$ac_cv_path_CP
5598 if test -n "$CP"; then
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5600 $as_echo "$CP" >&6; }
5601 else
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605 
5606 
5607         if test "x$CP" = x; then
5608           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5609         fi
5610       else
5611         # Otherwise we believe it is a complete path. Use it as it is.
5612         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5613 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5615 $as_echo_n "checking for CP... " >&6; }
5616         if test ! -x "$tool_specified"; then
5617           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5618 $as_echo "not found" >&6; }
5619           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5620         fi
5621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5622 $as_echo "$tool_specified" >&6; }
5623       fi
5624     fi
5625   fi
5626 
5627 
5628 
5629   if test "x$CP" = x; then
5630     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5631   fi
5632 
5633 
5634 
5635 
5636 
5637   # Publish this variable in the help.
5638 
5639 
5640   if test "x$CPIO" = x; then
5641     # The variable is not set by user, try to locate tool using the code snippet
5642     for ac_prog in cpio
5643 do
5644   # Extract the first word of "$ac_prog", so it can be a program name with args.
5645 set dummy $ac_prog; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_path_CPIO+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   case $CPIO in
5652   [\\/]* | ?:[\\/]*)
5653   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5654   ;;
5655   *)
5656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661     for ac_exec_ext in '' $ac_executable_extensions; do
5662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668   done
5669 IFS=$as_save_IFS
5670 
5671   ;;
5672 esac
5673 fi
5674 CPIO=$ac_cv_path_CPIO
5675 if test -n "$CPIO"; then
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5677 $as_echo "$CPIO" >&6; }
5678 else
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682 
5683 
5684   test -n "$CPIO" && break
5685 done
5686 
5687   else
5688     # The variable is set, but is it from the command line or the environment?
5689 
5690     # Try to remove the string !CPIO! from our list.
5691     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5692     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5693       # If it failed, the variable was not from the command line. Ignore it,
5694       # but warn the user (except for BASH, which is always set by the calling BASH).
5695       if test "xCPIO" != xBASH; then
5696         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5697 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5698       fi
5699       # Try to locate tool using the code snippet
5700       for ac_prog in cpio
5701 do
5702   # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_path_CPIO+:} false; then :
5707   $as_echo_n "(cached) " >&6
5708 else
5709   case $CPIO in
5710   [\\/]* | ?:[\\/]*)
5711   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5712   ;;
5713   *)
5714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719     for ac_exec_ext in '' $ac_executable_extensions; do
5720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726   done
5727 IFS=$as_save_IFS
5728 
5729   ;;
5730 esac
5731 fi
5732 CPIO=$ac_cv_path_CPIO
5733 if test -n "$CPIO"; then
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5735 $as_echo "$CPIO" >&6; }
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740 
5741 
5742   test -n "$CPIO" && break
5743 done
5744 
5745     else
5746       # If it succeeded, then it was overridden by the user. We will use it
5747       # for the tool.
5748 
5749       # First remove it from the list of overridden variables, so we can test
5750       # for unknown variables in the end.
5751       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5752 
5753       # Check if the provided tool contains a complete path.
5754       tool_specified="$CPIO"
5755       tool_basename="${tool_specified##*/}"
5756       if test "x$tool_basename" = "x$tool_specified"; then
5757         # A command without a complete path is provided, search $PATH.
5758         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5759 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5760         # Extract the first word of "$tool_basename", so it can be a program name with args.
5761 set dummy $tool_basename; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_path_CPIO+:} false; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   case $CPIO in
5768   [\\/]* | ?:[\\/]*)
5769   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5770   ;;
5771   *)
5772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777     for ac_exec_ext in '' $ac_executable_extensions; do
5778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784   done
5785 IFS=$as_save_IFS
5786 
5787   ;;
5788 esac
5789 fi
5790 CPIO=$ac_cv_path_CPIO
5791 if test -n "$CPIO"; then
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5793 $as_echo "$CPIO" >&6; }
5794 else
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798 
5799 
5800         if test "x$CPIO" = x; then
5801           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5802         fi
5803       else
5804         # Otherwise we believe it is a complete path. Use it as it is.
5805         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5806 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5808 $as_echo_n "checking for CPIO... " >&6; }
5809         if test ! -x "$tool_specified"; then
5810           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5811 $as_echo "not found" >&6; }
5812           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5813         fi
5814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5815 $as_echo "$tool_specified" >&6; }
5816       fi
5817     fi
5818   fi
5819 
5820 
5821 
5822   if test "x$CPIO" = x; then
5823     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5824   fi
5825 
5826 
5827 
5828 
5829 
5830   # Publish this variable in the help.
5831 
5832 
5833   if test "x$CUT" = x; then
5834     # The variable is not set by user, try to locate tool using the code snippet
5835     for ac_prog in cut
5836 do
5837   # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_path_CUT+:} false; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   case $CUT in
5845   [\\/]* | ?:[\\/]*)
5846   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5847   ;;
5848   *)
5849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854     for ac_exec_ext in '' $ac_executable_extensions; do
5855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861   done
5862 IFS=$as_save_IFS
5863 
5864   ;;
5865 esac
5866 fi
5867 CUT=$ac_cv_path_CUT
5868 if test -n "$CUT"; then
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5870 $as_echo "$CUT" >&6; }
5871 else
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875 
5876 
5877   test -n "$CUT" && break
5878 done
5879 
5880   else
5881     # The variable is set, but is it from the command line or the environment?
5882 
5883     # Try to remove the string !CUT! from our list.
5884     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5885     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5886       # If it failed, the variable was not from the command line. Ignore it,
5887       # but warn the user (except for BASH, which is always set by the calling BASH).
5888       if test "xCUT" != xBASH; then
5889         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5890 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5891       fi
5892       # Try to locate tool using the code snippet
5893       for ac_prog in cut
5894 do
5895   # Extract the first word of "$ac_prog", so it can be a program name with args.
5896 set dummy $ac_prog; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if ${ac_cv_path_CUT+:} false; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   case $CUT in
5903   [\\/]* | ?:[\\/]*)
5904   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5905   ;;
5906   *)
5907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912     for ac_exec_ext in '' $ac_executable_extensions; do
5913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916     break 2
5917   fi
5918 done
5919   done
5920 IFS=$as_save_IFS
5921 
5922   ;;
5923 esac
5924 fi
5925 CUT=$ac_cv_path_CUT
5926 if test -n "$CUT"; then
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5928 $as_echo "$CUT" >&6; }
5929 else
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933 
5934 
5935   test -n "$CUT" && break
5936 done
5937 
5938     else
5939       # If it succeeded, then it was overridden by the user. We will use it
5940       # for the tool.
5941 
5942       # First remove it from the list of overridden variables, so we can test
5943       # for unknown variables in the end.
5944       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5945 
5946       # Check if the provided tool contains a complete path.
5947       tool_specified="$CUT"
5948       tool_basename="${tool_specified##*/}"
5949       if test "x$tool_basename" = "x$tool_specified"; then
5950         # A command without a complete path is provided, search $PATH.
5951         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5952 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5953         # Extract the first word of "$tool_basename", so it can be a program name with args.
5954 set dummy $tool_basename; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_path_CUT+:} false; then :
5958   $as_echo_n "(cached) " >&6
5959 else
5960   case $CUT in
5961   [\\/]* | ?:[\\/]*)
5962   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5963   ;;
5964   *)
5965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979 
5980   ;;
5981 esac
5982 fi
5983 CUT=$ac_cv_path_CUT
5984 if test -n "$CUT"; then
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5986 $as_echo "$CUT" >&6; }
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991 
5992 
5993         if test "x$CUT" = x; then
5994           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5995         fi
5996       else
5997         # Otherwise we believe it is a complete path. Use it as it is.
5998         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5999 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6001 $as_echo_n "checking for CUT... " >&6; }
6002         if test ! -x "$tool_specified"; then
6003           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6004 $as_echo "not found" >&6; }
6005           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6006         fi
6007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6008 $as_echo "$tool_specified" >&6; }
6009       fi
6010     fi
6011   fi
6012 
6013 
6014 
6015   if test "x$CUT" = x; then
6016     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6017   fi
6018 
6019 
6020 
6021 
6022 
6023   # Publish this variable in the help.
6024 
6025 
6026   if test "x$DATE" = x; then
6027     # The variable is not set by user, try to locate tool using the code snippet
6028     for ac_prog in date
6029 do
6030   # Extract the first word of "$ac_prog", so it can be a program name with args.
6031 set dummy $ac_prog; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_path_DATE+:} false; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037   case $DATE in
6038   [\\/]* | ?:[\\/]*)
6039   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6040   ;;
6041   *)
6042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047     for ac_exec_ext in '' $ac_executable_extensions; do
6048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054   done
6055 IFS=$as_save_IFS
6056 
6057   ;;
6058 esac
6059 fi
6060 DATE=$ac_cv_path_DATE
6061 if test -n "$DATE"; then
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6063 $as_echo "$DATE" >&6; }
6064 else
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6067 fi
6068 
6069 
6070   test -n "$DATE" && break
6071 done
6072 
6073   else
6074     # The variable is set, but is it from the command line or the environment?
6075 
6076     # Try to remove the string !DATE! from our list.
6077     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6078     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6079       # If it failed, the variable was not from the command line. Ignore it,
6080       # but warn the user (except for BASH, which is always set by the calling BASH).
6081       if test "xDATE" != xBASH; then
6082         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6083 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6084       fi
6085       # Try to locate tool using the code snippet
6086       for ac_prog in date
6087 do
6088   # Extract the first word of "$ac_prog", so it can be a program name with args.
6089 set dummy $ac_prog; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_path_DATE+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   case $DATE in
6096   [\\/]* | ?:[\\/]*)
6097   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6098   ;;
6099   *)
6100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105     for ac_exec_ext in '' $ac_executable_extensions; do
6106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112   done
6113 IFS=$as_save_IFS
6114 
6115   ;;
6116 esac
6117 fi
6118 DATE=$ac_cv_path_DATE
6119 if test -n "$DATE"; then
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6121 $as_echo "$DATE" >&6; }
6122 else
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126 
6127 
6128   test -n "$DATE" && break
6129 done
6130 
6131     else
6132       # If it succeeded, then it was overridden by the user. We will use it
6133       # for the tool.
6134 
6135       # First remove it from the list of overridden variables, so we can test
6136       # for unknown variables in the end.
6137       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6138 
6139       # Check if the provided tool contains a complete path.
6140       tool_specified="$DATE"
6141       tool_basename="${tool_specified##*/}"
6142       if test "x$tool_basename" = "x$tool_specified"; then
6143         # A command without a complete path is provided, search $PATH.
6144         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6145 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6146         # Extract the first word of "$tool_basename", so it can be a program name with args.
6147 set dummy $tool_basename; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if ${ac_cv_path_DATE+:} false; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   case $DATE in
6154   [\\/]* | ?:[\\/]*)
6155   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6156   ;;
6157   *)
6158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163     for ac_exec_ext in '' $ac_executable_extensions; do
6164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170   done
6171 IFS=$as_save_IFS
6172 
6173   ;;
6174 esac
6175 fi
6176 DATE=$ac_cv_path_DATE
6177 if test -n "$DATE"; then
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6179 $as_echo "$DATE" >&6; }
6180 else
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184 
6185 
6186         if test "x$DATE" = x; then
6187           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6188         fi
6189       else
6190         # Otherwise we believe it is a complete path. Use it as it is.
6191         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6192 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6194 $as_echo_n "checking for DATE... " >&6; }
6195         if test ! -x "$tool_specified"; then
6196           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6197 $as_echo "not found" >&6; }
6198           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6199         fi
6200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6201 $as_echo "$tool_specified" >&6; }
6202       fi
6203     fi
6204   fi
6205 
6206 
6207 
6208   if test "x$DATE" = x; then
6209     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6210   fi
6211 
6212 
6213 
6214 
6215 
6216   # Publish this variable in the help.
6217 
6218 
6219   if test "x$DIFF" = x; then
6220     # The variable is not set by user, try to locate tool using the code snippet
6221     for ac_prog in gdiff diff
6222 do
6223   # Extract the first word of "$ac_prog", so it can be a program name with args.
6224 set dummy $ac_prog; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_path_DIFF+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   case $DIFF in
6231   [\\/]* | ?:[\\/]*)
6232   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6233   ;;
6234   *)
6235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238   IFS=$as_save_IFS
6239   test -z "$as_dir" && as_dir=.
6240     for ac_exec_ext in '' $ac_executable_extensions; do
6241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244     break 2
6245   fi
6246 done
6247   done
6248 IFS=$as_save_IFS
6249 
6250   ;;
6251 esac
6252 fi
6253 DIFF=$ac_cv_path_DIFF
6254 if test -n "$DIFF"; then
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6256 $as_echo "$DIFF" >&6; }
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261 
6262 
6263   test -n "$DIFF" && break
6264 done
6265 
6266   else
6267     # The variable is set, but is it from the command line or the environment?
6268 
6269     # Try to remove the string !DIFF! from our list.
6270     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6271     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6272       # If it failed, the variable was not from the command line. Ignore it,
6273       # but warn the user (except for BASH, which is always set by the calling BASH).
6274       if test "xDIFF" != xBASH; then
6275         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6276 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6277       fi
6278       # Try to locate tool using the code snippet
6279       for ac_prog in gdiff diff
6280 do
6281   # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_path_DIFF+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   case $DIFF in
6289   [\\/]* | ?:[\\/]*)
6290   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6291   ;;
6292   *)
6293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_exec_ext in '' $ac_executable_extensions; do
6299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305   done
6306 IFS=$as_save_IFS
6307 
6308   ;;
6309 esac
6310 fi
6311 DIFF=$ac_cv_path_DIFF
6312 if test -n "$DIFF"; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6314 $as_echo "$DIFF" >&6; }
6315 else
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319 
6320 
6321   test -n "$DIFF" && break
6322 done
6323 
6324     else
6325       # If it succeeded, then it was overridden by the user. We will use it
6326       # for the tool.
6327 
6328       # First remove it from the list of overridden variables, so we can test
6329       # for unknown variables in the end.
6330       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6331 
6332       # Check if the provided tool contains a complete path.
6333       tool_specified="$DIFF"
6334       tool_basename="${tool_specified##*/}"
6335       if test "x$tool_basename" = "x$tool_specified"; then
6336         # A command without a complete path is provided, search $PATH.
6337         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6338 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6339         # Extract the first word of "$tool_basename", so it can be a program name with args.
6340 set dummy $tool_basename; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_path_DIFF+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   case $DIFF in
6347   [\\/]* | ?:[\\/]*)
6348   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6349   ;;
6350   *)
6351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356     for ac_exec_ext in '' $ac_executable_extensions; do
6357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363   done
6364 IFS=$as_save_IFS
6365 
6366   ;;
6367 esac
6368 fi
6369 DIFF=$ac_cv_path_DIFF
6370 if test -n "$DIFF"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6372 $as_echo "$DIFF" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377 
6378 
6379         if test "x$DIFF" = x; then
6380           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6381         fi
6382       else
6383         # Otherwise we believe it is a complete path. Use it as it is.
6384         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6385 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6386         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6387 $as_echo_n "checking for DIFF... " >&6; }
6388         if test ! -x "$tool_specified"; then
6389           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6390 $as_echo "not found" >&6; }
6391           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6392         fi
6393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6394 $as_echo "$tool_specified" >&6; }
6395       fi
6396     fi
6397   fi
6398 
6399 
6400 
6401   if test "x$DIFF" = x; then
6402     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6403   fi
6404 
6405 
6406 
6407 
6408 
6409   # Publish this variable in the help.
6410 
6411 
6412   if test "x$DIRNAME" = x; then
6413     # The variable is not set by user, try to locate tool using the code snippet
6414     for ac_prog in dirname
6415 do
6416   # Extract the first word of "$ac_prog", so it can be a program name with args.
6417 set dummy $ac_prog; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_path_DIRNAME+:} false; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   case $DIRNAME in
6424   [\\/]* | ?:[\\/]*)
6425   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6426   ;;
6427   *)
6428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431   IFS=$as_save_IFS
6432   test -z "$as_dir" && as_dir=.
6433     for ac_exec_ext in '' $ac_executable_extensions; do
6434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437     break 2
6438   fi
6439 done
6440   done
6441 IFS=$as_save_IFS
6442 
6443   ;;
6444 esac
6445 fi
6446 DIRNAME=$ac_cv_path_DIRNAME
6447 if test -n "$DIRNAME"; then
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6449 $as_echo "$DIRNAME" >&6; }
6450 else
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454 
6455 
6456   test -n "$DIRNAME" && break
6457 done
6458 
6459   else
6460     # The variable is set, but is it from the command line or the environment?
6461 
6462     # Try to remove the string !DIRNAME! from our list.
6463     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6464     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6465       # If it failed, the variable was not from the command line. Ignore it,
6466       # but warn the user (except for BASH, which is always set by the calling BASH).
6467       if test "xDIRNAME" != xBASH; then
6468         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6469 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6470       fi
6471       # Try to locate tool using the code snippet
6472       for ac_prog in dirname
6473 do
6474   # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_path_DIRNAME+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   case $DIRNAME in
6482   [\\/]* | ?:[\\/]*)
6483   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6484   ;;
6485   *)
6486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491     for ac_exec_ext in '' $ac_executable_extensions; do
6492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498   done
6499 IFS=$as_save_IFS
6500 
6501   ;;
6502 esac
6503 fi
6504 DIRNAME=$ac_cv_path_DIRNAME
6505 if test -n "$DIRNAME"; then
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6507 $as_echo "$DIRNAME" >&6; }
6508 else
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512 
6513 
6514   test -n "$DIRNAME" && break
6515 done
6516 
6517     else
6518       # If it succeeded, then it was overridden by the user. We will use it
6519       # for the tool.
6520 
6521       # First remove it from the list of overridden variables, so we can test
6522       # for unknown variables in the end.
6523       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6524 
6525       # Check if the provided tool contains a complete path.
6526       tool_specified="$DIRNAME"
6527       tool_basename="${tool_specified##*/}"
6528       if test "x$tool_basename" = "x$tool_specified"; then
6529         # A command without a complete path is provided, search $PATH.
6530         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6531 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6532         # Extract the first word of "$tool_basename", so it can be a program name with args.
6533 set dummy $tool_basename; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_path_DIRNAME+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   case $DIRNAME in
6540   [\\/]* | ?:[\\/]*)
6541   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6542   ;;
6543   *)
6544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549     for ac_exec_ext in '' $ac_executable_extensions; do
6550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556   done
6557 IFS=$as_save_IFS
6558 
6559   ;;
6560 esac
6561 fi
6562 DIRNAME=$ac_cv_path_DIRNAME
6563 if test -n "$DIRNAME"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6565 $as_echo "$DIRNAME" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570 
6571 
6572         if test "x$DIRNAME" = x; then
6573           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6574         fi
6575       else
6576         # Otherwise we believe it is a complete path. Use it as it is.
6577         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6578 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6579         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6580 $as_echo_n "checking for DIRNAME... " >&6; }
6581         if test ! -x "$tool_specified"; then
6582           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6583 $as_echo "not found" >&6; }
6584           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6585         fi
6586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6587 $as_echo "$tool_specified" >&6; }
6588       fi
6589     fi
6590   fi
6591 
6592 
6593 
6594   if test "x$DIRNAME" = x; then
6595     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6596   fi
6597 
6598 
6599 
6600 
6601 
6602   # Publish this variable in the help.
6603 
6604 
6605   if test "x$ECHO" = x; then
6606     # The variable is not set by user, try to locate tool using the code snippet
6607     for ac_prog in echo
6608 do
6609   # Extract the first word of "$ac_prog", so it can be a program name with args.
6610 set dummy $ac_prog; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_path_ECHO+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   case $ECHO in
6617   [\\/]* | ?:[\\/]*)
6618   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6619   ;;
6620   *)
6621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626     for ac_exec_ext in '' $ac_executable_extensions; do
6627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635 
6636   ;;
6637 esac
6638 fi
6639 ECHO=$ac_cv_path_ECHO
6640 if test -n "$ECHO"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6642 $as_echo "$ECHO" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647 
6648 
6649   test -n "$ECHO" && break
6650 done
6651 
6652   else
6653     # The variable is set, but is it from the command line or the environment?
6654 
6655     # Try to remove the string !ECHO! from our list.
6656     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6657     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6658       # If it failed, the variable was not from the command line. Ignore it,
6659       # but warn the user (except for BASH, which is always set by the calling BASH).
6660       if test "xECHO" != xBASH; then
6661         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6662 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6663       fi
6664       # Try to locate tool using the code snippet
6665       for ac_prog in echo
6666 do
6667   # Extract the first word of "$ac_prog", so it can be a program name with args.
6668 set dummy $ac_prog; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_path_ECHO+:} false; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674   case $ECHO in
6675   [\\/]* | ?:[\\/]*)
6676   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6677   ;;
6678   *)
6679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693 
6694   ;;
6695 esac
6696 fi
6697 ECHO=$ac_cv_path_ECHO
6698 if test -n "$ECHO"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6700 $as_echo "$ECHO" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705 
6706 
6707   test -n "$ECHO" && break
6708 done
6709 
6710     else
6711       # If it succeeded, then it was overridden by the user. We will use it
6712       # for the tool.
6713 
6714       # First remove it from the list of overridden variables, so we can test
6715       # for unknown variables in the end.
6716       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6717 
6718       # Check if the provided tool contains a complete path.
6719       tool_specified="$ECHO"
6720       tool_basename="${tool_specified##*/}"
6721       if test "x$tool_basename" = "x$tool_specified"; then
6722         # A command without a complete path is provided, search $PATH.
6723         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6724 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6725         # Extract the first word of "$tool_basename", so it can be a program name with args.
6726 set dummy $tool_basename; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_path_ECHO+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   case $ECHO in
6733   [\\/]* | ?:[\\/]*)
6734   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6735   ;;
6736   *)
6737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742     for ac_exec_ext in '' $ac_executable_extensions; do
6743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749   done
6750 IFS=$as_save_IFS
6751 
6752   ;;
6753 esac
6754 fi
6755 ECHO=$ac_cv_path_ECHO
6756 if test -n "$ECHO"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6758 $as_echo "$ECHO" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763 
6764 
6765         if test "x$ECHO" = x; then
6766           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6767         fi
6768       else
6769         # Otherwise we believe it is a complete path. Use it as it is.
6770         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6771 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6773 $as_echo_n "checking for ECHO... " >&6; }
6774         if test ! -x "$tool_specified"; then
6775           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6776 $as_echo "not found" >&6; }
6777           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6778         fi
6779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6780 $as_echo "$tool_specified" >&6; }
6781       fi
6782     fi
6783   fi
6784 
6785 
6786 
6787   if test "x$ECHO" = x; then
6788     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6789   fi
6790 
6791 
6792 
6793 
6794 
6795   # Publish this variable in the help.
6796 
6797 
6798   if test "x$EXPR" = x; then
6799     # The variable is not set by user, try to locate tool using the code snippet
6800     for ac_prog in expr
6801 do
6802   # Extract the first word of "$ac_prog", so it can be a program name with args.
6803 set dummy $ac_prog; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_path_EXPR+:} false; then :
6807   $as_echo_n "(cached) " >&6
6808 else
6809   case $EXPR in
6810   [\\/]* | ?:[\\/]*)
6811   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6812   ;;
6813   *)
6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819     for ac_exec_ext in '' $ac_executable_extensions; do
6820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826   done
6827 IFS=$as_save_IFS
6828 
6829   ;;
6830 esac
6831 fi
6832 EXPR=$ac_cv_path_EXPR
6833 if test -n "$EXPR"; then
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6835 $as_echo "$EXPR" >&6; }
6836 else
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840 
6841 
6842   test -n "$EXPR" && break
6843 done
6844 
6845   else
6846     # The variable is set, but is it from the command line or the environment?
6847 
6848     # Try to remove the string !EXPR! from our list.
6849     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6850     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6851       # If it failed, the variable was not from the command line. Ignore it,
6852       # but warn the user (except for BASH, which is always set by the calling BASH).
6853       if test "xEXPR" != xBASH; then
6854         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6855 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6856       fi
6857       # Try to locate tool using the code snippet
6858       for ac_prog in expr
6859 do
6860   # Extract the first word of "$ac_prog", so it can be a program name with args.
6861 set dummy $ac_prog; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_path_EXPR+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   case $EXPR in
6868   [\\/]* | ?:[\\/]*)
6869   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6870   ;;
6871   *)
6872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877     for ac_exec_ext in '' $ac_executable_extensions; do
6878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884   done
6885 IFS=$as_save_IFS
6886 
6887   ;;
6888 esac
6889 fi
6890 EXPR=$ac_cv_path_EXPR
6891 if test -n "$EXPR"; then
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6893 $as_echo "$EXPR" >&6; }
6894 else
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898 
6899 
6900   test -n "$EXPR" && break
6901 done
6902 
6903     else
6904       # If it succeeded, then it was overridden by the user. We will use it
6905       # for the tool.
6906 
6907       # First remove it from the list of overridden variables, so we can test
6908       # for unknown variables in the end.
6909       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6910 
6911       # Check if the provided tool contains a complete path.
6912       tool_specified="$EXPR"
6913       tool_basename="${tool_specified##*/}"
6914       if test "x$tool_basename" = "x$tool_specified"; then
6915         # A command without a complete path is provided, search $PATH.
6916         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6917 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6918         # Extract the first word of "$tool_basename", so it can be a program name with args.
6919 set dummy $tool_basename; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_path_EXPR+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   case $EXPR in
6926   [\\/]* | ?:[\\/]*)
6927   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6928   ;;
6929   *)
6930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933   IFS=$as_save_IFS
6934   test -z "$as_dir" && as_dir=.
6935     for ac_exec_ext in '' $ac_executable_extensions; do
6936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939     break 2
6940   fi
6941 done
6942   done
6943 IFS=$as_save_IFS
6944 
6945   ;;
6946 esac
6947 fi
6948 EXPR=$ac_cv_path_EXPR
6949 if test -n "$EXPR"; then
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6951 $as_echo "$EXPR" >&6; }
6952 else
6953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6955 fi
6956 
6957 
6958         if test "x$EXPR" = x; then
6959           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6960         fi
6961       else
6962         # Otherwise we believe it is a complete path. Use it as it is.
6963         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6964 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6965         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6966 $as_echo_n "checking for EXPR... " >&6; }
6967         if test ! -x "$tool_specified"; then
6968           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6969 $as_echo "not found" >&6; }
6970           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6971         fi
6972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6973 $as_echo "$tool_specified" >&6; }
6974       fi
6975     fi
6976   fi
6977 
6978 
6979 
6980   if test "x$EXPR" = x; then
6981     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6982   fi
6983 
6984 
6985 
6986 
6987 
6988   # Publish this variable in the help.
6989 
6990 
6991   if test "x$FILE" = x; then
6992     # The variable is not set by user, try to locate tool using the code snippet
6993     for ac_prog in file
6994 do
6995   # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_path_FILE+:} false; then :
7000   $as_echo_n "(cached) " >&6
7001 else
7002   case $FILE in
7003   [\\/]* | ?:[\\/]*)
7004   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7005   ;;
7006   *)
7007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012     for ac_exec_ext in '' $ac_executable_extensions; do
7013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019   done
7020 IFS=$as_save_IFS
7021 
7022   ;;
7023 esac
7024 fi
7025 FILE=$ac_cv_path_FILE
7026 if test -n "$FILE"; then
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7028 $as_echo "$FILE" >&6; }
7029 else
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033 
7034 
7035   test -n "$FILE" && break
7036 done
7037 
7038   else
7039     # The variable is set, but is it from the command line or the environment?
7040 
7041     # Try to remove the string !FILE! from our list.
7042     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7043     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7044       # If it failed, the variable was not from the command line. Ignore it,
7045       # but warn the user (except for BASH, which is always set by the calling BASH).
7046       if test "xFILE" != xBASH; then
7047         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7048 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7049       fi
7050       # Try to locate tool using the code snippet
7051       for ac_prog in file
7052 do
7053   # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if ${ac_cv_path_FILE+:} false; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   case $FILE in
7061   [\\/]* | ?:[\\/]*)
7062   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7063   ;;
7064   *)
7065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077   done
7078 IFS=$as_save_IFS
7079 
7080   ;;
7081 esac
7082 fi
7083 FILE=$ac_cv_path_FILE
7084 if test -n "$FILE"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7086 $as_echo "$FILE" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091 
7092 
7093   test -n "$FILE" && break
7094 done
7095 
7096     else
7097       # If it succeeded, then it was overridden by the user. We will use it
7098       # for the tool.
7099 
7100       # First remove it from the list of overridden variables, so we can test
7101       # for unknown variables in the end.
7102       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7103 
7104       # Check if the provided tool contains a complete path.
7105       tool_specified="$FILE"
7106       tool_basename="${tool_specified##*/}"
7107       if test "x$tool_basename" = "x$tool_specified"; then
7108         # A command without a complete path is provided, search $PATH.
7109         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7110 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7111         # Extract the first word of "$tool_basename", so it can be a program name with args.
7112 set dummy $tool_basename; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_path_FILE+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   case $FILE in
7119   [\\/]* | ?:[\\/]*)
7120   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7121   ;;
7122   *)
7123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126   IFS=$as_save_IFS
7127   test -z "$as_dir" && as_dir=.
7128     for ac_exec_ext in '' $ac_executable_extensions; do
7129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132     break 2
7133   fi
7134 done
7135   done
7136 IFS=$as_save_IFS
7137 
7138   ;;
7139 esac
7140 fi
7141 FILE=$ac_cv_path_FILE
7142 if test -n "$FILE"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7144 $as_echo "$FILE" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149 
7150 
7151         if test "x$FILE" = x; then
7152           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7153         fi
7154       else
7155         # Otherwise we believe it is a complete path. Use it as it is.
7156         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7157 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7159 $as_echo_n "checking for FILE... " >&6; }
7160         if test ! -x "$tool_specified"; then
7161           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7162 $as_echo "not found" >&6; }
7163           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7164         fi
7165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7166 $as_echo "$tool_specified" >&6; }
7167       fi
7168     fi
7169   fi
7170 
7171 
7172 
7173   if test "x$FILE" = x; then
7174     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7175   fi
7176 
7177 
7178 
7179 
7180 
7181   # Publish this variable in the help.
7182 
7183 
7184   if test "x$FIND" = x; then
7185     # The variable is not set by user, try to locate tool using the code snippet
7186     for ac_prog in find
7187 do
7188   # Extract the first word of "$ac_prog", so it can be a program name with args.
7189 set dummy $ac_prog; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_path_FIND+:} false; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   case $FIND in
7196   [\\/]* | ?:[\\/]*)
7197   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7198   ;;
7199   *)
7200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203   IFS=$as_save_IFS
7204   test -z "$as_dir" && as_dir=.
7205     for ac_exec_ext in '' $ac_executable_extensions; do
7206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209     break 2
7210   fi
7211 done
7212   done
7213 IFS=$as_save_IFS
7214 
7215   ;;
7216 esac
7217 fi
7218 FIND=$ac_cv_path_FIND
7219 if test -n "$FIND"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7221 $as_echo "$FIND" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226 
7227 
7228   test -n "$FIND" && break
7229 done
7230 
7231   else
7232     # The variable is set, but is it from the command line or the environment?
7233 
7234     # Try to remove the string !FIND! from our list.
7235     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7236     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7237       # If it failed, the variable was not from the command line. Ignore it,
7238       # but warn the user (except for BASH, which is always set by the calling BASH).
7239       if test "xFIND" != xBASH; then
7240         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7241 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7242       fi
7243       # Try to locate tool using the code snippet
7244       for ac_prog in find
7245 do
7246   # Extract the first word of "$ac_prog", so it can be a program name with args.
7247 set dummy $ac_prog; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_path_FIND+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   case $FIND in
7254   [\\/]* | ?:[\\/]*)
7255   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7256   ;;
7257   *)
7258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272 
7273   ;;
7274 esac
7275 fi
7276 FIND=$ac_cv_path_FIND
7277 if test -n "$FIND"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7279 $as_echo "$FIND" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284 
7285 
7286   test -n "$FIND" && break
7287 done
7288 
7289     else
7290       # If it succeeded, then it was overridden by the user. We will use it
7291       # for the tool.
7292 
7293       # First remove it from the list of overridden variables, so we can test
7294       # for unknown variables in the end.
7295       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7296 
7297       # Check if the provided tool contains a complete path.
7298       tool_specified="$FIND"
7299       tool_basename="${tool_specified##*/}"
7300       if test "x$tool_basename" = "x$tool_specified"; then
7301         # A command without a complete path is provided, search $PATH.
7302         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7303 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7304         # Extract the first word of "$tool_basename", so it can be a program name with args.
7305 set dummy $tool_basename; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_path_FIND+:} false; then :
7309   $as_echo_n "(cached) " >&6
7310 else
7311   case $FIND in
7312   [\\/]* | ?:[\\/]*)
7313   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7314   ;;
7315   *)
7316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321     for ac_exec_ext in '' $ac_executable_extensions; do
7322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328   done
7329 IFS=$as_save_IFS
7330 
7331   ;;
7332 esac
7333 fi
7334 FIND=$ac_cv_path_FIND
7335 if test -n "$FIND"; then
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7337 $as_echo "$FIND" >&6; }
7338 else
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342 
7343 
7344         if test "x$FIND" = x; then
7345           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7346         fi
7347       else
7348         # Otherwise we believe it is a complete path. Use it as it is.
7349         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7350 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7352 $as_echo_n "checking for FIND... " >&6; }
7353         if test ! -x "$tool_specified"; then
7354           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7355 $as_echo "not found" >&6; }
7356           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7357         fi
7358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7359 $as_echo "$tool_specified" >&6; }
7360       fi
7361     fi
7362   fi
7363 
7364 
7365 
7366   if test "x$FIND" = x; then
7367     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7368   fi
7369 
7370 
7371 
7372 
7373 
7374   # Publish this variable in the help.
7375 
7376 
7377   if test "x$HEAD" = x; then
7378     # The variable is not set by user, try to locate tool using the code snippet
7379     for ac_prog in head
7380 do
7381   # Extract the first word of "$ac_prog", so it can be a program name with args.
7382 set dummy $ac_prog; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_path_HEAD+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   case $HEAD in
7389   [\\/]* | ?:[\\/]*)
7390   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7391   ;;
7392   *)
7393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398     for ac_exec_ext in '' $ac_executable_extensions; do
7399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405   done
7406 IFS=$as_save_IFS
7407 
7408   ;;
7409 esac
7410 fi
7411 HEAD=$ac_cv_path_HEAD
7412 if test -n "$HEAD"; then
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7414 $as_echo "$HEAD" >&6; }
7415 else
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419 
7420 
7421   test -n "$HEAD" && break
7422 done
7423 
7424   else
7425     # The variable is set, but is it from the command line or the environment?
7426 
7427     # Try to remove the string !HEAD! from our list.
7428     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7429     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7430       # If it failed, the variable was not from the command line. Ignore it,
7431       # but warn the user (except for BASH, which is always set by the calling BASH).
7432       if test "xHEAD" != xBASH; then
7433         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7434 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7435       fi
7436       # Try to locate tool using the code snippet
7437       for ac_prog in head
7438 do
7439   # Extract the first word of "$ac_prog", so it can be a program name with args.
7440 set dummy $ac_prog; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_path_HEAD+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   case $HEAD in
7447   [\\/]* | ?:[\\/]*)
7448   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7449   ;;
7450   *)
7451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465 
7466   ;;
7467 esac
7468 fi
7469 HEAD=$ac_cv_path_HEAD
7470 if test -n "$HEAD"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7472 $as_echo "$HEAD" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477 
7478 
7479   test -n "$HEAD" && break
7480 done
7481 
7482     else
7483       # If it succeeded, then it was overridden by the user. We will use it
7484       # for the tool.
7485 
7486       # First remove it from the list of overridden variables, so we can test
7487       # for unknown variables in the end.
7488       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7489 
7490       # Check if the provided tool contains a complete path.
7491       tool_specified="$HEAD"
7492       tool_basename="${tool_specified##*/}"
7493       if test "x$tool_basename" = "x$tool_specified"; then
7494         # A command without a complete path is provided, search $PATH.
7495         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7496 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7497         # Extract the first word of "$tool_basename", so it can be a program name with args.
7498 set dummy $tool_basename; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_path_HEAD+:} false; then :
7502   $as_echo_n "(cached) " >&6
7503 else
7504   case $HEAD in
7505   [\\/]* | ?:[\\/]*)
7506   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7507   ;;
7508   *)
7509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514     for ac_exec_ext in '' $ac_executable_extensions; do
7515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521   done
7522 IFS=$as_save_IFS
7523 
7524   ;;
7525 esac
7526 fi
7527 HEAD=$ac_cv_path_HEAD
7528 if test -n "$HEAD"; then
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7530 $as_echo "$HEAD" >&6; }
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535 
7536 
7537         if test "x$HEAD" = x; then
7538           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7539         fi
7540       else
7541         # Otherwise we believe it is a complete path. Use it as it is.
7542         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7543 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7545 $as_echo_n "checking for HEAD... " >&6; }
7546         if test ! -x "$tool_specified"; then
7547           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7548 $as_echo "not found" >&6; }
7549           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7550         fi
7551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7552 $as_echo "$tool_specified" >&6; }
7553       fi
7554     fi
7555   fi
7556 
7557 
7558 
7559   if test "x$HEAD" = x; then
7560     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7561   fi
7562 
7563 
7564 
7565 
7566 
7567   # Publish this variable in the help.
7568 
7569 
7570   if test "x$LN" = x; then
7571     # The variable is not set by user, try to locate tool using the code snippet
7572     for ac_prog in ln
7573 do
7574   # Extract the first word of "$ac_prog", so it can be a program name with args.
7575 set dummy $ac_prog; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_path_LN+:} false; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   case $LN in
7582   [\\/]* | ?:[\\/]*)
7583   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7584   ;;
7585   *)
7586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591     for ac_exec_ext in '' $ac_executable_extensions; do
7592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598   done
7599 IFS=$as_save_IFS
7600 
7601   ;;
7602 esac
7603 fi
7604 LN=$ac_cv_path_LN
7605 if test -n "$LN"; then
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7607 $as_echo "$LN" >&6; }
7608 else
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612 
7613 
7614   test -n "$LN" && break
7615 done
7616 
7617   else
7618     # The variable is set, but is it from the command line or the environment?
7619 
7620     # Try to remove the string !LN! from our list.
7621     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7622     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7623       # If it failed, the variable was not from the command line. Ignore it,
7624       # but warn the user (except for BASH, which is always set by the calling BASH).
7625       if test "xLN" != xBASH; then
7626         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7627 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7628       fi
7629       # Try to locate tool using the code snippet
7630       for ac_prog in ln
7631 do
7632   # Extract the first word of "$ac_prog", so it can be a program name with args.
7633 set dummy $ac_prog; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_path_LN+:} false; then :
7637   $as_echo_n "(cached) " >&6
7638 else
7639   case $LN in
7640   [\\/]* | ?:[\\/]*)
7641   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7642   ;;
7643   *)
7644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649     for ac_exec_ext in '' $ac_executable_extensions; do
7650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656   done
7657 IFS=$as_save_IFS
7658 
7659   ;;
7660 esac
7661 fi
7662 LN=$ac_cv_path_LN
7663 if test -n "$LN"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7665 $as_echo "$LN" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670 
7671 
7672   test -n "$LN" && break
7673 done
7674 
7675     else
7676       # If it succeeded, then it was overridden by the user. We will use it
7677       # for the tool.
7678 
7679       # First remove it from the list of overridden variables, so we can test
7680       # for unknown variables in the end.
7681       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7682 
7683       # Check if the provided tool contains a complete path.
7684       tool_specified="$LN"
7685       tool_basename="${tool_specified##*/}"
7686       if test "x$tool_basename" = "x$tool_specified"; then
7687         # A command without a complete path is provided, search $PATH.
7688         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7689 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7690         # Extract the first word of "$tool_basename", so it can be a program name with args.
7691 set dummy $tool_basename; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_path_LN+:} false; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   case $LN in
7698   [\\/]* | ?:[\\/]*)
7699   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7700   ;;
7701   *)
7702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716 
7717   ;;
7718 esac
7719 fi
7720 LN=$ac_cv_path_LN
7721 if test -n "$LN"; then
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7723 $as_echo "$LN" >&6; }
7724 else
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728 
7729 
7730         if test "x$LN" = x; then
7731           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7732         fi
7733       else
7734         # Otherwise we believe it is a complete path. Use it as it is.
7735         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7736 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7737         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7738 $as_echo_n "checking for LN... " >&6; }
7739         if test ! -x "$tool_specified"; then
7740           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7741 $as_echo "not found" >&6; }
7742           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7743         fi
7744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7745 $as_echo "$tool_specified" >&6; }
7746       fi
7747     fi
7748   fi
7749 
7750 
7751 
7752   if test "x$LN" = x; then
7753     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7754   fi
7755 
7756 
7757 
7758 
7759 
7760   # Publish this variable in the help.
7761 
7762 
7763   if test "x$LS" = x; then
7764     # The variable is not set by user, try to locate tool using the code snippet
7765     for ac_prog in ls
7766 do
7767   # Extract the first word of "$ac_prog", so it can be a program name with args.
7768 set dummy $ac_prog; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if ${ac_cv_path_LS+:} false; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   case $LS in
7775   [\\/]* | ?:[\\/]*)
7776   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7777   ;;
7778   *)
7779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784     for ac_exec_ext in '' $ac_executable_extensions; do
7785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791   done
7792 IFS=$as_save_IFS
7793 
7794   ;;
7795 esac
7796 fi
7797 LS=$ac_cv_path_LS
7798 if test -n "$LS"; then
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7800 $as_echo "$LS" >&6; }
7801 else
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805 
7806 
7807   test -n "$LS" && break
7808 done
7809 
7810   else
7811     # The variable is set, but is it from the command line or the environment?
7812 
7813     # Try to remove the string !LS! from our list.
7814     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7815     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7816       # If it failed, the variable was not from the command line. Ignore it,
7817       # but warn the user (except for BASH, which is always set by the calling BASH).
7818       if test "xLS" != xBASH; then
7819         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7820 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7821       fi
7822       # Try to locate tool using the code snippet
7823       for ac_prog in ls
7824 do
7825   # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_path_LS+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   case $LS in
7833   [\\/]* | ?:[\\/]*)
7834   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7835   ;;
7836   *)
7837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842     for ac_exec_ext in '' $ac_executable_extensions; do
7843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849   done
7850 IFS=$as_save_IFS
7851 
7852   ;;
7853 esac
7854 fi
7855 LS=$ac_cv_path_LS
7856 if test -n "$LS"; then
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7858 $as_echo "$LS" >&6; }
7859 else
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862 fi
7863 
7864 
7865   test -n "$LS" && break
7866 done
7867 
7868     else
7869       # If it succeeded, then it was overridden by the user. We will use it
7870       # for the tool.
7871 
7872       # First remove it from the list of overridden variables, so we can test
7873       # for unknown variables in the end.
7874       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7875 
7876       # Check if the provided tool contains a complete path.
7877       tool_specified="$LS"
7878       tool_basename="${tool_specified##*/}"
7879       if test "x$tool_basename" = "x$tool_specified"; then
7880         # A command without a complete path is provided, search $PATH.
7881         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7882 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7883         # Extract the first word of "$tool_basename", so it can be a program name with args.
7884 set dummy $tool_basename; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if ${ac_cv_path_LS+:} false; then :
7888   $as_echo_n "(cached) " >&6
7889 else
7890   case $LS in
7891   [\\/]* | ?:[\\/]*)
7892   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7893   ;;
7894   *)
7895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898   IFS=$as_save_IFS
7899   test -z "$as_dir" && as_dir=.
7900     for ac_exec_ext in '' $ac_executable_extensions; do
7901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904     break 2
7905   fi
7906 done
7907   done
7908 IFS=$as_save_IFS
7909 
7910   ;;
7911 esac
7912 fi
7913 LS=$ac_cv_path_LS
7914 if test -n "$LS"; then
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7916 $as_echo "$LS" >&6; }
7917 else
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921 
7922 
7923         if test "x$LS" = x; then
7924           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7925         fi
7926       else
7927         # Otherwise we believe it is a complete path. Use it as it is.
7928         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7929 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7931 $as_echo_n "checking for LS... " >&6; }
7932         if test ! -x "$tool_specified"; then
7933           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7934 $as_echo "not found" >&6; }
7935           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7936         fi
7937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7938 $as_echo "$tool_specified" >&6; }
7939       fi
7940     fi
7941   fi
7942 
7943 
7944 
7945   if test "x$LS" = x; then
7946     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7947   fi
7948 
7949 
7950 
7951 
7952 
7953   # Publish this variable in the help.
7954 
7955 
7956   if test "x$MKDIR" = x; then
7957     # The variable is not set by user, try to locate tool using the code snippet
7958     for ac_prog in mkdir
7959 do
7960   # Extract the first word of "$ac_prog", so it can be a program name with args.
7961 set dummy $ac_prog; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_path_MKDIR+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   case $MKDIR in
7968   [\\/]* | ?:[\\/]*)
7969   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7970   ;;
7971   *)
7972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975   IFS=$as_save_IFS
7976   test -z "$as_dir" && as_dir=.
7977     for ac_exec_ext in '' $ac_executable_extensions; do
7978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981     break 2
7982   fi
7983 done
7984   done
7985 IFS=$as_save_IFS
7986 
7987   ;;
7988 esac
7989 fi
7990 MKDIR=$ac_cv_path_MKDIR
7991 if test -n "$MKDIR"; then
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7993 $as_echo "$MKDIR" >&6; }
7994 else
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998 
7999 
8000   test -n "$MKDIR" && break
8001 done
8002 
8003   else
8004     # The variable is set, but is it from the command line or the environment?
8005 
8006     # Try to remove the string !MKDIR! from our list.
8007     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8008     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8009       # If it failed, the variable was not from the command line. Ignore it,
8010       # but warn the user (except for BASH, which is always set by the calling BASH).
8011       if test "xMKDIR" != xBASH; then
8012         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8013 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8014       fi
8015       # Try to locate tool using the code snippet
8016       for ac_prog in mkdir
8017 do
8018   # Extract the first word of "$ac_prog", so it can be a program name with args.
8019 set dummy $ac_prog; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if ${ac_cv_path_MKDIR+:} false; then :
8023   $as_echo_n "(cached) " >&6
8024 else
8025   case $MKDIR in
8026   [\\/]* | ?:[\\/]*)
8027   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8028   ;;
8029   *)
8030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044 
8045   ;;
8046 esac
8047 fi
8048 MKDIR=$ac_cv_path_MKDIR
8049 if test -n "$MKDIR"; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8051 $as_echo "$MKDIR" >&6; }
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056 
8057 
8058   test -n "$MKDIR" && break
8059 done
8060 
8061     else
8062       # If it succeeded, then it was overridden by the user. We will use it
8063       # for the tool.
8064 
8065       # First remove it from the list of overridden variables, so we can test
8066       # for unknown variables in the end.
8067       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8068 
8069       # Check if the provided tool contains a complete path.
8070       tool_specified="$MKDIR"
8071       tool_basename="${tool_specified##*/}"
8072       if test "x$tool_basename" = "x$tool_specified"; then
8073         # A command without a complete path is provided, search $PATH.
8074         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8075 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8076         # Extract the first word of "$tool_basename", so it can be a program name with args.
8077 set dummy $tool_basename; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_path_MKDIR+:} false; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   case $MKDIR in
8084   [\\/]* | ?:[\\/]*)
8085   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8086   ;;
8087   *)
8088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8090 do
8091   IFS=$as_save_IFS
8092   test -z "$as_dir" && as_dir=.
8093     for ac_exec_ext in '' $ac_executable_extensions; do
8094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097     break 2
8098   fi
8099 done
8100   done
8101 IFS=$as_save_IFS
8102 
8103   ;;
8104 esac
8105 fi
8106 MKDIR=$ac_cv_path_MKDIR
8107 if test -n "$MKDIR"; then
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8109 $as_echo "$MKDIR" >&6; }
8110 else
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114 
8115 
8116         if test "x$MKDIR" = x; then
8117           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8118         fi
8119       else
8120         # Otherwise we believe it is a complete path. Use it as it is.
8121         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8122 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8124 $as_echo_n "checking for MKDIR... " >&6; }
8125         if test ! -x "$tool_specified"; then
8126           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8127 $as_echo "not found" >&6; }
8128           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8129         fi
8130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8131 $as_echo "$tool_specified" >&6; }
8132       fi
8133     fi
8134   fi
8135 
8136 
8137 
8138   if test "x$MKDIR" = x; then
8139     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8140   fi
8141 
8142 
8143 
8144 
8145 
8146   # Publish this variable in the help.
8147 
8148 
8149   if test "x$MKTEMP" = x; then
8150     # The variable is not set by user, try to locate tool using the code snippet
8151     for ac_prog in mktemp
8152 do
8153   # Extract the first word of "$ac_prog", so it can be a program name with args.
8154 set dummy $ac_prog; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if ${ac_cv_path_MKTEMP+:} false; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   case $MKTEMP in
8161   [\\/]* | ?:[\\/]*)
8162   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8163   ;;
8164   *)
8165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168   IFS=$as_save_IFS
8169   test -z "$as_dir" && as_dir=.
8170     for ac_exec_ext in '' $ac_executable_extensions; do
8171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174     break 2
8175   fi
8176 done
8177   done
8178 IFS=$as_save_IFS
8179 
8180   ;;
8181 esac
8182 fi
8183 MKTEMP=$ac_cv_path_MKTEMP
8184 if test -n "$MKTEMP"; then
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8186 $as_echo "$MKTEMP" >&6; }
8187 else
8188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8190 fi
8191 
8192 
8193   test -n "$MKTEMP" && break
8194 done
8195 
8196   else
8197     # The variable is set, but is it from the command line or the environment?
8198 
8199     # Try to remove the string !MKTEMP! from our list.
8200     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8201     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8202       # If it failed, the variable was not from the command line. Ignore it,
8203       # but warn the user (except for BASH, which is always set by the calling BASH).
8204       if test "xMKTEMP" != xBASH; then
8205         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8206 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8207       fi
8208       # Try to locate tool using the code snippet
8209       for ac_prog in mktemp
8210 do
8211   # Extract the first word of "$ac_prog", so it can be a program name with args.
8212 set dummy $ac_prog; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_path_MKTEMP+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   case $MKTEMP in
8219   [\\/]* | ?:[\\/]*)
8220   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8221   ;;
8222   *)
8223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226   IFS=$as_save_IFS
8227   test -z "$as_dir" && as_dir=.
8228     for ac_exec_ext in '' $ac_executable_extensions; do
8229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232     break 2
8233   fi
8234 done
8235   done
8236 IFS=$as_save_IFS
8237 
8238   ;;
8239 esac
8240 fi
8241 MKTEMP=$ac_cv_path_MKTEMP
8242 if test -n "$MKTEMP"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8244 $as_echo "$MKTEMP" >&6; }
8245 else
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249 
8250 
8251   test -n "$MKTEMP" && break
8252 done
8253 
8254     else
8255       # If it succeeded, then it was overridden by the user. We will use it
8256       # for the tool.
8257 
8258       # First remove it from the list of overridden variables, so we can test
8259       # for unknown variables in the end.
8260       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8261 
8262       # Check if the provided tool contains a complete path.
8263       tool_specified="$MKTEMP"
8264       tool_basename="${tool_specified##*/}"
8265       if test "x$tool_basename" = "x$tool_specified"; then
8266         # A command without a complete path is provided, search $PATH.
8267         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8268 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8269         # Extract the first word of "$tool_basename", so it can be a program name with args.
8270 set dummy $tool_basename; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_path_MKTEMP+:} false; then :
8274   $as_echo_n "(cached) " >&6
8275 else
8276   case $MKTEMP in
8277   [\\/]* | ?:[\\/]*)
8278   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8279   ;;
8280   *)
8281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286     for ac_exec_ext in '' $ac_executable_extensions; do
8287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293   done
8294 IFS=$as_save_IFS
8295 
8296   ;;
8297 esac
8298 fi
8299 MKTEMP=$ac_cv_path_MKTEMP
8300 if test -n "$MKTEMP"; then
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8302 $as_echo "$MKTEMP" >&6; }
8303 else
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307 
8308 
8309         if test "x$MKTEMP" = x; then
8310           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8311         fi
8312       else
8313         # Otherwise we believe it is a complete path. Use it as it is.
8314         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8315 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8316         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8317 $as_echo_n "checking for MKTEMP... " >&6; }
8318         if test ! -x "$tool_specified"; then
8319           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8320 $as_echo "not found" >&6; }
8321           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8322         fi
8323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8324 $as_echo "$tool_specified" >&6; }
8325       fi
8326     fi
8327   fi
8328 
8329 
8330 
8331   if test "x$MKTEMP" = x; then
8332     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8333   fi
8334 
8335 
8336 
8337 
8338 
8339   # Publish this variable in the help.
8340 
8341 
8342   if test "x$MV" = x; then
8343     # The variable is not set by user, try to locate tool using the code snippet
8344     for ac_prog in mv
8345 do
8346   # Extract the first word of "$ac_prog", so it can be a program name with args.
8347 set dummy $ac_prog; ac_word=$2
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if ${ac_cv_path_MV+:} false; then :
8351   $as_echo_n "(cached) " >&6
8352 else
8353   case $MV in
8354   [\\/]* | ?:[\\/]*)
8355   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8356   ;;
8357   *)
8358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361   IFS=$as_save_IFS
8362   test -z "$as_dir" && as_dir=.
8363     for ac_exec_ext in '' $ac_executable_extensions; do
8364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367     break 2
8368   fi
8369 done
8370   done
8371 IFS=$as_save_IFS
8372 
8373   ;;
8374 esac
8375 fi
8376 MV=$ac_cv_path_MV
8377 if test -n "$MV"; then
8378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8379 $as_echo "$MV" >&6; }
8380 else
8381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8383 fi
8384 
8385 
8386   test -n "$MV" && break
8387 done
8388 
8389   else
8390     # The variable is set, but is it from the command line or the environment?
8391 
8392     # Try to remove the string !MV! from our list.
8393     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8394     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8395       # If it failed, the variable was not from the command line. Ignore it,
8396       # but warn the user (except for BASH, which is always set by the calling BASH).
8397       if test "xMV" != xBASH; then
8398         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8399 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8400       fi
8401       # Try to locate tool using the code snippet
8402       for ac_prog in mv
8403 do
8404   # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if ${ac_cv_path_MV+:} false; then :
8409   $as_echo_n "(cached) " >&6
8410 else
8411   case $MV in
8412   [\\/]* | ?:[\\/]*)
8413   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8414   ;;
8415   *)
8416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419   IFS=$as_save_IFS
8420   test -z "$as_dir" && as_dir=.
8421     for ac_exec_ext in '' $ac_executable_extensions; do
8422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425     break 2
8426   fi
8427 done
8428   done
8429 IFS=$as_save_IFS
8430 
8431   ;;
8432 esac
8433 fi
8434 MV=$ac_cv_path_MV
8435 if test -n "$MV"; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8437 $as_echo "$MV" >&6; }
8438 else
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442 
8443 
8444   test -n "$MV" && break
8445 done
8446 
8447     else
8448       # If it succeeded, then it was overridden by the user. We will use it
8449       # for the tool.
8450 
8451       # First remove it from the list of overridden variables, so we can test
8452       # for unknown variables in the end.
8453       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8454 
8455       # Check if the provided tool contains a complete path.
8456       tool_specified="$MV"
8457       tool_basename="${tool_specified##*/}"
8458       if test "x$tool_basename" = "x$tool_specified"; then
8459         # A command without a complete path is provided, search $PATH.
8460         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8461 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8462         # Extract the first word of "$tool_basename", so it can be a program name with args.
8463 set dummy $tool_basename; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_path_MV+:} false; then :
8467   $as_echo_n "(cached) " >&6
8468 else
8469   case $MV in
8470   [\\/]* | ?:[\\/]*)
8471   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8472   ;;
8473   *)
8474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477   IFS=$as_save_IFS
8478   test -z "$as_dir" && as_dir=.
8479     for ac_exec_ext in '' $ac_executable_extensions; do
8480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483     break 2
8484   fi
8485 done
8486   done
8487 IFS=$as_save_IFS
8488 
8489   ;;
8490 esac
8491 fi
8492 MV=$ac_cv_path_MV
8493 if test -n "$MV"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8495 $as_echo "$MV" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500 
8501 
8502         if test "x$MV" = x; then
8503           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8504         fi
8505       else
8506         # Otherwise we believe it is a complete path. Use it as it is.
8507         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8508 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8510 $as_echo_n "checking for MV... " >&6; }
8511         if test ! -x "$tool_specified"; then
8512           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8513 $as_echo "not found" >&6; }
8514           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8515         fi
8516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8517 $as_echo "$tool_specified" >&6; }
8518       fi
8519     fi
8520   fi
8521 
8522 
8523 
8524   if test "x$MV" = x; then
8525     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8526   fi
8527 
8528 
8529 
8530 
8531 
8532   # Publish this variable in the help.
8533 
8534 
8535   if test "x$NAWK" = x; then
8536     # The variable is not set by user, try to locate tool using the code snippet
8537     for ac_prog in nawk gawk awk
8538 do
8539   # Extract the first word of "$ac_prog", so it can be a program name with args.
8540 set dummy $ac_prog; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if ${ac_cv_path_NAWK+:} false; then :
8544   $as_echo_n "(cached) " >&6
8545 else
8546   case $NAWK in
8547   [\\/]* | ?:[\\/]*)
8548   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8549   ;;
8550   *)
8551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554   IFS=$as_save_IFS
8555   test -z "$as_dir" && as_dir=.
8556     for ac_exec_ext in '' $ac_executable_extensions; do
8557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560     break 2
8561   fi
8562 done
8563   done
8564 IFS=$as_save_IFS
8565 
8566   ;;
8567 esac
8568 fi
8569 NAWK=$ac_cv_path_NAWK
8570 if test -n "$NAWK"; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8572 $as_echo "$NAWK" >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577 
8578 
8579   test -n "$NAWK" && break
8580 done
8581 
8582   else
8583     # The variable is set, but is it from the command line or the environment?
8584 
8585     # Try to remove the string !NAWK! from our list.
8586     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8587     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8588       # If it failed, the variable was not from the command line. Ignore it,
8589       # but warn the user (except for BASH, which is always set by the calling BASH).
8590       if test "xNAWK" != xBASH; then
8591         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8592 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8593       fi
8594       # Try to locate tool using the code snippet
8595       for ac_prog in nawk gawk awk
8596 do
8597   # Extract the first word of "$ac_prog", so it can be a program name with args.
8598 set dummy $ac_prog; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if ${ac_cv_path_NAWK+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   case $NAWK in
8605   [\\/]* | ?:[\\/]*)
8606   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8607   ;;
8608   *)
8609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8611 do
8612   IFS=$as_save_IFS
8613   test -z "$as_dir" && as_dir=.
8614     for ac_exec_ext in '' $ac_executable_extensions; do
8615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618     break 2
8619   fi
8620 done
8621   done
8622 IFS=$as_save_IFS
8623 
8624   ;;
8625 esac
8626 fi
8627 NAWK=$ac_cv_path_NAWK
8628 if test -n "$NAWK"; then
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8630 $as_echo "$NAWK" >&6; }
8631 else
8632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8634 fi
8635 
8636 
8637   test -n "$NAWK" && break
8638 done
8639 
8640     else
8641       # If it succeeded, then it was overridden by the user. We will use it
8642       # for the tool.
8643 
8644       # First remove it from the list of overridden variables, so we can test
8645       # for unknown variables in the end.
8646       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8647 
8648       # Check if the provided tool contains a complete path.
8649       tool_specified="$NAWK"
8650       tool_basename="${tool_specified##*/}"
8651       if test "x$tool_basename" = "x$tool_specified"; then
8652         # A command without a complete path is provided, search $PATH.
8653         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8654 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8655         # Extract the first word of "$tool_basename", so it can be a program name with args.
8656 set dummy $tool_basename; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if ${ac_cv_path_NAWK+:} false; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   case $NAWK in
8663   [\\/]* | ?:[\\/]*)
8664   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8665   ;;
8666   *)
8667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8669 do
8670   IFS=$as_save_IFS
8671   test -z "$as_dir" && as_dir=.
8672     for ac_exec_ext in '' $ac_executable_extensions; do
8673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676     break 2
8677   fi
8678 done
8679   done
8680 IFS=$as_save_IFS
8681 
8682   ;;
8683 esac
8684 fi
8685 NAWK=$ac_cv_path_NAWK
8686 if test -n "$NAWK"; then
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8688 $as_echo "$NAWK" >&6; }
8689 else
8690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 fi
8693 
8694 
8695         if test "x$NAWK" = x; then
8696           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8697         fi
8698       else
8699         # Otherwise we believe it is a complete path. Use it as it is.
8700         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8701 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8702         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8703 $as_echo_n "checking for NAWK... " >&6; }
8704         if test ! -x "$tool_specified"; then
8705           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8706 $as_echo "not found" >&6; }
8707           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8708         fi
8709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8710 $as_echo "$tool_specified" >&6; }
8711       fi
8712     fi
8713   fi
8714 
8715 
8716 
8717   if test "x$NAWK" = x; then
8718     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8719   fi
8720 
8721 
8722 
8723 
8724 
8725   # Publish this variable in the help.
8726 
8727 
8728   if test "x$PRINTF" = x; then
8729     # The variable is not set by user, try to locate tool using the code snippet
8730     for ac_prog in printf
8731 do
8732   # Extract the first word of "$ac_prog", so it can be a program name with args.
8733 set dummy $ac_prog; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_path_PRINTF+:} false; then :
8737   $as_echo_n "(cached) " >&6
8738 else
8739   case $PRINTF in
8740   [\\/]* | ?:[\\/]*)
8741   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8742   ;;
8743   *)
8744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8746 do
8747   IFS=$as_save_IFS
8748   test -z "$as_dir" && as_dir=.
8749     for ac_exec_ext in '' $ac_executable_extensions; do
8750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753     break 2
8754   fi
8755 done
8756   done
8757 IFS=$as_save_IFS
8758 
8759   ;;
8760 esac
8761 fi
8762 PRINTF=$ac_cv_path_PRINTF
8763 if test -n "$PRINTF"; then
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8765 $as_echo "$PRINTF" >&6; }
8766 else
8767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8769 fi
8770 
8771 
8772   test -n "$PRINTF" && break
8773 done
8774 
8775   else
8776     # The variable is set, but is it from the command line or the environment?
8777 
8778     # Try to remove the string !PRINTF! from our list.
8779     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8780     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8781       # If it failed, the variable was not from the command line. Ignore it,
8782       # but warn the user (except for BASH, which is always set by the calling BASH).
8783       if test "xPRINTF" != xBASH; then
8784         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8785 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8786       fi
8787       # Try to locate tool using the code snippet
8788       for ac_prog in printf
8789 do
8790   # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if ${ac_cv_path_PRINTF+:} false; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   case $PRINTF in
8798   [\\/]* | ?:[\\/]*)
8799   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8800   ;;
8801   *)
8802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807     for ac_exec_ext in '' $ac_executable_extensions; do
8808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814   done
8815 IFS=$as_save_IFS
8816 
8817   ;;
8818 esac
8819 fi
8820 PRINTF=$ac_cv_path_PRINTF
8821 if test -n "$PRINTF"; then
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8823 $as_echo "$PRINTF" >&6; }
8824 else
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8827 fi
8828 
8829 
8830   test -n "$PRINTF" && break
8831 done
8832 
8833     else
8834       # If it succeeded, then it was overridden by the user. We will use it
8835       # for the tool.
8836 
8837       # First remove it from the list of overridden variables, so we can test
8838       # for unknown variables in the end.
8839       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8840 
8841       # Check if the provided tool contains a complete path.
8842       tool_specified="$PRINTF"
8843       tool_basename="${tool_specified##*/}"
8844       if test "x$tool_basename" = "x$tool_specified"; then
8845         # A command without a complete path is provided, search $PATH.
8846         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8847 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8848         # Extract the first word of "$tool_basename", so it can be a program name with args.
8849 set dummy $tool_basename; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_path_PRINTF+:} false; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   case $PRINTF in
8856   [\\/]* | ?:[\\/]*)
8857   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8858   ;;
8859   *)
8860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8862 do
8863   IFS=$as_save_IFS
8864   test -z "$as_dir" && as_dir=.
8865     for ac_exec_ext in '' $ac_executable_extensions; do
8866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8867     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869     break 2
8870   fi
8871 done
8872   done
8873 IFS=$as_save_IFS
8874 
8875   ;;
8876 esac
8877 fi
8878 PRINTF=$ac_cv_path_PRINTF
8879 if test -n "$PRINTF"; then
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8881 $as_echo "$PRINTF" >&6; }
8882 else
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 fi
8886 
8887 
8888         if test "x$PRINTF" = x; then
8889           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8890         fi
8891       else
8892         # Otherwise we believe it is a complete path. Use it as it is.
8893         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8894 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8896 $as_echo_n "checking for PRINTF... " >&6; }
8897         if test ! -x "$tool_specified"; then
8898           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8899 $as_echo "not found" >&6; }
8900           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8901         fi
8902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8903 $as_echo "$tool_specified" >&6; }
8904       fi
8905     fi
8906   fi
8907 
8908 
8909 
8910   if test "x$PRINTF" = x; then
8911     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8912   fi
8913 
8914 
8915 
8916 
8917 
8918   # Publish this variable in the help.
8919 
8920 
8921   if test "x$RM" = x; then
8922     # The variable is not set by user, try to locate tool using the code snippet
8923     for ac_prog in rm
8924 do
8925   # Extract the first word of "$ac_prog", so it can be a program name with args.
8926 set dummy $ac_prog; ac_word=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if ${ac_cv_path_RM+:} false; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   case $RM in
8933   [\\/]* | ?:[\\/]*)
8934   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8935   ;;
8936   *)
8937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8939 do
8940   IFS=$as_save_IFS
8941   test -z "$as_dir" && as_dir=.
8942     for ac_exec_ext in '' $ac_executable_extensions; do
8943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8944     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946     break 2
8947   fi
8948 done
8949   done
8950 IFS=$as_save_IFS
8951 
8952   ;;
8953 esac
8954 fi
8955 RM=$ac_cv_path_RM
8956 if test -n "$RM"; then
8957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8958 $as_echo "$RM" >&6; }
8959 else
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8962 fi
8963 
8964 
8965   test -n "$RM" && break
8966 done
8967 
8968   else
8969     # The variable is set, but is it from the command line or the environment?
8970 
8971     # Try to remove the string !RM! from our list.
8972     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8973     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8974       # If it failed, the variable was not from the command line. Ignore it,
8975       # but warn the user (except for BASH, which is always set by the calling BASH).
8976       if test "xRM" != xBASH; then
8977         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8978 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8979       fi
8980       # Try to locate tool using the code snippet
8981       for ac_prog in rm
8982 do
8983   # Extract the first word of "$ac_prog", so it can be a program name with args.
8984 set dummy $ac_prog; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if ${ac_cv_path_RM+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   case $RM in
8991   [\\/]* | ?:[\\/]*)
8992   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8993   ;;
8994   *)
8995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8997 do
8998   IFS=$as_save_IFS
8999   test -z "$as_dir" && as_dir=.
9000     for ac_exec_ext in '' $ac_executable_extensions; do
9001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9002     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004     break 2
9005   fi
9006 done
9007   done
9008 IFS=$as_save_IFS
9009 
9010   ;;
9011 esac
9012 fi
9013 RM=$ac_cv_path_RM
9014 if test -n "$RM"; then
9015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9016 $as_echo "$RM" >&6; }
9017 else
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9020 fi
9021 
9022 
9023   test -n "$RM" && break
9024 done
9025 
9026     else
9027       # If it succeeded, then it was overridden by the user. We will use it
9028       # for the tool.
9029 
9030       # First remove it from the list of overridden variables, so we can test
9031       # for unknown variables in the end.
9032       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9033 
9034       # Check if the provided tool contains a complete path.
9035       tool_specified="$RM"
9036       tool_basename="${tool_specified##*/}"
9037       if test "x$tool_basename" = "x$tool_specified"; then
9038         # A command without a complete path is provided, search $PATH.
9039         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9040 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9041         # Extract the first word of "$tool_basename", so it can be a program name with args.
9042 set dummy $tool_basename; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if ${ac_cv_path_RM+:} false; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   case $RM in
9049   [\\/]* | ?:[\\/]*)
9050   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9051   ;;
9052   *)
9053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056   IFS=$as_save_IFS
9057   test -z "$as_dir" && as_dir=.
9058     for ac_exec_ext in '' $ac_executable_extensions; do
9059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062     break 2
9063   fi
9064 done
9065   done
9066 IFS=$as_save_IFS
9067 
9068   ;;
9069 esac
9070 fi
9071 RM=$ac_cv_path_RM
9072 if test -n "$RM"; then
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9074 $as_echo "$RM" >&6; }
9075 else
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9078 fi
9079 
9080 
9081         if test "x$RM" = x; then
9082           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9083         fi
9084       else
9085         # Otherwise we believe it is a complete path. Use it as it is.
9086         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9087 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9089 $as_echo_n "checking for RM... " >&6; }
9090         if test ! -x "$tool_specified"; then
9091           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9092 $as_echo "not found" >&6; }
9093           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9094         fi
9095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9096 $as_echo "$tool_specified" >&6; }
9097       fi
9098     fi
9099   fi
9100 
9101 
9102 
9103   if test "x$RM" = x; then
9104     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9105   fi
9106 
9107 
9108 
9109 
9110 
9111   # Publish this variable in the help.
9112 
9113 
9114   if test "x$SH" = x; then
9115     # The variable is not set by user, try to locate tool using the code snippet
9116     for ac_prog in sh
9117 do
9118   # Extract the first word of "$ac_prog", so it can be a program name with args.
9119 set dummy $ac_prog; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if ${ac_cv_path_SH+:} false; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   case $SH in
9126   [\\/]* | ?:[\\/]*)
9127   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9128   ;;
9129   *)
9130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131 for as_dir in $PATH
9132 do
9133   IFS=$as_save_IFS
9134   test -z "$as_dir" && as_dir=.
9135     for ac_exec_ext in '' $ac_executable_extensions; do
9136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139     break 2
9140   fi
9141 done
9142   done
9143 IFS=$as_save_IFS
9144 
9145   ;;
9146 esac
9147 fi
9148 SH=$ac_cv_path_SH
9149 if test -n "$SH"; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9151 $as_echo "$SH" >&6; }
9152 else
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156 
9157 
9158   test -n "$SH" && break
9159 done
9160 
9161   else
9162     # The variable is set, but is it from the command line or the environment?
9163 
9164     # Try to remove the string !SH! from our list.
9165     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9166     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9167       # If it failed, the variable was not from the command line. Ignore it,
9168       # but warn the user (except for BASH, which is always set by the calling BASH).
9169       if test "xSH" != xBASH; then
9170         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9171 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9172       fi
9173       # Try to locate tool using the code snippet
9174       for ac_prog in sh
9175 do
9176   # Extract the first word of "$ac_prog", so it can be a program name with args.
9177 set dummy $ac_prog; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_path_SH+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   case $SH in
9184   [\\/]* | ?:[\\/]*)
9185   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9186   ;;
9187   *)
9188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191   IFS=$as_save_IFS
9192   test -z "$as_dir" && as_dir=.
9193     for ac_exec_ext in '' $ac_executable_extensions; do
9194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197     break 2
9198   fi
9199 done
9200   done
9201 IFS=$as_save_IFS
9202 
9203   ;;
9204 esac
9205 fi
9206 SH=$ac_cv_path_SH
9207 if test -n "$SH"; then
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9209 $as_echo "$SH" >&6; }
9210 else
9211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9213 fi
9214 
9215 
9216   test -n "$SH" && break
9217 done
9218 
9219     else
9220       # If it succeeded, then it was overridden by the user. We will use it
9221       # for the tool.
9222 
9223       # First remove it from the list of overridden variables, so we can test
9224       # for unknown variables in the end.
9225       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9226 
9227       # Check if the provided tool contains a complete path.
9228       tool_specified="$SH"
9229       tool_basename="${tool_specified##*/}"
9230       if test "x$tool_basename" = "x$tool_specified"; then
9231         # A command without a complete path is provided, search $PATH.
9232         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9233 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9234         # Extract the first word of "$tool_basename", so it can be a program name with args.
9235 set dummy $tool_basename; ac_word=$2
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 $as_echo_n "checking for $ac_word... " >&6; }
9238 if ${ac_cv_path_SH+:} false; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   case $SH in
9242   [\\/]* | ?:[\\/]*)
9243   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9244   ;;
9245   *)
9246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249   IFS=$as_save_IFS
9250   test -z "$as_dir" && as_dir=.
9251     for ac_exec_ext in '' $ac_executable_extensions; do
9252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255     break 2
9256   fi
9257 done
9258   done
9259 IFS=$as_save_IFS
9260 
9261   ;;
9262 esac
9263 fi
9264 SH=$ac_cv_path_SH
9265 if test -n "$SH"; then
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9267 $as_echo "$SH" >&6; }
9268 else
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 fi
9272 
9273 
9274         if test "x$SH" = x; then
9275           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9276         fi
9277       else
9278         # Otherwise we believe it is a complete path. Use it as it is.
9279         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9280 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9282 $as_echo_n "checking for SH... " >&6; }
9283         if test ! -x "$tool_specified"; then
9284           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9285 $as_echo "not found" >&6; }
9286           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9287         fi
9288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9289 $as_echo "$tool_specified" >&6; }
9290       fi
9291     fi
9292   fi
9293 
9294 
9295 
9296   if test "x$SH" = x; then
9297     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9298   fi
9299 
9300 
9301 
9302 
9303 
9304   # Publish this variable in the help.
9305 
9306 
9307   if test "x$SORT" = x; then
9308     # The variable is not set by user, try to locate tool using the code snippet
9309     for ac_prog in sort
9310 do
9311   # Extract the first word of "$ac_prog", so it can be a program name with args.
9312 set dummy $ac_prog; ac_word=$2
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 $as_echo_n "checking for $ac_word... " >&6; }
9315 if ${ac_cv_path_SORT+:} false; then :
9316   $as_echo_n "(cached) " >&6
9317 else
9318   case $SORT in
9319   [\\/]* | ?:[\\/]*)
9320   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9321   ;;
9322   *)
9323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in $PATH
9325 do
9326   IFS=$as_save_IFS
9327   test -z "$as_dir" && as_dir=.
9328     for ac_exec_ext in '' $ac_executable_extensions; do
9329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9330     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332     break 2
9333   fi
9334 done
9335   done
9336 IFS=$as_save_IFS
9337 
9338   ;;
9339 esac
9340 fi
9341 SORT=$ac_cv_path_SORT
9342 if test -n "$SORT"; then
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9344 $as_echo "$SORT" >&6; }
9345 else
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9348 fi
9349 
9350 
9351   test -n "$SORT" && break
9352 done
9353 
9354   else
9355     # The variable is set, but is it from the command line or the environment?
9356 
9357     # Try to remove the string !SORT! from our list.
9358     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9359     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9360       # If it failed, the variable was not from the command line. Ignore it,
9361       # but warn the user (except for BASH, which is always set by the calling BASH).
9362       if test "xSORT" != xBASH; then
9363         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9364 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9365       fi
9366       # Try to locate tool using the code snippet
9367       for ac_prog in sort
9368 do
9369   # Extract the first word of "$ac_prog", so it can be a program name with args.
9370 set dummy $ac_prog; ac_word=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if ${ac_cv_path_SORT+:} false; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   case $SORT in
9377   [\\/]* | ?:[\\/]*)
9378   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9379   ;;
9380   *)
9381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384   IFS=$as_save_IFS
9385   test -z "$as_dir" && as_dir=.
9386     for ac_exec_ext in '' $ac_executable_extensions; do
9387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390     break 2
9391   fi
9392 done
9393   done
9394 IFS=$as_save_IFS
9395 
9396   ;;
9397 esac
9398 fi
9399 SORT=$ac_cv_path_SORT
9400 if test -n "$SORT"; then
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9402 $as_echo "$SORT" >&6; }
9403 else
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9406 fi
9407 
9408 
9409   test -n "$SORT" && break
9410 done
9411 
9412     else
9413       # If it succeeded, then it was overridden by the user. We will use it
9414       # for the tool.
9415 
9416       # First remove it from the list of overridden variables, so we can test
9417       # for unknown variables in the end.
9418       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9419 
9420       # Check if the provided tool contains a complete path.
9421       tool_specified="$SORT"
9422       tool_basename="${tool_specified##*/}"
9423       if test "x$tool_basename" = "x$tool_specified"; then
9424         # A command without a complete path is provided, search $PATH.
9425         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9426 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9427         # Extract the first word of "$tool_basename", so it can be a program name with args.
9428 set dummy $tool_basename; ac_word=$2
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430 $as_echo_n "checking for $ac_word... " >&6; }
9431 if ${ac_cv_path_SORT+:} false; then :
9432   $as_echo_n "(cached) " >&6
9433 else
9434   case $SORT in
9435   [\\/]* | ?:[\\/]*)
9436   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9437   ;;
9438   *)
9439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440 for as_dir in $PATH
9441 do
9442   IFS=$as_save_IFS
9443   test -z "$as_dir" && as_dir=.
9444     for ac_exec_ext in '' $ac_executable_extensions; do
9445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9446     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9448     break 2
9449   fi
9450 done
9451   done
9452 IFS=$as_save_IFS
9453 
9454   ;;
9455 esac
9456 fi
9457 SORT=$ac_cv_path_SORT
9458 if test -n "$SORT"; then
9459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9460 $as_echo "$SORT" >&6; }
9461 else
9462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9464 fi
9465 
9466 
9467         if test "x$SORT" = x; then
9468           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9469         fi
9470       else
9471         # Otherwise we believe it is a complete path. Use it as it is.
9472         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9473 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9474         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9475 $as_echo_n "checking for SORT... " >&6; }
9476         if test ! -x "$tool_specified"; then
9477           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9478 $as_echo "not found" >&6; }
9479           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9480         fi
9481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9482 $as_echo "$tool_specified" >&6; }
9483       fi
9484     fi
9485   fi
9486 
9487 
9488 
9489   if test "x$SORT" = x; then
9490     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9491   fi
9492 
9493 
9494 
9495 
9496 
9497   # Publish this variable in the help.
9498 
9499 
9500   if test "x$TAIL" = x; then
9501     # The variable is not set by user, try to locate tool using the code snippet
9502     for ac_prog in tail
9503 do
9504   # Extract the first word of "$ac_prog", so it can be a program name with args.
9505 set dummy $ac_prog; ac_word=$2
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507 $as_echo_n "checking for $ac_word... " >&6; }
9508 if ${ac_cv_path_TAIL+:} false; then :
9509   $as_echo_n "(cached) " >&6
9510 else
9511   case $TAIL in
9512   [\\/]* | ?:[\\/]*)
9513   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9514   ;;
9515   *)
9516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9518 do
9519   IFS=$as_save_IFS
9520   test -z "$as_dir" && as_dir=.
9521     for ac_exec_ext in '' $ac_executable_extensions; do
9522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9523     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9525     break 2
9526   fi
9527 done
9528   done
9529 IFS=$as_save_IFS
9530 
9531   ;;
9532 esac
9533 fi
9534 TAIL=$ac_cv_path_TAIL
9535 if test -n "$TAIL"; then
9536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9537 $as_echo "$TAIL" >&6; }
9538 else
9539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540 $as_echo "no" >&6; }
9541 fi
9542 
9543 
9544   test -n "$TAIL" && break
9545 done
9546 
9547   else
9548     # The variable is set, but is it from the command line or the environment?
9549 
9550     # Try to remove the string !TAIL! from our list.
9551     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9552     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9553       # If it failed, the variable was not from the command line. Ignore it,
9554       # but warn the user (except for BASH, which is always set by the calling BASH).
9555       if test "xTAIL" != xBASH; then
9556         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9557 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9558       fi
9559       # Try to locate tool using the code snippet
9560       for ac_prog in tail
9561 do
9562   # Extract the first word of "$ac_prog", so it can be a program name with args.
9563 set dummy $ac_prog; ac_word=$2
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565 $as_echo_n "checking for $ac_word... " >&6; }
9566 if ${ac_cv_path_TAIL+:} false; then :
9567   $as_echo_n "(cached) " >&6
9568 else
9569   case $TAIL in
9570   [\\/]* | ?:[\\/]*)
9571   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9572   ;;
9573   *)
9574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575 for as_dir in $PATH
9576 do
9577   IFS=$as_save_IFS
9578   test -z "$as_dir" && as_dir=.
9579     for ac_exec_ext in '' $ac_executable_extensions; do
9580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9581     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583     break 2
9584   fi
9585 done
9586   done
9587 IFS=$as_save_IFS
9588 
9589   ;;
9590 esac
9591 fi
9592 TAIL=$ac_cv_path_TAIL
9593 if test -n "$TAIL"; then
9594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9595 $as_echo "$TAIL" >&6; }
9596 else
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9599 fi
9600 
9601 
9602   test -n "$TAIL" && break
9603 done
9604 
9605     else
9606       # If it succeeded, then it was overridden by the user. We will use it
9607       # for the tool.
9608 
9609       # First remove it from the list of overridden variables, so we can test
9610       # for unknown variables in the end.
9611       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9612 
9613       # Check if the provided tool contains a complete path.
9614       tool_specified="$TAIL"
9615       tool_basename="${tool_specified##*/}"
9616       if test "x$tool_basename" = "x$tool_specified"; then
9617         # A command without a complete path is provided, search $PATH.
9618         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9619 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9620         # Extract the first word of "$tool_basename", so it can be a program name with args.
9621 set dummy $tool_basename; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if ${ac_cv_path_TAIL+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627   case $TAIL in
9628   [\\/]* | ?:[\\/]*)
9629   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9630   ;;
9631   *)
9632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9634 do
9635   IFS=$as_save_IFS
9636   test -z "$as_dir" && as_dir=.
9637     for ac_exec_ext in '' $ac_executable_extensions; do
9638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641     break 2
9642   fi
9643 done
9644   done
9645 IFS=$as_save_IFS
9646 
9647   ;;
9648 esac
9649 fi
9650 TAIL=$ac_cv_path_TAIL
9651 if test -n "$TAIL"; then
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9653 $as_echo "$TAIL" >&6; }
9654 else
9655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9657 fi
9658 
9659 
9660         if test "x$TAIL" = x; then
9661           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9662         fi
9663       else
9664         # Otherwise we believe it is a complete path. Use it as it is.
9665         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9666 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9668 $as_echo_n "checking for TAIL... " >&6; }
9669         if test ! -x "$tool_specified"; then
9670           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9671 $as_echo "not found" >&6; }
9672           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9673         fi
9674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9675 $as_echo "$tool_specified" >&6; }
9676       fi
9677     fi
9678   fi
9679 
9680 
9681 
9682   if test "x$TAIL" = x; then
9683     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9684   fi
9685 
9686 
9687 
9688 
9689 
9690   # Publish this variable in the help.
9691 
9692 
9693   if test "x$TAR" = x; then
9694     # The variable is not set by user, try to locate tool using the code snippet
9695     for ac_prog in tar
9696 do
9697   # Extract the first word of "$ac_prog", so it can be a program name with args.
9698 set dummy $ac_prog; ac_word=$2
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9700 $as_echo_n "checking for $ac_word... " >&6; }
9701 if ${ac_cv_path_TAR+:} false; then :
9702   $as_echo_n "(cached) " >&6
9703 else
9704   case $TAR in
9705   [\\/]* | ?:[\\/]*)
9706   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9707   ;;
9708   *)
9709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712   IFS=$as_save_IFS
9713   test -z "$as_dir" && as_dir=.
9714     for ac_exec_ext in '' $ac_executable_extensions; do
9715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718     break 2
9719   fi
9720 done
9721   done
9722 IFS=$as_save_IFS
9723 
9724   ;;
9725 esac
9726 fi
9727 TAR=$ac_cv_path_TAR
9728 if test -n "$TAR"; then
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9730 $as_echo "$TAR" >&6; }
9731 else
9732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9734 fi
9735 
9736 
9737   test -n "$TAR" && break
9738 done
9739 
9740   else
9741     # The variable is set, but is it from the command line or the environment?
9742 
9743     # Try to remove the string !TAR! from our list.
9744     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9745     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9746       # If it failed, the variable was not from the command line. Ignore it,
9747       # but warn the user (except for BASH, which is always set by the calling BASH).
9748       if test "xTAR" != xBASH; then
9749         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9750 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9751       fi
9752       # Try to locate tool using the code snippet
9753       for ac_prog in tar
9754 do
9755   # Extract the first word of "$ac_prog", so it can be a program name with args.
9756 set dummy $ac_prog; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if ${ac_cv_path_TAR+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   case $TAR in
9763   [\\/]* | ?:[\\/]*)
9764   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9765   ;;
9766   *)
9767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in $PATH
9769 do
9770   IFS=$as_save_IFS
9771   test -z "$as_dir" && as_dir=.
9772     for ac_exec_ext in '' $ac_executable_extensions; do
9773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9774     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776     break 2
9777   fi
9778 done
9779   done
9780 IFS=$as_save_IFS
9781 
9782   ;;
9783 esac
9784 fi
9785 TAR=$ac_cv_path_TAR
9786 if test -n "$TAR"; then
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9788 $as_echo "$TAR" >&6; }
9789 else
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9792 fi
9793 
9794 
9795   test -n "$TAR" && break
9796 done
9797 
9798     else
9799       # If it succeeded, then it was overridden by the user. We will use it
9800       # for the tool.
9801 
9802       # First remove it from the list of overridden variables, so we can test
9803       # for unknown variables in the end.
9804       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9805 
9806       # Check if the provided tool contains a complete path.
9807       tool_specified="$TAR"
9808       tool_basename="${tool_specified##*/}"
9809       if test "x$tool_basename" = "x$tool_specified"; then
9810         # A command without a complete path is provided, search $PATH.
9811         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9812 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9813         # Extract the first word of "$tool_basename", so it can be a program name with args.
9814 set dummy $tool_basename; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if ${ac_cv_path_TAR+:} false; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   case $TAR in
9821   [\\/]* | ?:[\\/]*)
9822   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9823   ;;
9824   *)
9825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9827 do
9828   IFS=$as_save_IFS
9829   test -z "$as_dir" && as_dir=.
9830     for ac_exec_ext in '' $ac_executable_extensions; do
9831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9832     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834     break 2
9835   fi
9836 done
9837   done
9838 IFS=$as_save_IFS
9839 
9840   ;;
9841 esac
9842 fi
9843 TAR=$ac_cv_path_TAR
9844 if test -n "$TAR"; then
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9846 $as_echo "$TAR" >&6; }
9847 else
9848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9850 fi
9851 
9852 
9853         if test "x$TAR" = x; then
9854           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9855         fi
9856       else
9857         # Otherwise we believe it is a complete path. Use it as it is.
9858         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9859 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9860         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9861 $as_echo_n "checking for TAR... " >&6; }
9862         if test ! -x "$tool_specified"; then
9863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9864 $as_echo "not found" >&6; }
9865           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9866         fi
9867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9868 $as_echo "$tool_specified" >&6; }
9869       fi
9870     fi
9871   fi
9872 
9873 
9874 
9875   if test "x$TAR" = x; then
9876     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9877   fi
9878 
9879 
9880 
9881 
9882 
9883   # Publish this variable in the help.
9884 
9885 
9886   if test "x$TEE" = x; then
9887     # The variable is not set by user, try to locate tool using the code snippet
9888     for ac_prog in tee
9889 do
9890   # Extract the first word of "$ac_prog", so it can be a program name with args.
9891 set dummy $ac_prog; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if ${ac_cv_path_TEE+:} false; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   case $TEE in
9898   [\\/]* | ?:[\\/]*)
9899   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9900   ;;
9901   *)
9902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905   IFS=$as_save_IFS
9906   test -z "$as_dir" && as_dir=.
9907     for ac_exec_ext in '' $ac_executable_extensions; do
9908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911     break 2
9912   fi
9913 done
9914   done
9915 IFS=$as_save_IFS
9916 
9917   ;;
9918 esac
9919 fi
9920 TEE=$ac_cv_path_TEE
9921 if test -n "$TEE"; then
9922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9923 $as_echo "$TEE" >&6; }
9924 else
9925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 fi
9928 
9929 
9930   test -n "$TEE" && break
9931 done
9932 
9933   else
9934     # The variable is set, but is it from the command line or the environment?
9935 
9936     # Try to remove the string !TEE! from our list.
9937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9939       # If it failed, the variable was not from the command line. Ignore it,
9940       # but warn the user (except for BASH, which is always set by the calling BASH).
9941       if test "xTEE" != xBASH; then
9942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9943 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9944       fi
9945       # Try to locate tool using the code snippet
9946       for ac_prog in tee
9947 do
9948   # Extract the first word of "$ac_prog", so it can be a program name with args.
9949 set dummy $ac_prog; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if ${ac_cv_path_TEE+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   case $TEE in
9956   [\\/]* | ?:[\\/]*)
9957   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9958   ;;
9959   *)
9960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9962 do
9963   IFS=$as_save_IFS
9964   test -z "$as_dir" && as_dir=.
9965     for ac_exec_ext in '' $ac_executable_extensions; do
9966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969     break 2
9970   fi
9971 done
9972   done
9973 IFS=$as_save_IFS
9974 
9975   ;;
9976 esac
9977 fi
9978 TEE=$ac_cv_path_TEE
9979 if test -n "$TEE"; then
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9981 $as_echo "$TEE" >&6; }
9982 else
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9985 fi
9986 
9987 
9988   test -n "$TEE" && break
9989 done
9990 
9991     else
9992       # If it succeeded, then it was overridden by the user. We will use it
9993       # for the tool.
9994 
9995       # First remove it from the list of overridden variables, so we can test
9996       # for unknown variables in the end.
9997       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9998 
9999       # Check if the provided tool contains a complete path.
10000       tool_specified="$TEE"
10001       tool_basename="${tool_specified##*/}"
10002       if test "x$tool_basename" = "x$tool_specified"; then
10003         # A command without a complete path is provided, search $PATH.
10004         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10005 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10006         # Extract the first word of "$tool_basename", so it can be a program name with args.
10007 set dummy $tool_basename; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_path_TEE+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   case $TEE in
10014   [\\/]* | ?:[\\/]*)
10015   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10016   ;;
10017   *)
10018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10020 do
10021   IFS=$as_save_IFS
10022   test -z "$as_dir" && as_dir=.
10023     for ac_exec_ext in '' $ac_executable_extensions; do
10024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027     break 2
10028   fi
10029 done
10030   done
10031 IFS=$as_save_IFS
10032 
10033   ;;
10034 esac
10035 fi
10036 TEE=$ac_cv_path_TEE
10037 if test -n "$TEE"; then
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10039 $as_echo "$TEE" >&6; }
10040 else
10041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10043 fi
10044 
10045 
10046         if test "x$TEE" = x; then
10047           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10048         fi
10049       else
10050         # Otherwise we believe it is a complete path. Use it as it is.
10051         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10052 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10054 $as_echo_n "checking for TEE... " >&6; }
10055         if test ! -x "$tool_specified"; then
10056           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10057 $as_echo "not found" >&6; }
10058           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10059         fi
10060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10061 $as_echo "$tool_specified" >&6; }
10062       fi
10063     fi
10064   fi
10065 
10066 
10067 
10068   if test "x$TEE" = x; then
10069     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10070   fi
10071 
10072 
10073 
10074 
10075 
10076   # Publish this variable in the help.
10077 
10078 
10079   if test "x$TOUCH" = x; then
10080     # The variable is not set by user, try to locate tool using the code snippet
10081     for ac_prog in touch
10082 do
10083   # Extract the first word of "$ac_prog", so it can be a program name with args.
10084 set dummy $ac_prog; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_path_TOUCH+:} false; then :
10088   $as_echo_n "(cached) " >&6
10089 else
10090   case $TOUCH in
10091   [\\/]* | ?:[\\/]*)
10092   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10093   ;;
10094   *)
10095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10097 do
10098   IFS=$as_save_IFS
10099   test -z "$as_dir" && as_dir=.
10100     for ac_exec_ext in '' $ac_executable_extensions; do
10101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104     break 2
10105   fi
10106 done
10107   done
10108 IFS=$as_save_IFS
10109 
10110   ;;
10111 esac
10112 fi
10113 TOUCH=$ac_cv_path_TOUCH
10114 if test -n "$TOUCH"; then
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10116 $as_echo "$TOUCH" >&6; }
10117 else
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121 
10122 
10123   test -n "$TOUCH" && break
10124 done
10125 
10126   else
10127     # The variable is set, but is it from the command line or the environment?
10128 
10129     # Try to remove the string !TOUCH! from our list.
10130     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10131     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10132       # If it failed, the variable was not from the command line. Ignore it,
10133       # but warn the user (except for BASH, which is always set by the calling BASH).
10134       if test "xTOUCH" != xBASH; then
10135         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10136 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10137       fi
10138       # Try to locate tool using the code snippet
10139       for ac_prog in touch
10140 do
10141   # Extract the first word of "$ac_prog", so it can be a program name with args.
10142 set dummy $ac_prog; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_path_TOUCH+:} false; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148   case $TOUCH in
10149   [\\/]* | ?:[\\/]*)
10150   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10151   ;;
10152   *)
10153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10155 do
10156   IFS=$as_save_IFS
10157   test -z "$as_dir" && as_dir=.
10158     for ac_exec_ext in '' $ac_executable_extensions; do
10159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10160     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162     break 2
10163   fi
10164 done
10165   done
10166 IFS=$as_save_IFS
10167 
10168   ;;
10169 esac
10170 fi
10171 TOUCH=$ac_cv_path_TOUCH
10172 if test -n "$TOUCH"; then
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10174 $as_echo "$TOUCH" >&6; }
10175 else
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10178 fi
10179 
10180 
10181   test -n "$TOUCH" && break
10182 done
10183 
10184     else
10185       # If it succeeded, then it was overridden by the user. We will use it
10186       # for the tool.
10187 
10188       # First remove it from the list of overridden variables, so we can test
10189       # for unknown variables in the end.
10190       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10191 
10192       # Check if the provided tool contains a complete path.
10193       tool_specified="$TOUCH"
10194       tool_basename="${tool_specified##*/}"
10195       if test "x$tool_basename" = "x$tool_specified"; then
10196         # A command without a complete path is provided, search $PATH.
10197         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10198 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10199         # Extract the first word of "$tool_basename", so it can be a program name with args.
10200 set dummy $tool_basename; ac_word=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if ${ac_cv_path_TOUCH+:} false; then :
10204   $as_echo_n "(cached) " >&6
10205 else
10206   case $TOUCH in
10207   [\\/]* | ?:[\\/]*)
10208   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10209   ;;
10210   *)
10211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212 for as_dir in $PATH
10213 do
10214   IFS=$as_save_IFS
10215   test -z "$as_dir" && as_dir=.
10216     for ac_exec_ext in '' $ac_executable_extensions; do
10217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10218     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220     break 2
10221   fi
10222 done
10223   done
10224 IFS=$as_save_IFS
10225 
10226   ;;
10227 esac
10228 fi
10229 TOUCH=$ac_cv_path_TOUCH
10230 if test -n "$TOUCH"; then
10231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10232 $as_echo "$TOUCH" >&6; }
10233 else
10234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10236 fi
10237 
10238 
10239         if test "x$TOUCH" = x; then
10240           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10241         fi
10242       else
10243         # Otherwise we believe it is a complete path. Use it as it is.
10244         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10245 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10246         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10247 $as_echo_n "checking for TOUCH... " >&6; }
10248         if test ! -x "$tool_specified"; then
10249           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10250 $as_echo "not found" >&6; }
10251           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10252         fi
10253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10254 $as_echo "$tool_specified" >&6; }
10255       fi
10256     fi
10257   fi
10258 
10259 
10260 
10261   if test "x$TOUCH" = x; then
10262     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10263   fi
10264 
10265 
10266 
10267 
10268 
10269   # Publish this variable in the help.
10270 
10271 
10272   if test "x$TR" = x; then
10273     # The variable is not set by user, try to locate tool using the code snippet
10274     for ac_prog in tr
10275 do
10276   # Extract the first word of "$ac_prog", so it can be a program name with args.
10277 set dummy $ac_prog; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if ${ac_cv_path_TR+:} false; then :
10281   $as_echo_n "(cached) " >&6
10282 else
10283   case $TR in
10284   [\\/]* | ?:[\\/]*)
10285   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10286   ;;
10287   *)
10288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291   IFS=$as_save_IFS
10292   test -z "$as_dir" && as_dir=.
10293     for ac_exec_ext in '' $ac_executable_extensions; do
10294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297     break 2
10298   fi
10299 done
10300   done
10301 IFS=$as_save_IFS
10302 
10303   ;;
10304 esac
10305 fi
10306 TR=$ac_cv_path_TR
10307 if test -n "$TR"; then
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10309 $as_echo "$TR" >&6; }
10310 else
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10313 fi
10314 
10315 
10316   test -n "$TR" && break
10317 done
10318 
10319   else
10320     # The variable is set, but is it from the command line or the environment?
10321 
10322     # Try to remove the string !TR! from our list.
10323     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10324     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10325       # If it failed, the variable was not from the command line. Ignore it,
10326       # but warn the user (except for BASH, which is always set by the calling BASH).
10327       if test "xTR" != xBASH; then
10328         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10329 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10330       fi
10331       # Try to locate tool using the code snippet
10332       for ac_prog in tr
10333 do
10334   # Extract the first word of "$ac_prog", so it can be a program name with args.
10335 set dummy $ac_prog; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if ${ac_cv_path_TR+:} false; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341   case $TR in
10342   [\\/]* | ?:[\\/]*)
10343   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10344   ;;
10345   *)
10346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10348 do
10349   IFS=$as_save_IFS
10350   test -z "$as_dir" && as_dir=.
10351     for ac_exec_ext in '' $ac_executable_extensions; do
10352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10353     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355     break 2
10356   fi
10357 done
10358   done
10359 IFS=$as_save_IFS
10360 
10361   ;;
10362 esac
10363 fi
10364 TR=$ac_cv_path_TR
10365 if test -n "$TR"; then
10366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10367 $as_echo "$TR" >&6; }
10368 else
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10371 fi
10372 
10373 
10374   test -n "$TR" && break
10375 done
10376 
10377     else
10378       # If it succeeded, then it was overridden by the user. We will use it
10379       # for the tool.
10380 
10381       # First remove it from the list of overridden variables, so we can test
10382       # for unknown variables in the end.
10383       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10384 
10385       # Check if the provided tool contains a complete path.
10386       tool_specified="$TR"
10387       tool_basename="${tool_specified##*/}"
10388       if test "x$tool_basename" = "x$tool_specified"; then
10389         # A command without a complete path is provided, search $PATH.
10390         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10391 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10392         # Extract the first word of "$tool_basename", so it can be a program name with args.
10393 set dummy $tool_basename; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_path_TR+:} false; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   case $TR in
10400   [\\/]* | ?:[\\/]*)
10401   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10402   ;;
10403   *)
10404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10406 do
10407   IFS=$as_save_IFS
10408   test -z "$as_dir" && as_dir=.
10409     for ac_exec_ext in '' $ac_executable_extensions; do
10410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413     break 2
10414   fi
10415 done
10416   done
10417 IFS=$as_save_IFS
10418 
10419   ;;
10420 esac
10421 fi
10422 TR=$ac_cv_path_TR
10423 if test -n "$TR"; then
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10425 $as_echo "$TR" >&6; }
10426 else
10427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10429 fi
10430 
10431 
10432         if test "x$TR" = x; then
10433           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10434         fi
10435       else
10436         # Otherwise we believe it is a complete path. Use it as it is.
10437         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10438 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10440 $as_echo_n "checking for TR... " >&6; }
10441         if test ! -x "$tool_specified"; then
10442           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10443 $as_echo "not found" >&6; }
10444           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10445         fi
10446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10447 $as_echo "$tool_specified" >&6; }
10448       fi
10449     fi
10450   fi
10451 
10452 
10453 
10454   if test "x$TR" = x; then
10455     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10456   fi
10457 
10458 
10459 
10460 
10461 
10462   # Publish this variable in the help.
10463 
10464 
10465   if test "x$UNAME" = x; then
10466     # The variable is not set by user, try to locate tool using the code snippet
10467     for ac_prog in uname
10468 do
10469   # Extract the first word of "$ac_prog", so it can be a program name with args.
10470 set dummy $ac_prog; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if ${ac_cv_path_UNAME+:} false; then :
10474   $as_echo_n "(cached) " >&6
10475 else
10476   case $UNAME in
10477   [\\/]* | ?:[\\/]*)
10478   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10479   ;;
10480   *)
10481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484   IFS=$as_save_IFS
10485   test -z "$as_dir" && as_dir=.
10486     for ac_exec_ext in '' $ac_executable_extensions; do
10487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10488     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490     break 2
10491   fi
10492 done
10493   done
10494 IFS=$as_save_IFS
10495 
10496   ;;
10497 esac
10498 fi
10499 UNAME=$ac_cv_path_UNAME
10500 if test -n "$UNAME"; then
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10502 $as_echo "$UNAME" >&6; }
10503 else
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507 
10508 
10509   test -n "$UNAME" && break
10510 done
10511 
10512   else
10513     # The variable is set, but is it from the command line or the environment?
10514 
10515     # Try to remove the string !UNAME! from our list.
10516     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10517     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10518       # If it failed, the variable was not from the command line. Ignore it,
10519       # but warn the user (except for BASH, which is always set by the calling BASH).
10520       if test "xUNAME" != xBASH; then
10521         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10522 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10523       fi
10524       # Try to locate tool using the code snippet
10525       for ac_prog in uname
10526 do
10527   # Extract the first word of "$ac_prog", so it can be a program name with args.
10528 set dummy $ac_prog; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if ${ac_cv_path_UNAME+:} false; then :
10532   $as_echo_n "(cached) " >&6
10533 else
10534   case $UNAME in
10535   [\\/]* | ?:[\\/]*)
10536   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10537   ;;
10538   *)
10539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10541 do
10542   IFS=$as_save_IFS
10543   test -z "$as_dir" && as_dir=.
10544     for ac_exec_ext in '' $ac_executable_extensions; do
10545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548     break 2
10549   fi
10550 done
10551   done
10552 IFS=$as_save_IFS
10553 
10554   ;;
10555 esac
10556 fi
10557 UNAME=$ac_cv_path_UNAME
10558 if test -n "$UNAME"; then
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10560 $as_echo "$UNAME" >&6; }
10561 else
10562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 fi
10565 
10566 
10567   test -n "$UNAME" && break
10568 done
10569 
10570     else
10571       # If it succeeded, then it was overridden by the user. We will use it
10572       # for the tool.
10573 
10574       # First remove it from the list of overridden variables, so we can test
10575       # for unknown variables in the end.
10576       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10577 
10578       # Check if the provided tool contains a complete path.
10579       tool_specified="$UNAME"
10580       tool_basename="${tool_specified##*/}"
10581       if test "x$tool_basename" = "x$tool_specified"; then
10582         # A command without a complete path is provided, search $PATH.
10583         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10584 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10585         # Extract the first word of "$tool_basename", so it can be a program name with args.
10586 set dummy $tool_basename; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if ${ac_cv_path_UNAME+:} false; then :
10590   $as_echo_n "(cached) " >&6
10591 else
10592   case $UNAME in
10593   [\\/]* | ?:[\\/]*)
10594   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10595   ;;
10596   *)
10597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10599 do
10600   IFS=$as_save_IFS
10601   test -z "$as_dir" && as_dir=.
10602     for ac_exec_ext in '' $ac_executable_extensions; do
10603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10604     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606     break 2
10607   fi
10608 done
10609   done
10610 IFS=$as_save_IFS
10611 
10612   ;;
10613 esac
10614 fi
10615 UNAME=$ac_cv_path_UNAME
10616 if test -n "$UNAME"; then
10617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10618 $as_echo "$UNAME" >&6; }
10619 else
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10622 fi
10623 
10624 
10625         if test "x$UNAME" = x; then
10626           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10627         fi
10628       else
10629         # Otherwise we believe it is a complete path. Use it as it is.
10630         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10631 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10632         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10633 $as_echo_n "checking for UNAME... " >&6; }
10634         if test ! -x "$tool_specified"; then
10635           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10636 $as_echo "not found" >&6; }
10637           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10638         fi
10639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10640 $as_echo "$tool_specified" >&6; }
10641       fi
10642     fi
10643   fi
10644 
10645 
10646 
10647   if test "x$UNAME" = x; then
10648     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10649   fi
10650 
10651 
10652 
10653 
10654 
10655   # Publish this variable in the help.
10656 
10657 
10658   if test "x$UNIQ" = x; then
10659     # The variable is not set by user, try to locate tool using the code snippet
10660     for ac_prog in uniq
10661 do
10662   # Extract the first word of "$ac_prog", so it can be a program name with args.
10663 set dummy $ac_prog; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if ${ac_cv_path_UNIQ+:} false; then :
10667   $as_echo_n "(cached) " >&6
10668 else
10669   case $UNIQ in
10670   [\\/]* | ?:[\\/]*)
10671   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10672   ;;
10673   *)
10674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10676 do
10677   IFS=$as_save_IFS
10678   test -z "$as_dir" && as_dir=.
10679     for ac_exec_ext in '' $ac_executable_extensions; do
10680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10681     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683     break 2
10684   fi
10685 done
10686   done
10687 IFS=$as_save_IFS
10688 
10689   ;;
10690 esac
10691 fi
10692 UNIQ=$ac_cv_path_UNIQ
10693 if test -n "$UNIQ"; then
10694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10695 $as_echo "$UNIQ" >&6; }
10696 else
10697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10699 fi
10700 
10701 
10702   test -n "$UNIQ" && break
10703 done
10704 
10705   else
10706     # The variable is set, but is it from the command line or the environment?
10707 
10708     # Try to remove the string !UNIQ! from our list.
10709     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10710     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10711       # If it failed, the variable was not from the command line. Ignore it,
10712       # but warn the user (except for BASH, which is always set by the calling BASH).
10713       if test "xUNIQ" != xBASH; then
10714         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10715 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10716       fi
10717       # Try to locate tool using the code snippet
10718       for ac_prog in uniq
10719 do
10720   # Extract the first word of "$ac_prog", so it can be a program name with args.
10721 set dummy $ac_prog; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if ${ac_cv_path_UNIQ+:} false; then :
10725   $as_echo_n "(cached) " >&6
10726 else
10727   case $UNIQ in
10728   [\\/]* | ?:[\\/]*)
10729   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10730   ;;
10731   *)
10732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10734 do
10735   IFS=$as_save_IFS
10736   test -z "$as_dir" && as_dir=.
10737     for ac_exec_ext in '' $ac_executable_extensions; do
10738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10739     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741     break 2
10742   fi
10743 done
10744   done
10745 IFS=$as_save_IFS
10746 
10747   ;;
10748 esac
10749 fi
10750 UNIQ=$ac_cv_path_UNIQ
10751 if test -n "$UNIQ"; then
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10753 $as_echo "$UNIQ" >&6; }
10754 else
10755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }
10757 fi
10758 
10759 
10760   test -n "$UNIQ" && break
10761 done
10762 
10763     else
10764       # If it succeeded, then it was overridden by the user. We will use it
10765       # for the tool.
10766 
10767       # First remove it from the list of overridden variables, so we can test
10768       # for unknown variables in the end.
10769       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10770 
10771       # Check if the provided tool contains a complete path.
10772       tool_specified="$UNIQ"
10773       tool_basename="${tool_specified##*/}"
10774       if test "x$tool_basename" = "x$tool_specified"; then
10775         # A command without a complete path is provided, search $PATH.
10776         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10777 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10778         # Extract the first word of "$tool_basename", so it can be a program name with args.
10779 set dummy $tool_basename; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if ${ac_cv_path_UNIQ+:} false; then :
10783   $as_echo_n "(cached) " >&6
10784 else
10785   case $UNIQ in
10786   [\\/]* | ?:[\\/]*)
10787   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10788   ;;
10789   *)
10790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10792 do
10793   IFS=$as_save_IFS
10794   test -z "$as_dir" && as_dir=.
10795     for ac_exec_ext in '' $ac_executable_extensions; do
10796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799     break 2
10800   fi
10801 done
10802   done
10803 IFS=$as_save_IFS
10804 
10805   ;;
10806 esac
10807 fi
10808 UNIQ=$ac_cv_path_UNIQ
10809 if test -n "$UNIQ"; then
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10811 $as_echo "$UNIQ" >&6; }
10812 else
10813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 fi
10816 
10817 
10818         if test "x$UNIQ" = x; then
10819           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10820         fi
10821       else
10822         # Otherwise we believe it is a complete path. Use it as it is.
10823         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10824 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10826 $as_echo_n "checking for UNIQ... " >&6; }
10827         if test ! -x "$tool_specified"; then
10828           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10829 $as_echo "not found" >&6; }
10830           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10831         fi
10832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10833 $as_echo "$tool_specified" >&6; }
10834       fi
10835     fi
10836   fi
10837 
10838 
10839 
10840   if test "x$UNIQ" = x; then
10841     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10842   fi
10843 
10844 
10845 
10846 
10847 
10848   # Publish this variable in the help.
10849 
10850 
10851   if test "x$WC" = x; then
10852     # The variable is not set by user, try to locate tool using the code snippet
10853     for ac_prog in wc
10854 do
10855   # Extract the first word of "$ac_prog", so it can be a program name with args.
10856 set dummy $ac_prog; ac_word=$2
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 $as_echo_n "checking for $ac_word... " >&6; }
10859 if ${ac_cv_path_WC+:} false; then :
10860   $as_echo_n "(cached) " >&6
10861 else
10862   case $WC in
10863   [\\/]* | ?:[\\/]*)
10864   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10865   ;;
10866   *)
10867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10869 do
10870   IFS=$as_save_IFS
10871   test -z "$as_dir" && as_dir=.
10872     for ac_exec_ext in '' $ac_executable_extensions; do
10873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10874     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876     break 2
10877   fi
10878 done
10879   done
10880 IFS=$as_save_IFS
10881 
10882   ;;
10883 esac
10884 fi
10885 WC=$ac_cv_path_WC
10886 if test -n "$WC"; then
10887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10888 $as_echo "$WC" >&6; }
10889 else
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 fi
10893 
10894 
10895   test -n "$WC" && break
10896 done
10897 
10898   else
10899     # The variable is set, but is it from the command line or the environment?
10900 
10901     # Try to remove the string !WC! from our list.
10902     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10903     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10904       # If it failed, the variable was not from the command line. Ignore it,
10905       # but warn the user (except for BASH, which is always set by the calling BASH).
10906       if test "xWC" != xBASH; then
10907         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10908 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10909       fi
10910       # Try to locate tool using the code snippet
10911       for ac_prog in wc
10912 do
10913   # Extract the first word of "$ac_prog", so it can be a program name with args.
10914 set dummy $ac_prog; ac_word=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_path_WC+:} false; then :
10918   $as_echo_n "(cached) " >&6
10919 else
10920   case $WC in
10921   [\\/]* | ?:[\\/]*)
10922   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10923   ;;
10924   *)
10925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10927 do
10928   IFS=$as_save_IFS
10929   test -z "$as_dir" && as_dir=.
10930     for ac_exec_ext in '' $ac_executable_extensions; do
10931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934     break 2
10935   fi
10936 done
10937   done
10938 IFS=$as_save_IFS
10939 
10940   ;;
10941 esac
10942 fi
10943 WC=$ac_cv_path_WC
10944 if test -n "$WC"; then
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10946 $as_echo "$WC" >&6; }
10947 else
10948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10950 fi
10951 
10952 
10953   test -n "$WC" && break
10954 done
10955 
10956     else
10957       # If it succeeded, then it was overridden by the user. We will use it
10958       # for the tool.
10959 
10960       # First remove it from the list of overridden variables, so we can test
10961       # for unknown variables in the end.
10962       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10963 
10964       # Check if the provided tool contains a complete path.
10965       tool_specified="$WC"
10966       tool_basename="${tool_specified##*/}"
10967       if test "x$tool_basename" = "x$tool_specified"; then
10968         # A command without a complete path is provided, search $PATH.
10969         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10970 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10971         # Extract the first word of "$tool_basename", so it can be a program name with args.
10972 set dummy $tool_basename; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if ${ac_cv_path_WC+:} false; then :
10976   $as_echo_n "(cached) " >&6
10977 else
10978   case $WC in
10979   [\\/]* | ?:[\\/]*)
10980   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10981   ;;
10982   *)
10983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10985 do
10986   IFS=$as_save_IFS
10987   test -z "$as_dir" && as_dir=.
10988     for ac_exec_ext in '' $ac_executable_extensions; do
10989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992     break 2
10993   fi
10994 done
10995   done
10996 IFS=$as_save_IFS
10997 
10998   ;;
10999 esac
11000 fi
11001 WC=$ac_cv_path_WC
11002 if test -n "$WC"; then
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11004 $as_echo "$WC" >&6; }
11005 else
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009 
11010 
11011         if test "x$WC" = x; then
11012           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11013         fi
11014       else
11015         # Otherwise we believe it is a complete path. Use it as it is.
11016         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11017 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11019 $as_echo_n "checking for WC... " >&6; }
11020         if test ! -x "$tool_specified"; then
11021           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11022 $as_echo "not found" >&6; }
11023           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11024         fi
11025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11026 $as_echo "$tool_specified" >&6; }
11027       fi
11028     fi
11029   fi
11030 
11031 
11032 
11033   if test "x$WC" = x; then
11034     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11035   fi
11036 
11037 
11038 
11039 
11040 
11041   # Publish this variable in the help.
11042 
11043 
11044   if test "x$WHICH" = x; then
11045     # The variable is not set by user, try to locate tool using the code snippet
11046     for ac_prog in which
11047 do
11048   # Extract the first word of "$ac_prog", so it can be a program name with args.
11049 set dummy $ac_prog; ac_word=$2
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051 $as_echo_n "checking for $ac_word... " >&6; }
11052 if ${ac_cv_path_WHICH+:} false; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   case $WHICH in
11056   [\\/]* | ?:[\\/]*)
11057   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11058   ;;
11059   *)
11060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061 for as_dir in $PATH
11062 do
11063   IFS=$as_save_IFS
11064   test -z "$as_dir" && as_dir=.
11065     for ac_exec_ext in '' $ac_executable_extensions; do
11066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11067     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11069     break 2
11070   fi
11071 done
11072   done
11073 IFS=$as_save_IFS
11074 
11075   ;;
11076 esac
11077 fi
11078 WHICH=$ac_cv_path_WHICH
11079 if test -n "$WHICH"; then
11080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11081 $as_echo "$WHICH" >&6; }
11082 else
11083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11085 fi
11086 
11087 
11088   test -n "$WHICH" && break
11089 done
11090 
11091   else
11092     # The variable is set, but is it from the command line or the environment?
11093 
11094     # Try to remove the string !WHICH! from our list.
11095     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11096     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11097       # If it failed, the variable was not from the command line. Ignore it,
11098       # but warn the user (except for BASH, which is always set by the calling BASH).
11099       if test "xWHICH" != xBASH; then
11100         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11101 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11102       fi
11103       # Try to locate tool using the code snippet
11104       for ac_prog in which
11105 do
11106   # Extract the first word of "$ac_prog", so it can be a program name with args.
11107 set dummy $ac_prog; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_path_WHICH+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   case $WHICH in
11114   [\\/]* | ?:[\\/]*)
11115   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11116   ;;
11117   *)
11118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11120 do
11121   IFS=$as_save_IFS
11122   test -z "$as_dir" && as_dir=.
11123     for ac_exec_ext in '' $ac_executable_extensions; do
11124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11125     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11127     break 2
11128   fi
11129 done
11130   done
11131 IFS=$as_save_IFS
11132 
11133   ;;
11134 esac
11135 fi
11136 WHICH=$ac_cv_path_WHICH
11137 if test -n "$WHICH"; then
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11139 $as_echo "$WHICH" >&6; }
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11143 fi
11144 
11145 
11146   test -n "$WHICH" && break
11147 done
11148 
11149     else
11150       # If it succeeded, then it was overridden by the user. We will use it
11151       # for the tool.
11152 
11153       # First remove it from the list of overridden variables, so we can test
11154       # for unknown variables in the end.
11155       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11156 
11157       # Check if the provided tool contains a complete path.
11158       tool_specified="$WHICH"
11159       tool_basename="${tool_specified##*/}"
11160       if test "x$tool_basename" = "x$tool_specified"; then
11161         # A command without a complete path is provided, search $PATH.
11162         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11163 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11164         # Extract the first word of "$tool_basename", so it can be a program name with args.
11165 set dummy $tool_basename; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_path_WHICH+:} false; then :
11169   $as_echo_n "(cached) " >&6
11170 else
11171   case $WHICH in
11172   [\\/]* | ?:[\\/]*)
11173   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11174   ;;
11175   *)
11176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179   IFS=$as_save_IFS
11180   test -z "$as_dir" && as_dir=.
11181     for ac_exec_ext in '' $ac_executable_extensions; do
11182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185     break 2
11186   fi
11187 done
11188   done
11189 IFS=$as_save_IFS
11190 
11191   ;;
11192 esac
11193 fi
11194 WHICH=$ac_cv_path_WHICH
11195 if test -n "$WHICH"; then
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11197 $as_echo "$WHICH" >&6; }
11198 else
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 fi
11202 
11203 
11204         if test "x$WHICH" = x; then
11205           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11206         fi
11207       else
11208         # Otherwise we believe it is a complete path. Use it as it is.
11209         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11210 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11212 $as_echo_n "checking for WHICH... " >&6; }
11213         if test ! -x "$tool_specified"; then
11214           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11215 $as_echo "not found" >&6; }
11216           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11217         fi
11218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11219 $as_echo "$tool_specified" >&6; }
11220       fi
11221     fi
11222   fi
11223 
11224 
11225 
11226   if test "x$WHICH" = x; then
11227     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11228   fi
11229 
11230 
11231 
11232 
11233 
11234   # Publish this variable in the help.
11235 
11236 
11237   if test "x$XARGS" = x; then
11238     # The variable is not set by user, try to locate tool using the code snippet
11239     for ac_prog in xargs
11240 do
11241   # Extract the first word of "$ac_prog", so it can be a program name with args.
11242 set dummy $ac_prog; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_path_XARGS+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   case $XARGS in
11249   [\\/]* | ?:[\\/]*)
11250   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11251   ;;
11252   *)
11253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH
11255 do
11256   IFS=$as_save_IFS
11257   test -z "$as_dir" && as_dir=.
11258     for ac_exec_ext in '' $ac_executable_extensions; do
11259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11260     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11262     break 2
11263   fi
11264 done
11265   done
11266 IFS=$as_save_IFS
11267 
11268   ;;
11269 esac
11270 fi
11271 XARGS=$ac_cv_path_XARGS
11272 if test -n "$XARGS"; then
11273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11274 $as_echo "$XARGS" >&6; }
11275 else
11276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11278 fi
11279 
11280 
11281   test -n "$XARGS" && break
11282 done
11283 
11284   else
11285     # The variable is set, but is it from the command line or the environment?
11286 
11287     # Try to remove the string !XARGS! from our list.
11288     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11289     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11290       # If it failed, the variable was not from the command line. Ignore it,
11291       # but warn the user (except for BASH, which is always set by the calling BASH).
11292       if test "xXARGS" != xBASH; then
11293         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11294 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11295       fi
11296       # Try to locate tool using the code snippet
11297       for ac_prog in xargs
11298 do
11299   # Extract the first word of "$ac_prog", so it can be a program name with args.
11300 set dummy $ac_prog; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if ${ac_cv_path_XARGS+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   case $XARGS in
11307   [\\/]* | ?:[\\/]*)
11308   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11309   ;;
11310   *)
11311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316     for ac_exec_ext in '' $ac_executable_extensions; do
11317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323   done
11324 IFS=$as_save_IFS
11325 
11326   ;;
11327 esac
11328 fi
11329 XARGS=$ac_cv_path_XARGS
11330 if test -n "$XARGS"; then
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11332 $as_echo "$XARGS" >&6; }
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 fi
11337 
11338 
11339   test -n "$XARGS" && break
11340 done
11341 
11342     else
11343       # If it succeeded, then it was overridden by the user. We will use it
11344       # for the tool.
11345 
11346       # First remove it from the list of overridden variables, so we can test
11347       # for unknown variables in the end.
11348       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11349 
11350       # Check if the provided tool contains a complete path.
11351       tool_specified="$XARGS"
11352       tool_basename="${tool_specified##*/}"
11353       if test "x$tool_basename" = "x$tool_specified"; then
11354         # A command without a complete path is provided, search $PATH.
11355         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11356 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11357         # Extract the first word of "$tool_basename", so it can be a program name with args.
11358 set dummy $tool_basename; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if ${ac_cv_path_XARGS+:} false; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   case $XARGS in
11365   [\\/]* | ?:[\\/]*)
11366   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11367   ;;
11368   *)
11369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in $PATH
11371 do
11372   IFS=$as_save_IFS
11373   test -z "$as_dir" && as_dir=.
11374     for ac_exec_ext in '' $ac_executable_extensions; do
11375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11376     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378     break 2
11379   fi
11380 done
11381   done
11382 IFS=$as_save_IFS
11383 
11384   ;;
11385 esac
11386 fi
11387 XARGS=$ac_cv_path_XARGS
11388 if test -n "$XARGS"; then
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11390 $as_echo "$XARGS" >&6; }
11391 else
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 fi
11395 
11396 
11397         if test "x$XARGS" = x; then
11398           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11399         fi
11400       else
11401         # Otherwise we believe it is a complete path. Use it as it is.
11402         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11403 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11405 $as_echo_n "checking for XARGS... " >&6; }
11406         if test ! -x "$tool_specified"; then
11407           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11408 $as_echo "not found" >&6; }
11409           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11410         fi
11411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11412 $as_echo "$tool_specified" >&6; }
11413       fi
11414     fi
11415   fi
11416 
11417 
11418 
11419   if test "x$XARGS" = x; then
11420     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11421   fi
11422 
11423 
11424 
11425   # Then required tools that require some special treatment.
11426 
11427 
11428   # Publish this variable in the help.
11429 
11430 
11431   if test "x$AWK" = x; then
11432     # The variable is not set by user, try to locate tool using the code snippet
11433     for ac_prog in gawk mawk nawk awk
11434 do
11435   # Extract the first word of "$ac_prog", so it can be a program name with args.
11436 set dummy $ac_prog; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_prog_AWK+:} false; then :
11440   $as_echo_n "(cached) " >&6
11441 else
11442   if test -n "$AWK"; then
11443   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11444 else
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11447 do
11448   IFS=$as_save_IFS
11449   test -z "$as_dir" && as_dir=.
11450     for ac_exec_ext in '' $ac_executable_extensions; do
11451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452     ac_cv_prog_AWK="$ac_prog"
11453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454     break 2
11455   fi
11456 done
11457   done
11458 IFS=$as_save_IFS
11459 
11460 fi
11461 fi
11462 AWK=$ac_cv_prog_AWK
11463 if test -n "$AWK"; then
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11465 $as_echo "$AWK" >&6; }
11466 else
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11469 fi
11470 
11471 
11472   test -n "$AWK" && break
11473 done
11474 
11475   else
11476     # The variable is set, but is it from the command line or the environment?
11477 
11478     # Try to remove the string !AWK! from our list.
11479     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11480     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11481       # If it failed, the variable was not from the command line. Ignore it,
11482       # but warn the user (except for BASH, which is always set by the calling BASH).
11483       if test "xAWK" != xBASH; then
11484         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11485 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11486       fi
11487       # Try to locate tool using the code snippet
11488       for ac_prog in gawk mawk nawk awk
11489 do
11490   # Extract the first word of "$ac_prog", so it can be a program name with args.
11491 set dummy $ac_prog; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if ${ac_cv_prog_AWK+:} false; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497   if test -n "$AWK"; then
11498   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503   IFS=$as_save_IFS
11504   test -z "$as_dir" && as_dir=.
11505     for ac_exec_ext in '' $ac_executable_extensions; do
11506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11507     ac_cv_prog_AWK="$ac_prog"
11508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509     break 2
11510   fi
11511 done
11512   done
11513 IFS=$as_save_IFS
11514 
11515 fi
11516 fi
11517 AWK=$ac_cv_prog_AWK
11518 if test -n "$AWK"; then
11519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11520 $as_echo "$AWK" >&6; }
11521 else
11522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11524 fi
11525 
11526 
11527   test -n "$AWK" && break
11528 done
11529 
11530     else
11531       # If it succeeded, then it was overridden by the user. We will use it
11532       # for the tool.
11533 
11534       # First remove it from the list of overridden variables, so we can test
11535       # for unknown variables in the end.
11536       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11537 
11538       # Check if the provided tool contains a complete path.
11539       tool_specified="$AWK"
11540       tool_basename="${tool_specified##*/}"
11541       if test "x$tool_basename" = "x$tool_specified"; then
11542         # A command without a complete path is provided, search $PATH.
11543         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11544 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11545         # Extract the first word of "$tool_basename", so it can be a program name with args.
11546 set dummy $tool_basename; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_AWK+:} false; then :
11550   $as_echo_n "(cached) " >&6
11551 else
11552   case $AWK in
11553   [\\/]* | ?:[\\/]*)
11554   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11555   ;;
11556   *)
11557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11559 do
11560   IFS=$as_save_IFS
11561   test -z "$as_dir" && as_dir=.
11562     for ac_exec_ext in '' $ac_executable_extensions; do
11563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566     break 2
11567   fi
11568 done
11569   done
11570 IFS=$as_save_IFS
11571 
11572   ;;
11573 esac
11574 fi
11575 AWK=$ac_cv_path_AWK
11576 if test -n "$AWK"; then
11577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11578 $as_echo "$AWK" >&6; }
11579 else
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11582 fi
11583 
11584 
11585         if test "x$AWK" = x; then
11586           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11587         fi
11588       else
11589         # Otherwise we believe it is a complete path. Use it as it is.
11590         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11591 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11593 $as_echo_n "checking for AWK... " >&6; }
11594         if test ! -x "$tool_specified"; then
11595           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11596 $as_echo "not found" >&6; }
11597           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11598         fi
11599         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11600 $as_echo "$tool_specified" >&6; }
11601       fi
11602     fi
11603   fi
11604 
11605 
11606   if test "x$AWK" = x; then
11607     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11608   fi
11609 
11610 
11611 
11612 
11613   # Publish this variable in the help.
11614 
11615 
11616   if test "x$GREP" = x; then
11617     # The variable is not set by user, try to locate tool using the code snippet
11618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11620 if ${ac_cv_path_GREP+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   if test -z "$GREP"; then
11624   ac_path_GREP_found=false
11625   # Loop through the user's path and test for each of PROGNAME-LIST
11626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11628 do
11629   IFS=$as_save_IFS
11630   test -z "$as_dir" && as_dir=.
11631     for ac_prog in grep ggrep; do
11632     for ac_exec_ext in '' $ac_executable_extensions; do
11633       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11634       as_fn_executable_p "$ac_path_GREP" || continue
11635 # Check for GNU ac_path_GREP and select it if it is found.
11636   # Check for GNU $ac_path_GREP
11637 case `"$ac_path_GREP" --version 2>&1` in
11638 *GNU*)
11639   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11640 *)
11641   ac_count=0
11642   $as_echo_n 0123456789 >"conftest.in"
11643   while :
11644   do
11645     cat "conftest.in" "conftest.in" >"conftest.tmp"
11646     mv "conftest.tmp" "conftest.in"
11647     cp "conftest.in" "conftest.nl"
11648     $as_echo 'GREP' >> "conftest.nl"
11649     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11650     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11651     as_fn_arith $ac_count + 1 && ac_count=$as_val
11652     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11653       # Best one so far, save it but keep looking for a better one
11654       ac_cv_path_GREP="$ac_path_GREP"
11655       ac_path_GREP_max=$ac_count
11656     fi
11657     # 10*(2^10) chars as input seems more than enough
11658     test $ac_count -gt 10 && break
11659   done
11660   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11661 esac
11662 
11663       $ac_path_GREP_found && break 3
11664     done
11665   done
11666   done
11667 IFS=$as_save_IFS
11668   if test -z "$ac_cv_path_GREP"; then
11669     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11670   fi
11671 else
11672   ac_cv_path_GREP=$GREP
11673 fi
11674 
11675 fi
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11677 $as_echo "$ac_cv_path_GREP" >&6; }
11678  GREP="$ac_cv_path_GREP"
11679 
11680 
11681   else
11682     # The variable is set, but is it from the command line or the environment?
11683 
11684     # Try to remove the string !GREP! from our list.
11685     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11686     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11687       # If it failed, the variable was not from the command line. Ignore it,
11688       # but warn the user (except for BASH, which is always set by the calling BASH).
11689       if test "xGREP" != xBASH; then
11690         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11691 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11692       fi
11693       # Try to locate tool using the code snippet
11694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11695 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11696 if ${ac_cv_path_GREP+:} false; then :
11697   $as_echo_n "(cached) " >&6
11698 else
11699   if test -z "$GREP"; then
11700   ac_path_GREP_found=false
11701   # Loop through the user's path and test for each of PROGNAME-LIST
11702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11704 do
11705   IFS=$as_save_IFS
11706   test -z "$as_dir" && as_dir=.
11707     for ac_prog in grep ggrep; do
11708     for ac_exec_ext in '' $ac_executable_extensions; do
11709       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11710       as_fn_executable_p "$ac_path_GREP" || continue
11711 # Check for GNU ac_path_GREP and select it if it is found.
11712   # Check for GNU $ac_path_GREP
11713 case `"$ac_path_GREP" --version 2>&1` in
11714 *GNU*)
11715   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11716 *)
11717   ac_count=0
11718   $as_echo_n 0123456789 >"conftest.in"
11719   while :
11720   do
11721     cat "conftest.in" "conftest.in" >"conftest.tmp"
11722     mv "conftest.tmp" "conftest.in"
11723     cp "conftest.in" "conftest.nl"
11724     $as_echo 'GREP' >> "conftest.nl"
11725     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11727     as_fn_arith $ac_count + 1 && ac_count=$as_val
11728     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11729       # Best one so far, save it but keep looking for a better one
11730       ac_cv_path_GREP="$ac_path_GREP"
11731       ac_path_GREP_max=$ac_count
11732     fi
11733     # 10*(2^10) chars as input seems more than enough
11734     test $ac_count -gt 10 && break
11735   done
11736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11737 esac
11738 
11739       $ac_path_GREP_found && break 3
11740     done
11741   done
11742   done
11743 IFS=$as_save_IFS
11744   if test -z "$ac_cv_path_GREP"; then
11745     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11746   fi
11747 else
11748   ac_cv_path_GREP=$GREP
11749 fi
11750 
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11753 $as_echo "$ac_cv_path_GREP" >&6; }
11754  GREP="$ac_cv_path_GREP"
11755 
11756 
11757     else
11758       # If it succeeded, then it was overridden by the user. We will use it
11759       # for the tool.
11760 
11761       # First remove it from the list of overridden variables, so we can test
11762       # for unknown variables in the end.
11763       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11764 
11765       # Check if the provided tool contains a complete path.
11766       tool_specified="$GREP"
11767       tool_basename="${tool_specified##*/}"
11768       if test "x$tool_basename" = "x$tool_specified"; then
11769         # A command without a complete path is provided, search $PATH.
11770         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11771 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11772         # Extract the first word of "$tool_basename", so it can be a program name with args.
11773 set dummy $tool_basename; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_path_GREP+:} false; then :
11777   $as_echo_n "(cached) " >&6
11778 else
11779   case $GREP in
11780   [\\/]* | ?:[\\/]*)
11781   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11782   ;;
11783   *)
11784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787   IFS=$as_save_IFS
11788   test -z "$as_dir" && as_dir=.
11789     for ac_exec_ext in '' $ac_executable_extensions; do
11790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793     break 2
11794   fi
11795 done
11796   done
11797 IFS=$as_save_IFS
11798 
11799   ;;
11800 esac
11801 fi
11802 GREP=$ac_cv_path_GREP
11803 if test -n "$GREP"; then
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11805 $as_echo "$GREP" >&6; }
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810 
11811 
11812         if test "x$GREP" = x; then
11813           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11814         fi
11815       else
11816         # Otherwise we believe it is a complete path. Use it as it is.
11817         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11818 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11820 $as_echo_n "checking for GREP... " >&6; }
11821         if test ! -x "$tool_specified"; then
11822           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11823 $as_echo "not found" >&6; }
11824           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11825         fi
11826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11827 $as_echo "$tool_specified" >&6; }
11828       fi
11829     fi
11830   fi
11831 
11832 
11833   if test "x$GREP" = x; then
11834     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11835   fi
11836 
11837 
11838 
11839 
11840   # Publish this variable in the help.
11841 
11842 
11843   if test "x$EGREP" = x; then
11844     # The variable is not set by user, try to locate tool using the code snippet
11845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11846 $as_echo_n "checking for egrep... " >&6; }
11847 if ${ac_cv_path_EGREP+:} false; then :
11848   $as_echo_n "(cached) " >&6
11849 else
11850   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11851    then ac_cv_path_EGREP="$GREP -E"
11852    else
11853      if test -z "$EGREP"; then
11854   ac_path_EGREP_found=false
11855   # Loop through the user's path and test for each of PROGNAME-LIST
11856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11858 do
11859   IFS=$as_save_IFS
11860   test -z "$as_dir" && as_dir=.
11861     for ac_prog in egrep; do
11862     for ac_exec_ext in '' $ac_executable_extensions; do
11863       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11864       as_fn_executable_p "$ac_path_EGREP" || continue
11865 # Check for GNU ac_path_EGREP and select it if it is found.
11866   # Check for GNU $ac_path_EGREP
11867 case `"$ac_path_EGREP" --version 2>&1` in
11868 *GNU*)
11869   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11870 *)
11871   ac_count=0
11872   $as_echo_n 0123456789 >"conftest.in"
11873   while :
11874   do
11875     cat "conftest.in" "conftest.in" >"conftest.tmp"
11876     mv "conftest.tmp" "conftest.in"
11877     cp "conftest.in" "conftest.nl"
11878     $as_echo 'EGREP' >> "conftest.nl"
11879     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11880     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11881     as_fn_arith $ac_count + 1 && ac_count=$as_val
11882     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11883       # Best one so far, save it but keep looking for a better one
11884       ac_cv_path_EGREP="$ac_path_EGREP"
11885       ac_path_EGREP_max=$ac_count
11886     fi
11887     # 10*(2^10) chars as input seems more than enough
11888     test $ac_count -gt 10 && break
11889   done
11890   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11891 esac
11892 
11893       $ac_path_EGREP_found && break 3
11894     done
11895   done
11896   done
11897 IFS=$as_save_IFS
11898   if test -z "$ac_cv_path_EGREP"; then
11899     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11900   fi
11901 else
11902   ac_cv_path_EGREP=$EGREP
11903 fi
11904 
11905    fi
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11908 $as_echo "$ac_cv_path_EGREP" >&6; }
11909  EGREP="$ac_cv_path_EGREP"
11910 
11911 
11912   else
11913     # The variable is set, but is it from the command line or the environment?
11914 
11915     # Try to remove the string !EGREP! from our list.
11916     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11917     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11918       # If it failed, the variable was not from the command line. Ignore it,
11919       # but warn the user (except for BASH, which is always set by the calling BASH).
11920       if test "xEGREP" != xBASH; then
11921         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11922 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11923       fi
11924       # Try to locate tool using the code snippet
11925       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11926 $as_echo_n "checking for egrep... " >&6; }
11927 if ${ac_cv_path_EGREP+:} false; then :
11928   $as_echo_n "(cached) " >&6
11929 else
11930   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11931    then ac_cv_path_EGREP="$GREP -E"
11932    else
11933      if test -z "$EGREP"; then
11934   ac_path_EGREP_found=false
11935   # Loop through the user's path and test for each of PROGNAME-LIST
11936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11938 do
11939   IFS=$as_save_IFS
11940   test -z "$as_dir" && as_dir=.
11941     for ac_prog in egrep; do
11942     for ac_exec_ext in '' $ac_executable_extensions; do
11943       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11944       as_fn_executable_p "$ac_path_EGREP" || continue
11945 # Check for GNU ac_path_EGREP and select it if it is found.
11946   # Check for GNU $ac_path_EGREP
11947 case `"$ac_path_EGREP" --version 2>&1` in
11948 *GNU*)
11949   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11950 *)
11951   ac_count=0
11952   $as_echo_n 0123456789 >"conftest.in"
11953   while :
11954   do
11955     cat "conftest.in" "conftest.in" >"conftest.tmp"
11956     mv "conftest.tmp" "conftest.in"
11957     cp "conftest.in" "conftest.nl"
11958     $as_echo 'EGREP' >> "conftest.nl"
11959     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11960     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11961     as_fn_arith $ac_count + 1 && ac_count=$as_val
11962     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11963       # Best one so far, save it but keep looking for a better one
11964       ac_cv_path_EGREP="$ac_path_EGREP"
11965       ac_path_EGREP_max=$ac_count
11966     fi
11967     # 10*(2^10) chars as input seems more than enough
11968     test $ac_count -gt 10 && break
11969   done
11970   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11971 esac
11972 
11973       $ac_path_EGREP_found && break 3
11974     done
11975   done
11976   done
11977 IFS=$as_save_IFS
11978   if test -z "$ac_cv_path_EGREP"; then
11979     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11980   fi
11981 else
11982   ac_cv_path_EGREP=$EGREP
11983 fi
11984 
11985    fi
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11988 $as_echo "$ac_cv_path_EGREP" >&6; }
11989  EGREP="$ac_cv_path_EGREP"
11990 
11991 
11992     else
11993       # If it succeeded, then it was overridden by the user. We will use it
11994       # for the tool.
11995 
11996       # First remove it from the list of overridden variables, so we can test
11997       # for unknown variables in the end.
11998       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11999 
12000       # Check if the provided tool contains a complete path.
12001       tool_specified="$EGREP"
12002       tool_basename="${tool_specified##*/}"
12003       if test "x$tool_basename" = "x$tool_specified"; then
12004         # A command without a complete path is provided, search $PATH.
12005         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12006 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12007         # Extract the first word of "$tool_basename", so it can be a program name with args.
12008 set dummy $tool_basename; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_path_EGREP+:} false; then :
12012   $as_echo_n "(cached) " >&6
12013 else
12014   case $EGREP in
12015   [\\/]* | ?:[\\/]*)
12016   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12017   ;;
12018   *)
12019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12021 do
12022   IFS=$as_save_IFS
12023   test -z "$as_dir" && as_dir=.
12024     for ac_exec_ext in '' $ac_executable_extensions; do
12025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028     break 2
12029   fi
12030 done
12031   done
12032 IFS=$as_save_IFS
12033 
12034   ;;
12035 esac
12036 fi
12037 EGREP=$ac_cv_path_EGREP
12038 if test -n "$EGREP"; then
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12040 $as_echo "$EGREP" >&6; }
12041 else
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044 fi
12045 
12046 
12047         if test "x$EGREP" = x; then
12048           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12049         fi
12050       else
12051         # Otherwise we believe it is a complete path. Use it as it is.
12052         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12053 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12055 $as_echo_n "checking for EGREP... " >&6; }
12056         if test ! -x "$tool_specified"; then
12057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12058 $as_echo "not found" >&6; }
12059           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12060         fi
12061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12062 $as_echo "$tool_specified" >&6; }
12063       fi
12064     fi
12065   fi
12066 
12067 
12068   if test "x$EGREP" = x; then
12069     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12070   fi
12071 
12072 
12073 
12074 
12075   # Publish this variable in the help.
12076 
12077 
12078   if test "x$FGREP" = x; then
12079     # The variable is not set by user, try to locate tool using the code snippet
12080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12081 $as_echo_n "checking for fgrep... " >&6; }
12082 if ${ac_cv_path_FGREP+:} false; then :
12083   $as_echo_n "(cached) " >&6
12084 else
12085   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12086    then ac_cv_path_FGREP="$GREP -F"
12087    else
12088      if test -z "$FGREP"; then
12089   ac_path_FGREP_found=false
12090   # Loop through the user's path and test for each of PROGNAME-LIST
12091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12093 do
12094   IFS=$as_save_IFS
12095   test -z "$as_dir" && as_dir=.
12096     for ac_prog in fgrep; do
12097     for ac_exec_ext in '' $ac_executable_extensions; do
12098       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12099       as_fn_executable_p "$ac_path_FGREP" || continue
12100 # Check for GNU ac_path_FGREP and select it if it is found.
12101   # Check for GNU $ac_path_FGREP
12102 case `"$ac_path_FGREP" --version 2>&1` in
12103 *GNU*)
12104   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12105 *)
12106   ac_count=0
12107   $as_echo_n 0123456789 >"conftest.in"
12108   while :
12109   do
12110     cat "conftest.in" "conftest.in" >"conftest.tmp"
12111     mv "conftest.tmp" "conftest.in"
12112     cp "conftest.in" "conftest.nl"
12113     $as_echo 'FGREP' >> "conftest.nl"
12114     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12115     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12116     as_fn_arith $ac_count + 1 && ac_count=$as_val
12117     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12118       # Best one so far, save it but keep looking for a better one
12119       ac_cv_path_FGREP="$ac_path_FGREP"
12120       ac_path_FGREP_max=$ac_count
12121     fi
12122     # 10*(2^10) chars as input seems more than enough
12123     test $ac_count -gt 10 && break
12124   done
12125   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12126 esac
12127 
12128       $ac_path_FGREP_found && break 3
12129     done
12130   done
12131   done
12132 IFS=$as_save_IFS
12133   if test -z "$ac_cv_path_FGREP"; then
12134     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12135   fi
12136 else
12137   ac_cv_path_FGREP=$FGREP
12138 fi
12139 
12140    fi
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12143 $as_echo "$ac_cv_path_FGREP" >&6; }
12144  FGREP="$ac_cv_path_FGREP"
12145 
12146 
12147   else
12148     # The variable is set, but is it from the command line or the environment?
12149 
12150     # Try to remove the string !FGREP! from our list.
12151     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12152     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12153       # If it failed, the variable was not from the command line. Ignore it,
12154       # but warn the user (except for BASH, which is always set by the calling BASH).
12155       if test "xFGREP" != xBASH; then
12156         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12157 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12158       fi
12159       # Try to locate tool using the code snippet
12160       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12161 $as_echo_n "checking for fgrep... " >&6; }
12162 if ${ac_cv_path_FGREP+:} false; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12166    then ac_cv_path_FGREP="$GREP -F"
12167    else
12168      if test -z "$FGREP"; then
12169   ac_path_FGREP_found=false
12170   # Loop through the user's path and test for each of PROGNAME-LIST
12171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12173 do
12174   IFS=$as_save_IFS
12175   test -z "$as_dir" && as_dir=.
12176     for ac_prog in fgrep; do
12177     for ac_exec_ext in '' $ac_executable_extensions; do
12178       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12179       as_fn_executable_p "$ac_path_FGREP" || continue
12180 # Check for GNU ac_path_FGREP and select it if it is found.
12181   # Check for GNU $ac_path_FGREP
12182 case `"$ac_path_FGREP" --version 2>&1` in
12183 *GNU*)
12184   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12185 *)
12186   ac_count=0
12187   $as_echo_n 0123456789 >"conftest.in"
12188   while :
12189   do
12190     cat "conftest.in" "conftest.in" >"conftest.tmp"
12191     mv "conftest.tmp" "conftest.in"
12192     cp "conftest.in" "conftest.nl"
12193     $as_echo 'FGREP' >> "conftest.nl"
12194     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12195     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12196     as_fn_arith $ac_count + 1 && ac_count=$as_val
12197     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12198       # Best one so far, save it but keep looking for a better one
12199       ac_cv_path_FGREP="$ac_path_FGREP"
12200       ac_path_FGREP_max=$ac_count
12201     fi
12202     # 10*(2^10) chars as input seems more than enough
12203     test $ac_count -gt 10 && break
12204   done
12205   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12206 esac
12207 
12208       $ac_path_FGREP_found && break 3
12209     done
12210   done
12211   done
12212 IFS=$as_save_IFS
12213   if test -z "$ac_cv_path_FGREP"; then
12214     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12215   fi
12216 else
12217   ac_cv_path_FGREP=$FGREP
12218 fi
12219 
12220    fi
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12223 $as_echo "$ac_cv_path_FGREP" >&6; }
12224  FGREP="$ac_cv_path_FGREP"
12225 
12226 
12227     else
12228       # If it succeeded, then it was overridden by the user. We will use it
12229       # for the tool.
12230 
12231       # First remove it from the list of overridden variables, so we can test
12232       # for unknown variables in the end.
12233       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12234 
12235       # Check if the provided tool contains a complete path.
12236       tool_specified="$FGREP"
12237       tool_basename="${tool_specified##*/}"
12238       if test "x$tool_basename" = "x$tool_specified"; then
12239         # A command without a complete path is provided, search $PATH.
12240         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12241 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12242         # Extract the first word of "$tool_basename", so it can be a program name with args.
12243 set dummy $tool_basename; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if ${ac_cv_path_FGREP+:} false; then :
12247   $as_echo_n "(cached) " >&6
12248 else
12249   case $FGREP in
12250   [\\/]* | ?:[\\/]*)
12251   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12252   ;;
12253   *)
12254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12256 do
12257   IFS=$as_save_IFS
12258   test -z "$as_dir" && as_dir=.
12259     for ac_exec_ext in '' $ac_executable_extensions; do
12260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12261     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263     break 2
12264   fi
12265 done
12266   done
12267 IFS=$as_save_IFS
12268 
12269   ;;
12270 esac
12271 fi
12272 FGREP=$ac_cv_path_FGREP
12273 if test -n "$FGREP"; then
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12275 $as_echo "$FGREP" >&6; }
12276 else
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 fi
12280 
12281 
12282         if test "x$FGREP" = x; then
12283           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12284         fi
12285       else
12286         # Otherwise we believe it is a complete path. Use it as it is.
12287         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12288 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12290 $as_echo_n "checking for FGREP... " >&6; }
12291         if test ! -x "$tool_specified"; then
12292           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12293 $as_echo "not found" >&6; }
12294           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12295         fi
12296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12297 $as_echo "$tool_specified" >&6; }
12298       fi
12299     fi
12300   fi
12301 
12302 
12303   if test "x$FGREP" = x; then
12304     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12305   fi
12306 
12307 
12308 
12309 
12310   # Publish this variable in the help.
12311 
12312 
12313   if test "x$SED" = x; then
12314     # The variable is not set by user, try to locate tool using the code snippet
12315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12316 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12317 if ${ac_cv_path_SED+:} false; then :
12318   $as_echo_n "(cached) " >&6
12319 else
12320             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12321      for ac_i in 1 2 3 4 5 6 7; do
12322        ac_script="$ac_script$as_nl$ac_script"
12323      done
12324      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12325      { ac_script=; unset ac_script;}
12326      if test -z "$SED"; then
12327   ac_path_SED_found=false
12328   # Loop through the user's path and test for each of PROGNAME-LIST
12329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332   IFS=$as_save_IFS
12333   test -z "$as_dir" && as_dir=.
12334     for ac_prog in sed gsed; do
12335     for ac_exec_ext in '' $ac_executable_extensions; do
12336       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12337       as_fn_executable_p "$ac_path_SED" || continue
12338 # Check for GNU ac_path_SED and select it if it is found.
12339   # Check for GNU $ac_path_SED
12340 case `"$ac_path_SED" --version 2>&1` in
12341 *GNU*)
12342   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12343 *)
12344   ac_count=0
12345   $as_echo_n 0123456789 >"conftest.in"
12346   while :
12347   do
12348     cat "conftest.in" "conftest.in" >"conftest.tmp"
12349     mv "conftest.tmp" "conftest.in"
12350     cp "conftest.in" "conftest.nl"
12351     $as_echo '' >> "conftest.nl"
12352     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12353     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12354     as_fn_arith $ac_count + 1 && ac_count=$as_val
12355     if test $ac_count -gt ${ac_path_SED_max-0}; then
12356       # Best one so far, save it but keep looking for a better one
12357       ac_cv_path_SED="$ac_path_SED"
12358       ac_path_SED_max=$ac_count
12359     fi
12360     # 10*(2^10) chars as input seems more than enough
12361     test $ac_count -gt 10 && break
12362   done
12363   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12364 esac
12365 
12366       $ac_path_SED_found && break 3
12367     done
12368   done
12369   done
12370 IFS=$as_save_IFS
12371   if test -z "$ac_cv_path_SED"; then
12372     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12373   fi
12374 else
12375   ac_cv_path_SED=$SED
12376 fi
12377 
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12380 $as_echo "$ac_cv_path_SED" >&6; }
12381  SED="$ac_cv_path_SED"
12382   rm -f conftest.sed
12383 
12384   else
12385     # The variable is set, but is it from the command line or the environment?
12386 
12387     # Try to remove the string !SED! from our list.
12388     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12389     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12390       # If it failed, the variable was not from the command line. Ignore it,
12391       # but warn the user (except for BASH, which is always set by the calling BASH).
12392       if test "xSED" != xBASH; then
12393         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12394 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12395       fi
12396       # Try to locate tool using the code snippet
12397       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12398 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12399 if ${ac_cv_path_SED+:} false; then :
12400   $as_echo_n "(cached) " >&6
12401 else
12402             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12403      for ac_i in 1 2 3 4 5 6 7; do
12404        ac_script="$ac_script$as_nl$ac_script"
12405      done
12406      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12407      { ac_script=; unset ac_script;}
12408      if test -z "$SED"; then
12409   ac_path_SED_found=false
12410   # Loop through the user's path and test for each of PROGNAME-LIST
12411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12413 do
12414   IFS=$as_save_IFS
12415   test -z "$as_dir" && as_dir=.
12416     for ac_prog in sed gsed; do
12417     for ac_exec_ext in '' $ac_executable_extensions; do
12418       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12419       as_fn_executable_p "$ac_path_SED" || continue
12420 # Check for GNU ac_path_SED and select it if it is found.
12421   # Check for GNU $ac_path_SED
12422 case `"$ac_path_SED" --version 2>&1` in
12423 *GNU*)
12424   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12425 *)
12426   ac_count=0
12427   $as_echo_n 0123456789 >"conftest.in"
12428   while :
12429   do
12430     cat "conftest.in" "conftest.in" >"conftest.tmp"
12431     mv "conftest.tmp" "conftest.in"
12432     cp "conftest.in" "conftest.nl"
12433     $as_echo '' >> "conftest.nl"
12434     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12435     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12436     as_fn_arith $ac_count + 1 && ac_count=$as_val
12437     if test $ac_count -gt ${ac_path_SED_max-0}; then
12438       # Best one so far, save it but keep looking for a better one
12439       ac_cv_path_SED="$ac_path_SED"
12440       ac_path_SED_max=$ac_count
12441     fi
12442     # 10*(2^10) chars as input seems more than enough
12443     test $ac_count -gt 10 && break
12444   done
12445   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12446 esac
12447 
12448       $ac_path_SED_found && break 3
12449     done
12450   done
12451   done
12452 IFS=$as_save_IFS
12453   if test -z "$ac_cv_path_SED"; then
12454     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12455   fi
12456 else
12457   ac_cv_path_SED=$SED
12458 fi
12459 
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12462 $as_echo "$ac_cv_path_SED" >&6; }
12463  SED="$ac_cv_path_SED"
12464   rm -f conftest.sed
12465 
12466     else
12467       # If it succeeded, then it was overridden by the user. We will use it
12468       # for the tool.
12469 
12470       # First remove it from the list of overridden variables, so we can test
12471       # for unknown variables in the end.
12472       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12473 
12474       # Check if the provided tool contains a complete path.
12475       tool_specified="$SED"
12476       tool_basename="${tool_specified##*/}"
12477       if test "x$tool_basename" = "x$tool_specified"; then
12478         # A command without a complete path is provided, search $PATH.
12479         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12480 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12481         # Extract the first word of "$tool_basename", so it can be a program name with args.
12482 set dummy $tool_basename; ac_word=$2
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484 $as_echo_n "checking for $ac_word... " >&6; }
12485 if ${ac_cv_path_SED+:} false; then :
12486   $as_echo_n "(cached) " >&6
12487 else
12488   case $SED in
12489   [\\/]* | ?:[\\/]*)
12490   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12491   ;;
12492   *)
12493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496   IFS=$as_save_IFS
12497   test -z "$as_dir" && as_dir=.
12498     for ac_exec_ext in '' $ac_executable_extensions; do
12499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12500     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502     break 2
12503   fi
12504 done
12505   done
12506 IFS=$as_save_IFS
12507 
12508   ;;
12509 esac
12510 fi
12511 SED=$ac_cv_path_SED
12512 if test -n "$SED"; then
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12514 $as_echo "$SED" >&6; }
12515 else
12516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518 fi
12519 
12520 
12521         if test "x$SED" = x; then
12522           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12523         fi
12524       else
12525         # Otherwise we believe it is a complete path. Use it as it is.
12526         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12527 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12528         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12529 $as_echo_n "checking for SED... " >&6; }
12530         if test ! -x "$tool_specified"; then
12531           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12532 $as_echo "not found" >&6; }
12533           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12534         fi
12535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12536 $as_echo "$tool_specified" >&6; }
12537       fi
12538     fi
12539   fi
12540 
12541 
12542   if test "x$SED" = x; then
12543     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12544   fi
12545 
12546 
12547 
12548   # Always force rm.
12549   RM="$RM -f"
12550 
12551   # pwd behaves differently on various platforms and some don't support the -L flag.
12552   # Always use the bash builtin pwd to get uniform behavior.
12553   THEPWDCMD=pwd
12554 
12555   # These are not required on all platforms
12556 
12557 
12558   # Publish this variable in the help.
12559 
12560 
12561   if test "x$CYGPATH" = x; then
12562     # The variable is not set by user, try to locate tool using the code snippet
12563     for ac_prog in cygpath
12564 do
12565   # Extract the first word of "$ac_prog", so it can be a program name with args.
12566 set dummy $ac_prog; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if ${ac_cv_path_CYGPATH+:} false; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   case $CYGPATH in
12573   [\\/]* | ?:[\\/]*)
12574   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12575   ;;
12576   *)
12577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12579 do
12580   IFS=$as_save_IFS
12581   test -z "$as_dir" && as_dir=.
12582     for ac_exec_ext in '' $ac_executable_extensions; do
12583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586     break 2
12587   fi
12588 done
12589   done
12590 IFS=$as_save_IFS
12591 
12592   ;;
12593 esac
12594 fi
12595 CYGPATH=$ac_cv_path_CYGPATH
12596 if test -n "$CYGPATH"; then
12597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12598 $as_echo "$CYGPATH" >&6; }
12599 else
12600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12602 fi
12603 
12604 
12605   test -n "$CYGPATH" && break
12606 done
12607 
12608   else
12609     # The variable is set, but is it from the command line or the environment?
12610 
12611     # Try to remove the string !CYGPATH! from our list.
12612     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12613     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12614       # If it failed, the variable was not from the command line. Ignore it,
12615       # but warn the user (except for BASH, which is always set by the calling BASH).
12616       if test "xCYGPATH" != xBASH; then
12617         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12618 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12619       fi
12620       # Try to locate tool using the code snippet
12621       for ac_prog in cygpath
12622 do
12623   # Extract the first word of "$ac_prog", so it can be a program name with args.
12624 set dummy $ac_prog; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if ${ac_cv_path_CYGPATH+:} false; then :
12628   $as_echo_n "(cached) " >&6
12629 else
12630   case $CYGPATH in
12631   [\\/]* | ?:[\\/]*)
12632   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12633   ;;
12634   *)
12635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638   IFS=$as_save_IFS
12639   test -z "$as_dir" && as_dir=.
12640     for ac_exec_ext in '' $ac_executable_extensions; do
12641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12642     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644     break 2
12645   fi
12646 done
12647   done
12648 IFS=$as_save_IFS
12649 
12650   ;;
12651 esac
12652 fi
12653 CYGPATH=$ac_cv_path_CYGPATH
12654 if test -n "$CYGPATH"; then
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12656 $as_echo "$CYGPATH" >&6; }
12657 else
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660 fi
12661 
12662 
12663   test -n "$CYGPATH" && break
12664 done
12665 
12666     else
12667       # If it succeeded, then it was overridden by the user. We will use it
12668       # for the tool.
12669 
12670       # First remove it from the list of overridden variables, so we can test
12671       # for unknown variables in the end.
12672       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12673 
12674       # Check if the provided tool contains a complete path.
12675       tool_specified="$CYGPATH"
12676       tool_basename="${tool_specified##*/}"
12677       if test "x$tool_basename" = "x$tool_specified"; then
12678         # A command without a complete path is provided, search $PATH.
12679         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12680 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12681         # Extract the first word of "$tool_basename", so it can be a program name with args.
12682 set dummy $tool_basename; ac_word=$2
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684 $as_echo_n "checking for $ac_word... " >&6; }
12685 if ${ac_cv_path_CYGPATH+:} false; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688   case $CYGPATH in
12689   [\\/]* | ?:[\\/]*)
12690   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12691   ;;
12692   *)
12693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12695 do
12696   IFS=$as_save_IFS
12697   test -z "$as_dir" && as_dir=.
12698     for ac_exec_ext in '' $ac_executable_extensions; do
12699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12700     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702     break 2
12703   fi
12704 done
12705   done
12706 IFS=$as_save_IFS
12707 
12708   ;;
12709 esac
12710 fi
12711 CYGPATH=$ac_cv_path_CYGPATH
12712 if test -n "$CYGPATH"; then
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12714 $as_echo "$CYGPATH" >&6; }
12715 else
12716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719 
12720 
12721         if test "x$CYGPATH" = x; then
12722           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12723         fi
12724       else
12725         # Otherwise we believe it is a complete path. Use it as it is.
12726         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12727 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12729 $as_echo_n "checking for CYGPATH... " >&6; }
12730         if test ! -x "$tool_specified"; then
12731           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12732 $as_echo "not found" >&6; }
12733           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12734         fi
12735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12736 $as_echo "$tool_specified" >&6; }
12737       fi
12738     fi
12739   fi
12740 
12741 
12742 
12743 
12744   # Publish this variable in the help.
12745 
12746 
12747   if test "x$READLINK" = x; then
12748     # The variable is not set by user, try to locate tool using the code snippet
12749     for ac_prog in greadlink readlink
12750 do
12751   # Extract the first word of "$ac_prog", so it can be a program name with args.
12752 set dummy $ac_prog; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_READLINK+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   case $READLINK in
12759   [\\/]* | ?:[\\/]*)
12760   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12761   ;;
12762   *)
12763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12765 do
12766   IFS=$as_save_IFS
12767   test -z "$as_dir" && as_dir=.
12768     for ac_exec_ext in '' $ac_executable_extensions; do
12769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772     break 2
12773   fi
12774 done
12775   done
12776 IFS=$as_save_IFS
12777 
12778   ;;
12779 esac
12780 fi
12781 READLINK=$ac_cv_path_READLINK
12782 if test -n "$READLINK"; then
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12784 $as_echo "$READLINK" >&6; }
12785 else
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789 
12790 
12791   test -n "$READLINK" && break
12792 done
12793 
12794   else
12795     # The variable is set, but is it from the command line or the environment?
12796 
12797     # Try to remove the string !READLINK! from our list.
12798     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12799     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12800       # If it failed, the variable was not from the command line. Ignore it,
12801       # but warn the user (except for BASH, which is always set by the calling BASH).
12802       if test "xREADLINK" != xBASH; then
12803         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12804 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12805       fi
12806       # Try to locate tool using the code snippet
12807       for ac_prog in greadlink readlink
12808 do
12809   # Extract the first word of "$ac_prog", so it can be a program name with args.
12810 set dummy $ac_prog; ac_word=$2
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812 $as_echo_n "checking for $ac_word... " >&6; }
12813 if ${ac_cv_path_READLINK+:} false; then :
12814   $as_echo_n "(cached) " >&6
12815 else
12816   case $READLINK in
12817   [\\/]* | ?:[\\/]*)
12818   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12819   ;;
12820   *)
12821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824   IFS=$as_save_IFS
12825   test -z "$as_dir" && as_dir=.
12826     for ac_exec_ext in '' $ac_executable_extensions; do
12827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12828     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830     break 2
12831   fi
12832 done
12833   done
12834 IFS=$as_save_IFS
12835 
12836   ;;
12837 esac
12838 fi
12839 READLINK=$ac_cv_path_READLINK
12840 if test -n "$READLINK"; then
12841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12842 $as_echo "$READLINK" >&6; }
12843 else
12844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12846 fi
12847 
12848 
12849   test -n "$READLINK" && break
12850 done
12851 
12852     else
12853       # If it succeeded, then it was overridden by the user. We will use it
12854       # for the tool.
12855 
12856       # First remove it from the list of overridden variables, so we can test
12857       # for unknown variables in the end.
12858       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12859 
12860       # Check if the provided tool contains a complete path.
12861       tool_specified="$READLINK"
12862       tool_basename="${tool_specified##*/}"
12863       if test "x$tool_basename" = "x$tool_specified"; then
12864         # A command without a complete path is provided, search $PATH.
12865         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12866 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12867         # Extract the first word of "$tool_basename", so it can be a program name with args.
12868 set dummy $tool_basename; ac_word=$2
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 $as_echo_n "checking for $ac_word... " >&6; }
12871 if ${ac_cv_path_READLINK+:} false; then :
12872   $as_echo_n "(cached) " >&6
12873 else
12874   case $READLINK in
12875   [\\/]* | ?:[\\/]*)
12876   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12877   ;;
12878   *)
12879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12881 do
12882   IFS=$as_save_IFS
12883   test -z "$as_dir" && as_dir=.
12884     for ac_exec_ext in '' $ac_executable_extensions; do
12885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12886     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888     break 2
12889   fi
12890 done
12891   done
12892 IFS=$as_save_IFS
12893 
12894   ;;
12895 esac
12896 fi
12897 READLINK=$ac_cv_path_READLINK
12898 if test -n "$READLINK"; then
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12900 $as_echo "$READLINK" >&6; }
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905 
12906 
12907         if test "x$READLINK" = x; then
12908           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12909         fi
12910       else
12911         # Otherwise we believe it is a complete path. Use it as it is.
12912         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12913 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12914         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12915 $as_echo_n "checking for READLINK... " >&6; }
12916         if test ! -x "$tool_specified"; then
12917           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12918 $as_echo "not found" >&6; }
12919           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12920         fi
12921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12922 $as_echo "$tool_specified" >&6; }
12923       fi
12924     fi
12925   fi
12926 
12927 
12928 
12929 
12930   # Publish this variable in the help.
12931 
12932 
12933   if test "x$DF" = x; then
12934     # The variable is not set by user, try to locate tool using the code snippet
12935     for ac_prog in df
12936 do
12937   # Extract the first word of "$ac_prog", so it can be a program name with args.
12938 set dummy $ac_prog; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if ${ac_cv_path_DF+:} false; then :
12942   $as_echo_n "(cached) " >&6
12943 else
12944   case $DF in
12945   [\\/]* | ?:[\\/]*)
12946   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12947   ;;
12948   *)
12949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12951 do
12952   IFS=$as_save_IFS
12953   test -z "$as_dir" && as_dir=.
12954     for ac_exec_ext in '' $ac_executable_extensions; do
12955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12956     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958     break 2
12959   fi
12960 done
12961   done
12962 IFS=$as_save_IFS
12963 
12964   ;;
12965 esac
12966 fi
12967 DF=$ac_cv_path_DF
12968 if test -n "$DF"; then
12969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12970 $as_echo "$DF" >&6; }
12971 else
12972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12974 fi
12975 
12976 
12977   test -n "$DF" && break
12978 done
12979 
12980   else
12981     # The variable is set, but is it from the command line or the environment?
12982 
12983     # Try to remove the string !DF! from our list.
12984     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12985     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12986       # If it failed, the variable was not from the command line. Ignore it,
12987       # but warn the user (except for BASH, which is always set by the calling BASH).
12988       if test "xDF" != xBASH; then
12989         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12990 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12991       fi
12992       # Try to locate tool using the code snippet
12993       for ac_prog in df
12994 do
12995   # Extract the first word of "$ac_prog", so it can be a program name with args.
12996 set dummy $ac_prog; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if ${ac_cv_path_DF+:} false; then :
13000   $as_echo_n "(cached) " >&6
13001 else
13002   case $DF in
13003   [\\/]* | ?:[\\/]*)
13004   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13005   ;;
13006   *)
13007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010   IFS=$as_save_IFS
13011   test -z "$as_dir" && as_dir=.
13012     for ac_exec_ext in '' $ac_executable_extensions; do
13013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016     break 2
13017   fi
13018 done
13019   done
13020 IFS=$as_save_IFS
13021 
13022   ;;
13023 esac
13024 fi
13025 DF=$ac_cv_path_DF
13026 if test -n "$DF"; then
13027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13028 $as_echo "$DF" >&6; }
13029 else
13030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13032 fi
13033 
13034 
13035   test -n "$DF" && break
13036 done
13037 
13038     else
13039       # If it succeeded, then it was overridden by the user. We will use it
13040       # for the tool.
13041 
13042       # First remove it from the list of overridden variables, so we can test
13043       # for unknown variables in the end.
13044       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13045 
13046       # Check if the provided tool contains a complete path.
13047       tool_specified="$DF"
13048       tool_basename="${tool_specified##*/}"
13049       if test "x$tool_basename" = "x$tool_specified"; then
13050         # A command without a complete path is provided, search $PATH.
13051         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13052 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13053         # Extract the first word of "$tool_basename", so it can be a program name with args.
13054 set dummy $tool_basename; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if ${ac_cv_path_DF+:} false; then :
13058   $as_echo_n "(cached) " >&6
13059 else
13060   case $DF in
13061   [\\/]* | ?:[\\/]*)
13062   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13063   ;;
13064   *)
13065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068   IFS=$as_save_IFS
13069   test -z "$as_dir" && as_dir=.
13070     for ac_exec_ext in '' $ac_executable_extensions; do
13071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13072     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074     break 2
13075   fi
13076 done
13077   done
13078 IFS=$as_save_IFS
13079 
13080   ;;
13081 esac
13082 fi
13083 DF=$ac_cv_path_DF
13084 if test -n "$DF"; then
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13086 $as_echo "$DF" >&6; }
13087 else
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091 
13092 
13093         if test "x$DF" = x; then
13094           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13095         fi
13096       else
13097         # Otherwise we believe it is a complete path. Use it as it is.
13098         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13099 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13101 $as_echo_n "checking for DF... " >&6; }
13102         if test ! -x "$tool_specified"; then
13103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13104 $as_echo "not found" >&6; }
13105           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13106         fi
13107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13108 $as_echo "$tool_specified" >&6; }
13109       fi
13110     fi
13111   fi
13112 
13113 
13114 
13115 
13116   # Publish this variable in the help.
13117 
13118 
13119   if test "x$SETFILE" = x; then
13120     # The variable is not set by user, try to locate tool using the code snippet
13121     for ac_prog in SetFile
13122 do
13123   # Extract the first word of "$ac_prog", so it can be a program name with args.
13124 set dummy $ac_prog; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_path_SETFILE+:} false; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130   case $SETFILE in
13131   [\\/]* | ?:[\\/]*)
13132   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13133   ;;
13134   *)
13135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13137 do
13138   IFS=$as_save_IFS
13139   test -z "$as_dir" && as_dir=.
13140     for ac_exec_ext in '' $ac_executable_extensions; do
13141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13142     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144     break 2
13145   fi
13146 done
13147   done
13148 IFS=$as_save_IFS
13149 
13150   ;;
13151 esac
13152 fi
13153 SETFILE=$ac_cv_path_SETFILE
13154 if test -n "$SETFILE"; then
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13156 $as_echo "$SETFILE" >&6; }
13157 else
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13160 fi
13161 
13162 
13163   test -n "$SETFILE" && break
13164 done
13165 
13166   else
13167     # The variable is set, but is it from the command line or the environment?
13168 
13169     # Try to remove the string !SETFILE! from our list.
13170     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13171     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13172       # If it failed, the variable was not from the command line. Ignore it,
13173       # but warn the user (except for BASH, which is always set by the calling BASH).
13174       if test "xSETFILE" != xBASH; then
13175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13176 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13177       fi
13178       # Try to locate tool using the code snippet
13179       for ac_prog in SetFile
13180 do
13181   # Extract the first word of "$ac_prog", so it can be a program name with args.
13182 set dummy $ac_prog; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 $as_echo_n "checking for $ac_word... " >&6; }
13185 if ${ac_cv_path_SETFILE+:} false; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188   case $SETFILE in
13189   [\\/]* | ?:[\\/]*)
13190   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13191   ;;
13192   *)
13193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13195 do
13196   IFS=$as_save_IFS
13197   test -z "$as_dir" && as_dir=.
13198     for ac_exec_ext in '' $ac_executable_extensions; do
13199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13200     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202     break 2
13203   fi
13204 done
13205   done
13206 IFS=$as_save_IFS
13207 
13208   ;;
13209 esac
13210 fi
13211 SETFILE=$ac_cv_path_SETFILE
13212 if test -n "$SETFILE"; then
13213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13214 $as_echo "$SETFILE" >&6; }
13215 else
13216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217 $as_echo "no" >&6; }
13218 fi
13219 
13220 
13221   test -n "$SETFILE" && break
13222 done
13223 
13224     else
13225       # If it succeeded, then it was overridden by the user. We will use it
13226       # for the tool.
13227 
13228       # First remove it from the list of overridden variables, so we can test
13229       # for unknown variables in the end.
13230       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13231 
13232       # Check if the provided tool contains a complete path.
13233       tool_specified="$SETFILE"
13234       tool_basename="${tool_specified##*/}"
13235       if test "x$tool_basename" = "x$tool_specified"; then
13236         # A command without a complete path is provided, search $PATH.
13237         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13238 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13239         # Extract the first word of "$tool_basename", so it can be a program name with args.
13240 set dummy $tool_basename; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if ${ac_cv_path_SETFILE+:} false; then :
13244   $as_echo_n "(cached) " >&6
13245 else
13246   case $SETFILE in
13247   [\\/]* | ?:[\\/]*)
13248   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13249   ;;
13250   *)
13251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254   IFS=$as_save_IFS
13255   test -z "$as_dir" && as_dir=.
13256     for ac_exec_ext in '' $ac_executable_extensions; do
13257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13258     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13260     break 2
13261   fi
13262 done
13263   done
13264 IFS=$as_save_IFS
13265 
13266   ;;
13267 esac
13268 fi
13269 SETFILE=$ac_cv_path_SETFILE
13270 if test -n "$SETFILE"; then
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13272 $as_echo "$SETFILE" >&6; }
13273 else
13274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 $as_echo "no" >&6; }
13276 fi
13277 
13278 
13279         if test "x$SETFILE" = x; then
13280           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13281         fi
13282       else
13283         # Otherwise we believe it is a complete path. Use it as it is.
13284         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13285 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13287 $as_echo_n "checking for SETFILE... " >&6; }
13288         if test ! -x "$tool_specified"; then
13289           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13290 $as_echo "not found" >&6; }
13291           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13292         fi
13293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13294 $as_echo "$tool_specified" >&6; }
13295       fi
13296     fi
13297   fi
13298 
13299 
13300 
13301 
13302 # Now we can determine OpenJDK build and target platforms. This is required to
13303 # have early on.
13304 # Make sure we can run config.sub.
13305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13306   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13307 
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13309 $as_echo_n "checking build system type... " >&6; }
13310 if ${ac_cv_build+:} false; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   ac_build_alias=$build_alias
13314 test "x$ac_build_alias" = x &&
13315   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13316 test "x$ac_build_alias" = x &&
13317   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13319   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13320 
13321 fi
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13323 $as_echo "$ac_cv_build" >&6; }
13324 case $ac_cv_build in
13325 *-*-*) ;;
13326 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13327 esac
13328 build=$ac_cv_build
13329 ac_save_IFS=$IFS; IFS='-'
13330 set x $ac_cv_build
13331 shift
13332 build_cpu=$1
13333 build_vendor=$2
13334 shift; shift
13335 # Remember, the first character of IFS is used to create $*,
13336 # except with old shells:
13337 build_os=$*
13338 IFS=$ac_save_IFS
13339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13340 
13341 
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13343 $as_echo_n "checking host system type... " >&6; }
13344 if ${ac_cv_host+:} false; then :
13345   $as_echo_n "(cached) " >&6
13346 else
13347   if test "x$host_alias" = x; then
13348   ac_cv_host=$ac_cv_build
13349 else
13350   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13351     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13352 fi
13353 
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13356 $as_echo "$ac_cv_host" >&6; }
13357 case $ac_cv_host in
13358 *-*-*) ;;
13359 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13360 esac
13361 host=$ac_cv_host
13362 ac_save_IFS=$IFS; IFS='-'
13363 set x $ac_cv_host
13364 shift
13365 host_cpu=$1
13366 host_vendor=$2
13367 shift; shift
13368 # Remember, the first character of IFS is used to create $*,
13369 # except with old shells:
13370 host_os=$*
13371 IFS=$ac_save_IFS
13372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13373 
13374 
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13376 $as_echo_n "checking target system type... " >&6; }
13377 if ${ac_cv_target+:} false; then :
13378   $as_echo_n "(cached) " >&6
13379 else
13380   if test "x$target_alias" = x; then
13381   ac_cv_target=$ac_cv_host
13382 else
13383   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13384     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13385 fi
13386 
13387 fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13389 $as_echo "$ac_cv_target" >&6; }
13390 case $ac_cv_target in
13391 *-*-*) ;;
13392 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13393 esac
13394 target=$ac_cv_target
13395 ac_save_IFS=$IFS; IFS='-'
13396 set x $ac_cv_target
13397 shift
13398 target_cpu=$1
13399 target_vendor=$2
13400 shift; shift
13401 # Remember, the first character of IFS is used to create $*,
13402 # except with old shells:
13403 target_os=$*
13404 IFS=$ac_save_IFS
13405 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13406 
13407 
13408 # The aliases save the names the user supplied, while $host etc.
13409 # will get canonicalized.
13410 test -n "$target_alias" &&
13411   test "$program_prefix$program_suffix$program_transform_name" = \
13412     NONENONEs,x,x, &&
13413   program_prefix=${target_alias}-
13414 
13415   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13416   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13417   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13418   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13419   # to use the configure naming style.
13420 
13421 
13422 
13423 
13424 
13425   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13426   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13427   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13428   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13429   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13430   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13431 
13432 
13433 
13434   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13435 
13436   case "$build_os" in
13437     *linux*)
13438       VAR_OS=linux
13439       VAR_OS_API=posix
13440       VAR_OS_ENV=linux
13441       ;;
13442     *solaris*)
13443       VAR_OS=solaris
13444       VAR_OS_API=posix
13445       VAR_OS_ENV=solaris
13446       ;;
13447     *darwin*)
13448       VAR_OS=macosx
13449       VAR_OS_API=posix
13450       VAR_OS_ENV=macosx
13451       ;;
13452     *bsd*)
13453       VAR_OS=bsd
13454       VAR_OS_API=posix
13455       VAR_OS_ENV=bsd
13456       ;;
13457     *cygwin*)
13458       VAR_OS=windows
13459       VAR_OS_API=winapi
13460       VAR_OS_ENV=windows.cygwin
13461       ;;
13462     *mingw*)
13463       VAR_OS=windows
13464       VAR_OS_API=winapi
13465       VAR_OS_ENV=windows.msys
13466       ;;
13467     *aix*)
13468       VAR_OS=aix
13469       VAR_OS_API=posix
13470       VAR_OS_ENV=aix
13471       ;;
13472     *)
13473       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13474       ;;
13475   esac
13476 
13477 
13478   # First argument is the cpu name from the trip/quad
13479   case "$build_cpu" in
13480     x86_64)
13481       VAR_CPU=x86_64
13482       VAR_CPU_ARCH=x86
13483       VAR_CPU_BITS=64
13484       VAR_CPU_ENDIAN=little
13485       ;;
13486     i?86)
13487       VAR_CPU=x86
13488       VAR_CPU_ARCH=x86
13489       VAR_CPU_BITS=32
13490       VAR_CPU_ENDIAN=little
13491       ;;
13492     arm*)
13493       VAR_CPU=arm
13494       VAR_CPU_ARCH=arm
13495       VAR_CPU_BITS=32
13496       VAR_CPU_ENDIAN=little
13497       ;;
13498     powerpc)
13499       VAR_CPU=ppc
13500       VAR_CPU_ARCH=ppc
13501       VAR_CPU_BITS=32
13502       VAR_CPU_ENDIAN=big
13503       ;;
13504     powerpc64)
13505       VAR_CPU=ppc64
13506       VAR_CPU_ARCH=ppc
13507       VAR_CPU_BITS=64
13508       VAR_CPU_ENDIAN=big
13509       ;;
13510     s390)
13511       VAR_CPU=s390
13512       VAR_CPU_ARCH=s390
13513       VAR_CPU_BITS=32
13514       VAR_CPU_ENDIAN=big
13515       ;;
13516     s390x)
13517       VAR_CPU=s390x
13518       VAR_CPU_ARCH=s390
13519       VAR_CPU_BITS=64
13520       VAR_CPU_ENDIAN=big
13521       ;;
13522     sparc)
13523       VAR_CPU=sparc
13524       VAR_CPU_ARCH=sparc
13525       VAR_CPU_BITS=32
13526       VAR_CPU_ENDIAN=big
13527       ;;
13528     sparcv9)
13529       VAR_CPU=sparcv9
13530       VAR_CPU_ARCH=sparc
13531       VAR_CPU_BITS=64
13532       VAR_CPU_ENDIAN=big
13533       ;;
13534     *)
13535       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13536       ;;
13537   esac
13538 
13539   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13540   OPENJDK_BUILD_OS="$VAR_OS"
13541   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13542   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13543   OPENJDK_BUILD_CPU="$VAR_CPU"
13544   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13545   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13546   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13547 
13548 
13549 
13550 
13551 
13552 
13553 
13554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13555 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13557 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13558 
13559   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13560 
13561   case "$host_os" in
13562     *linux*)
13563       VAR_OS=linux
13564       VAR_OS_API=posix
13565       VAR_OS_ENV=linux
13566       ;;
13567     *solaris*)
13568       VAR_OS=solaris
13569       VAR_OS_API=posix
13570       VAR_OS_ENV=solaris
13571       ;;
13572     *darwin*)
13573       VAR_OS=macosx
13574       VAR_OS_API=posix
13575       VAR_OS_ENV=macosx
13576       ;;
13577     *bsd*)
13578       VAR_OS=bsd
13579       VAR_OS_API=posix
13580       VAR_OS_ENV=bsd
13581       ;;
13582     *cygwin*)
13583       VAR_OS=windows
13584       VAR_OS_API=winapi
13585       VAR_OS_ENV=windows.cygwin
13586       ;;
13587     *mingw*)
13588       VAR_OS=windows
13589       VAR_OS_API=winapi
13590       VAR_OS_ENV=windows.msys
13591       ;;
13592     *aix*)
13593       VAR_OS=aix
13594       VAR_OS_API=posix
13595       VAR_OS_ENV=aix
13596       ;;
13597     *)
13598       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13599       ;;
13600   esac
13601 
13602 
13603   # First argument is the cpu name from the trip/quad
13604   case "$host_cpu" in
13605     x86_64)
13606       VAR_CPU=x86_64
13607       VAR_CPU_ARCH=x86
13608       VAR_CPU_BITS=64
13609       VAR_CPU_ENDIAN=little
13610       ;;
13611     i?86)
13612       VAR_CPU=x86
13613       VAR_CPU_ARCH=x86
13614       VAR_CPU_BITS=32
13615       VAR_CPU_ENDIAN=little
13616       ;;
13617     arm*)
13618       VAR_CPU=arm
13619       VAR_CPU_ARCH=arm
13620       VAR_CPU_BITS=32
13621       VAR_CPU_ENDIAN=little
13622       ;;
13623     powerpc)
13624       VAR_CPU=ppc
13625       VAR_CPU_ARCH=ppc
13626       VAR_CPU_BITS=32
13627       VAR_CPU_ENDIAN=big
13628       ;;
13629     powerpc64)
13630       VAR_CPU=ppc64
13631       VAR_CPU_ARCH=ppc
13632       VAR_CPU_BITS=64
13633       VAR_CPU_ENDIAN=big
13634       ;;
13635     s390)
13636       VAR_CPU=s390
13637       VAR_CPU_ARCH=s390
13638       VAR_CPU_BITS=32
13639       VAR_CPU_ENDIAN=big
13640       ;;
13641     s390x)
13642       VAR_CPU=s390x
13643       VAR_CPU_ARCH=s390
13644       VAR_CPU_BITS=64
13645       VAR_CPU_ENDIAN=big
13646       ;;
13647     sparc)
13648       VAR_CPU=sparc
13649       VAR_CPU_ARCH=sparc
13650       VAR_CPU_BITS=32
13651       VAR_CPU_ENDIAN=big
13652       ;;
13653     sparcv9)
13654       VAR_CPU=sparcv9
13655       VAR_CPU_ARCH=sparc
13656       VAR_CPU_BITS=64
13657       VAR_CPU_ENDIAN=big
13658       ;;
13659     *)
13660       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13661       ;;
13662   esac
13663 
13664   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13665   OPENJDK_TARGET_OS="$VAR_OS"
13666   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13667   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13668   OPENJDK_TARGET_CPU="$VAR_CPU"
13669   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13670   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13671   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13672 
13673 
13674 
13675 
13676 
13677 
13678 
13679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13680 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13682 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13683 
13684 
13685 
13686 # Check whether --with-target-bits was given.
13687 if test "${with_target_bits+set}" = set; then :
13688   withval=$with_target_bits;
13689 fi
13690 
13691 
13692   # We have three types of compiles:
13693   # native  == normal compilation, target system == build system
13694   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13695   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13696   #
13697   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13698     # We're doing a proper cross-compilation
13699     COMPILE_TYPE="cross"
13700   else
13701     COMPILE_TYPE="native"
13702   fi
13703 
13704   if test "x$with_target_bits" != x; then
13705     if test "x$COMPILE_TYPE" = "xcross"; then
13706       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13707     fi
13708 
13709     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13710       # A reduced build is requested
13711       COMPILE_TYPE="reduced"
13712       OPENJDK_TARGET_CPU_BITS=32
13713       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13714         OPENJDK_TARGET_CPU=x86
13715       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13716         OPENJDK_TARGET_CPU=sparc
13717       else
13718         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13719       fi
13720     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13721       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
13722     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13723       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13724 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13725     else
13726       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13727     fi
13728   fi
13729 
13730 
13731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13732 $as_echo_n "checking compilation type... " >&6; }
13733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13734 $as_echo "$COMPILE_TYPE" >&6; }
13735 
13736 
13737   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13738     REQUIRED_OS_NAME=SunOS
13739     REQUIRED_OS_VERSION=5.10
13740   fi
13741   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13742     REQUIRED_OS_NAME=Linux
13743     REQUIRED_OS_VERSION=2.6
13744   fi
13745   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13746     REQUIRED_OS_NAME=Windows
13747     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13748       REQUIRED_OS_VERSION=5.2
13749     else
13750       REQUIRED_OS_VERSION=5.1
13751     fi
13752   fi
13753   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13754     REQUIRED_OS_NAME=Darwin
13755     REQUIRED_OS_VERSION=11.2
13756   fi
13757 
13758 
13759 
13760 
13761 
13762   # Also store the legacy naming of the cpu.
13763   # Ie i586 and amd64 instead of x86 and x86_64
13764   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13765   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13766     OPENJDK_TARGET_CPU_LEGACY="i586"
13767   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13768     # On all platforms except MacOSX replace x86_64 with amd64.
13769     OPENJDK_TARGET_CPU_LEGACY="amd64"
13770   fi
13771 
13772 
13773   # And the second legacy naming of the cpu.
13774   # Ie i386 and amd64 instead of x86 and x86_64.
13775   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13776   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13777     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13778   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13779     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13780   fi
13781 
13782 
13783   # This is the name of the cpu (but using i386 and amd64 instead of
13784   # x86 and x86_64, respectively), preceeded by a /, to be used when
13785   # locating libraries. On macosx, it's empty, though.
13786   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13787   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13788     OPENJDK_TARGET_CPU_LIBDIR=""
13789   fi
13790 
13791 
13792   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13793   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13794   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13795   OPENJDK_TARGET_CPU_ISADIR=""
13796   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13797     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13798       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13799     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13800       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13801     fi
13802   fi
13803 
13804 
13805   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13806   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13807   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13808     # On linux only, we replace x86 with i386.
13809     OPENJDK_TARGET_CPU_OSARCH="i386"
13810   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13811     # On all platforms except macosx, we replace x86_64 with amd64.
13812     OPENJDK_TARGET_CPU_OSARCH="amd64"
13813   fi
13814 
13815 
13816   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13817   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13818     OPENJDK_TARGET_CPU_JLI="i386"
13819   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13820     # On all platforms except macosx, we replace x86_64 with amd64.
13821     OPENJDK_TARGET_CPU_JLI="amd64"
13822   fi
13823   # Now setup the -D flags for building libjli.
13824   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13825   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13826     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13827       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13828     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13829       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13830     fi
13831   fi
13832 
13833 
13834   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13835   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13836     OPENJDK_TARGET_OS_API_DIR="solaris"
13837   fi
13838   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13839     OPENJDK_TARGET_OS_API_DIR="windows"
13840   fi
13841 
13842 
13843   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13844       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13845   else
13846       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13847   fi
13848 
13849 
13850   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13851     A_LP64="LP64:="
13852     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13853     # unpack200.exe
13854     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13855       ADD_LP64="-D_LP64=1"
13856     fi
13857   fi
13858   LP64=$A_LP64
13859 
13860 
13861   if test "x$COMPILE_TYPE" = "xcross"; then
13862     # FIXME: ... or should this include reduced builds..?
13863     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13864   else
13865     DEFINE_CROSS_COMPILE_ARCH=""
13866   fi
13867 
13868 
13869   # ZERO_ARCHDEF is used to enable architecture-specific code
13870   case "${OPENJDK_TARGET_CPU}" in
13871     ppc*)    ZERO_ARCHDEF=PPC   ;;
13872     s390*)   ZERO_ARCHDEF=S390  ;;
13873     sparc*)  ZERO_ARCHDEF=SPARC ;;
13874     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13875     x86)     ZERO_ARCHDEF=IA32  ;;
13876     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13877   esac
13878 
13879 
13880 
13881 
13882 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13883 
13884   # Save the current directory this script was started from
13885   CURDIR="$PWD"
13886 
13887   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13888     PATH_SEP=";"
13889 
13890   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13891   if test $SRC_ROOT_LENGTH -gt 100; then
13892     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13893   fi
13894 
13895   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13897 $as_echo_n "checking cygwin release... " >&6; }
13898     CYGWIN_VERSION=`$UNAME -r`
13899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13900 $as_echo "$CYGWIN_VERSION" >&6; }
13901     WINDOWS_ENV_VENDOR='cygwin'
13902     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13903 
13904     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13905     if test "x$CYGWIN_VERSION_OK" = x; then
13906       { $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
13907 $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;}
13908       as_fn_error $? "Cannot continue" "$LINENO" 5
13909     fi
13910     if test "x$CYGPATH" = x; then
13911       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13912     fi
13913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13914 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13915     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13916     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13917     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13918     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13920 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13921     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13922     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13923     if test "x$test_cygdrive_prefix" = x; then
13924       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13925     fi
13926   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13928 $as_echo_n "checking msys release... " >&6; }
13929     MSYS_VERSION=`$UNAME -r`
13930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13931 $as_echo "$MSYS_VERSION" >&6; }
13932 
13933     WINDOWS_ENV_VENDOR='msys'
13934     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13935 
13936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13937 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13938     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13939     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13940 
13941   windows_path="$MSYS_ROOT_PATH"
13942   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13943     unix_path=`$CYGPATH -u "$windows_path"`
13944     MSYS_ROOT_PATH="$unix_path"
13945   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13946     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13947     MSYS_ROOT_PATH="$unix_path"
13948   fi
13949 
13950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13951 $as_echo "$MSYS_ROOT_PATH" >&6; }
13952     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13953   else
13954     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13955   fi
13956 
13957   # Test if windows or unix (cygwin/msys) find is first in path.
13958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13959 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13960   FIND_BINARY_OUTPUT=`find --version 2>&1`
13961   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13963 $as_echo "unix style" >&6; }
13964   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13966 $as_echo "Windows" >&6; }
13967     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13968 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13969     { $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
13970 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13971     as_fn_error $? "Cannot continue" "$LINENO" 5
13972   else
13973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13974 $as_echo "unknown" >&6; }
13975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13976 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13977   fi
13978 
13979   else
13980     PATH_SEP=":"
13981   fi
13982 
13983 
13984   # We get the top-level directory from the supporting wrappers.
13985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
13986 $as_echo_n "checking for top-level directory... " >&6; }
13987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
13988 $as_echo "$TOPDIR" >&6; }
13989 
13990 
13991   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
13992 
13993   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13994 
13995   # Input might be given as Windows format, start by converting to
13996   # unix format.
13997   path="$CURDIR"
13998   new_path=`$CYGPATH -u "$path"`
13999 
14000   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14001   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14002   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14003   # "foo.exe" is OK but "foo" is an error.
14004   #
14005   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14006   # It is also a way to make sure we got the proper file name for the real test later on.
14007   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14008   if test "x$test_shortpath" = x; then
14009     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14010 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14011     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14012   fi
14013 
14014   # Call helper function which possibly converts this using DOS-style short mode.
14015   # If so, the updated path is stored in $new_path.
14016 
14017   input_path="$new_path"
14018   # Check if we need to convert this using DOS-style short mode. If the path
14019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14020   # take no chances and rewrite it.
14021   # Note: m4 eats our [], so we need to use [ and ] instead.
14022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14023   if test "x$has_forbidden_chars" != x; then
14024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14025     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14026     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14027     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14028       # Going to short mode and back again did indeed matter. Since short mode is
14029       # case insensitive, let's make it lowercase to improve readability.
14030       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14031       # Now convert it back to Unix-stile (cygpath)
14032       input_path=`$CYGPATH -u "$shortmode_path"`
14033       new_path="$input_path"
14034     fi
14035   fi
14036 
14037   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14038   if test "x$test_cygdrive_prefix" = x; then
14039     # As a simple fix, exclude /usr/bin since it's not a real path.
14040     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14041       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14042       # a path prefixed by /cygdrive for fixpath to work.
14043       new_path="$CYGWIN_ROOT_PATH$input_path"
14044     fi
14045   fi
14046 
14047 
14048   if test "x$path" != "x$new_path"; then
14049     CURDIR="$new_path"
14050     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14051 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14052   fi
14053 
14054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14055 
14056   path="$CURDIR"
14057   has_colon=`$ECHO $path | $GREP ^.:`
14058   new_path="$path"
14059   if test "x$has_colon" = x; then
14060     # Not in mixed or Windows style, start by that.
14061     new_path=`cmd //c echo $path`
14062   fi
14063 
14064 
14065   input_path="$new_path"
14066   # Check if we need to convert this using DOS-style short mode. If the path
14067   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14068   # take no chances and rewrite it.
14069   # Note: m4 eats our [], so we need to use [ and ] instead.
14070   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14071   if test "x$has_forbidden_chars" != x; then
14072     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14073     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14074   fi
14075 
14076 
14077   windows_path="$new_path"
14078   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14079     unix_path=`$CYGPATH -u "$windows_path"`
14080     new_path="$unix_path"
14081   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14082     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14083     new_path="$unix_path"
14084   fi
14085 
14086   if test "x$path" != "x$new_path"; then
14087     CURDIR="$new_path"
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14089 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14090   fi
14091 
14092   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14093   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14094 
14095   else
14096     # We're on a posix platform. Hooray! :)
14097     path="$CURDIR"
14098     has_space=`$ECHO "$path" | $GREP " "`
14099     if test "x$has_space" != x; then
14100       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14101 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14102       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14103     fi
14104 
14105     # Use eval to expand a potential ~
14106     eval path="$path"
14107     if test ! -f "$path" && test ! -d "$path"; then
14108       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14109     fi
14110 
14111     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14112   fi
14113 
14114 
14115   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14116 
14117   # Input might be given as Windows format, start by converting to
14118   # unix format.
14119   path="$TOPDIR"
14120   new_path=`$CYGPATH -u "$path"`
14121 
14122   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14123   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14124   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14125   # "foo.exe" is OK but "foo" is an error.
14126   #
14127   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14128   # It is also a way to make sure we got the proper file name for the real test later on.
14129   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14130   if test "x$test_shortpath" = x; then
14131     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14132 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14133     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14134   fi
14135 
14136   # Call helper function which possibly converts this using DOS-style short mode.
14137   # If so, the updated path is stored in $new_path.
14138 
14139   input_path="$new_path"
14140   # Check if we need to convert this using DOS-style short mode. If the path
14141   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14142   # take no chances and rewrite it.
14143   # Note: m4 eats our [], so we need to use [ and ] instead.
14144   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14145   if test "x$has_forbidden_chars" != x; then
14146     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14147     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14148     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14149     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14150       # Going to short mode and back again did indeed matter. Since short mode is
14151       # case insensitive, let's make it lowercase to improve readability.
14152       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14153       # Now convert it back to Unix-stile (cygpath)
14154       input_path=`$CYGPATH -u "$shortmode_path"`
14155       new_path="$input_path"
14156     fi
14157   fi
14158 
14159   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14160   if test "x$test_cygdrive_prefix" = x; then
14161     # As a simple fix, exclude /usr/bin since it's not a real path.
14162     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14163       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14164       # a path prefixed by /cygdrive for fixpath to work.
14165       new_path="$CYGWIN_ROOT_PATH$input_path"
14166     fi
14167   fi
14168 
14169 
14170   if test "x$path" != "x$new_path"; then
14171     TOPDIR="$new_path"
14172     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14173 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14174   fi
14175 
14176   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14177 
14178   path="$TOPDIR"
14179   has_colon=`$ECHO $path | $GREP ^.:`
14180   new_path="$path"
14181   if test "x$has_colon" = x; then
14182     # Not in mixed or Windows style, start by that.
14183     new_path=`cmd //c echo $path`
14184   fi
14185 
14186 
14187   input_path="$new_path"
14188   # Check if we need to convert this using DOS-style short mode. If the path
14189   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14190   # take no chances and rewrite it.
14191   # Note: m4 eats our [], so we need to use [ and ] instead.
14192   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14193   if test "x$has_forbidden_chars" != x; then
14194     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14195     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14196   fi
14197 
14198 
14199   windows_path="$new_path"
14200   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14201     unix_path=`$CYGPATH -u "$windows_path"`
14202     new_path="$unix_path"
14203   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14204     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14205     new_path="$unix_path"
14206   fi
14207 
14208   if test "x$path" != "x$new_path"; then
14209     TOPDIR="$new_path"
14210     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14211 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14212   fi
14213 
14214   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14215   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14216 
14217   else
14218     # We're on a posix platform. Hooray! :)
14219     path="$TOPDIR"
14220     has_space=`$ECHO "$path" | $GREP " "`
14221     if test "x$has_space" != x; then
14222       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14223 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14224       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14225     fi
14226 
14227     # Use eval to expand a potential ~
14228     eval path="$path"
14229     if test ! -f "$path" && test ! -d "$path"; then
14230       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14231     fi
14232 
14233     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14234   fi
14235 
14236   # SRC_ROOT is a traditional alias for TOPDIR.
14237   SRC_ROOT=$TOPDIR
14238 
14239   # Locate the directory of this script.
14240   AUTOCONF_DIR=$TOPDIR/common/autoconf
14241 
14242   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14243     # Add extra search paths on solaris for utilities like ar and as etc...
14244     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14245   fi
14246 
14247   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14248   # is not correct.
14249 
14250 # Check whether --with-sys-root was given.
14251 if test "${with_sys_root+set}" = set; then :
14252   withval=$with_sys_root;
14253 fi
14254 
14255 
14256   if test "x$with_sys_root" != x; then
14257     SYS_ROOT=$with_sys_root
14258   else
14259     SYS_ROOT=/
14260   fi
14261 
14262 
14263 
14264 # Check whether --with-tools-dir was given.
14265 if test "${with_tools_dir+set}" = set; then :
14266   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14267 
14268 fi
14269 
14270 
14271 
14272 # Check whether --with-devkit was given.
14273 if test "${with_devkit+set}" = set; then :
14274   withval=$with_devkit;
14275         if test "x$with_sys_root" != x; then
14276           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14277         fi
14278 
14279   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14280 
14281   # Input might be given as Windows format, start by converting to
14282   # unix format.
14283   path="$with_devkit"
14284   new_path=`$CYGPATH -u "$path"`
14285 
14286   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14287   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14288   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14289   # "foo.exe" is OK but "foo" is an error.
14290   #
14291   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14292   # It is also a way to make sure we got the proper file name for the real test later on.
14293   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14294   if test "x$test_shortpath" = x; then
14295     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14296 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14297     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14298   fi
14299 
14300   # Call helper function which possibly converts this using DOS-style short mode.
14301   # If so, the updated path is stored in $new_path.
14302 
14303   input_path="$new_path"
14304   # Check if we need to convert this using DOS-style short mode. If the path
14305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14306   # take no chances and rewrite it.
14307   # Note: m4 eats our [], so we need to use [ and ] instead.
14308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14309   if test "x$has_forbidden_chars" != x; then
14310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14311     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14312     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14313     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14314       # Going to short mode and back again did indeed matter. Since short mode is
14315       # case insensitive, let's make it lowercase to improve readability.
14316       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14317       # Now convert it back to Unix-stile (cygpath)
14318       input_path=`$CYGPATH -u "$shortmode_path"`
14319       new_path="$input_path"
14320     fi
14321   fi
14322 
14323   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14324   if test "x$test_cygdrive_prefix" = x; then
14325     # As a simple fix, exclude /usr/bin since it's not a real path.
14326     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14327       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14328       # a path prefixed by /cygdrive for fixpath to work.
14329       new_path="$CYGWIN_ROOT_PATH$input_path"
14330     fi
14331   fi
14332 
14333 
14334   if test "x$path" != "x$new_path"; then
14335     with_devkit="$new_path"
14336     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14337 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14338   fi
14339 
14340   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14341 
14342   path="$with_devkit"
14343   has_colon=`$ECHO $path | $GREP ^.:`
14344   new_path="$path"
14345   if test "x$has_colon" = x; then
14346     # Not in mixed or Windows style, start by that.
14347     new_path=`cmd //c echo $path`
14348   fi
14349 
14350 
14351   input_path="$new_path"
14352   # Check if we need to convert this using DOS-style short mode. If the path
14353   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14354   # take no chances and rewrite it.
14355   # Note: m4 eats our [], so we need to use [ and ] instead.
14356   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14357   if test "x$has_forbidden_chars" != x; then
14358     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14359     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14360   fi
14361 
14362 
14363   windows_path="$new_path"
14364   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14365     unix_path=`$CYGPATH -u "$windows_path"`
14366     new_path="$unix_path"
14367   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14368     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14369     new_path="$unix_path"
14370   fi
14371 
14372   if test "x$path" != "x$new_path"; then
14373     with_devkit="$new_path"
14374     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14375 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14376   fi
14377 
14378   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14379   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14380 
14381   else
14382     # We're on a posix platform. Hooray! :)
14383     path="$with_devkit"
14384     has_space=`$ECHO "$path" | $GREP " "`
14385     if test "x$has_space" != x; then
14386       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14387 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14388       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14389     fi
14390 
14391     # Use eval to expand a potential ~
14392     eval path="$path"
14393     if test ! -f "$path" && test ! -d "$path"; then
14394       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14395     fi
14396 
14397     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14398   fi
14399 
14400 
14401   if test "x$TOOLS_DIR" = x; then
14402     TOOLS_DIR="$with_devkit/bin"
14403   else
14404     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14405   fi
14406 
14407         if test -d "$with_devkit/$host_alias/libc"; then
14408           SYS_ROOT=$with_devkit/$host_alias/libc
14409         elif test -d "$with_devkit/$host/sys-root"; then
14410           SYS_ROOT=$with_devkit/$host/sys-root
14411         fi
14412 
14413 fi
14414 
14415 
14416 
14417   # Setup default logging of stdout and stderr to build.log in the output root.
14418   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14419   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14420   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14421 
14422 
14423 
14424 
14425 
14426 # Check if it's a pure open build or if custom sources are to be used.
14427 
14428   # Check whether --enable-openjdk-only was given.
14429 if test "${enable_openjdk_only+set}" = set; then :
14430   enableval=$enable_openjdk_only;
14431 else
14432   enable_openjdk_only="no"
14433 fi
14434 
14435 
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14437 $as_echo_n "checking for presence of closed sources... " >&6; }
14438   if test -d "$SRC_ROOT/jdk/src/closed"; then
14439     CLOSED_SOURCE_PRESENT=yes
14440   else
14441     CLOSED_SOURCE_PRESENT=no
14442   fi
14443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14444 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14445 
14446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14447 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14448   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14450 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14451 
14452   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14453     OPENJDK=true
14454     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14455       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14456 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14457     fi
14458   else
14459     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14460       OPENJDK=true
14461     else
14462       OPENJDK=false
14463     fi
14464   fi
14465 
14466   if test "x$OPENJDK" = "xtrue"; then
14467     SET_OPENJDK="OPENJDK=true"
14468   fi
14469 
14470 
14471 
14472   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14473   # the IncludeCustomExtension macro.
14474 
14475 
14476 # Check whether --with-custom-make-dir was given.
14477 if test "${with_custom_make_dir+set}" = set; then :
14478   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
14479 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14480 fi
14481 
14482 
14483 
14484 
14485 # These are needed to be able to create a configuration name (and thus the output directory)
14486 
14487   ###############################################################################
14488   #
14489   # Check which variant of the JDK that we want to build.
14490   # Currently we have:
14491   #    normal:   standard edition
14492   # but the custom make system may add other variants
14493   #
14494   # Effectively the JDK variant gives a name to a specific set of
14495   # modules to compile into the JDK. In the future, these modules
14496   # might even be Jigsaw modules.
14497   #
14498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14499 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14500 
14501 # Check whether --with-jdk-variant was given.
14502 if test "${with_jdk_variant+set}" = set; then :
14503   withval=$with_jdk_variant;
14504 fi
14505 
14506 
14507   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14508     JDK_VARIANT="normal"
14509   else
14510     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14511   fi
14512 
14513 
14514 
14515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14516 $as_echo "$JDK_VARIANT" >&6; }
14517 
14518 
14519 ###############################################################################
14520 #
14521 # Check which interpreter of the JVM we want to build.
14522 # Currently we have:
14523 #    template: Template interpreter (the default)
14524 #    cpp     : C++ interpreter
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14526 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14527 
14528 # Check whether --with-jvm-interpreter was given.
14529 if test "${with_jvm_interpreter+set}" = set; then :
14530   withval=$with_jvm_interpreter;
14531 fi
14532 
14533 
14534 if test "x$with_jvm_interpreter" = x; then
14535      with_jvm_interpreter="template"
14536 fi
14537 
14538 JVM_INTERPRETER="$with_jvm_interpreter"
14539 
14540 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14541    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14542 fi
14543 
14544 
14545 
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14547 $as_echo "$with_jvm_interpreter" >&6; }
14548 
14549 
14550 
14551   ###############################################################################
14552   #
14553   # Check which variants of the JVM that we want to build.
14554   # Currently we have:
14555   #    server: normal interpreter and a tiered C1/C2 compiler
14556   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14557   #    minimal1: reduced form of client with optional VM services and features stripped out
14558   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14559   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14560   #    zero: no machine code interpreter, no compiler
14561   #    zeroshark: zero interpreter and shark/llvm compiler backend
14562 #    core: interpreter only, no compiler (only works on some platforms)
14563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14564 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14565 
14566 # Check whether --with-jvm-variants was given.
14567 if test "${with_jvm_variants+set}" = set; then :
14568   withval=$with_jvm_variants;
14569 fi
14570 
14571 
14572   if test "x$with_jvm_variants" = x; then
14573     with_jvm_variants="server"
14574   fi
14575 
14576   JVM_VARIANTS=",$with_jvm_variants,"
14577   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,//'`
14578 
14579   if test "x$TEST_VARIANTS" != "x,"; then
14580      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14581   fi
14582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14583 $as_echo "$with_jvm_variants" >&6; }
14584 
14585   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14586   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14587   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14588   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14589   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14590   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14591   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14592 
14593   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14594     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14595       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14596     fi
14597   fi
14598   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14599     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14600       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14601     fi
14602   fi
14603   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14604     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14605       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14606     fi
14607   fi
14608 
14609   # Replace the commas with AND for use in the build directory name.
14610   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14611   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/'`
14612   if test "x$COUNT_VARIANTS" != "x,1"; then
14613     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14614   else
14615     BUILDING_MULTIPLE_JVM_VARIANTS=no
14616   fi
14617 
14618 
14619 
14620 
14621 
14622 
14623 
14624 
14625 
14626 
14627   INCLUDE_SA=true
14628   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14629     INCLUDE_SA=false
14630   fi
14631   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14632     INCLUDE_SA=false
14633   fi
14634   if test "x$VAR_CPU" = xppc64 ; then
14635     INCLUDE_SA=false
14636   fi
14637 
14638 
14639   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14640     MACOSX_UNIVERSAL="true"
14641   fi
14642 
14643 
14644 
14645 
14646   ###############################################################################
14647   #
14648   # Set the debug level
14649   #    release: no debug information, all optimizations, no asserts.
14650   #    fastdebug: debug information (-g), all optimizations, all asserts
14651   #    slowdebug: debug information (-g), no optimizations, all asserts
14652   #
14653   DEBUG_LEVEL="release"
14654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14655 $as_echo_n "checking which debug level to use... " >&6; }
14656   # Check whether --enable-debug was given.
14657 if test "${enable_debug+set}" = set; then :
14658   enableval=$enable_debug;
14659         ENABLE_DEBUG="${enableval}"
14660         DEBUG_LEVEL="fastdebug"
14661 
14662 else
14663   ENABLE_DEBUG="no"
14664 fi
14665 
14666 
14667 
14668 # Check whether --with-debug-level was given.
14669 if test "${with_debug_level+set}" = set; then :
14670   withval=$with_debug_level;
14671         DEBUG_LEVEL="${withval}"
14672         if test "x$ENABLE_DEBUG" = xyes; then
14673           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14674         fi
14675 
14676 fi
14677 
14678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14679 $as_echo "$DEBUG_LEVEL" >&6; }
14680 
14681   if test "x$DEBUG_LEVEL" != xrelease && \
14682       test "x$DEBUG_LEVEL" != xfastdebug && \
14683       test "x$DEBUG_LEVEL" != xslowdebug; then
14684     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14685   fi
14686 
14687 
14688   ###############################################################################
14689   #
14690   # Setup legacy vars/targets and new vars to deal with different debug levels.
14691   #
14692 
14693   case $DEBUG_LEVEL in
14694     release )
14695       VARIANT="OPT"
14696       FASTDEBUG="false"
14697       DEBUG_CLASSFILES="false"
14698       BUILD_VARIANT_RELEASE=""
14699       HOTSPOT_DEBUG_LEVEL="product"
14700       HOTSPOT_EXPORT="product"
14701       ;;
14702     fastdebug )
14703       VARIANT="DBG"
14704       FASTDEBUG="true"
14705       DEBUG_CLASSFILES="true"
14706       BUILD_VARIANT_RELEASE="-fastdebug"
14707       HOTSPOT_DEBUG_LEVEL="fastdebug"
14708       HOTSPOT_EXPORT="fastdebug"
14709       ;;
14710     slowdebug )
14711       VARIANT="DBG"
14712       FASTDEBUG="false"
14713       DEBUG_CLASSFILES="true"
14714       BUILD_VARIANT_RELEASE="-debug"
14715       HOTSPOT_DEBUG_LEVEL="jvmg"
14716       HOTSPOT_EXPORT="debug"
14717       ;;
14718   esac
14719 
14720   #####
14721   # Generate the legacy makefile targets for hotspot.
14722   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14723   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14724   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14725   # But until then ...
14726   HOTSPOT_TARGET=""
14727 
14728   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14729     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14730   fi
14731 
14732   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14733     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14734   fi
14735 
14736   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14737     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14738   fi
14739 
14740   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14741     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14742   fi
14743 
14744   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14745     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14746   fi
14747 
14748   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14749     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14750   fi
14751 
14752   if test "x$JVM_VARIANT_CORE" = xtrue; then
14753     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14754   fi
14755 
14756   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14757 
14758   # On Macosx universal binaries are produced, but they only contain
14759   # 64 bit intel. This invalidates control of which jvms are built
14760   # from configure, but only server is valid anyway. Fix this
14761   # when hotspot makefiles are rewritten.
14762   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14763     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14764   fi
14765 
14766   #####
14767 
14768 
14769 
14770 
14771 
14772 
14773 
14774 
14775 # With basic setup done, call the custom early hook.
14776 
14777 
14778 # To properly create a configuration name, we need to have the OpenJDK target
14779 # and options (variants and debug level) parsed.
14780 
14781 
14782 
14783 # Check whether --with-conf-name was given.
14784 if test "${with_conf_name+set}" = set; then :
14785   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14786 fi
14787 
14788 
14789   # Test from where we are running configure, in or outside of src root.
14790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14791 $as_echo_n "checking where to store configuration... " >&6; }
14792   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14793       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14794       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14795     # We are running configure from the src root.
14796     # Create a default ./build/target-variant-debuglevel output root.
14797     if test "x${CONF_NAME}" = x; then
14798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14799 $as_echo "in default location" >&6; }
14800       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14801     else
14802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
14803 $as_echo "in build directory with custom name" >&6; }
14804     fi
14805     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14806     $MKDIR -p "$OUTPUT_ROOT"
14807     if test ! -d "$OUTPUT_ROOT"; then
14808       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14809     fi
14810   else
14811     # We are running configure from outside of the src dir.
14812     # Then use the current directory as output dir!
14813     # If configuration is situated in normal build directory, just use the build
14814     # directory name as configuration name, otherwise use the complete path.
14815     if test "x${CONF_NAME}" = x; then
14816       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14817     fi
14818     OUTPUT_ROOT="$CURDIR"
14819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
14820 $as_echo "in current directory" >&6; }
14821 
14822     # WARNING: This might be a bad thing to do. You need to be sure you want to
14823     # have a configuration in this directory. Do some sanity checks!
14824 
14825     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14826       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14827       # other files
14828       files_present=`$LS $OUTPUT_ROOT`
14829       # Configure has already touched config.log and confdefs.h in the current dir when this check
14830       # is performed.
14831       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14832       | $TR -d '\n'`
14833       if test "x$filtered_files" != x; then
14834         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14835 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14836         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14837 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14838         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14839 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14840         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14841 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14842         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14843 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14844         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14845 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14846         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14847 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14848         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14849       fi
14850     fi
14851   fi
14852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14853 $as_echo_n "checking what configuration name to use... " >&6; }
14854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14855 $as_echo "$CONF_NAME" >&6; }
14856 
14857 
14858   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14859 
14860   # Input might be given as Windows format, start by converting to
14861   # unix format.
14862   path="$OUTPUT_ROOT"
14863   new_path=`$CYGPATH -u "$path"`
14864 
14865   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14866   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14867   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14868   # "foo.exe" is OK but "foo" is an error.
14869   #
14870   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14871   # It is also a way to make sure we got the proper file name for the real test later on.
14872   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14873   if test "x$test_shortpath" = x; then
14874     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14875 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14876     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14877   fi
14878 
14879   # Call helper function which possibly converts this using DOS-style short mode.
14880   # If so, the updated path is stored in $new_path.
14881 
14882   input_path="$new_path"
14883   # Check if we need to convert this using DOS-style short mode. If the path
14884   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14885   # take no chances and rewrite it.
14886   # Note: m4 eats our [], so we need to use [ and ] instead.
14887   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14888   if test "x$has_forbidden_chars" != x; then
14889     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14890     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14891     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14892     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14893       # Going to short mode and back again did indeed matter. Since short mode is
14894       # case insensitive, let's make it lowercase to improve readability.
14895       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14896       # Now convert it back to Unix-stile (cygpath)
14897       input_path=`$CYGPATH -u "$shortmode_path"`
14898       new_path="$input_path"
14899     fi
14900   fi
14901 
14902   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14903   if test "x$test_cygdrive_prefix" = x; then
14904     # As a simple fix, exclude /usr/bin since it's not a real path.
14905     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14906       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14907       # a path prefixed by /cygdrive for fixpath to work.
14908       new_path="$CYGWIN_ROOT_PATH$input_path"
14909     fi
14910   fi
14911 
14912 
14913   if test "x$path" != "x$new_path"; then
14914     OUTPUT_ROOT="$new_path"
14915     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14916 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14917   fi
14918 
14919   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14920 
14921   path="$OUTPUT_ROOT"
14922   has_colon=`$ECHO $path | $GREP ^.:`
14923   new_path="$path"
14924   if test "x$has_colon" = x; then
14925     # Not in mixed or Windows style, start by that.
14926     new_path=`cmd //c echo $path`
14927   fi
14928 
14929 
14930   input_path="$new_path"
14931   # Check if we need to convert this using DOS-style short mode. If the path
14932   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14933   # take no chances and rewrite it.
14934   # Note: m4 eats our [], so we need to use [ and ] instead.
14935   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14936   if test "x$has_forbidden_chars" != x; then
14937     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14938     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14939   fi
14940 
14941 
14942   windows_path="$new_path"
14943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14944     unix_path=`$CYGPATH -u "$windows_path"`
14945     new_path="$unix_path"
14946   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14947     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14948     new_path="$unix_path"
14949   fi
14950 
14951   if test "x$path" != "x$new_path"; then
14952     OUTPUT_ROOT="$new_path"
14953     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14954 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14955   fi
14956 
14957   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14958   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14959 
14960   else
14961     # We're on a posix platform. Hooray! :)
14962     path="$OUTPUT_ROOT"
14963     has_space=`$ECHO "$path" | $GREP " "`
14964     if test "x$has_space" != x; then
14965       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14966 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14967       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14968     fi
14969 
14970     # Use eval to expand a potential ~
14971     eval path="$path"
14972     if test ! -f "$path" && test ! -d "$path"; then
14973       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14974     fi
14975 
14976     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14977   fi
14978 
14979 
14980   SPEC=$OUTPUT_ROOT/spec.gmk
14981 
14982   CONF_NAME=$CONF_NAME
14983 
14984   OUTPUT_ROOT=$OUTPUT_ROOT
14985 
14986 
14987   # Most of the probed defines are put into config.h
14988   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14989 
14990   # The spec.gmk file contains all variables for the make system.
14991   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14992 
14993   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14994   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14995 
14996   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14997   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14998 
14999   # The compare.sh is used to compare the build output to other builds.
15000   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15001 
15002   # Spec.sh is currently used by compare-objects.sh
15003   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15004 
15005   # The generated Makefile knows where the spec.gmk is and where the source is.
15006   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15007   # which will look for generated configurations
15008   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15009 
15010 
15011 
15012 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15013 
15014   for ac_prog in apt-get yum port pkgutil pkgadd
15015 do
15016   # Extract the first word of "$ac_prog", so it can be a program name with args.
15017 set dummy $ac_prog; ac_word=$2
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15019 $as_echo_n "checking for $ac_word... " >&6; }
15020 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15021   $as_echo_n "(cached) " >&6
15022 else
15023   if test -n "$PKGHANDLER"; then
15024   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15025 else
15026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15027 for as_dir in $PATH
15028 do
15029   IFS=$as_save_IFS
15030   test -z "$as_dir" && as_dir=.
15031     for ac_exec_ext in '' $ac_executable_extensions; do
15032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15033     ac_cv_prog_PKGHANDLER="$ac_prog"
15034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15035     break 2
15036   fi
15037 done
15038   done
15039 IFS=$as_save_IFS
15040 
15041 fi
15042 fi
15043 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15044 if test -n "$PKGHANDLER"; then
15045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15046 $as_echo "$PKGHANDLER" >&6; }
15047 else
15048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15050 fi
15051 
15052 
15053   test -n "$PKGHANDLER" && break
15054 done
15055 
15056 
15057 
15058 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15059 
15060 
15061   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15062   if test "x$MAKE" != x; then
15063     # User has supplied a make, test it.
15064     if test ! -f "$MAKE"; then
15065       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15066     fi
15067 
15068   MAKE_CANDIDATE=""$MAKE""
15069   DESCRIPTION="user supplied MAKE=$MAKE"
15070   if test "x$MAKE_CANDIDATE" != x; then
15071     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15072 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15073     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15074     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15075     if test "x$IS_GNU_MAKE" = x; then
15076       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15077 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15078     else
15079       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15080       if test "x$IS_MODERN_MAKE" = x; then
15081         { $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
15082 $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;}
15083       else
15084         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15085           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15086             MAKE_EXPECTED_ENV='cygwin'
15087           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15088             MAKE_EXPECTED_ENV='msys'
15089           else
15090             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15091           fi
15092           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15093           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15094         else
15095           # Not relevant for non-Windows
15096           IS_MAKE_CORRECT_ENV=true
15097         fi
15098         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15099           { $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
15100 $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;}
15101         else
15102           FOUND_MAKE=$MAKE_CANDIDATE
15103 
15104   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15105 
15106   # First separate the path from the arguments. This will split at the first
15107   # space.
15108   complete="$FOUND_MAKE"
15109   path="${complete%% *}"
15110   tmp="$complete EOL"
15111   arguments="${tmp#* }"
15112 
15113   # Input might be given as Windows format, start by converting to
15114   # unix format.
15115   new_path=`$CYGPATH -u "$path"`
15116 
15117   # Now try to locate executable using which
15118   new_path=`$WHICH "$new_path" 2> /dev/null`
15119   # bat and cmd files are not always considered executable in cygwin causing which
15120   # to not find them
15121   if test "x$new_path" = x \
15122       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15123       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15124     new_path=`$CYGPATH -u "$path"`
15125   fi
15126   if test "x$new_path" = x; then
15127     # Oops. Which didn't find the executable.
15128     # The splitting of arguments from the executable at a space might have been incorrect,
15129     # since paths with space are more likely in Windows. Give it another try with the whole
15130     # argument.
15131     path="$complete"
15132     arguments="EOL"
15133     new_path=`$CYGPATH -u "$path"`
15134     new_path=`$WHICH "$new_path" 2> /dev/null`
15135     # bat and cmd files are not always considered executable in cygwin causing which
15136     # to not find them
15137     if test "x$new_path" = x \
15138         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15139         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15140       new_path=`$CYGPATH -u "$path"`
15141     fi
15142     if test "x$new_path" = x; then
15143       # It's still not found. Now this is an unrecoverable error.
15144       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15145 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15146       has_space=`$ECHO "$complete" | $GREP " "`
15147       if test "x$has_space" != x; then
15148         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15149 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15150       fi
15151       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15152     fi
15153   fi
15154 
15155   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15156   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15157   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15158   # "foo.exe" is OK but "foo" is an error.
15159   #
15160   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15161   # It is also a way to make sure we got the proper file name for the real test later on.
15162   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15163   if test "x$test_shortpath" = x; then
15164     # Short path failed, file does not exist as specified.
15165     # Try adding .exe or .cmd
15166     if test -f "${new_path}.exe"; then
15167       input_to_shortpath="${new_path}.exe"
15168     elif test -f "${new_path}.cmd"; then
15169       input_to_shortpath="${new_path}.cmd"
15170     else
15171       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15172 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15173       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15174 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15175       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15176     fi
15177   else
15178     input_to_shortpath="$new_path"
15179   fi
15180 
15181   # Call helper function which possibly converts this using DOS-style short mode.
15182   # If so, the updated path is stored in $new_path.
15183   new_path="$input_to_shortpath"
15184 
15185   input_path="$input_to_shortpath"
15186   # Check if we need to convert this using DOS-style short mode. If the path
15187   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15188   # take no chances and rewrite it.
15189   # Note: m4 eats our [], so we need to use [ and ] instead.
15190   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15191   if test "x$has_forbidden_chars" != x; then
15192     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15193     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15194     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15195     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15196       # Going to short mode and back again did indeed matter. Since short mode is
15197       # case insensitive, let's make it lowercase to improve readability.
15198       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15199       # Now convert it back to Unix-stile (cygpath)
15200       input_path=`$CYGPATH -u "$shortmode_path"`
15201       new_path="$input_path"
15202     fi
15203   fi
15204 
15205   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15206   if test "x$test_cygdrive_prefix" = x; then
15207     # As a simple fix, exclude /usr/bin since it's not a real path.
15208     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15209       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15210       # a path prefixed by /cygdrive for fixpath to work.
15211       new_path="$CYGWIN_ROOT_PATH$input_path"
15212     fi
15213   fi
15214 
15215   # remove trailing .exe if any
15216   new_path="${new_path/%.exe/}"
15217 
15218   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15219 
15220   # First separate the path from the arguments. This will split at the first
15221   # space.
15222   complete="$FOUND_MAKE"
15223   path="${complete%% *}"
15224   tmp="$complete EOL"
15225   arguments="${tmp#* }"
15226 
15227   # Input might be given as Windows format, start by converting to
15228   # unix format.
15229   new_path="$path"
15230 
15231   windows_path="$new_path"
15232   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15233     unix_path=`$CYGPATH -u "$windows_path"`
15234     new_path="$unix_path"
15235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15236     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15237     new_path="$unix_path"
15238   fi
15239 
15240 
15241   # Now try to locate executable using which
15242   new_path=`$WHICH "$new_path" 2> /dev/null`
15243 
15244   if test "x$new_path" = x; then
15245     # Oops. Which didn't find the executable.
15246     # The splitting of arguments from the executable at a space might have been incorrect,
15247     # since paths with space are more likely in Windows. Give it another try with the whole
15248     # argument.
15249     path="$complete"
15250     arguments="EOL"
15251     new_path="$path"
15252 
15253   windows_path="$new_path"
15254   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15255     unix_path=`$CYGPATH -u "$windows_path"`
15256     new_path="$unix_path"
15257   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15258     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15259     new_path="$unix_path"
15260   fi
15261 
15262 
15263     new_path=`$WHICH "$new_path" 2> /dev/null`
15264 
15265     if test "x$new_path" = x; then
15266       # It's still not found. Now this is an unrecoverable error.
15267       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15268 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15269       has_space=`$ECHO "$complete" | $GREP " "`
15270       if test "x$has_space" != x; then
15271         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15272 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15273       fi
15274       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15275     fi
15276   fi
15277 
15278   # Now new_path has a complete unix path to the binary
15279   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15280     # Keep paths in /bin as-is, but remove trailing .exe if any
15281     new_path="${new_path/%.exe/}"
15282     # Do not save /bin paths to all_fixpath_prefixes!
15283   else
15284     # Not in mixed or Windows style, start by that.
15285     new_path=`cmd //c echo $new_path`
15286 
15287   input_path="$new_path"
15288   # Check if we need to convert this using DOS-style short mode. If the path
15289   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15290   # take no chances and rewrite it.
15291   # Note: m4 eats our [], so we need to use [ and ] instead.
15292   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15293   if test "x$has_forbidden_chars" != x; then
15294     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15295     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15296   fi
15297 
15298     # Output is in $new_path
15299 
15300   windows_path="$new_path"
15301   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15302     unix_path=`$CYGPATH -u "$windows_path"`
15303     new_path="$unix_path"
15304   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15305     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15306     new_path="$unix_path"
15307   fi
15308 
15309     # remove trailing .exe if any
15310     new_path="${new_path/%.exe/}"
15311 
15312     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15313     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15314   fi
15315 
15316   else
15317     # We're on a posix platform. Hooray! :)
15318     # First separate the path from the arguments. This will split at the first
15319     # space.
15320     complete="$FOUND_MAKE"
15321     path="${complete%% *}"
15322     tmp="$complete EOL"
15323     arguments="${tmp#* }"
15324 
15325     # Cannot rely on the command "which" here since it doesn't always work.
15326     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15327     if test -z "$is_absolute_path"; then
15328       # Path to executable is not absolute. Find it.
15329       IFS_save="$IFS"
15330       IFS=:
15331       for p in $PATH; do
15332         if test -f "$p/$path" && test -x "$p/$path"; then
15333           new_path="$p/$path"
15334           break
15335         fi
15336       done
15337       IFS="$IFS_save"
15338     else
15339       # This is an absolute path, we can use it without further modifications.
15340       new_path="$path"
15341     fi
15342 
15343     if test "x$new_path" = x; then
15344       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15345 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15346       has_space=`$ECHO "$complete" | $GREP " "`
15347       if test "x$has_space" != x; then
15348         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15349 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15350       fi
15351       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15352     fi
15353   fi
15354 
15355   # Now join together the path and the arguments once again
15356   if test "x$arguments" != xEOL; then
15357     new_complete="$new_path ${arguments% *}"
15358   else
15359     new_complete="$new_path"
15360   fi
15361 
15362   if test "x$complete" != "x$new_complete"; then
15363     FOUND_MAKE="$new_complete"
15364     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15365 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15366   fi
15367 
15368         fi
15369       fi
15370     fi
15371   fi
15372 
15373     if test "x$FOUND_MAKE" = x; then
15374       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15375     fi
15376   else
15377     # Try our hardest to locate a correct version of GNU make
15378     for ac_prog in gmake
15379 do
15380   # Extract the first word of "$ac_prog", so it can be a program name with args.
15381 set dummy $ac_prog; ac_word=$2
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15383 $as_echo_n "checking for $ac_word... " >&6; }
15384 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15385   $as_echo_n "(cached) " >&6
15386 else
15387   case $CHECK_GMAKE in
15388   [\\/]* | ?:[\\/]*)
15389   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15390   ;;
15391   *)
15392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15393 for as_dir in $PATH
15394 do
15395   IFS=$as_save_IFS
15396   test -z "$as_dir" && as_dir=.
15397     for ac_exec_ext in '' $ac_executable_extensions; do
15398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15399     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15401     break 2
15402   fi
15403 done
15404   done
15405 IFS=$as_save_IFS
15406 
15407   ;;
15408 esac
15409 fi
15410 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15411 if test -n "$CHECK_GMAKE"; then
15412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15413 $as_echo "$CHECK_GMAKE" >&6; }
15414 else
15415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15416 $as_echo "no" >&6; }
15417 fi
15418 
15419 
15420   test -n "$CHECK_GMAKE" && break
15421 done
15422 
15423 
15424   MAKE_CANDIDATE=""$CHECK_GMAKE""
15425   DESCRIPTION="gmake in PATH"
15426   if test "x$MAKE_CANDIDATE" != x; then
15427     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15428 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15429     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15430     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15431     if test "x$IS_GNU_MAKE" = x; then
15432       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15433 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15434     else
15435       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15436       if test "x$IS_MODERN_MAKE" = x; then
15437         { $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
15438 $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;}
15439       else
15440         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15441           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15442             MAKE_EXPECTED_ENV='cygwin'
15443           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15444             MAKE_EXPECTED_ENV='msys'
15445           else
15446             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15447           fi
15448           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15449           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15450         else
15451           # Not relevant for non-Windows
15452           IS_MAKE_CORRECT_ENV=true
15453         fi
15454         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15455           { $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
15456 $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;}
15457         else
15458           FOUND_MAKE=$MAKE_CANDIDATE
15459 
15460   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15461 
15462   # First separate the path from the arguments. This will split at the first
15463   # space.
15464   complete="$FOUND_MAKE"
15465   path="${complete%% *}"
15466   tmp="$complete EOL"
15467   arguments="${tmp#* }"
15468 
15469   # Input might be given as Windows format, start by converting to
15470   # unix format.
15471   new_path=`$CYGPATH -u "$path"`
15472 
15473   # Now try to locate executable using which
15474   new_path=`$WHICH "$new_path" 2> /dev/null`
15475   # bat and cmd files are not always considered executable in cygwin causing which
15476   # to not find them
15477   if test "x$new_path" = x \
15478       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15479       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15480     new_path=`$CYGPATH -u "$path"`
15481   fi
15482   if test "x$new_path" = x; then
15483     # Oops. Which didn't find the executable.
15484     # The splitting of arguments from the executable at a space might have been incorrect,
15485     # since paths with space are more likely in Windows. Give it another try with the whole
15486     # argument.
15487     path="$complete"
15488     arguments="EOL"
15489     new_path=`$CYGPATH -u "$path"`
15490     new_path=`$WHICH "$new_path" 2> /dev/null`
15491     # bat and cmd files are not always considered executable in cygwin causing which
15492     # to not find them
15493     if test "x$new_path" = x \
15494         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15495         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15496       new_path=`$CYGPATH -u "$path"`
15497     fi
15498     if test "x$new_path" = x; then
15499       # It's still not found. Now this is an unrecoverable error.
15500       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15501 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15502       has_space=`$ECHO "$complete" | $GREP " "`
15503       if test "x$has_space" != x; then
15504         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15505 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15506       fi
15507       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15508     fi
15509   fi
15510 
15511   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15512   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15513   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15514   # "foo.exe" is OK but "foo" is an error.
15515   #
15516   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15517   # It is also a way to make sure we got the proper file name for the real test later on.
15518   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15519   if test "x$test_shortpath" = x; then
15520     # Short path failed, file does not exist as specified.
15521     # Try adding .exe or .cmd
15522     if test -f "${new_path}.exe"; then
15523       input_to_shortpath="${new_path}.exe"
15524     elif test -f "${new_path}.cmd"; then
15525       input_to_shortpath="${new_path}.cmd"
15526     else
15527       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15528 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15529       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15530 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15531       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15532     fi
15533   else
15534     input_to_shortpath="$new_path"
15535   fi
15536 
15537   # Call helper function which possibly converts this using DOS-style short mode.
15538   # If so, the updated path is stored in $new_path.
15539   new_path="$input_to_shortpath"
15540 
15541   input_path="$input_to_shortpath"
15542   # Check if we need to convert this using DOS-style short mode. If the path
15543   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15544   # take no chances and rewrite it.
15545   # Note: m4 eats our [], so we need to use [ and ] instead.
15546   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15547   if test "x$has_forbidden_chars" != x; then
15548     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15549     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15550     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15551     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15552       # Going to short mode and back again did indeed matter. Since short mode is
15553       # case insensitive, let's make it lowercase to improve readability.
15554       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15555       # Now convert it back to Unix-stile (cygpath)
15556       input_path=`$CYGPATH -u "$shortmode_path"`
15557       new_path="$input_path"
15558     fi
15559   fi
15560 
15561   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15562   if test "x$test_cygdrive_prefix" = x; then
15563     # As a simple fix, exclude /usr/bin since it's not a real path.
15564     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15565       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15566       # a path prefixed by /cygdrive for fixpath to work.
15567       new_path="$CYGWIN_ROOT_PATH$input_path"
15568     fi
15569   fi
15570 
15571   # remove trailing .exe if any
15572   new_path="${new_path/%.exe/}"
15573 
15574   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15575 
15576   # First separate the path from the arguments. This will split at the first
15577   # space.
15578   complete="$FOUND_MAKE"
15579   path="${complete%% *}"
15580   tmp="$complete EOL"
15581   arguments="${tmp#* }"
15582 
15583   # Input might be given as Windows format, start by converting to
15584   # unix format.
15585   new_path="$path"
15586 
15587   windows_path="$new_path"
15588   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15589     unix_path=`$CYGPATH -u "$windows_path"`
15590     new_path="$unix_path"
15591   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15592     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15593     new_path="$unix_path"
15594   fi
15595 
15596 
15597   # Now try to locate executable using which
15598   new_path=`$WHICH "$new_path" 2> /dev/null`
15599 
15600   if test "x$new_path" = x; then
15601     # Oops. Which didn't find the executable.
15602     # The splitting of arguments from the executable at a space might have been incorrect,
15603     # since paths with space are more likely in Windows. Give it another try with the whole
15604     # argument.
15605     path="$complete"
15606     arguments="EOL"
15607     new_path="$path"
15608 
15609   windows_path="$new_path"
15610   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15611     unix_path=`$CYGPATH -u "$windows_path"`
15612     new_path="$unix_path"
15613   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15614     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15615     new_path="$unix_path"
15616   fi
15617 
15618 
15619     new_path=`$WHICH "$new_path" 2> /dev/null`
15620 
15621     if test "x$new_path" = x; then
15622       # It's still not found. Now this is an unrecoverable error.
15623       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15624 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15625       has_space=`$ECHO "$complete" | $GREP " "`
15626       if test "x$has_space" != x; then
15627         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15628 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15629       fi
15630       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15631     fi
15632   fi
15633 
15634   # Now new_path has a complete unix path to the binary
15635   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15636     # Keep paths in /bin as-is, but remove trailing .exe if any
15637     new_path="${new_path/%.exe/}"
15638     # Do not save /bin paths to all_fixpath_prefixes!
15639   else
15640     # Not in mixed or Windows style, start by that.
15641     new_path=`cmd //c echo $new_path`
15642 
15643   input_path="$new_path"
15644   # Check if we need to convert this using DOS-style short mode. If the path
15645   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15646   # take no chances and rewrite it.
15647   # Note: m4 eats our [], so we need to use [ and ] instead.
15648   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15649   if test "x$has_forbidden_chars" != x; then
15650     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15651     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15652   fi
15653 
15654     # Output is in $new_path
15655 
15656   windows_path="$new_path"
15657   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15658     unix_path=`$CYGPATH -u "$windows_path"`
15659     new_path="$unix_path"
15660   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15661     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15662     new_path="$unix_path"
15663   fi
15664 
15665     # remove trailing .exe if any
15666     new_path="${new_path/%.exe/}"
15667 
15668     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15669     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15670   fi
15671 
15672   else
15673     # We're on a posix platform. Hooray! :)
15674     # First separate the path from the arguments. This will split at the first
15675     # space.
15676     complete="$FOUND_MAKE"
15677     path="${complete%% *}"
15678     tmp="$complete EOL"
15679     arguments="${tmp#* }"
15680 
15681     # Cannot rely on the command "which" here since it doesn't always work.
15682     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15683     if test -z "$is_absolute_path"; then
15684       # Path to executable is not absolute. Find it.
15685       IFS_save="$IFS"
15686       IFS=:
15687       for p in $PATH; do
15688         if test -f "$p/$path" && test -x "$p/$path"; then
15689           new_path="$p/$path"
15690           break
15691         fi
15692       done
15693       IFS="$IFS_save"
15694     else
15695       # This is an absolute path, we can use it without further modifications.
15696       new_path="$path"
15697     fi
15698 
15699     if test "x$new_path" = x; then
15700       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15701 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15702       has_space=`$ECHO "$complete" | $GREP " "`
15703       if test "x$has_space" != x; then
15704         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15705 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15706       fi
15707       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15708     fi
15709   fi
15710 
15711   # Now join together the path and the arguments once again
15712   if test "x$arguments" != xEOL; then
15713     new_complete="$new_path ${arguments% *}"
15714   else
15715     new_complete="$new_path"
15716   fi
15717 
15718   if test "x$complete" != "x$new_complete"; then
15719     FOUND_MAKE="$new_complete"
15720     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15721 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15722   fi
15723 
15724         fi
15725       fi
15726     fi
15727   fi
15728 
15729 
15730     if test "x$FOUND_MAKE" = x; then
15731       for ac_prog in make
15732 do
15733   # Extract the first word of "$ac_prog", so it can be a program name with args.
15734 set dummy $ac_prog; ac_word=$2
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15736 $as_echo_n "checking for $ac_word... " >&6; }
15737 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15738   $as_echo_n "(cached) " >&6
15739 else
15740   case $CHECK_MAKE in
15741   [\\/]* | ?:[\\/]*)
15742   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15743   ;;
15744   *)
15745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15746 for as_dir in $PATH
15747 do
15748   IFS=$as_save_IFS
15749   test -z "$as_dir" && as_dir=.
15750     for ac_exec_ext in '' $ac_executable_extensions; do
15751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15752     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15754     break 2
15755   fi
15756 done
15757   done
15758 IFS=$as_save_IFS
15759 
15760   ;;
15761 esac
15762 fi
15763 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15764 if test -n "$CHECK_MAKE"; then
15765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15766 $as_echo "$CHECK_MAKE" >&6; }
15767 else
15768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 $as_echo "no" >&6; }
15770 fi
15771 
15772 
15773   test -n "$CHECK_MAKE" && break
15774 done
15775 
15776 
15777   MAKE_CANDIDATE=""$CHECK_MAKE""
15778   DESCRIPTION="make in PATH"
15779   if test "x$MAKE_CANDIDATE" != x; then
15780     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15781 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15782     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15783     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15784     if test "x$IS_GNU_MAKE" = x; then
15785       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15786 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15787     else
15788       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15789       if test "x$IS_MODERN_MAKE" = x; then
15790         { $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
15791 $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;}
15792       else
15793         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15794           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15795             MAKE_EXPECTED_ENV='cygwin'
15796           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15797             MAKE_EXPECTED_ENV='msys'
15798           else
15799             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15800           fi
15801           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15802           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15803         else
15804           # Not relevant for non-Windows
15805           IS_MAKE_CORRECT_ENV=true
15806         fi
15807         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15808           { $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
15809 $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;}
15810         else
15811           FOUND_MAKE=$MAKE_CANDIDATE
15812 
15813   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15814 
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   # Input might be given as Windows format, start by converting to
15823   # unix format.
15824   new_path=`$CYGPATH -u "$path"`
15825 
15826   # Now try to locate executable using which
15827   new_path=`$WHICH "$new_path" 2> /dev/null`
15828   # bat and cmd files are not always considered executable in cygwin causing which
15829   # to not find them
15830   if test "x$new_path" = x \
15831       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15832       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15833     new_path=`$CYGPATH -u "$path"`
15834   fi
15835   if test "x$new_path" = x; then
15836     # Oops. Which didn't find the executable.
15837     # The splitting of arguments from the executable at a space might have been incorrect,
15838     # since paths with space are more likely in Windows. Give it another try with the whole
15839     # argument.
15840     path="$complete"
15841     arguments="EOL"
15842     new_path=`$CYGPATH -u "$path"`
15843     new_path=`$WHICH "$new_path" 2> /dev/null`
15844     # bat and cmd files are not always considered executable in cygwin causing which
15845     # to not find them
15846     if test "x$new_path" = x \
15847         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15848         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15849       new_path=`$CYGPATH -u "$path"`
15850     fi
15851     if test "x$new_path" = x; then
15852       # It's still not found. Now this is an unrecoverable error.
15853       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15854 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15855       has_space=`$ECHO "$complete" | $GREP " "`
15856       if test "x$has_space" != x; then
15857         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15858 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15859       fi
15860       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15861     fi
15862   fi
15863 
15864   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15865   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15866   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15867   # "foo.exe" is OK but "foo" is an error.
15868   #
15869   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15870   # It is also a way to make sure we got the proper file name for the real test later on.
15871   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15872   if test "x$test_shortpath" = x; then
15873     # Short path failed, file does not exist as specified.
15874     # Try adding .exe or .cmd
15875     if test -f "${new_path}.exe"; then
15876       input_to_shortpath="${new_path}.exe"
15877     elif test -f "${new_path}.cmd"; then
15878       input_to_shortpath="${new_path}.cmd"
15879     else
15880       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15881 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15882       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15883 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15884       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15885     fi
15886   else
15887     input_to_shortpath="$new_path"
15888   fi
15889 
15890   # Call helper function which possibly converts this using DOS-style short mode.
15891   # If so, the updated path is stored in $new_path.
15892   new_path="$input_to_shortpath"
15893 
15894   input_path="$input_to_shortpath"
15895   # Check if we need to convert this using DOS-style short mode. If the path
15896   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15897   # take no chances and rewrite it.
15898   # Note: m4 eats our [], so we need to use [ and ] instead.
15899   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15900   if test "x$has_forbidden_chars" != x; then
15901     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15902     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15903     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15904     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15905       # Going to short mode and back again did indeed matter. Since short mode is
15906       # case insensitive, let's make it lowercase to improve readability.
15907       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15908       # Now convert it back to Unix-stile (cygpath)
15909       input_path=`$CYGPATH -u "$shortmode_path"`
15910       new_path="$input_path"
15911     fi
15912   fi
15913 
15914   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15915   if test "x$test_cygdrive_prefix" = x; then
15916     # As a simple fix, exclude /usr/bin since it's not a real path.
15917     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15918       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15919       # a path prefixed by /cygdrive for fixpath to work.
15920       new_path="$CYGWIN_ROOT_PATH$input_path"
15921     fi
15922   fi
15923 
15924   # remove trailing .exe if any
15925   new_path="${new_path/%.exe/}"
15926 
15927   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15928 
15929   # First separate the path from the arguments. This will split at the first
15930   # space.
15931   complete="$FOUND_MAKE"
15932   path="${complete%% *}"
15933   tmp="$complete EOL"
15934   arguments="${tmp#* }"
15935 
15936   # Input might be given as Windows format, start by converting to
15937   # unix format.
15938   new_path="$path"
15939 
15940   windows_path="$new_path"
15941   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15942     unix_path=`$CYGPATH -u "$windows_path"`
15943     new_path="$unix_path"
15944   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15945     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15946     new_path="$unix_path"
15947   fi
15948 
15949 
15950   # Now try to locate executable using which
15951   new_path=`$WHICH "$new_path" 2> /dev/null`
15952 
15953   if test "x$new_path" = x; then
15954     # Oops. Which didn't find the executable.
15955     # The splitting of arguments from the executable at a space might have been incorrect,
15956     # since paths with space are more likely in Windows. Give it another try with the whole
15957     # argument.
15958     path="$complete"
15959     arguments="EOL"
15960     new_path="$path"
15961 
15962   windows_path="$new_path"
15963   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15964     unix_path=`$CYGPATH -u "$windows_path"`
15965     new_path="$unix_path"
15966   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15967     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15968     new_path="$unix_path"
15969   fi
15970 
15971 
15972     new_path=`$WHICH "$new_path" 2> /dev/null`
15973 
15974     if test "x$new_path" = x; then
15975       # It's still not found. Now this is an unrecoverable error.
15976       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15977 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15978       has_space=`$ECHO "$complete" | $GREP " "`
15979       if test "x$has_space" != x; then
15980         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15981 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15982       fi
15983       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15984     fi
15985   fi
15986 
15987   # Now new_path has a complete unix path to the binary
15988   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15989     # Keep paths in /bin as-is, but remove trailing .exe if any
15990     new_path="${new_path/%.exe/}"
15991     # Do not save /bin paths to all_fixpath_prefixes!
15992   else
15993     # Not in mixed or Windows style, start by that.
15994     new_path=`cmd //c echo $new_path`
15995 
15996   input_path="$new_path"
15997   # Check if we need to convert this using DOS-style short mode. If the path
15998   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15999   # take no chances and rewrite it.
16000   # Note: m4 eats our [], so we need to use [ and ] instead.
16001   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16002   if test "x$has_forbidden_chars" != x; then
16003     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16004     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16005   fi
16006 
16007     # Output is in $new_path
16008 
16009   windows_path="$new_path"
16010   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16011     unix_path=`$CYGPATH -u "$windows_path"`
16012     new_path="$unix_path"
16013   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16014     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16015     new_path="$unix_path"
16016   fi
16017 
16018     # remove trailing .exe if any
16019     new_path="${new_path/%.exe/}"
16020 
16021     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16022     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16023   fi
16024 
16025   else
16026     # We're on a posix platform. Hooray! :)
16027     # First separate the path from the arguments. This will split at the first
16028     # space.
16029     complete="$FOUND_MAKE"
16030     path="${complete%% *}"
16031     tmp="$complete EOL"
16032     arguments="${tmp#* }"
16033 
16034     # Cannot rely on the command "which" here since it doesn't always work.
16035     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16036     if test -z "$is_absolute_path"; then
16037       # Path to executable is not absolute. Find it.
16038       IFS_save="$IFS"
16039       IFS=:
16040       for p in $PATH; do
16041         if test -f "$p/$path" && test -x "$p/$path"; then
16042           new_path="$p/$path"
16043           break
16044         fi
16045       done
16046       IFS="$IFS_save"
16047     else
16048       # This is an absolute path, we can use it without further modifications.
16049       new_path="$path"
16050     fi
16051 
16052     if test "x$new_path" = x; then
16053       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16054 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16055       has_space=`$ECHO "$complete" | $GREP " "`
16056       if test "x$has_space" != x; then
16057         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16058 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16059       fi
16060       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16061     fi
16062   fi
16063 
16064   # Now join together the path and the arguments once again
16065   if test "x$arguments" != xEOL; then
16066     new_complete="$new_path ${arguments% *}"
16067   else
16068     new_complete="$new_path"
16069   fi
16070 
16071   if test "x$complete" != "x$new_complete"; then
16072     FOUND_MAKE="$new_complete"
16073     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16074 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16075   fi
16076 
16077         fi
16078       fi
16079     fi
16080   fi
16081 
16082     fi
16083 
16084     if test "x$FOUND_MAKE" = x; then
16085       if test "x$TOOLS_DIR" != x; then
16086         # We have a tools-dir, check that as well before giving up.
16087         OLD_PATH=$PATH
16088         PATH=$TOOLS_DIR:$PATH
16089         for ac_prog in gmake
16090 do
16091   # Extract the first word of "$ac_prog", so it can be a program name with args.
16092 set dummy $ac_prog; ac_word=$2
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16094 $as_echo_n "checking for $ac_word... " >&6; }
16095 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16096   $as_echo_n "(cached) " >&6
16097 else
16098   case $CHECK_TOOLSDIR_GMAKE in
16099   [\\/]* | ?:[\\/]*)
16100   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16101   ;;
16102   *)
16103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16104 for as_dir in $PATH
16105 do
16106   IFS=$as_save_IFS
16107   test -z "$as_dir" && as_dir=.
16108     for ac_exec_ext in '' $ac_executable_extensions; do
16109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16110     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16112     break 2
16113   fi
16114 done
16115   done
16116 IFS=$as_save_IFS
16117 
16118   ;;
16119 esac
16120 fi
16121 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16122 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16124 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16125 else
16126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127 $as_echo "no" >&6; }
16128 fi
16129 
16130 
16131   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16132 done
16133 
16134 
16135   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16136   DESCRIPTION="gmake in tools-dir"
16137   if test "x$MAKE_CANDIDATE" != x; then
16138     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16139 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16140     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16141     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16142     if test "x$IS_GNU_MAKE" = x; then
16143       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16144 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16145     else
16146       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16147       if test "x$IS_MODERN_MAKE" = x; then
16148         { $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
16149 $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;}
16150       else
16151         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16152           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16153             MAKE_EXPECTED_ENV='cygwin'
16154           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16155             MAKE_EXPECTED_ENV='msys'
16156           else
16157             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16158           fi
16159           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16160           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16161         else
16162           # Not relevant for non-Windows
16163           IS_MAKE_CORRECT_ENV=true
16164         fi
16165         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16166           { $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
16167 $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;}
16168         else
16169           FOUND_MAKE=$MAKE_CANDIDATE
16170 
16171   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16172 
16173   # First separate the path from the arguments. This will split at the first
16174   # space.
16175   complete="$FOUND_MAKE"
16176   path="${complete%% *}"
16177   tmp="$complete EOL"
16178   arguments="${tmp#* }"
16179 
16180   # Input might be given as Windows format, start by converting to
16181   # unix format.
16182   new_path=`$CYGPATH -u "$path"`
16183 
16184   # Now try to locate executable using which
16185   new_path=`$WHICH "$new_path" 2> /dev/null`
16186   # bat and cmd files are not always considered executable in cygwin causing which
16187   # to not find them
16188   if test "x$new_path" = x \
16189       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16190       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16191     new_path=`$CYGPATH -u "$path"`
16192   fi
16193   if test "x$new_path" = x; then
16194     # Oops. Which didn't find the executable.
16195     # The splitting of arguments from the executable at a space might have been incorrect,
16196     # since paths with space are more likely in Windows. Give it another try with the whole
16197     # argument.
16198     path="$complete"
16199     arguments="EOL"
16200     new_path=`$CYGPATH -u "$path"`
16201     new_path=`$WHICH "$new_path" 2> /dev/null`
16202     # bat and cmd files are not always considered executable in cygwin causing which
16203     # to not find them
16204     if test "x$new_path" = x \
16205         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16206         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16207       new_path=`$CYGPATH -u "$path"`
16208     fi
16209     if test "x$new_path" = x; then
16210       # It's still not found. Now this is an unrecoverable error.
16211       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16212 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16213       has_space=`$ECHO "$complete" | $GREP " "`
16214       if test "x$has_space" != x; then
16215         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16216 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16217       fi
16218       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16219     fi
16220   fi
16221 
16222   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16223   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16224   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16225   # "foo.exe" is OK but "foo" is an error.
16226   #
16227   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16228   # It is also a way to make sure we got the proper file name for the real test later on.
16229   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16230   if test "x$test_shortpath" = x; then
16231     # Short path failed, file does not exist as specified.
16232     # Try adding .exe or .cmd
16233     if test -f "${new_path}.exe"; then
16234       input_to_shortpath="${new_path}.exe"
16235     elif test -f "${new_path}.cmd"; then
16236       input_to_shortpath="${new_path}.cmd"
16237     else
16238       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16239 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16240       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16241 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16242       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16243     fi
16244   else
16245     input_to_shortpath="$new_path"
16246   fi
16247 
16248   # Call helper function which possibly converts this using DOS-style short mode.
16249   # If so, the updated path is stored in $new_path.
16250   new_path="$input_to_shortpath"
16251 
16252   input_path="$input_to_shortpath"
16253   # Check if we need to convert this using DOS-style short mode. If the path
16254   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16255   # take no chances and rewrite it.
16256   # Note: m4 eats our [], so we need to use [ and ] instead.
16257   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16258   if test "x$has_forbidden_chars" != x; then
16259     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16260     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16261     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16262     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16263       # Going to short mode and back again did indeed matter. Since short mode is
16264       # case insensitive, let's make it lowercase to improve readability.
16265       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16266       # Now convert it back to Unix-stile (cygpath)
16267       input_path=`$CYGPATH -u "$shortmode_path"`
16268       new_path="$input_path"
16269     fi
16270   fi
16271 
16272   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16273   if test "x$test_cygdrive_prefix" = x; then
16274     # As a simple fix, exclude /usr/bin since it's not a real path.
16275     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16276       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16277       # a path prefixed by /cygdrive for fixpath to work.
16278       new_path="$CYGWIN_ROOT_PATH$input_path"
16279     fi
16280   fi
16281 
16282   # remove trailing .exe if any
16283   new_path="${new_path/%.exe/}"
16284 
16285   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16286 
16287   # First separate the path from the arguments. This will split at the first
16288   # space.
16289   complete="$FOUND_MAKE"
16290   path="${complete%% *}"
16291   tmp="$complete EOL"
16292   arguments="${tmp#* }"
16293 
16294   # Input might be given as Windows format, start by converting to
16295   # unix format.
16296   new_path="$path"
16297 
16298   windows_path="$new_path"
16299   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16300     unix_path=`$CYGPATH -u "$windows_path"`
16301     new_path="$unix_path"
16302   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16303     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16304     new_path="$unix_path"
16305   fi
16306 
16307 
16308   # Now try to locate executable using which
16309   new_path=`$WHICH "$new_path" 2> /dev/null`
16310 
16311   if test "x$new_path" = x; then
16312     # Oops. Which didn't find the executable.
16313     # The splitting of arguments from the executable at a space might have been incorrect,
16314     # since paths with space are more likely in Windows. Give it another try with the whole
16315     # argument.
16316     path="$complete"
16317     arguments="EOL"
16318     new_path="$path"
16319 
16320   windows_path="$new_path"
16321   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16322     unix_path=`$CYGPATH -u "$windows_path"`
16323     new_path="$unix_path"
16324   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16325     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16326     new_path="$unix_path"
16327   fi
16328 
16329 
16330     new_path=`$WHICH "$new_path" 2> /dev/null`
16331 
16332     if test "x$new_path" = x; then
16333       # It's still not found. Now this is an unrecoverable error.
16334       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16335 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16336       has_space=`$ECHO "$complete" | $GREP " "`
16337       if test "x$has_space" != x; then
16338         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16339 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16340       fi
16341       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16342     fi
16343   fi
16344 
16345   # Now new_path has a complete unix path to the binary
16346   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16347     # Keep paths in /bin as-is, but remove trailing .exe if any
16348     new_path="${new_path/%.exe/}"
16349     # Do not save /bin paths to all_fixpath_prefixes!
16350   else
16351     # Not in mixed or Windows style, start by that.
16352     new_path=`cmd //c echo $new_path`
16353 
16354   input_path="$new_path"
16355   # Check if we need to convert this using DOS-style short mode. If the path
16356   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16357   # take no chances and rewrite it.
16358   # Note: m4 eats our [], so we need to use [ and ] instead.
16359   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16360   if test "x$has_forbidden_chars" != x; then
16361     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16362     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16363   fi
16364 
16365     # Output is in $new_path
16366 
16367   windows_path="$new_path"
16368   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16369     unix_path=`$CYGPATH -u "$windows_path"`
16370     new_path="$unix_path"
16371   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16372     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16373     new_path="$unix_path"
16374   fi
16375 
16376     # remove trailing .exe if any
16377     new_path="${new_path/%.exe/}"
16378 
16379     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16380     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16381   fi
16382 
16383   else
16384     # We're on a posix platform. Hooray! :)
16385     # First separate the path from the arguments. This will split at the first
16386     # space.
16387     complete="$FOUND_MAKE"
16388     path="${complete%% *}"
16389     tmp="$complete EOL"
16390     arguments="${tmp#* }"
16391 
16392     # Cannot rely on the command "which" here since it doesn't always work.
16393     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16394     if test -z "$is_absolute_path"; then
16395       # Path to executable is not absolute. Find it.
16396       IFS_save="$IFS"
16397       IFS=:
16398       for p in $PATH; do
16399         if test -f "$p/$path" && test -x "$p/$path"; then
16400           new_path="$p/$path"
16401           break
16402         fi
16403       done
16404       IFS="$IFS_save"
16405     else
16406       # This is an absolute path, we can use it without further modifications.
16407       new_path="$path"
16408     fi
16409 
16410     if test "x$new_path" = x; then
16411       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16412 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16413       has_space=`$ECHO "$complete" | $GREP " "`
16414       if test "x$has_space" != x; then
16415         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16416 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16417       fi
16418       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16419     fi
16420   fi
16421 
16422   # Now join together the path and the arguments once again
16423   if test "x$arguments" != xEOL; then
16424     new_complete="$new_path ${arguments% *}"
16425   else
16426     new_complete="$new_path"
16427   fi
16428 
16429   if test "x$complete" != "x$new_complete"; then
16430     FOUND_MAKE="$new_complete"
16431     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16432 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16433   fi
16434 
16435         fi
16436       fi
16437     fi
16438   fi
16439 
16440         if test "x$FOUND_MAKE" = x; then
16441           for ac_prog in make
16442 do
16443   # Extract the first word of "$ac_prog", so it can be a program name with args.
16444 set dummy $ac_prog; ac_word=$2
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16446 $as_echo_n "checking for $ac_word... " >&6; }
16447 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16448   $as_echo_n "(cached) " >&6
16449 else
16450   case $CHECK_TOOLSDIR_MAKE in
16451   [\\/]* | ?:[\\/]*)
16452   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16453   ;;
16454   *)
16455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456 for as_dir in $PATH
16457 do
16458   IFS=$as_save_IFS
16459   test -z "$as_dir" && as_dir=.
16460     for ac_exec_ext in '' $ac_executable_extensions; do
16461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16462     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16464     break 2
16465   fi
16466 done
16467   done
16468 IFS=$as_save_IFS
16469 
16470   ;;
16471 esac
16472 fi
16473 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16474 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16476 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16477 else
16478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16479 $as_echo "no" >&6; }
16480 fi
16481 
16482 
16483   test -n "$CHECK_TOOLSDIR_MAKE" && break
16484 done
16485 
16486 
16487   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16488   DESCRIPTION="make in tools-dir"
16489   if test "x$MAKE_CANDIDATE" != x; then
16490     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16491 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16492     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16493     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16494     if test "x$IS_GNU_MAKE" = x; then
16495       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16496 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16497     else
16498       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16499       if test "x$IS_MODERN_MAKE" = x; then
16500         { $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
16501 $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;}
16502       else
16503         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16504           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16505             MAKE_EXPECTED_ENV='cygwin'
16506           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16507             MAKE_EXPECTED_ENV='msys'
16508           else
16509             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16510           fi
16511           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16512           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16513         else
16514           # Not relevant for non-Windows
16515           IS_MAKE_CORRECT_ENV=true
16516         fi
16517         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16518           { $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
16519 $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;}
16520         else
16521           FOUND_MAKE=$MAKE_CANDIDATE
16522 
16523   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16524 
16525   # First separate the path from the arguments. This will split at the first
16526   # space.
16527   complete="$FOUND_MAKE"
16528   path="${complete%% *}"
16529   tmp="$complete EOL"
16530   arguments="${tmp#* }"
16531 
16532   # Input might be given as Windows format, start by converting to
16533   # unix format.
16534   new_path=`$CYGPATH -u "$path"`
16535 
16536   # Now try to locate executable using which
16537   new_path=`$WHICH "$new_path" 2> /dev/null`
16538   # bat and cmd files are not always considered executable in cygwin causing which
16539   # to not find them
16540   if test "x$new_path" = x \
16541       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16542       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16543     new_path=`$CYGPATH -u "$path"`
16544   fi
16545   if test "x$new_path" = x; then
16546     # Oops. Which didn't find the executable.
16547     # The splitting of arguments from the executable at a space might have been incorrect,
16548     # since paths with space are more likely in Windows. Give it another try with the whole
16549     # argument.
16550     path="$complete"
16551     arguments="EOL"
16552     new_path=`$CYGPATH -u "$path"`
16553     new_path=`$WHICH "$new_path" 2> /dev/null`
16554     # bat and cmd files are not always considered executable in cygwin causing which
16555     # to not find them
16556     if test "x$new_path" = x \
16557         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16558         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16559       new_path=`$CYGPATH -u "$path"`
16560     fi
16561     if test "x$new_path" = x; then
16562       # It's still not found. Now this is an unrecoverable error.
16563       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16564 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16565       has_space=`$ECHO "$complete" | $GREP " "`
16566       if test "x$has_space" != x; then
16567         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16568 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16569       fi
16570       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16571     fi
16572   fi
16573 
16574   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16575   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16576   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16577   # "foo.exe" is OK but "foo" is an error.
16578   #
16579   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16580   # It is also a way to make sure we got the proper file name for the real test later on.
16581   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16582   if test "x$test_shortpath" = x; then
16583     # Short path failed, file does not exist as specified.
16584     # Try adding .exe or .cmd
16585     if test -f "${new_path}.exe"; then
16586       input_to_shortpath="${new_path}.exe"
16587     elif test -f "${new_path}.cmd"; then
16588       input_to_shortpath="${new_path}.cmd"
16589     else
16590       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16591 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16592       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16593 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16594       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16595     fi
16596   else
16597     input_to_shortpath="$new_path"
16598   fi
16599 
16600   # Call helper function which possibly converts this using DOS-style short mode.
16601   # If so, the updated path is stored in $new_path.
16602   new_path="$input_to_shortpath"
16603 
16604   input_path="$input_to_shortpath"
16605   # Check if we need to convert this using DOS-style short mode. If the path
16606   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16607   # take no chances and rewrite it.
16608   # Note: m4 eats our [], so we need to use [ and ] instead.
16609   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16610   if test "x$has_forbidden_chars" != x; then
16611     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16612     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16613     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16614     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16615       # Going to short mode and back again did indeed matter. Since short mode is
16616       # case insensitive, let's make it lowercase to improve readability.
16617       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16618       # Now convert it back to Unix-stile (cygpath)
16619       input_path=`$CYGPATH -u "$shortmode_path"`
16620       new_path="$input_path"
16621     fi
16622   fi
16623 
16624   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16625   if test "x$test_cygdrive_prefix" = x; then
16626     # As a simple fix, exclude /usr/bin since it's not a real path.
16627     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16628       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16629       # a path prefixed by /cygdrive for fixpath to work.
16630       new_path="$CYGWIN_ROOT_PATH$input_path"
16631     fi
16632   fi
16633 
16634   # remove trailing .exe if any
16635   new_path="${new_path/%.exe/}"
16636 
16637   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16638 
16639   # First separate the path from the arguments. This will split at the first
16640   # space.
16641   complete="$FOUND_MAKE"
16642   path="${complete%% *}"
16643   tmp="$complete EOL"
16644   arguments="${tmp#* }"
16645 
16646   # Input might be given as Windows format, start by converting to
16647   # unix format.
16648   new_path="$path"
16649 
16650   windows_path="$new_path"
16651   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16652     unix_path=`$CYGPATH -u "$windows_path"`
16653     new_path="$unix_path"
16654   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16655     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16656     new_path="$unix_path"
16657   fi
16658 
16659 
16660   # Now try to locate executable using which
16661   new_path=`$WHICH "$new_path" 2> /dev/null`
16662 
16663   if test "x$new_path" = x; then
16664     # Oops. Which didn't find the executable.
16665     # The splitting of arguments from the executable at a space might have been incorrect,
16666     # since paths with space are more likely in Windows. Give it another try with the whole
16667     # argument.
16668     path="$complete"
16669     arguments="EOL"
16670     new_path="$path"
16671 
16672   windows_path="$new_path"
16673   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16674     unix_path=`$CYGPATH -u "$windows_path"`
16675     new_path="$unix_path"
16676   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16677     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16678     new_path="$unix_path"
16679   fi
16680 
16681 
16682     new_path=`$WHICH "$new_path" 2> /dev/null`
16683 
16684     if test "x$new_path" = x; then
16685       # It's still not found. Now this is an unrecoverable error.
16686       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16687 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16688       has_space=`$ECHO "$complete" | $GREP " "`
16689       if test "x$has_space" != x; then
16690         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16691 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16692       fi
16693       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16694     fi
16695   fi
16696 
16697   # Now new_path has a complete unix path to the binary
16698   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16699     # Keep paths in /bin as-is, but remove trailing .exe if any
16700     new_path="${new_path/%.exe/}"
16701     # Do not save /bin paths to all_fixpath_prefixes!
16702   else
16703     # Not in mixed or Windows style, start by that.
16704     new_path=`cmd //c echo $new_path`
16705 
16706   input_path="$new_path"
16707   # Check if we need to convert this using DOS-style short mode. If the path
16708   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16709   # take no chances and rewrite it.
16710   # Note: m4 eats our [], so we need to use [ and ] instead.
16711   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16712   if test "x$has_forbidden_chars" != x; then
16713     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16714     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16715   fi
16716 
16717     # Output is in $new_path
16718 
16719   windows_path="$new_path"
16720   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16721     unix_path=`$CYGPATH -u "$windows_path"`
16722     new_path="$unix_path"
16723   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16724     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16725     new_path="$unix_path"
16726   fi
16727 
16728     # remove trailing .exe if any
16729     new_path="${new_path/%.exe/}"
16730 
16731     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16732     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16733   fi
16734 
16735   else
16736     # We're on a posix platform. Hooray! :)
16737     # First separate the path from the arguments. This will split at the first
16738     # space.
16739     complete="$FOUND_MAKE"
16740     path="${complete%% *}"
16741     tmp="$complete EOL"
16742     arguments="${tmp#* }"
16743 
16744     # Cannot rely on the command "which" here since it doesn't always work.
16745     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16746     if test -z "$is_absolute_path"; then
16747       # Path to executable is not absolute. Find it.
16748       IFS_save="$IFS"
16749       IFS=:
16750       for p in $PATH; do
16751         if test -f "$p/$path" && test -x "$p/$path"; then
16752           new_path="$p/$path"
16753           break
16754         fi
16755       done
16756       IFS="$IFS_save"
16757     else
16758       # This is an absolute path, we can use it without further modifications.
16759       new_path="$path"
16760     fi
16761 
16762     if test "x$new_path" = x; then
16763       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16764 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16765       has_space=`$ECHO "$complete" | $GREP " "`
16766       if test "x$has_space" != x; then
16767         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16768 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16769       fi
16770       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16771     fi
16772   fi
16773 
16774   # Now join together the path and the arguments once again
16775   if test "x$arguments" != xEOL; then
16776     new_complete="$new_path ${arguments% *}"
16777   else
16778     new_complete="$new_path"
16779   fi
16780 
16781   if test "x$complete" != "x$new_complete"; then
16782     FOUND_MAKE="$new_complete"
16783     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16784 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16785   fi
16786 
16787         fi
16788       fi
16789     fi
16790   fi
16791 
16792         fi
16793         PATH=$OLD_PATH
16794       fi
16795     fi
16796 
16797     if test "x$FOUND_MAKE" = x; then
16798       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
16799     fi
16800   fi
16801 
16802   MAKE=$FOUND_MAKE
16803 
16804   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16805 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16806 
16807 
16808 
16809   # Test if find supports -delete
16810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16811 $as_echo_n "checking if find supports -delete... " >&6; }
16812   FIND_DELETE="-delete"
16813 
16814   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16815 
16816   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16817 
16818   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16819   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16820     # No, it does not.
16821     rm $DELETEDIR/TestIfFindSupportsDelete
16822     FIND_DELETE="-exec rm \{\} \+"
16823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16824 $as_echo "no" >&6; }
16825   else
16826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16827 $as_echo "yes" >&6; }
16828   fi
16829   rmdir $DELETEDIR
16830 
16831 
16832 
16833   # These tools might not be installed by default,
16834   # need hint on how to install them.
16835 
16836 
16837 
16838   # Publish this variable in the help.
16839 
16840 
16841   if test "x$UNZIP" = x; then
16842     # The variable is not set by user, try to locate tool using the code snippet
16843     for ac_prog in unzip
16844 do
16845   # Extract the first word of "$ac_prog", so it can be a program name with args.
16846 set dummy $ac_prog; ac_word=$2
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16848 $as_echo_n "checking for $ac_word... " >&6; }
16849 if ${ac_cv_path_UNZIP+:} false; then :
16850   $as_echo_n "(cached) " >&6
16851 else
16852   case $UNZIP in
16853   [\\/]* | ?:[\\/]*)
16854   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16855   ;;
16856   *)
16857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858 for as_dir in $PATH
16859 do
16860   IFS=$as_save_IFS
16861   test -z "$as_dir" && as_dir=.
16862     for ac_exec_ext in '' $ac_executable_extensions; do
16863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16864     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16866     break 2
16867   fi
16868 done
16869   done
16870 IFS=$as_save_IFS
16871 
16872   ;;
16873 esac
16874 fi
16875 UNZIP=$ac_cv_path_UNZIP
16876 if test -n "$UNZIP"; then
16877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16878 $as_echo "$UNZIP" >&6; }
16879 else
16880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16882 fi
16883 
16884 
16885   test -n "$UNZIP" && break
16886 done
16887 
16888   else
16889     # The variable is set, but is it from the command line or the environment?
16890 
16891     # Try to remove the string !UNZIP! from our list.
16892     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16893     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16894       # If it failed, the variable was not from the command line. Ignore it,
16895       # but warn the user (except for BASH, which is always set by the calling BASH).
16896       if test "xUNZIP" != xBASH; then
16897         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16898 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16899       fi
16900       # Try to locate tool using the code snippet
16901       for ac_prog in unzip
16902 do
16903   # Extract the first word of "$ac_prog", so it can be a program name with args.
16904 set dummy $ac_prog; ac_word=$2
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16906 $as_echo_n "checking for $ac_word... " >&6; }
16907 if ${ac_cv_path_UNZIP+:} false; then :
16908   $as_echo_n "(cached) " >&6
16909 else
16910   case $UNZIP in
16911   [\\/]* | ?:[\\/]*)
16912   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16913   ;;
16914   *)
16915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16916 for as_dir in $PATH
16917 do
16918   IFS=$as_save_IFS
16919   test -z "$as_dir" && as_dir=.
16920     for ac_exec_ext in '' $ac_executable_extensions; do
16921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16922     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16924     break 2
16925   fi
16926 done
16927   done
16928 IFS=$as_save_IFS
16929 
16930   ;;
16931 esac
16932 fi
16933 UNZIP=$ac_cv_path_UNZIP
16934 if test -n "$UNZIP"; then
16935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16936 $as_echo "$UNZIP" >&6; }
16937 else
16938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16939 $as_echo "no" >&6; }
16940 fi
16941 
16942 
16943   test -n "$UNZIP" && break
16944 done
16945 
16946     else
16947       # If it succeeded, then it was overridden by the user. We will use it
16948       # for the tool.
16949 
16950       # First remove it from the list of overridden variables, so we can test
16951       # for unknown variables in the end.
16952       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16953 
16954       # Check if the provided tool contains a complete path.
16955       tool_specified="$UNZIP"
16956       tool_basename="${tool_specified##*/}"
16957       if test "x$tool_basename" = "x$tool_specified"; then
16958         # A command without a complete path is provided, search $PATH.
16959         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16960 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16961         # Extract the first word of "$tool_basename", so it can be a program name with args.
16962 set dummy $tool_basename; ac_word=$2
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16964 $as_echo_n "checking for $ac_word... " >&6; }
16965 if ${ac_cv_path_UNZIP+:} false; then :
16966   $as_echo_n "(cached) " >&6
16967 else
16968   case $UNZIP in
16969   [\\/]* | ?:[\\/]*)
16970   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16971   ;;
16972   *)
16973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16974 for as_dir in $PATH
16975 do
16976   IFS=$as_save_IFS
16977   test -z "$as_dir" && as_dir=.
16978     for ac_exec_ext in '' $ac_executable_extensions; do
16979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16980     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16982     break 2
16983   fi
16984 done
16985   done
16986 IFS=$as_save_IFS
16987 
16988   ;;
16989 esac
16990 fi
16991 UNZIP=$ac_cv_path_UNZIP
16992 if test -n "$UNZIP"; then
16993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16994 $as_echo "$UNZIP" >&6; }
16995 else
16996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16997 $as_echo "no" >&6; }
16998 fi
16999 
17000 
17001         if test "x$UNZIP" = x; then
17002           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17003         fi
17004       else
17005         # Otherwise we believe it is a complete path. Use it as it is.
17006         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17007 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17008         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17009 $as_echo_n "checking for UNZIP... " >&6; }
17010         if test ! -x "$tool_specified"; then
17011           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17012 $as_echo "not found" >&6; }
17013           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17014         fi
17015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17016 $as_echo "$tool_specified" >&6; }
17017       fi
17018     fi
17019   fi
17020 
17021 
17022 
17023   if test "x$UNZIP" = x; then
17024     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17025   fi
17026 
17027 
17028 
17029 
17030 
17031   # Publish this variable in the help.
17032 
17033 
17034   if test "x$ZIP" = x; then
17035     # The variable is not set by user, try to locate tool using the code snippet
17036     for ac_prog in zip
17037 do
17038   # Extract the first word of "$ac_prog", so it can be a program name with args.
17039 set dummy $ac_prog; ac_word=$2
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17041 $as_echo_n "checking for $ac_word... " >&6; }
17042 if ${ac_cv_path_ZIP+:} false; then :
17043   $as_echo_n "(cached) " >&6
17044 else
17045   case $ZIP in
17046   [\\/]* | ?:[\\/]*)
17047   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17048   ;;
17049   *)
17050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17051 for as_dir in $PATH
17052 do
17053   IFS=$as_save_IFS
17054   test -z "$as_dir" && as_dir=.
17055     for ac_exec_ext in '' $ac_executable_extensions; do
17056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17057     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17059     break 2
17060   fi
17061 done
17062   done
17063 IFS=$as_save_IFS
17064 
17065   ;;
17066 esac
17067 fi
17068 ZIP=$ac_cv_path_ZIP
17069 if test -n "$ZIP"; then
17070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17071 $as_echo "$ZIP" >&6; }
17072 else
17073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17074 $as_echo "no" >&6; }
17075 fi
17076 
17077 
17078   test -n "$ZIP" && break
17079 done
17080 
17081   else
17082     # The variable is set, but is it from the command line or the environment?
17083 
17084     # Try to remove the string !ZIP! from our list.
17085     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17086     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17087       # If it failed, the variable was not from the command line. Ignore it,
17088       # but warn the user (except for BASH, which is always set by the calling BASH).
17089       if test "xZIP" != xBASH; then
17090         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17091 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17092       fi
17093       # Try to locate tool using the code snippet
17094       for ac_prog in zip
17095 do
17096   # Extract the first word of "$ac_prog", so it can be a program name with args.
17097 set dummy $ac_prog; ac_word=$2
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17099 $as_echo_n "checking for $ac_word... " >&6; }
17100 if ${ac_cv_path_ZIP+:} false; then :
17101   $as_echo_n "(cached) " >&6
17102 else
17103   case $ZIP in
17104   [\\/]* | ?:[\\/]*)
17105   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17106   ;;
17107   *)
17108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17109 for as_dir in $PATH
17110 do
17111   IFS=$as_save_IFS
17112   test -z "$as_dir" && as_dir=.
17113     for ac_exec_ext in '' $ac_executable_extensions; do
17114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17115     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17117     break 2
17118   fi
17119 done
17120   done
17121 IFS=$as_save_IFS
17122 
17123   ;;
17124 esac
17125 fi
17126 ZIP=$ac_cv_path_ZIP
17127 if test -n "$ZIP"; then
17128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17129 $as_echo "$ZIP" >&6; }
17130 else
17131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17132 $as_echo "no" >&6; }
17133 fi
17134 
17135 
17136   test -n "$ZIP" && break
17137 done
17138 
17139     else
17140       # If it succeeded, then it was overridden by the user. We will use it
17141       # for the tool.
17142 
17143       # First remove it from the list of overridden variables, so we can test
17144       # for unknown variables in the end.
17145       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17146 
17147       # Check if the provided tool contains a complete path.
17148       tool_specified="$ZIP"
17149       tool_basename="${tool_specified##*/}"
17150       if test "x$tool_basename" = "x$tool_specified"; then
17151         # A command without a complete path is provided, search $PATH.
17152         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17153 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17154         # Extract the first word of "$tool_basename", so it can be a program name with args.
17155 set dummy $tool_basename; ac_word=$2
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17157 $as_echo_n "checking for $ac_word... " >&6; }
17158 if ${ac_cv_path_ZIP+:} false; then :
17159   $as_echo_n "(cached) " >&6
17160 else
17161   case $ZIP in
17162   [\\/]* | ?:[\\/]*)
17163   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17164   ;;
17165   *)
17166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167 for as_dir in $PATH
17168 do
17169   IFS=$as_save_IFS
17170   test -z "$as_dir" && as_dir=.
17171     for ac_exec_ext in '' $ac_executable_extensions; do
17172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17173     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17175     break 2
17176   fi
17177 done
17178   done
17179 IFS=$as_save_IFS
17180 
17181   ;;
17182 esac
17183 fi
17184 ZIP=$ac_cv_path_ZIP
17185 if test -n "$ZIP"; then
17186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17187 $as_echo "$ZIP" >&6; }
17188 else
17189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17191 fi
17192 
17193 
17194         if test "x$ZIP" = x; then
17195           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17196         fi
17197       else
17198         # Otherwise we believe it is a complete path. Use it as it is.
17199         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17200 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17202 $as_echo_n "checking for ZIP... " >&6; }
17203         if test ! -x "$tool_specified"; then
17204           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17205 $as_echo "not found" >&6; }
17206           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17207         fi
17208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17209 $as_echo "$tool_specified" >&6; }
17210       fi
17211     fi
17212   fi
17213 
17214 
17215 
17216   if test "x$ZIP" = x; then
17217     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17218   fi
17219 
17220 
17221 
17222   # Non-required basic tools
17223 
17224 
17225 
17226   # Publish this variable in the help.
17227 
17228 
17229   if test "x$LDD" = x; then
17230     # The variable is not set by user, try to locate tool using the code snippet
17231     for ac_prog in ldd
17232 do
17233   # Extract the first word of "$ac_prog", so it can be a program name with args.
17234 set dummy $ac_prog; ac_word=$2
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17236 $as_echo_n "checking for $ac_word... " >&6; }
17237 if ${ac_cv_path_LDD+:} false; then :
17238   $as_echo_n "(cached) " >&6
17239 else
17240   case $LDD in
17241   [\\/]* | ?:[\\/]*)
17242   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17243   ;;
17244   *)
17245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17246 for as_dir in $PATH
17247 do
17248   IFS=$as_save_IFS
17249   test -z "$as_dir" && as_dir=.
17250     for ac_exec_ext in '' $ac_executable_extensions; do
17251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17252     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17254     break 2
17255   fi
17256 done
17257   done
17258 IFS=$as_save_IFS
17259 
17260   ;;
17261 esac
17262 fi
17263 LDD=$ac_cv_path_LDD
17264 if test -n "$LDD"; then
17265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17266 $as_echo "$LDD" >&6; }
17267 else
17268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17269 $as_echo "no" >&6; }
17270 fi
17271 
17272 
17273   test -n "$LDD" && break
17274 done
17275 
17276   else
17277     # The variable is set, but is it from the command line or the environment?
17278 
17279     # Try to remove the string !LDD! from our list.
17280     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17281     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17282       # If it failed, the variable was not from the command line. Ignore it,
17283       # but warn the user (except for BASH, which is always set by the calling BASH).
17284       if test "xLDD" != xBASH; then
17285         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17286 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17287       fi
17288       # Try to locate tool using the code snippet
17289       for ac_prog in ldd
17290 do
17291   # Extract the first word of "$ac_prog", so it can be a program name with args.
17292 set dummy $ac_prog; ac_word=$2
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17294 $as_echo_n "checking for $ac_word... " >&6; }
17295 if ${ac_cv_path_LDD+:} false; then :
17296   $as_echo_n "(cached) " >&6
17297 else
17298   case $LDD in
17299   [\\/]* | ?:[\\/]*)
17300   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17301   ;;
17302   *)
17303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17304 for as_dir in $PATH
17305 do
17306   IFS=$as_save_IFS
17307   test -z "$as_dir" && as_dir=.
17308     for ac_exec_ext in '' $ac_executable_extensions; do
17309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17310     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17312     break 2
17313   fi
17314 done
17315   done
17316 IFS=$as_save_IFS
17317 
17318   ;;
17319 esac
17320 fi
17321 LDD=$ac_cv_path_LDD
17322 if test -n "$LDD"; then
17323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17324 $as_echo "$LDD" >&6; }
17325 else
17326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17327 $as_echo "no" >&6; }
17328 fi
17329 
17330 
17331   test -n "$LDD" && break
17332 done
17333 
17334     else
17335       # If it succeeded, then it was overridden by the user. We will use it
17336       # for the tool.
17337 
17338       # First remove it from the list of overridden variables, so we can test
17339       # for unknown variables in the end.
17340       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17341 
17342       # Check if the provided tool contains a complete path.
17343       tool_specified="$LDD"
17344       tool_basename="${tool_specified##*/}"
17345       if test "x$tool_basename" = "x$tool_specified"; then
17346         # A command without a complete path is provided, search $PATH.
17347         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17348 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17349         # Extract the first word of "$tool_basename", so it can be a program name with args.
17350 set dummy $tool_basename; ac_word=$2
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17352 $as_echo_n "checking for $ac_word... " >&6; }
17353 if ${ac_cv_path_LDD+:} false; then :
17354   $as_echo_n "(cached) " >&6
17355 else
17356   case $LDD in
17357   [\\/]* | ?:[\\/]*)
17358   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17359   ;;
17360   *)
17361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17362 for as_dir in $PATH
17363 do
17364   IFS=$as_save_IFS
17365   test -z "$as_dir" && as_dir=.
17366     for ac_exec_ext in '' $ac_executable_extensions; do
17367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17368     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17370     break 2
17371   fi
17372 done
17373   done
17374 IFS=$as_save_IFS
17375 
17376   ;;
17377 esac
17378 fi
17379 LDD=$ac_cv_path_LDD
17380 if test -n "$LDD"; then
17381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17382 $as_echo "$LDD" >&6; }
17383 else
17384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17385 $as_echo "no" >&6; }
17386 fi
17387 
17388 
17389         if test "x$LDD" = x; then
17390           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17391         fi
17392       else
17393         # Otherwise we believe it is a complete path. Use it as it is.
17394         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17395 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17397 $as_echo_n "checking for LDD... " >&6; }
17398         if test ! -x "$tool_specified"; then
17399           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17400 $as_echo "not found" >&6; }
17401           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17402         fi
17403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17404 $as_echo "$tool_specified" >&6; }
17405       fi
17406     fi
17407   fi
17408 
17409 
17410   if test "x$LDD" = "x"; then
17411     # List shared lib dependencies is used for
17412     # debug output and checking for forbidden dependencies.
17413     # We can build without it.
17414     LDD="true"
17415   fi
17416 
17417 
17418   # Publish this variable in the help.
17419 
17420 
17421   if test "x$OTOOL" = x; then
17422     # The variable is not set by user, try to locate tool using the code snippet
17423     for ac_prog in otool
17424 do
17425   # Extract the first word of "$ac_prog", so it can be a program name with args.
17426 set dummy $ac_prog; ac_word=$2
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17428 $as_echo_n "checking for $ac_word... " >&6; }
17429 if ${ac_cv_path_OTOOL+:} false; then :
17430   $as_echo_n "(cached) " >&6
17431 else
17432   case $OTOOL in
17433   [\\/]* | ?:[\\/]*)
17434   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17435   ;;
17436   *)
17437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17438 for as_dir in $PATH
17439 do
17440   IFS=$as_save_IFS
17441   test -z "$as_dir" && as_dir=.
17442     for ac_exec_ext in '' $ac_executable_extensions; do
17443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17444     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17446     break 2
17447   fi
17448 done
17449   done
17450 IFS=$as_save_IFS
17451 
17452   ;;
17453 esac
17454 fi
17455 OTOOL=$ac_cv_path_OTOOL
17456 if test -n "$OTOOL"; then
17457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17458 $as_echo "$OTOOL" >&6; }
17459 else
17460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461 $as_echo "no" >&6; }
17462 fi
17463 
17464 
17465   test -n "$OTOOL" && break
17466 done
17467 
17468   else
17469     # The variable is set, but is it from the command line or the environment?
17470 
17471     # Try to remove the string !OTOOL! from our list.
17472     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17473     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17474       # If it failed, the variable was not from the command line. Ignore it,
17475       # but warn the user (except for BASH, which is always set by the calling BASH).
17476       if test "xOTOOL" != xBASH; then
17477         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17478 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17479       fi
17480       # Try to locate tool using the code snippet
17481       for ac_prog in otool
17482 do
17483   # Extract the first word of "$ac_prog", so it can be a program name with args.
17484 set dummy $ac_prog; ac_word=$2
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17486 $as_echo_n "checking for $ac_word... " >&6; }
17487 if ${ac_cv_path_OTOOL+:} false; then :
17488   $as_echo_n "(cached) " >&6
17489 else
17490   case $OTOOL in
17491   [\\/]* | ?:[\\/]*)
17492   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17493   ;;
17494   *)
17495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17496 for as_dir in $PATH
17497 do
17498   IFS=$as_save_IFS
17499   test -z "$as_dir" && as_dir=.
17500     for ac_exec_ext in '' $ac_executable_extensions; do
17501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17502     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17504     break 2
17505   fi
17506 done
17507   done
17508 IFS=$as_save_IFS
17509 
17510   ;;
17511 esac
17512 fi
17513 OTOOL=$ac_cv_path_OTOOL
17514 if test -n "$OTOOL"; then
17515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17516 $as_echo "$OTOOL" >&6; }
17517 else
17518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17519 $as_echo "no" >&6; }
17520 fi
17521 
17522 
17523   test -n "$OTOOL" && break
17524 done
17525 
17526     else
17527       # If it succeeded, then it was overridden by the user. We will use it
17528       # for the tool.
17529 
17530       # First remove it from the list of overridden variables, so we can test
17531       # for unknown variables in the end.
17532       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17533 
17534       # Check if the provided tool contains a complete path.
17535       tool_specified="$OTOOL"
17536       tool_basename="${tool_specified##*/}"
17537       if test "x$tool_basename" = "x$tool_specified"; then
17538         # A command without a complete path is provided, search $PATH.
17539         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17540 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17541         # Extract the first word of "$tool_basename", so it can be a program name with args.
17542 set dummy $tool_basename; ac_word=$2
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17544 $as_echo_n "checking for $ac_word... " >&6; }
17545 if ${ac_cv_path_OTOOL+:} false; then :
17546   $as_echo_n "(cached) " >&6
17547 else
17548   case $OTOOL in
17549   [\\/]* | ?:[\\/]*)
17550   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17551   ;;
17552   *)
17553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17554 for as_dir in $PATH
17555 do
17556   IFS=$as_save_IFS
17557   test -z "$as_dir" && as_dir=.
17558     for ac_exec_ext in '' $ac_executable_extensions; do
17559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17560     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17562     break 2
17563   fi
17564 done
17565   done
17566 IFS=$as_save_IFS
17567 
17568   ;;
17569 esac
17570 fi
17571 OTOOL=$ac_cv_path_OTOOL
17572 if test -n "$OTOOL"; then
17573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17574 $as_echo "$OTOOL" >&6; }
17575 else
17576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577 $as_echo "no" >&6; }
17578 fi
17579 
17580 
17581         if test "x$OTOOL" = x; then
17582           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17583         fi
17584       else
17585         # Otherwise we believe it is a complete path. Use it as it is.
17586         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17587 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17589 $as_echo_n "checking for OTOOL... " >&6; }
17590         if test ! -x "$tool_specified"; then
17591           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17592 $as_echo "not found" >&6; }
17593           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17594         fi
17595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17596 $as_echo "$tool_specified" >&6; }
17597       fi
17598     fi
17599   fi
17600 
17601 
17602   if test "x$OTOOL" = "x"; then
17603     OTOOL="true"
17604   fi
17605 
17606 
17607   # Publish this variable in the help.
17608 
17609 
17610   if test "x$READELF" = x; then
17611     # The variable is not set by user, try to locate tool using the code snippet
17612     for ac_prog in greadelf readelf
17613 do
17614   # Extract the first word of "$ac_prog", so it can be a program name with args.
17615 set dummy $ac_prog; ac_word=$2
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17617 $as_echo_n "checking for $ac_word... " >&6; }
17618 if ${ac_cv_path_READELF+:} false; then :
17619   $as_echo_n "(cached) " >&6
17620 else
17621   case $READELF in
17622   [\\/]* | ?:[\\/]*)
17623   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17624   ;;
17625   *)
17626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17627 for as_dir in $PATH
17628 do
17629   IFS=$as_save_IFS
17630   test -z "$as_dir" && as_dir=.
17631     for ac_exec_ext in '' $ac_executable_extensions; do
17632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17633     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17635     break 2
17636   fi
17637 done
17638   done
17639 IFS=$as_save_IFS
17640 
17641   ;;
17642 esac
17643 fi
17644 READELF=$ac_cv_path_READELF
17645 if test -n "$READELF"; then
17646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17647 $as_echo "$READELF" >&6; }
17648 else
17649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17650 $as_echo "no" >&6; }
17651 fi
17652 
17653 
17654   test -n "$READELF" && break
17655 done
17656 
17657   else
17658     # The variable is set, but is it from the command line or the environment?
17659 
17660     # Try to remove the string !READELF! from our list.
17661     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17662     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17663       # If it failed, the variable was not from the command line. Ignore it,
17664       # but warn the user (except for BASH, which is always set by the calling BASH).
17665       if test "xREADELF" != xBASH; then
17666         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17667 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17668       fi
17669       # Try to locate tool using the code snippet
17670       for ac_prog in greadelf readelf
17671 do
17672   # Extract the first word of "$ac_prog", so it can be a program name with args.
17673 set dummy $ac_prog; ac_word=$2
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17675 $as_echo_n "checking for $ac_word... " >&6; }
17676 if ${ac_cv_path_READELF+:} false; then :
17677   $as_echo_n "(cached) " >&6
17678 else
17679   case $READELF in
17680   [\\/]* | ?:[\\/]*)
17681   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17682   ;;
17683   *)
17684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17685 for as_dir in $PATH
17686 do
17687   IFS=$as_save_IFS
17688   test -z "$as_dir" && as_dir=.
17689     for ac_exec_ext in '' $ac_executable_extensions; do
17690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17691     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17693     break 2
17694   fi
17695 done
17696   done
17697 IFS=$as_save_IFS
17698 
17699   ;;
17700 esac
17701 fi
17702 READELF=$ac_cv_path_READELF
17703 if test -n "$READELF"; then
17704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17705 $as_echo "$READELF" >&6; }
17706 else
17707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17708 $as_echo "no" >&6; }
17709 fi
17710 
17711 
17712   test -n "$READELF" && break
17713 done
17714 
17715     else
17716       # If it succeeded, then it was overridden by the user. We will use it
17717       # for the tool.
17718 
17719       # First remove it from the list of overridden variables, so we can test
17720       # for unknown variables in the end.
17721       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17722 
17723       # Check if the provided tool contains a complete path.
17724       tool_specified="$READELF"
17725       tool_basename="${tool_specified##*/}"
17726       if test "x$tool_basename" = "x$tool_specified"; then
17727         # A command without a complete path is provided, search $PATH.
17728         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17729 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17730         # Extract the first word of "$tool_basename", so it can be a program name with args.
17731 set dummy $tool_basename; ac_word=$2
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17733 $as_echo_n "checking for $ac_word... " >&6; }
17734 if ${ac_cv_path_READELF+:} false; then :
17735   $as_echo_n "(cached) " >&6
17736 else
17737   case $READELF in
17738   [\\/]* | ?:[\\/]*)
17739   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17740   ;;
17741   *)
17742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17743 for as_dir in $PATH
17744 do
17745   IFS=$as_save_IFS
17746   test -z "$as_dir" && as_dir=.
17747     for ac_exec_ext in '' $ac_executable_extensions; do
17748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17749     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17751     break 2
17752   fi
17753 done
17754   done
17755 IFS=$as_save_IFS
17756 
17757   ;;
17758 esac
17759 fi
17760 READELF=$ac_cv_path_READELF
17761 if test -n "$READELF"; then
17762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17763 $as_echo "$READELF" >&6; }
17764 else
17765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17766 $as_echo "no" >&6; }
17767 fi
17768 
17769 
17770         if test "x$READELF" = x; then
17771           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17772         fi
17773       else
17774         # Otherwise we believe it is a complete path. Use it as it is.
17775         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17776 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17778 $as_echo_n "checking for READELF... " >&6; }
17779         if test ! -x "$tool_specified"; then
17780           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17781 $as_echo "not found" >&6; }
17782           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17783         fi
17784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17785 $as_echo "$tool_specified" >&6; }
17786       fi
17787     fi
17788   fi
17789 
17790 
17791 
17792 
17793   # Publish this variable in the help.
17794 
17795 
17796   if test "x$HG" = x; then
17797     # The variable is not set by user, try to locate tool using the code snippet
17798     for ac_prog in hg
17799 do
17800   # Extract the first word of "$ac_prog", so it can be a program name with args.
17801 set dummy $ac_prog; ac_word=$2
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17803 $as_echo_n "checking for $ac_word... " >&6; }
17804 if ${ac_cv_path_HG+:} false; then :
17805   $as_echo_n "(cached) " >&6
17806 else
17807   case $HG in
17808   [\\/]* | ?:[\\/]*)
17809   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17810   ;;
17811   *)
17812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17813 for as_dir in $PATH
17814 do
17815   IFS=$as_save_IFS
17816   test -z "$as_dir" && as_dir=.
17817     for ac_exec_ext in '' $ac_executable_extensions; do
17818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17819     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17821     break 2
17822   fi
17823 done
17824   done
17825 IFS=$as_save_IFS
17826 
17827   ;;
17828 esac
17829 fi
17830 HG=$ac_cv_path_HG
17831 if test -n "$HG"; then
17832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17833 $as_echo "$HG" >&6; }
17834 else
17835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17836 $as_echo "no" >&6; }
17837 fi
17838 
17839 
17840   test -n "$HG" && break
17841 done
17842 
17843   else
17844     # The variable is set, but is it from the command line or the environment?
17845 
17846     # Try to remove the string !HG! from our list.
17847     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17848     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17849       # If it failed, the variable was not from the command line. Ignore it,
17850       # but warn the user (except for BASH, which is always set by the calling BASH).
17851       if test "xHG" != xBASH; then
17852         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17853 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17854       fi
17855       # Try to locate tool using the code snippet
17856       for ac_prog in hg
17857 do
17858   # Extract the first word of "$ac_prog", so it can be a program name with args.
17859 set dummy $ac_prog; ac_word=$2
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17861 $as_echo_n "checking for $ac_word... " >&6; }
17862 if ${ac_cv_path_HG+:} false; then :
17863   $as_echo_n "(cached) " >&6
17864 else
17865   case $HG in
17866   [\\/]* | ?:[\\/]*)
17867   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17868   ;;
17869   *)
17870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17871 for as_dir in $PATH
17872 do
17873   IFS=$as_save_IFS
17874   test -z "$as_dir" && as_dir=.
17875     for ac_exec_ext in '' $ac_executable_extensions; do
17876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17877     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17879     break 2
17880   fi
17881 done
17882   done
17883 IFS=$as_save_IFS
17884 
17885   ;;
17886 esac
17887 fi
17888 HG=$ac_cv_path_HG
17889 if test -n "$HG"; then
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17891 $as_echo "$HG" >&6; }
17892 else
17893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17894 $as_echo "no" >&6; }
17895 fi
17896 
17897 
17898   test -n "$HG" && break
17899 done
17900 
17901     else
17902       # If it succeeded, then it was overridden by the user. We will use it
17903       # for the tool.
17904 
17905       # First remove it from the list of overridden variables, so we can test
17906       # for unknown variables in the end.
17907       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17908 
17909       # Check if the provided tool contains a complete path.
17910       tool_specified="$HG"
17911       tool_basename="${tool_specified##*/}"
17912       if test "x$tool_basename" = "x$tool_specified"; then
17913         # A command without a complete path is provided, search $PATH.
17914         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17915 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17916         # Extract the first word of "$tool_basename", so it can be a program name with args.
17917 set dummy $tool_basename; ac_word=$2
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17919 $as_echo_n "checking for $ac_word... " >&6; }
17920 if ${ac_cv_path_HG+:} false; then :
17921   $as_echo_n "(cached) " >&6
17922 else
17923   case $HG in
17924   [\\/]* | ?:[\\/]*)
17925   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17926   ;;
17927   *)
17928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17929 for as_dir in $PATH
17930 do
17931   IFS=$as_save_IFS
17932   test -z "$as_dir" && as_dir=.
17933     for ac_exec_ext in '' $ac_executable_extensions; do
17934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17935     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17937     break 2
17938   fi
17939 done
17940   done
17941 IFS=$as_save_IFS
17942 
17943   ;;
17944 esac
17945 fi
17946 HG=$ac_cv_path_HG
17947 if test -n "$HG"; then
17948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17949 $as_echo "$HG" >&6; }
17950 else
17951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17953 fi
17954 
17955 
17956         if test "x$HG" = x; then
17957           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17958         fi
17959       else
17960         # Otherwise we believe it is a complete path. Use it as it is.
17961         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17962 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17963         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17964 $as_echo_n "checking for HG... " >&6; }
17965         if test ! -x "$tool_specified"; then
17966           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17967 $as_echo "not found" >&6; }
17968           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17969         fi
17970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17971 $as_echo "$tool_specified" >&6; }
17972       fi
17973     fi
17974   fi
17975 
17976 
17977 
17978 
17979   # Publish this variable in the help.
17980 
17981 
17982   if test "x$STAT" = x; then
17983     # The variable is not set by user, try to locate tool using the code snippet
17984     for ac_prog in stat
17985 do
17986   # Extract the first word of "$ac_prog", so it can be a program name with args.
17987 set dummy $ac_prog; ac_word=$2
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17989 $as_echo_n "checking for $ac_word... " >&6; }
17990 if ${ac_cv_path_STAT+:} false; then :
17991   $as_echo_n "(cached) " >&6
17992 else
17993   case $STAT in
17994   [\\/]* | ?:[\\/]*)
17995   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17996   ;;
17997   *)
17998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17999 for as_dir in $PATH
18000 do
18001   IFS=$as_save_IFS
18002   test -z "$as_dir" && as_dir=.
18003     for ac_exec_ext in '' $ac_executable_extensions; do
18004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18005     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18007     break 2
18008   fi
18009 done
18010   done
18011 IFS=$as_save_IFS
18012 
18013   ;;
18014 esac
18015 fi
18016 STAT=$ac_cv_path_STAT
18017 if test -n "$STAT"; then
18018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18019 $as_echo "$STAT" >&6; }
18020 else
18021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18022 $as_echo "no" >&6; }
18023 fi
18024 
18025 
18026   test -n "$STAT" && break
18027 done
18028 
18029   else
18030     # The variable is set, but is it from the command line or the environment?
18031 
18032     # Try to remove the string !STAT! from our list.
18033     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18034     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18035       # If it failed, the variable was not from the command line. Ignore it,
18036       # but warn the user (except for BASH, which is always set by the calling BASH).
18037       if test "xSTAT" != xBASH; then
18038         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18039 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18040       fi
18041       # Try to locate tool using the code snippet
18042       for ac_prog in stat
18043 do
18044   # Extract the first word of "$ac_prog", so it can be a program name with args.
18045 set dummy $ac_prog; ac_word=$2
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18047 $as_echo_n "checking for $ac_word... " >&6; }
18048 if ${ac_cv_path_STAT+:} false; then :
18049   $as_echo_n "(cached) " >&6
18050 else
18051   case $STAT in
18052   [\\/]* | ?:[\\/]*)
18053   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18054   ;;
18055   *)
18056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18057 for as_dir in $PATH
18058 do
18059   IFS=$as_save_IFS
18060   test -z "$as_dir" && as_dir=.
18061     for ac_exec_ext in '' $ac_executable_extensions; do
18062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18063     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18065     break 2
18066   fi
18067 done
18068   done
18069 IFS=$as_save_IFS
18070 
18071   ;;
18072 esac
18073 fi
18074 STAT=$ac_cv_path_STAT
18075 if test -n "$STAT"; then
18076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18077 $as_echo "$STAT" >&6; }
18078 else
18079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080 $as_echo "no" >&6; }
18081 fi
18082 
18083 
18084   test -n "$STAT" && break
18085 done
18086 
18087     else
18088       # If it succeeded, then it was overridden by the user. We will use it
18089       # for the tool.
18090 
18091       # First remove it from the list of overridden variables, so we can test
18092       # for unknown variables in the end.
18093       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18094 
18095       # Check if the provided tool contains a complete path.
18096       tool_specified="$STAT"
18097       tool_basename="${tool_specified##*/}"
18098       if test "x$tool_basename" = "x$tool_specified"; then
18099         # A command without a complete path is provided, search $PATH.
18100         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18101 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18102         # Extract the first word of "$tool_basename", so it can be a program name with args.
18103 set dummy $tool_basename; ac_word=$2
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18105 $as_echo_n "checking for $ac_word... " >&6; }
18106 if ${ac_cv_path_STAT+:} false; then :
18107   $as_echo_n "(cached) " >&6
18108 else
18109   case $STAT in
18110   [\\/]* | ?:[\\/]*)
18111   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18112   ;;
18113   *)
18114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18115 for as_dir in $PATH
18116 do
18117   IFS=$as_save_IFS
18118   test -z "$as_dir" && as_dir=.
18119     for ac_exec_ext in '' $ac_executable_extensions; do
18120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18121     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18123     break 2
18124   fi
18125 done
18126   done
18127 IFS=$as_save_IFS
18128 
18129   ;;
18130 esac
18131 fi
18132 STAT=$ac_cv_path_STAT
18133 if test -n "$STAT"; then
18134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18135 $as_echo "$STAT" >&6; }
18136 else
18137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138 $as_echo "no" >&6; }
18139 fi
18140 
18141 
18142         if test "x$STAT" = x; then
18143           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18144         fi
18145       else
18146         # Otherwise we believe it is a complete path. Use it as it is.
18147         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18148 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18150 $as_echo_n "checking for STAT... " >&6; }
18151         if test ! -x "$tool_specified"; then
18152           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18153 $as_echo "not found" >&6; }
18154           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18155         fi
18156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18157 $as_echo "$tool_specified" >&6; }
18158       fi
18159     fi
18160   fi
18161 
18162 
18163 
18164 
18165   # Publish this variable in the help.
18166 
18167 
18168   if test "x$TIME" = x; then
18169     # The variable is not set by user, try to locate tool using the code snippet
18170     for ac_prog in time
18171 do
18172   # Extract the first word of "$ac_prog", so it can be a program name with args.
18173 set dummy $ac_prog; ac_word=$2
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18175 $as_echo_n "checking for $ac_word... " >&6; }
18176 if ${ac_cv_path_TIME+:} false; then :
18177   $as_echo_n "(cached) " >&6
18178 else
18179   case $TIME in
18180   [\\/]* | ?:[\\/]*)
18181   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18182   ;;
18183   *)
18184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185 for as_dir in $PATH
18186 do
18187   IFS=$as_save_IFS
18188   test -z "$as_dir" && as_dir=.
18189     for ac_exec_ext in '' $ac_executable_extensions; do
18190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18193     break 2
18194   fi
18195 done
18196   done
18197 IFS=$as_save_IFS
18198 
18199   ;;
18200 esac
18201 fi
18202 TIME=$ac_cv_path_TIME
18203 if test -n "$TIME"; then
18204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18205 $as_echo "$TIME" >&6; }
18206 else
18207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208 $as_echo "no" >&6; }
18209 fi
18210 
18211 
18212   test -n "$TIME" && break
18213 done
18214 
18215   else
18216     # The variable is set, but is it from the command line or the environment?
18217 
18218     # Try to remove the string !TIME! from our list.
18219     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18220     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18221       # If it failed, the variable was not from the command line. Ignore it,
18222       # but warn the user (except for BASH, which is always set by the calling BASH).
18223       if test "xTIME" != xBASH; then
18224         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18225 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18226       fi
18227       # Try to locate tool using the code snippet
18228       for ac_prog in time
18229 do
18230   # Extract the first word of "$ac_prog", so it can be a program name with args.
18231 set dummy $ac_prog; ac_word=$2
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18233 $as_echo_n "checking for $ac_word... " >&6; }
18234 if ${ac_cv_path_TIME+:} false; then :
18235   $as_echo_n "(cached) " >&6
18236 else
18237   case $TIME in
18238   [\\/]* | ?:[\\/]*)
18239   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18240   ;;
18241   *)
18242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18243 for as_dir in $PATH
18244 do
18245   IFS=$as_save_IFS
18246   test -z "$as_dir" && as_dir=.
18247     for ac_exec_ext in '' $ac_executable_extensions; do
18248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18249     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18251     break 2
18252   fi
18253 done
18254   done
18255 IFS=$as_save_IFS
18256 
18257   ;;
18258 esac
18259 fi
18260 TIME=$ac_cv_path_TIME
18261 if test -n "$TIME"; then
18262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18263 $as_echo "$TIME" >&6; }
18264 else
18265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18266 $as_echo "no" >&6; }
18267 fi
18268 
18269 
18270   test -n "$TIME" && break
18271 done
18272 
18273     else
18274       # If it succeeded, then it was overridden by the user. We will use it
18275       # for the tool.
18276 
18277       # First remove it from the list of overridden variables, so we can test
18278       # for unknown variables in the end.
18279       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18280 
18281       # Check if the provided tool contains a complete path.
18282       tool_specified="$TIME"
18283       tool_basename="${tool_specified##*/}"
18284       if test "x$tool_basename" = "x$tool_specified"; then
18285         # A command without a complete path is provided, search $PATH.
18286         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18287 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18288         # Extract the first word of "$tool_basename", so it can be a program name with args.
18289 set dummy $tool_basename; ac_word=$2
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18291 $as_echo_n "checking for $ac_word... " >&6; }
18292 if ${ac_cv_path_TIME+:} false; then :
18293   $as_echo_n "(cached) " >&6
18294 else
18295   case $TIME in
18296   [\\/]* | ?:[\\/]*)
18297   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18298   ;;
18299   *)
18300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18301 for as_dir in $PATH
18302 do
18303   IFS=$as_save_IFS
18304   test -z "$as_dir" && as_dir=.
18305     for ac_exec_ext in '' $ac_executable_extensions; do
18306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18307     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18309     break 2
18310   fi
18311 done
18312   done
18313 IFS=$as_save_IFS
18314 
18315   ;;
18316 esac
18317 fi
18318 TIME=$ac_cv_path_TIME
18319 if test -n "$TIME"; then
18320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18321 $as_echo "$TIME" >&6; }
18322 else
18323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324 $as_echo "no" >&6; }
18325 fi
18326 
18327 
18328         if test "x$TIME" = x; then
18329           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18330         fi
18331       else
18332         # Otherwise we believe it is a complete path. Use it as it is.
18333         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18334 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18335         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18336 $as_echo_n "checking for TIME... " >&6; }
18337         if test ! -x "$tool_specified"; then
18338           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18339 $as_echo "not found" >&6; }
18340           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18341         fi
18342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18343 $as_echo "$tool_specified" >&6; }
18344       fi
18345     fi
18346   fi
18347 
18348 
18349   # Check if it's GNU time
18350   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18351   if test "x$IS_GNU_TIME" != x; then
18352     IS_GNU_TIME=yes
18353   else
18354     IS_GNU_TIME=no
18355   fi
18356 
18357 
18358   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18359 
18360 
18361 
18362   # Publish this variable in the help.
18363 
18364 
18365   if test "x$COMM" = x; then
18366     # The variable is not set by user, try to locate tool using the code snippet
18367     for ac_prog in comm
18368 do
18369   # Extract the first word of "$ac_prog", so it can be a program name with args.
18370 set dummy $ac_prog; ac_word=$2
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18372 $as_echo_n "checking for $ac_word... " >&6; }
18373 if ${ac_cv_path_COMM+:} false; then :
18374   $as_echo_n "(cached) " >&6
18375 else
18376   case $COMM in
18377   [\\/]* | ?:[\\/]*)
18378   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18379   ;;
18380   *)
18381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18382 for as_dir in $PATH
18383 do
18384   IFS=$as_save_IFS
18385   test -z "$as_dir" && as_dir=.
18386     for ac_exec_ext in '' $ac_executable_extensions; do
18387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18388     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18390     break 2
18391   fi
18392 done
18393   done
18394 IFS=$as_save_IFS
18395 
18396   ;;
18397 esac
18398 fi
18399 COMM=$ac_cv_path_COMM
18400 if test -n "$COMM"; then
18401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18402 $as_echo "$COMM" >&6; }
18403 else
18404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18405 $as_echo "no" >&6; }
18406 fi
18407 
18408 
18409   test -n "$COMM" && break
18410 done
18411 
18412   else
18413     # The variable is set, but is it from the command line or the environment?
18414 
18415     # Try to remove the string !COMM! from our list.
18416     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18417     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18418       # If it failed, the variable was not from the command line. Ignore it,
18419       # but warn the user (except for BASH, which is always set by the calling BASH).
18420       if test "xCOMM" != xBASH; then
18421         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18422 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18423       fi
18424       # Try to locate tool using the code snippet
18425       for ac_prog in comm
18426 do
18427   # Extract the first word of "$ac_prog", so it can be a program name with args.
18428 set dummy $ac_prog; ac_word=$2
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18430 $as_echo_n "checking for $ac_word... " >&6; }
18431 if ${ac_cv_path_COMM+:} false; then :
18432   $as_echo_n "(cached) " >&6
18433 else
18434   case $COMM in
18435   [\\/]* | ?:[\\/]*)
18436   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18437   ;;
18438   *)
18439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18440 for as_dir in $PATH
18441 do
18442   IFS=$as_save_IFS
18443   test -z "$as_dir" && as_dir=.
18444     for ac_exec_ext in '' $ac_executable_extensions; do
18445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18446     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18448     break 2
18449   fi
18450 done
18451   done
18452 IFS=$as_save_IFS
18453 
18454   ;;
18455 esac
18456 fi
18457 COMM=$ac_cv_path_COMM
18458 if test -n "$COMM"; then
18459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18460 $as_echo "$COMM" >&6; }
18461 else
18462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18463 $as_echo "no" >&6; }
18464 fi
18465 
18466 
18467   test -n "$COMM" && break
18468 done
18469 
18470     else
18471       # If it succeeded, then it was overridden by the user. We will use it
18472       # for the tool.
18473 
18474       # First remove it from the list of overridden variables, so we can test
18475       # for unknown variables in the end.
18476       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18477 
18478       # Check if the provided tool contains a complete path.
18479       tool_specified="$COMM"
18480       tool_basename="${tool_specified##*/}"
18481       if test "x$tool_basename" = "x$tool_specified"; then
18482         # A command without a complete path is provided, search $PATH.
18483         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18484 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18485         # Extract the first word of "$tool_basename", so it can be a program name with args.
18486 set dummy $tool_basename; ac_word=$2
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18488 $as_echo_n "checking for $ac_word... " >&6; }
18489 if ${ac_cv_path_COMM+:} false; then :
18490   $as_echo_n "(cached) " >&6
18491 else
18492   case $COMM in
18493   [\\/]* | ?:[\\/]*)
18494   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18495   ;;
18496   *)
18497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18498 for as_dir in $PATH
18499 do
18500   IFS=$as_save_IFS
18501   test -z "$as_dir" && as_dir=.
18502     for ac_exec_ext in '' $ac_executable_extensions; do
18503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18504     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18506     break 2
18507   fi
18508 done
18509   done
18510 IFS=$as_save_IFS
18511 
18512   ;;
18513 esac
18514 fi
18515 COMM=$ac_cv_path_COMM
18516 if test -n "$COMM"; then
18517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18518 $as_echo "$COMM" >&6; }
18519 else
18520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18521 $as_echo "no" >&6; }
18522 fi
18523 
18524 
18525         if test "x$COMM" = x; then
18526           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18527         fi
18528       else
18529         # Otherwise we believe it is a complete path. Use it as it is.
18530         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18531 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18532         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18533 $as_echo_n "checking for COMM... " >&6; }
18534         if test ! -x "$tool_specified"; then
18535           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18536 $as_echo "not found" >&6; }
18537           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18538         fi
18539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18540 $as_echo "$tool_specified" >&6; }
18541       fi
18542     fi
18543   fi
18544 
18545 
18546 
18547   if test "x$COMM" = x; then
18548     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18549   fi
18550 
18551 
18552   fi
18553 
18554   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18555 
18556 
18557 
18558   # Publish this variable in the help.
18559 
18560 
18561   if test "x$DSYMUTIL" = x; then
18562     # The variable is not set by user, try to locate tool using the code snippet
18563     for ac_prog in dsymutil
18564 do
18565   # Extract the first word of "$ac_prog", so it can be a program name with args.
18566 set dummy $ac_prog; ac_word=$2
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18568 $as_echo_n "checking for $ac_word... " >&6; }
18569 if ${ac_cv_path_DSYMUTIL+:} false; then :
18570   $as_echo_n "(cached) " >&6
18571 else
18572   case $DSYMUTIL in
18573   [\\/]* | ?:[\\/]*)
18574   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18575   ;;
18576   *)
18577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18578 for as_dir in $PATH
18579 do
18580   IFS=$as_save_IFS
18581   test -z "$as_dir" && as_dir=.
18582     for ac_exec_ext in '' $ac_executable_extensions; do
18583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18584     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18586     break 2
18587   fi
18588 done
18589   done
18590 IFS=$as_save_IFS
18591 
18592   ;;
18593 esac
18594 fi
18595 DSYMUTIL=$ac_cv_path_DSYMUTIL
18596 if test -n "$DSYMUTIL"; then
18597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18598 $as_echo "$DSYMUTIL" >&6; }
18599 else
18600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18601 $as_echo "no" >&6; }
18602 fi
18603 
18604 
18605   test -n "$DSYMUTIL" && break
18606 done
18607 
18608   else
18609     # The variable is set, but is it from the command line or the environment?
18610 
18611     # Try to remove the string !DSYMUTIL! from our list.
18612     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18613     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18614       # If it failed, the variable was not from the command line. Ignore it,
18615       # but warn the user (except for BASH, which is always set by the calling BASH).
18616       if test "xDSYMUTIL" != xBASH; then
18617         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18618 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18619       fi
18620       # Try to locate tool using the code snippet
18621       for ac_prog in dsymutil
18622 do
18623   # Extract the first word of "$ac_prog", so it can be a program name with args.
18624 set dummy $ac_prog; ac_word=$2
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18626 $as_echo_n "checking for $ac_word... " >&6; }
18627 if ${ac_cv_path_DSYMUTIL+:} false; then :
18628   $as_echo_n "(cached) " >&6
18629 else
18630   case $DSYMUTIL in
18631   [\\/]* | ?:[\\/]*)
18632   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18633   ;;
18634   *)
18635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18636 for as_dir in $PATH
18637 do
18638   IFS=$as_save_IFS
18639   test -z "$as_dir" && as_dir=.
18640     for ac_exec_ext in '' $ac_executable_extensions; do
18641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18642     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18644     break 2
18645   fi
18646 done
18647   done
18648 IFS=$as_save_IFS
18649 
18650   ;;
18651 esac
18652 fi
18653 DSYMUTIL=$ac_cv_path_DSYMUTIL
18654 if test -n "$DSYMUTIL"; then
18655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18656 $as_echo "$DSYMUTIL" >&6; }
18657 else
18658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18659 $as_echo "no" >&6; }
18660 fi
18661 
18662 
18663   test -n "$DSYMUTIL" && break
18664 done
18665 
18666     else
18667       # If it succeeded, then it was overridden by the user. We will use it
18668       # for the tool.
18669 
18670       # First remove it from the list of overridden variables, so we can test
18671       # for unknown variables in the end.
18672       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18673 
18674       # Check if the provided tool contains a complete path.
18675       tool_specified="$DSYMUTIL"
18676       tool_basename="${tool_specified##*/}"
18677       if test "x$tool_basename" = "x$tool_specified"; then
18678         # A command without a complete path is provided, search $PATH.
18679         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18680 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18681         # Extract the first word of "$tool_basename", so it can be a program name with args.
18682 set dummy $tool_basename; ac_word=$2
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18684 $as_echo_n "checking for $ac_word... " >&6; }
18685 if ${ac_cv_path_DSYMUTIL+:} false; then :
18686   $as_echo_n "(cached) " >&6
18687 else
18688   case $DSYMUTIL in
18689   [\\/]* | ?:[\\/]*)
18690   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18691   ;;
18692   *)
18693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18694 for as_dir in $PATH
18695 do
18696   IFS=$as_save_IFS
18697   test -z "$as_dir" && as_dir=.
18698     for ac_exec_ext in '' $ac_executable_extensions; do
18699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18700     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18702     break 2
18703   fi
18704 done
18705   done
18706 IFS=$as_save_IFS
18707 
18708   ;;
18709 esac
18710 fi
18711 DSYMUTIL=$ac_cv_path_DSYMUTIL
18712 if test -n "$DSYMUTIL"; then
18713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18714 $as_echo "$DSYMUTIL" >&6; }
18715 else
18716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717 $as_echo "no" >&6; }
18718 fi
18719 
18720 
18721         if test "x$DSYMUTIL" = x; then
18722           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18723         fi
18724       else
18725         # Otherwise we believe it is a complete path. Use it as it is.
18726         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18727 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18729 $as_echo_n "checking for DSYMUTIL... " >&6; }
18730         if test ! -x "$tool_specified"; then
18731           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18732 $as_echo "not found" >&6; }
18733           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18734         fi
18735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18736 $as_echo "$tool_specified" >&6; }
18737       fi
18738     fi
18739   fi
18740 
18741 
18742 
18743   if test "x$DSYMUTIL" = x; then
18744     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18745   fi
18746 
18747 
18748 
18749 
18750 
18751   # Publish this variable in the help.
18752 
18753 
18754   if test "x$XATTR" = x; then
18755     # The variable is not set by user, try to locate tool using the code snippet
18756     for ac_prog in xattr
18757 do
18758   # Extract the first word of "$ac_prog", so it can be a program name with args.
18759 set dummy $ac_prog; ac_word=$2
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18761 $as_echo_n "checking for $ac_word... " >&6; }
18762 if ${ac_cv_path_XATTR+:} false; then :
18763   $as_echo_n "(cached) " >&6
18764 else
18765   case $XATTR in
18766   [\\/]* | ?:[\\/]*)
18767   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18768   ;;
18769   *)
18770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18771 for as_dir in $PATH
18772 do
18773   IFS=$as_save_IFS
18774   test -z "$as_dir" && as_dir=.
18775     for ac_exec_ext in '' $ac_executable_extensions; do
18776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18777     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18779     break 2
18780   fi
18781 done
18782   done
18783 IFS=$as_save_IFS
18784 
18785   ;;
18786 esac
18787 fi
18788 XATTR=$ac_cv_path_XATTR
18789 if test -n "$XATTR"; then
18790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18791 $as_echo "$XATTR" >&6; }
18792 else
18793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794 $as_echo "no" >&6; }
18795 fi
18796 
18797 
18798   test -n "$XATTR" && break
18799 done
18800 
18801   else
18802     # The variable is set, but is it from the command line or the environment?
18803 
18804     # Try to remove the string !XATTR! from our list.
18805     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18806     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18807       # If it failed, the variable was not from the command line. Ignore it,
18808       # but warn the user (except for BASH, which is always set by the calling BASH).
18809       if test "xXATTR" != xBASH; then
18810         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18811 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18812       fi
18813       # Try to locate tool using the code snippet
18814       for ac_prog in xattr
18815 do
18816   # Extract the first word of "$ac_prog", so it can be a program name with args.
18817 set dummy $ac_prog; ac_word=$2
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18819 $as_echo_n "checking for $ac_word... " >&6; }
18820 if ${ac_cv_path_XATTR+:} false; then :
18821   $as_echo_n "(cached) " >&6
18822 else
18823   case $XATTR in
18824   [\\/]* | ?:[\\/]*)
18825   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18826   ;;
18827   *)
18828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829 for as_dir in $PATH
18830 do
18831   IFS=$as_save_IFS
18832   test -z "$as_dir" && as_dir=.
18833     for ac_exec_ext in '' $ac_executable_extensions; do
18834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18837     break 2
18838   fi
18839 done
18840   done
18841 IFS=$as_save_IFS
18842 
18843   ;;
18844 esac
18845 fi
18846 XATTR=$ac_cv_path_XATTR
18847 if test -n "$XATTR"; then
18848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18849 $as_echo "$XATTR" >&6; }
18850 else
18851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18852 $as_echo "no" >&6; }
18853 fi
18854 
18855 
18856   test -n "$XATTR" && break
18857 done
18858 
18859     else
18860       # If it succeeded, then it was overridden by the user. We will use it
18861       # for the tool.
18862 
18863       # First remove it from the list of overridden variables, so we can test
18864       # for unknown variables in the end.
18865       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18866 
18867       # Check if the provided tool contains a complete path.
18868       tool_specified="$XATTR"
18869       tool_basename="${tool_specified##*/}"
18870       if test "x$tool_basename" = "x$tool_specified"; then
18871         # A command without a complete path is provided, search $PATH.
18872         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18873 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18874         # Extract the first word of "$tool_basename", so it can be a program name with args.
18875 set dummy $tool_basename; ac_word=$2
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18877 $as_echo_n "checking for $ac_word... " >&6; }
18878 if ${ac_cv_path_XATTR+:} false; then :
18879   $as_echo_n "(cached) " >&6
18880 else
18881   case $XATTR in
18882   [\\/]* | ?:[\\/]*)
18883   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18884   ;;
18885   *)
18886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18887 for as_dir in $PATH
18888 do
18889   IFS=$as_save_IFS
18890   test -z "$as_dir" && as_dir=.
18891     for ac_exec_ext in '' $ac_executable_extensions; do
18892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18893     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18895     break 2
18896   fi
18897 done
18898   done
18899 IFS=$as_save_IFS
18900 
18901   ;;
18902 esac
18903 fi
18904 XATTR=$ac_cv_path_XATTR
18905 if test -n "$XATTR"; then
18906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18907 $as_echo "$XATTR" >&6; }
18908 else
18909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18910 $as_echo "no" >&6; }
18911 fi
18912 
18913 
18914         if test "x$XATTR" = x; then
18915           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18916         fi
18917       else
18918         # Otherwise we believe it is a complete path. Use it as it is.
18919         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18920 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18922 $as_echo_n "checking for XATTR... " >&6; }
18923         if test ! -x "$tool_specified"; then
18924           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18925 $as_echo "not found" >&6; }
18926           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18927         fi
18928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18929 $as_echo "$tool_specified" >&6; }
18930       fi
18931     fi
18932   fi
18933 
18934 
18935 
18936   if test "x$XATTR" = x; then
18937     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18938   fi
18939 
18940 
18941 
18942 
18943   # Publish this variable in the help.
18944 
18945 
18946   if test "x$CODESIGN" = x; then
18947     # The variable is not set by user, try to locate tool using the code snippet
18948     for ac_prog in codesign
18949 do
18950   # Extract the first word of "$ac_prog", so it can be a program name with args.
18951 set dummy $ac_prog; ac_word=$2
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18953 $as_echo_n "checking for $ac_word... " >&6; }
18954 if ${ac_cv_path_CODESIGN+:} false; then :
18955   $as_echo_n "(cached) " >&6
18956 else
18957   case $CODESIGN in
18958   [\\/]* | ?:[\\/]*)
18959   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18960   ;;
18961   *)
18962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18963 for as_dir in $PATH
18964 do
18965   IFS=$as_save_IFS
18966   test -z "$as_dir" && as_dir=.
18967     for ac_exec_ext in '' $ac_executable_extensions; do
18968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18969     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18971     break 2
18972   fi
18973 done
18974   done
18975 IFS=$as_save_IFS
18976 
18977   ;;
18978 esac
18979 fi
18980 CODESIGN=$ac_cv_path_CODESIGN
18981 if test -n "$CODESIGN"; then
18982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18983 $as_echo "$CODESIGN" >&6; }
18984 else
18985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18986 $as_echo "no" >&6; }
18987 fi
18988 
18989 
18990   test -n "$CODESIGN" && break
18991 done
18992 
18993   else
18994     # The variable is set, but is it from the command line or the environment?
18995 
18996     # Try to remove the string !CODESIGN! from our list.
18997     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18998     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18999       # If it failed, the variable was not from the command line. Ignore it,
19000       # but warn the user (except for BASH, which is always set by the calling BASH).
19001       if test "xCODESIGN" != xBASH; then
19002         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19003 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19004       fi
19005       # Try to locate tool using the code snippet
19006       for ac_prog in codesign
19007 do
19008   # Extract the first word of "$ac_prog", so it can be a program name with args.
19009 set dummy $ac_prog; ac_word=$2
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19011 $as_echo_n "checking for $ac_word... " >&6; }
19012 if ${ac_cv_path_CODESIGN+:} false; then :
19013   $as_echo_n "(cached) " >&6
19014 else
19015   case $CODESIGN in
19016   [\\/]* | ?:[\\/]*)
19017   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19018   ;;
19019   *)
19020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021 for as_dir in $PATH
19022 do
19023   IFS=$as_save_IFS
19024   test -z "$as_dir" && as_dir=.
19025     for ac_exec_ext in '' $ac_executable_extensions; do
19026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19029     break 2
19030   fi
19031 done
19032   done
19033 IFS=$as_save_IFS
19034 
19035   ;;
19036 esac
19037 fi
19038 CODESIGN=$ac_cv_path_CODESIGN
19039 if test -n "$CODESIGN"; then
19040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19041 $as_echo "$CODESIGN" >&6; }
19042 else
19043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19044 $as_echo "no" >&6; }
19045 fi
19046 
19047 
19048   test -n "$CODESIGN" && break
19049 done
19050 
19051     else
19052       # If it succeeded, then it was overridden by the user. We will use it
19053       # for the tool.
19054 
19055       # First remove it from the list of overridden variables, so we can test
19056       # for unknown variables in the end.
19057       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19058 
19059       # Check if the provided tool contains a complete path.
19060       tool_specified="$CODESIGN"
19061       tool_basename="${tool_specified##*/}"
19062       if test "x$tool_basename" = "x$tool_specified"; then
19063         # A command without a complete path is provided, search $PATH.
19064         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19065 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19066         # Extract the first word of "$tool_basename", so it can be a program name with args.
19067 set dummy $tool_basename; ac_word=$2
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19069 $as_echo_n "checking for $ac_word... " >&6; }
19070 if ${ac_cv_path_CODESIGN+:} false; then :
19071   $as_echo_n "(cached) " >&6
19072 else
19073   case $CODESIGN in
19074   [\\/]* | ?:[\\/]*)
19075   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19076   ;;
19077   *)
19078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19079 for as_dir in $PATH
19080 do
19081   IFS=$as_save_IFS
19082   test -z "$as_dir" && as_dir=.
19083     for ac_exec_ext in '' $ac_executable_extensions; do
19084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19085     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19087     break 2
19088   fi
19089 done
19090   done
19091 IFS=$as_save_IFS
19092 
19093   ;;
19094 esac
19095 fi
19096 CODESIGN=$ac_cv_path_CODESIGN
19097 if test -n "$CODESIGN"; then
19098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19099 $as_echo "$CODESIGN" >&6; }
19100 else
19101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19102 $as_echo "no" >&6; }
19103 fi
19104 
19105 
19106         if test "x$CODESIGN" = x; then
19107           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19108         fi
19109       else
19110         # Otherwise we believe it is a complete path. Use it as it is.
19111         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19112 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19114 $as_echo_n "checking for CODESIGN... " >&6; }
19115         if test ! -x "$tool_specified"; then
19116           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19117 $as_echo "not found" >&6; }
19118           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19119         fi
19120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19121 $as_echo "$tool_specified" >&6; }
19122       fi
19123     fi
19124   fi
19125 
19126 
19127     if test "x$CODESIGN" != "x"; then
19128       # Verify that the openjdk_codesign certificate is present
19129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19130 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19131       rm -f codesign-testfile
19132       touch codesign-testfile
19133       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19134       rm -f codesign-testfile
19135       if test "x$CODESIGN" = x; then
19136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19138       else
19139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19140 $as_echo "yes" >&6; }
19141       fi
19142     fi
19143   fi
19144 
19145 
19146 # Check if pkg-config is available.
19147 
19148 
19149 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19150         if test -n "$ac_tool_prefix"; then
19151   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19152 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19154 $as_echo_n "checking for $ac_word... " >&6; }
19155 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19156   $as_echo_n "(cached) " >&6
19157 else
19158   case $PKG_CONFIG in
19159   [\\/]* | ?:[\\/]*)
19160   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19161   ;;
19162   *)
19163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19164 for as_dir in $PATH
19165 do
19166   IFS=$as_save_IFS
19167   test -z "$as_dir" && as_dir=.
19168     for ac_exec_ext in '' $ac_executable_extensions; do
19169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19170     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19172     break 2
19173   fi
19174 done
19175   done
19176 IFS=$as_save_IFS
19177 
19178   ;;
19179 esac
19180 fi
19181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19182 if test -n "$PKG_CONFIG"; then
19183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19184 $as_echo "$PKG_CONFIG" >&6; }
19185 else
19186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19187 $as_echo "no" >&6; }
19188 fi
19189 
19190 
19191 fi
19192 if test -z "$ac_cv_path_PKG_CONFIG"; then
19193   ac_pt_PKG_CONFIG=$PKG_CONFIG
19194   # Extract the first word of "pkg-config", so it can be a program name with args.
19195 set dummy pkg-config; ac_word=$2
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19197 $as_echo_n "checking for $ac_word... " >&6; }
19198 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19199   $as_echo_n "(cached) " >&6
19200 else
19201   case $ac_pt_PKG_CONFIG in
19202   [\\/]* | ?:[\\/]*)
19203   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19204   ;;
19205   *)
19206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19207 for as_dir in $PATH
19208 do
19209   IFS=$as_save_IFS
19210   test -z "$as_dir" && as_dir=.
19211     for ac_exec_ext in '' $ac_executable_extensions; do
19212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19213     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19215     break 2
19216   fi
19217 done
19218   done
19219 IFS=$as_save_IFS
19220 
19221   ;;
19222 esac
19223 fi
19224 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19225 if test -n "$ac_pt_PKG_CONFIG"; then
19226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19227 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19228 else
19229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19231 fi
19232 
19233   if test "x$ac_pt_PKG_CONFIG" = x; then
19234     PKG_CONFIG=""
19235   else
19236     case $cross_compiling:$ac_tool_warned in
19237 yes:)
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19240 ac_tool_warned=yes ;;
19241 esac
19242     PKG_CONFIG=$ac_pt_PKG_CONFIG
19243   fi
19244 else
19245   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19246 fi
19247 
19248 fi
19249 if test -n "$PKG_CONFIG"; then
19250         _pkg_min_version=0.9.0
19251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19252 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19253         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19254                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19256         else
19257                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258 $as_echo "no" >&6; }
19259                 PKG_CONFIG=""
19260         fi
19261 
19262 fi
19263 
19264 # After basic tools have been setup, we can check build os specific details.
19265 
19266   ###############################################################################
19267 
19268   # Note that this is the build platform OS version!
19269 
19270   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19271   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19272   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19273   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19274 
19275 
19276 
19277 
19278 
19279 # Setup builddeps, for automatic downloading of tools we need.
19280 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19281 # boot-jdk setup, but we need to have basic tools setup first.
19282 
19283 
19284 # Check whether --with-builddeps-conf was given.
19285 if test "${with_builddeps_conf+set}" = set; then :
19286   withval=$with_builddeps_conf;
19287 fi
19288 
19289 
19290 
19291 # Check whether --with-builddeps-server was given.
19292 if test "${with_builddeps_server+set}" = set; then :
19293   withval=$with_builddeps_server;
19294 fi
19295 
19296 
19297 
19298 # Check whether --with-builddeps-dir was given.
19299 if test "${with_builddeps_dir+set}" = set; then :
19300   withval=$with_builddeps_dir;
19301 else
19302   with_builddeps_dir=/localhome/builddeps
19303 fi
19304 
19305 
19306 
19307 # Check whether --with-builddeps-group was given.
19308 if test "${with_builddeps_group+set}" = set; then :
19309   withval=$with_builddeps_group;
19310 fi
19311 
19312 
19313 
19314 
19315   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19316     if test "x$with_builddeps_conf" != x; then
19317       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19318 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19319       builddepsfile=$with_builddeps_conf
19320       if test -s $builddepsfile; then
19321         . $builddepsfile
19322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19323 $as_echo "loaded!" >&6; }
19324       else
19325         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19326       fi
19327     else
19328       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19329 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19330       builddepsfile=`mktemp`
19331       touch $builddepsfile
19332       # Put all found confs into a single file.
19333       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19334       # Source the file to acquire the variables
19335       if test -s $builddepsfile; then
19336         . $builddepsfile
19337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19338 $as_echo "found at least one!" >&6; }
19339       else
19340         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19341       fi
19342     fi
19343     # Create build and target names that use _ instead of "-" and ".".
19344     # This is necessary to use them in variable names.
19345     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19346     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19347     # Extract rewrite information for build and target
19348     eval rewritten_build=\${REWRITE_${build_var}}
19349     if test "x$rewritten_build" = x; then
19350       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19351       echo Build stays the same $rewritten_build
19352     else
19353       echo Rewriting build for builddeps into $rewritten_build
19354     fi
19355     eval rewritten_target=\${REWRITE_${target_var}}
19356     if test "x$rewritten_target" = x; then
19357       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19358       echo Target stays the same $rewritten_target
19359     else
19360       echo Rewriting target for builddeps into $rewritten_target
19361     fi
19362     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19363     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19364   fi
19365   for ac_prog in 7z unzip
19366 do
19367   # Extract the first word of "$ac_prog", so it can be a program name with args.
19368 set dummy $ac_prog; ac_word=$2
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19370 $as_echo_n "checking for $ac_word... " >&6; }
19371 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19372   $as_echo_n "(cached) " >&6
19373 else
19374   if test -n "$BDEPS_UNZIP"; then
19375   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19376 else
19377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19378 for as_dir in $PATH
19379 do
19380   IFS=$as_save_IFS
19381   test -z "$as_dir" && as_dir=.
19382     for ac_exec_ext in '' $ac_executable_extensions; do
19383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19384     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19386     break 2
19387   fi
19388 done
19389   done
19390 IFS=$as_save_IFS
19391 
19392 fi
19393 fi
19394 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19395 if test -n "$BDEPS_UNZIP"; then
19396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19397 $as_echo "$BDEPS_UNZIP" >&6; }
19398 else
19399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19400 $as_echo "no" >&6; }
19401 fi
19402 
19403 
19404   test -n "$BDEPS_UNZIP" && break
19405 done
19406 
19407   if test "x$BDEPS_UNZIP" = x7z; then
19408     BDEPS_UNZIP="7z x"
19409   fi
19410 
19411   for ac_prog in wget lftp ftp
19412 do
19413   # Extract the first word of "$ac_prog", so it can be a program name with args.
19414 set dummy $ac_prog; ac_word=$2
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19416 $as_echo_n "checking for $ac_word... " >&6; }
19417 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19418   $as_echo_n "(cached) " >&6
19419 else
19420   if test -n "$BDEPS_FTP"; then
19421   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19422 else
19423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19424 for as_dir in $PATH
19425 do
19426   IFS=$as_save_IFS
19427   test -z "$as_dir" && as_dir=.
19428     for ac_exec_ext in '' $ac_executable_extensions; do
19429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19430     ac_cv_prog_BDEPS_FTP="$ac_prog"
19431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19432     break 2
19433   fi
19434 done
19435   done
19436 IFS=$as_save_IFS
19437 
19438 fi
19439 fi
19440 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19441 if test -n "$BDEPS_FTP"; then
19442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19443 $as_echo "$BDEPS_FTP" >&6; }
19444 else
19445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19446 $as_echo "no" >&6; }
19447 fi
19448 
19449 
19450   test -n "$BDEPS_FTP" && break
19451 done
19452 
19453 
19454 
19455 ###############################################################################
19456 #
19457 # Determine OpenJDK variants, options and version numbers.
19458 #
19459 ###############################################################################
19460 
19461 # We need build & target for this.
19462 
19463 
19464   ###############################################################################
19465   #
19466   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19467   # We always build headless support.
19468   #
19469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19470 $as_echo_n "checking headful support... " >&6; }
19471   # Check whether --enable-headful was given.
19472 if test "${enable_headful+set}" = set; then :
19473   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19474 else
19475   SUPPORT_HEADFUL=yes
19476 fi
19477 
19478 
19479   SUPPORT_HEADLESS=yes
19480   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19481 
19482   if test "x$SUPPORT_HEADFUL" = xyes; then
19483     # We are building both headful and headless.
19484     headful_msg="include support for both headful and headless"
19485   fi
19486 
19487   if test "x$SUPPORT_HEADFUL" = xno; then
19488     # Thus we are building headless only.
19489     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19490     headful_msg="headless only"
19491   fi
19492 
19493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19494 $as_echo "$headful_msg" >&6; }
19495 
19496 
19497 
19498 
19499 
19500   # Control wether Hotspot runs Queens test after build.
19501   # Check whether --enable-hotspot-test-in-build was given.
19502 if test "${enable_hotspot_test_in_build+set}" = set; then :
19503   enableval=$enable_hotspot_test_in_build;
19504 else
19505   enable_hotspot_test_in_build=no
19506 fi
19507 
19508   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19509     TEST_IN_BUILD=true
19510   else
19511     TEST_IN_BUILD=false
19512   fi
19513 
19514 
19515   ###############################################################################
19516   #
19517   # Choose cacerts source file
19518   #
19519 
19520 # Check whether --with-cacerts-file was given.
19521 if test "${with_cacerts_file+set}" = set; then :
19522   withval=$with_cacerts_file;
19523 fi
19524 
19525   if test "x$with_cacerts_file" != x; then
19526     CACERTS_FILE=$with_cacerts_file
19527   else
19528     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19529   fi
19530 
19531 
19532   ###############################################################################
19533   #
19534   # Enable or disable unlimited crypto
19535   #
19536   # Check whether --enable-unlimited-crypto was given.
19537 if test "${enable_unlimited_crypto+set}" = set; then :
19538   enableval=$enable_unlimited_crypto;
19539 else
19540   enable_unlimited_crypto=no
19541 fi
19542 
19543   if test "x$enable_unlimited_crypto" = "xyes"; then
19544     UNLIMITED_CRYPTO=true
19545   else
19546     UNLIMITED_CRYPTO=false
19547   fi
19548 
19549 
19550   ###############################################################################
19551   #
19552   # Enable or disable the elliptic curve crypto implementation
19553   #
19554 
19555 
19556   ###############################################################################
19557   #
19558   # --enable-rmiconnector-iiop
19559   #
19560   # Check whether --enable-rmiconnector-iiop was given.
19561 if test "${enable_rmiconnector_iiop+set}" = set; then :
19562   enableval=$enable_rmiconnector_iiop;
19563 fi
19564 
19565   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19566     RMICONNECTOR_IIOP=true
19567   else
19568     RMICONNECTOR_IIOP=false
19569   fi
19570 
19571 
19572   ###############################################################################
19573   #
19574   # Compress jars
19575   #
19576   COMPRESS_JARS=false
19577 
19578 
19579 
19580 
19581   # Source the version numbers
19582   . $AUTOCONF_DIR/version-numbers
19583 
19584   # Get the settings from parameters
19585 
19586 # Check whether --with-milestone was given.
19587 if test "${with_milestone+set}" = set; then :
19588   withval=$with_milestone;
19589 fi
19590 
19591   if test "x$with_milestone" = xyes; then
19592     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19593   elif test "x$with_milestone" != x; then
19594     MILESTONE="$with_milestone"
19595   fi
19596   if test "x$MILESTONE" = x; then
19597     MILESTONE=internal
19598   fi
19599 
19600 
19601 # Check whether --with-update-version was given.
19602 if test "${with_update_version+set}" = set; then :
19603   withval=$with_update_version;
19604 fi
19605 
19606   if test "x$with_update_version" = xyes; then
19607     as_fn_error $? "Update version must have a value" "$LINENO" 5
19608   elif test "x$with_update_version" != x; then
19609     JDK_UPDATE_VERSION="$with_update_version"
19610     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19611     # to a bug in expr (which reduces it to just X). To work around this, we
19612     # always add a 0 to one digit update versions.
19613     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19614       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19615     fi
19616   fi
19617 
19618 
19619 # Check whether --with-user-release-suffix was given.
19620 if test "${with_user_release_suffix+set}" = set; then :
19621   withval=$with_user_release_suffix;
19622 fi
19623 
19624   if test "x$with_user_release_suffix" = xyes; then
19625     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19626   elif test "x$with_user_release_suffix" != x; then
19627     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19628   fi
19629 
19630 
19631 # Check whether --with-build-number was given.
19632 if test "${with_build_number+set}" = set; then :
19633   withval=$with_build_number;
19634 fi
19635 
19636   if test "x$with_build_number" = xyes; then
19637     as_fn_error $? "Build number must have a value" "$LINENO" 5
19638   elif test "x$with_build_number" != x; then
19639     JDK_BUILD_NUMBER="$with_build_number"
19640   fi
19641   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19642   if test "x$JDK_BUILD_NUMBER" = x; then
19643     JDK_BUILD_NUMBER=b00
19644     if test "x$USER_RELEASE_SUFFIX" = x; then
19645       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19646       # Avoid [:alnum:] since it depends on the locale.
19647       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19648       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19649     fi
19650   fi
19651 
19652   # Now set the JDK version, milestone, build number etc.
19653 
19654 
19655 
19656 
19657 
19658 
19659 
19660 
19661 
19662 
19663 
19664 
19665 
19666 
19667 
19668   COPYRIGHT_YEAR=`date +'%Y'`
19669 
19670 
19671   if test "x$JDK_UPDATE_VERSION" != x; then
19672     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19673   else
19674     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19675   fi
19676 
19677 
19678   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19679 
19680 
19681 
19682 ###############################################################################
19683 #
19684 # Setup BootJDK, used to bootstrap the build.
19685 #
19686 ###############################################################################
19687 
19688 
19689   BOOT_JDK_FOUND=no
19690 
19691 # Check whether --with-boot-jdk was given.
19692 if test "${with_boot_jdk+set}" = set; then :
19693   withval=$with_boot_jdk;
19694 fi
19695 
19696 
19697   # We look for the Boot JDK through various means, going from more certain to
19698   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19699   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19700   # must check if this is indeed valid; otherwise we'll continue looking.
19701 
19702   # Test: Is bootjdk explicitely set by command line arguments?
19703 
19704   if test "x$BOOT_JDK_FOUND" = xno; then
19705     # Now execute the test
19706 
19707   if test "x$with_boot_jdk" != x; then
19708     BOOT_JDK=$with_boot_jdk
19709     BOOT_JDK_FOUND=maybe
19710     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19711 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19712   fi
19713 
19714 
19715     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19716     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19717       # Do we have a bin/java?
19718       if test ! -x "$BOOT_JDK/bin/java"; then
19719         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19721         BOOT_JDK_FOUND=no
19722       else
19723         # Do we have a bin/javac?
19724         if test ! -x "$BOOT_JDK/bin/javac"; then
19725           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19726 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19727           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19728 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19729           BOOT_JDK_FOUND=no
19730         else
19731           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19732           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19733             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19735             BOOT_JDK_FOUND=no
19736           else
19737             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19738             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19739 
19740             # Extra M4 quote needed to protect [] in grep expression.
19741             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19742             if test "x$FOUND_CORRECT_VERSION" = x; then
19743               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19745               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19746 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19747               BOOT_JDK_FOUND=no
19748             else
19749               # We're done! :-)
19750               BOOT_JDK_FOUND=yes
19751 
19752   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19753 
19754   # Input might be given as Windows format, start by converting to
19755   # unix format.
19756   path="$BOOT_JDK"
19757   new_path=`$CYGPATH -u "$path"`
19758 
19759   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19760   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19761   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19762   # "foo.exe" is OK but "foo" is an error.
19763   #
19764   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19765   # It is also a way to make sure we got the proper file name for the real test later on.
19766   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19767   if test "x$test_shortpath" = x; then
19768     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19770     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19771   fi
19772 
19773   # Call helper function which possibly converts this using DOS-style short mode.
19774   # If so, the updated path is stored in $new_path.
19775 
19776   input_path="$new_path"
19777   # Check if we need to convert this using DOS-style short mode. If the path
19778   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19779   # take no chances and rewrite it.
19780   # Note: m4 eats our [], so we need to use [ and ] instead.
19781   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19782   if test "x$has_forbidden_chars" != x; then
19783     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19784     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19785     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19786     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19787       # Going to short mode and back again did indeed matter. Since short mode is
19788       # case insensitive, let's make it lowercase to improve readability.
19789       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19790       # Now convert it back to Unix-stile (cygpath)
19791       input_path=`$CYGPATH -u "$shortmode_path"`
19792       new_path="$input_path"
19793     fi
19794   fi
19795 
19796   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19797   if test "x$test_cygdrive_prefix" = x; then
19798     # As a simple fix, exclude /usr/bin since it's not a real path.
19799     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19800       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19801       # a path prefixed by /cygdrive for fixpath to work.
19802       new_path="$CYGWIN_ROOT_PATH$input_path"
19803     fi
19804   fi
19805 
19806 
19807   if test "x$path" != "x$new_path"; then
19808     BOOT_JDK="$new_path"
19809     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19810 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19811   fi
19812 
19813   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19814 
19815   path="$BOOT_JDK"
19816   has_colon=`$ECHO $path | $GREP ^.:`
19817   new_path="$path"
19818   if test "x$has_colon" = x; then
19819     # Not in mixed or Windows style, start by that.
19820     new_path=`cmd //c echo $path`
19821   fi
19822 
19823 
19824   input_path="$new_path"
19825   # Check if we need to convert this using DOS-style short mode. If the path
19826   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19827   # take no chances and rewrite it.
19828   # Note: m4 eats our [], so we need to use [ and ] instead.
19829   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19830   if test "x$has_forbidden_chars" != x; then
19831     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19832     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19833   fi
19834 
19835 
19836   windows_path="$new_path"
19837   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19838     unix_path=`$CYGPATH -u "$windows_path"`
19839     new_path="$unix_path"
19840   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19841     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19842     new_path="$unix_path"
19843   fi
19844 
19845   if test "x$path" != "x$new_path"; then
19846     BOOT_JDK="$new_path"
19847     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19848 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19849   fi
19850 
19851   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19852   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19853 
19854   else
19855     # We're on a posix platform. Hooray! :)
19856     path="$BOOT_JDK"
19857     has_space=`$ECHO "$path" | $GREP " "`
19858     if test "x$has_space" != x; then
19859       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19860 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19861       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19862     fi
19863 
19864     # Use eval to expand a potential ~
19865     eval path="$path"
19866     if test ! -f "$path" && test ! -d "$path"; then
19867       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19868     fi
19869 
19870     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19871   fi
19872 
19873               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19874 $as_echo_n "checking for Boot JDK... " >&6; }
19875               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19876 $as_echo "$BOOT_JDK" >&6; }
19877               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19878 $as_echo_n "checking Boot JDK version... " >&6; }
19879               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19880               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19881 $as_echo "$BOOT_JDK_VERSION" >&6; }
19882             fi # end check jdk version
19883           fi # end check rt.jar
19884         fi # end check javac
19885       fi # end check java
19886     fi # end check boot jdk found
19887   fi
19888 
19889   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19890     # Having specified an argument which is incorrect will produce an instant failure;
19891     # we should not go on looking
19892     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19893   fi
19894 
19895   # Test: Is bootjdk available from builddeps?
19896 
19897   if test "x$BOOT_JDK_FOUND" = xno; then
19898     # Now execute the test
19899 
19900 
19901 
19902   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19903     # Source the builddeps file again, to make sure it uses the latest variables!
19904     . $builddepsfile
19905     # Look for a target and build machine specific resource!
19906     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19907     if test "x$resource" = x; then
19908       # Ok, lets instead look for a target specific resource
19909       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19910     fi
19911     if test "x$resource" = x; then
19912       # Ok, lets instead look for a build specific resource
19913       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19914     fi
19915     if test "x$resource" = x; then
19916       # Ok, lets instead look for a generic resource
19917       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19918       resource=${builddep_bootjdk}
19919     fi
19920     if test "x$resource" != x; then
19921       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19922 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19923       # If the resource in the builddeps.conf file is an existing directory,
19924       # for example /java/linux/cups
19925       if test -d ${resource}; then
19926         depdir=${resource}
19927       else
19928 
19929   # bootjdk is for example mymodule
19930   # $resource is for example libs/general/libmymod_1_2_3.zip
19931   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19932   # $with_builddeps_dir is for example /localhome/builddeps
19933   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19934   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19935   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19936   filename=`basename $resource`
19937   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19938   filebase=${filename%%.*}
19939   extension=${filename#*.}
19940   installdir=$with_builddeps_dir/$filebase
19941   if test ! -f $installdir/$filename.unpacked; then
19942     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19943 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19944     if test ! -d $installdir; then
19945       mkdir -p $installdir
19946     fi
19947     if test ! -d $installdir; then
19948       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19949     fi
19950     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19951     touch $tmpfile
19952     if test ! -f $tmpfile; then
19953       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19954     fi
19955 
19956   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19957   # $tmpfile is the local file name for the downloaded file.
19958   VALID_TOOL=no
19959   if test "x$BDEPS_FTP" = xwget; then
19960     VALID_TOOL=yes
19961     wget -O $tmpfile $with_builddeps_server/$resource
19962   fi
19963   if test "x$BDEPS_FTP" = xlftp; then
19964     VALID_TOOL=yes
19965     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19966   fi
19967   if test "x$BDEPS_FTP" = xftp; then
19968     VALID_TOOL=yes
19969     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19970     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19971     FTPUSERPWD=${FTPSERVER%%@*}
19972     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19973       FTPUSER=${userpwd%%:*}
19974       FTPPWD=${userpwd#*@}
19975       FTPSERVER=${FTPSERVER#*@}
19976     else
19977       FTPUSER=ftp
19978       FTPPWD=ftp
19979     fi
19980     # the "pass" command does not work on some
19981     # ftp clients (read ftp.exe) but if it works,
19982     # passive mode is better!
19983     ( \
19984         echo "user $FTPUSER $FTPPWD"        ; \
19985         echo "pass"                         ; \
19986         echo "bin"                          ; \
19987         echo "get $FTPPATH $tmpfile"              ; \
19988     ) | ftp -in $FTPSERVER
19989   fi
19990   if test "x$VALID_TOOL" != xyes; then
19991     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19992   fi
19993 
19994     mv $tmpfile $installdir/$filename
19995     if test ! -s $installdir/$filename; then
19996       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19997     fi
19998     case "$extension" in
19999       zip)  echo "Unzipping $installdir/$filename..."
20000         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20001         ;;
20002       tar.gz) echo "Untaring $installdir/$filename..."
20003         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20004         ;;
20005       tgz) echo "Untaring $installdir/$filename..."
20006         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20007         ;;
20008       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20009         ;;
20010     esac
20011   fi
20012   if test -f $installdir/$filename.unpacked; then
20013     depdir=$installdir
20014   fi
20015 
20016       fi
20017       # Source the builddeps file again, because in the previous command, the depdir
20018       # was updated to point at the current build dependency install directory.
20019       . $builddepsfile
20020       # Now extract variables from the builddeps.conf files.
20021       theroot=${builddep_bootjdk_ROOT}
20022       thecflags=${builddep_bootjdk_CFLAGS}
20023       thelibs=${builddep_bootjdk_LIBS}
20024       if test "x$depdir" = x; then
20025         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20026       fi
20027       BOOT_JDK=$depdir
20028       if test "x$theroot" != x; then
20029         BOOT_JDK="$theroot"
20030       fi
20031       if test "x$thecflags" != x; then
20032         BOOT_JDK_CFLAGS="$thecflags"
20033       fi
20034       if test "x$thelibs" != x; then
20035         BOOT_JDK_LIBS="$thelibs"
20036       fi
20037       BOOT_JDK_FOUND=maybe
20038       else BOOT_JDK_FOUND=no
20039 
20040     fi
20041     else BOOT_JDK_FOUND=no
20042 
20043   fi
20044 
20045 
20046 
20047     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20048     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20049       # Do we have a bin/java?
20050       if test ! -x "$BOOT_JDK/bin/java"; then
20051         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20052 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20053         BOOT_JDK_FOUND=no
20054       else
20055         # Do we have a bin/javac?
20056         if test ! -x "$BOOT_JDK/bin/javac"; then
20057           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20058 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20059           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20060 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20061           BOOT_JDK_FOUND=no
20062         else
20063           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20064           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20065             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20066 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20067             BOOT_JDK_FOUND=no
20068           else
20069             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20070             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20071 
20072             # Extra M4 quote needed to protect [] in grep expression.
20073             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20074             if test "x$FOUND_CORRECT_VERSION" = x; then
20075               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20076 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20077               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20078 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20079               BOOT_JDK_FOUND=no
20080             else
20081               # We're done! :-)
20082               BOOT_JDK_FOUND=yes
20083 
20084   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20085 
20086   # Input might be given as Windows format, start by converting to
20087   # unix format.
20088   path="$BOOT_JDK"
20089   new_path=`$CYGPATH -u "$path"`
20090 
20091   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20092   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20093   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20094   # "foo.exe" is OK but "foo" is an error.
20095   #
20096   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20097   # It is also a way to make sure we got the proper file name for the real test later on.
20098   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20099   if test "x$test_shortpath" = x; then
20100     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20101 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20102     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20103   fi
20104 
20105   # Call helper function which possibly converts this using DOS-style short mode.
20106   # If so, the updated path is stored in $new_path.
20107 
20108   input_path="$new_path"
20109   # Check if we need to convert this using DOS-style short mode. If the path
20110   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20111   # take no chances and rewrite it.
20112   # Note: m4 eats our [], so we need to use [ and ] instead.
20113   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20114   if test "x$has_forbidden_chars" != x; then
20115     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20116     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20117     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20118     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20119       # Going to short mode and back again did indeed matter. Since short mode is
20120       # case insensitive, let's make it lowercase to improve readability.
20121       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20122       # Now convert it back to Unix-stile (cygpath)
20123       input_path=`$CYGPATH -u "$shortmode_path"`
20124       new_path="$input_path"
20125     fi
20126   fi
20127 
20128   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20129   if test "x$test_cygdrive_prefix" = x; then
20130     # As a simple fix, exclude /usr/bin since it's not a real path.
20131     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20132       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20133       # a path prefixed by /cygdrive for fixpath to work.
20134       new_path="$CYGWIN_ROOT_PATH$input_path"
20135     fi
20136   fi
20137 
20138 
20139   if test "x$path" != "x$new_path"; then
20140     BOOT_JDK="$new_path"
20141     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20142 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20143   fi
20144 
20145   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20146 
20147   path="$BOOT_JDK"
20148   has_colon=`$ECHO $path | $GREP ^.:`
20149   new_path="$path"
20150   if test "x$has_colon" = x; then
20151     # Not in mixed or Windows style, start by that.
20152     new_path=`cmd //c echo $path`
20153   fi
20154 
20155 
20156   input_path="$new_path"
20157   # Check if we need to convert this using DOS-style short mode. If the path
20158   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20159   # take no chances and rewrite it.
20160   # Note: m4 eats our [], so we need to use [ and ] instead.
20161   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20162   if test "x$has_forbidden_chars" != x; then
20163     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20164     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20165   fi
20166 
20167 
20168   windows_path="$new_path"
20169   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20170     unix_path=`$CYGPATH -u "$windows_path"`
20171     new_path="$unix_path"
20172   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20173     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20174     new_path="$unix_path"
20175   fi
20176 
20177   if test "x$path" != "x$new_path"; then
20178     BOOT_JDK="$new_path"
20179     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20180 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20181   fi
20182 
20183   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20184   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20185 
20186   else
20187     # We're on a posix platform. Hooray! :)
20188     path="$BOOT_JDK"
20189     has_space=`$ECHO "$path" | $GREP " "`
20190     if test "x$has_space" != x; then
20191       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20192 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20193       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20194     fi
20195 
20196     # Use eval to expand a potential ~
20197     eval path="$path"
20198     if test ! -f "$path" && test ! -d "$path"; then
20199       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20200     fi
20201 
20202     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20203   fi
20204 
20205               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20206 $as_echo_n "checking for Boot JDK... " >&6; }
20207               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20208 $as_echo "$BOOT_JDK" >&6; }
20209               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20210 $as_echo_n "checking Boot JDK version... " >&6; }
20211               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20212               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20213 $as_echo "$BOOT_JDK_VERSION" >&6; }
20214             fi # end check jdk version
20215           fi # end check rt.jar
20216         fi # end check javac
20217       fi # end check java
20218     fi # end check boot jdk found
20219   fi
20220 
20221 
20222   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20223 
20224   if test "x$BOOT_JDK_FOUND" = xno; then
20225     # Now execute the test
20226 
20227   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20228     # First check at user selected default
20229 
20230   if test "x$BOOT_JDK_FOUND" = xno; then
20231     # Now execute the test
20232 
20233   if test -x /usr/libexec/java_home; then
20234     BOOT_JDK=`/usr/libexec/java_home `
20235     BOOT_JDK_FOUND=maybe
20236     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20237 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20238   fi
20239 
20240 
20241     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20242     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20243       # Do we have a bin/java?
20244       if test ! -x "$BOOT_JDK/bin/java"; then
20245         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20247         BOOT_JDK_FOUND=no
20248       else
20249         # Do we have a bin/javac?
20250         if test ! -x "$BOOT_JDK/bin/javac"; then
20251           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20253           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20254 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20255           BOOT_JDK_FOUND=no
20256         else
20257           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20258           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20259             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20260 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20261             BOOT_JDK_FOUND=no
20262           else
20263             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20264             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20265 
20266             # Extra M4 quote needed to protect [] in grep expression.
20267             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20268             if test "x$FOUND_CORRECT_VERSION" = x; then
20269               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20271               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20272 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20273               BOOT_JDK_FOUND=no
20274             else
20275               # We're done! :-)
20276               BOOT_JDK_FOUND=yes
20277 
20278   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20279 
20280   # Input might be given as Windows format, start by converting to
20281   # unix format.
20282   path="$BOOT_JDK"
20283   new_path=`$CYGPATH -u "$path"`
20284 
20285   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20286   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20287   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20288   # "foo.exe" is OK but "foo" is an error.
20289   #
20290   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20291   # It is also a way to make sure we got the proper file name for the real test later on.
20292   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20293   if test "x$test_shortpath" = x; then
20294     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20295 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20296     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20297   fi
20298 
20299   # Call helper function which possibly converts this using DOS-style short mode.
20300   # If so, the updated path is stored in $new_path.
20301 
20302   input_path="$new_path"
20303   # Check if we need to convert this using DOS-style short mode. If the path
20304   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20305   # take no chances and rewrite it.
20306   # Note: m4 eats our [], so we need to use [ and ] instead.
20307   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20308   if test "x$has_forbidden_chars" != x; then
20309     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20310     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20311     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20312     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20313       # Going to short mode and back again did indeed matter. Since short mode is
20314       # case insensitive, let's make it lowercase to improve readability.
20315       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20316       # Now convert it back to Unix-stile (cygpath)
20317       input_path=`$CYGPATH -u "$shortmode_path"`
20318       new_path="$input_path"
20319     fi
20320   fi
20321 
20322   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20323   if test "x$test_cygdrive_prefix" = x; then
20324     # As a simple fix, exclude /usr/bin since it's not a real path.
20325     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20326       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20327       # a path prefixed by /cygdrive for fixpath to work.
20328       new_path="$CYGWIN_ROOT_PATH$input_path"
20329     fi
20330   fi
20331 
20332 
20333   if test "x$path" != "x$new_path"; then
20334     BOOT_JDK="$new_path"
20335     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20336 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20337   fi
20338 
20339   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20340 
20341   path="$BOOT_JDK"
20342   has_colon=`$ECHO $path | $GREP ^.:`
20343   new_path="$path"
20344   if test "x$has_colon" = x; then
20345     # Not in mixed or Windows style, start by that.
20346     new_path=`cmd //c echo $path`
20347   fi
20348 
20349 
20350   input_path="$new_path"
20351   # Check if we need to convert this using DOS-style short mode. If the path
20352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20353   # take no chances and rewrite it.
20354   # Note: m4 eats our [], so we need to use [ and ] instead.
20355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20356   if test "x$has_forbidden_chars" != x; then
20357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20358     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20359   fi
20360 
20361 
20362   windows_path="$new_path"
20363   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20364     unix_path=`$CYGPATH -u "$windows_path"`
20365     new_path="$unix_path"
20366   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20367     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20368     new_path="$unix_path"
20369   fi
20370 
20371   if test "x$path" != "x$new_path"; then
20372     BOOT_JDK="$new_path"
20373     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20374 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20375   fi
20376 
20377   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20378   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20379 
20380   else
20381     # We're on a posix platform. Hooray! :)
20382     path="$BOOT_JDK"
20383     has_space=`$ECHO "$path" | $GREP " "`
20384     if test "x$has_space" != x; then
20385       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20386 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20387       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20388     fi
20389 
20390     # Use eval to expand a potential ~
20391     eval path="$path"
20392     if test ! -f "$path" && test ! -d "$path"; then
20393       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20394     fi
20395 
20396     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20397   fi
20398 
20399               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20400 $as_echo_n "checking for Boot JDK... " >&6; }
20401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20402 $as_echo "$BOOT_JDK" >&6; }
20403               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20404 $as_echo_n "checking Boot JDK version... " >&6; }
20405               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20406               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20407 $as_echo "$BOOT_JDK_VERSION" >&6; }
20408             fi # end check jdk version
20409           fi # end check rt.jar
20410         fi # end check javac
20411       fi # end check java
20412     fi # end check boot jdk found
20413   fi
20414 
20415     # If that did not work out (e.g. too old), try explicit versions instead
20416 
20417   if test "x$BOOT_JDK_FOUND" = xno; then
20418     # Now execute the test
20419 
20420   if test -x /usr/libexec/java_home; then
20421     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20422     BOOT_JDK_FOUND=maybe
20423     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20424 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20425   fi
20426 
20427 
20428     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20429     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20430       # Do we have a bin/java?
20431       if test ! -x "$BOOT_JDK/bin/java"; then
20432         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20434         BOOT_JDK_FOUND=no
20435       else
20436         # Do we have a bin/javac?
20437         if test ! -x "$BOOT_JDK/bin/javac"; then
20438           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20439 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20440           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20441 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20442           BOOT_JDK_FOUND=no
20443         else
20444           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20445           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20446             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20448             BOOT_JDK_FOUND=no
20449           else
20450             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20451             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20452 
20453             # Extra M4 quote needed to protect [] in grep expression.
20454             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20455             if test "x$FOUND_CORRECT_VERSION" = x; then
20456               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20458               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20459 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20460               BOOT_JDK_FOUND=no
20461             else
20462               # We're done! :-)
20463               BOOT_JDK_FOUND=yes
20464 
20465   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20466 
20467   # Input might be given as Windows format, start by converting to
20468   # unix format.
20469   path="$BOOT_JDK"
20470   new_path=`$CYGPATH -u "$path"`
20471 
20472   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20473   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20474   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20475   # "foo.exe" is OK but "foo" is an error.
20476   #
20477   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20478   # It is also a way to make sure we got the proper file name for the real test later on.
20479   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20480   if test "x$test_shortpath" = x; then
20481     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20482 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20483     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20484   fi
20485 
20486   # Call helper function which possibly converts this using DOS-style short mode.
20487   # If so, the updated path is stored in $new_path.
20488 
20489   input_path="$new_path"
20490   # Check if we need to convert this using DOS-style short mode. If the path
20491   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20492   # take no chances and rewrite it.
20493   # Note: m4 eats our [], so we need to use [ and ] instead.
20494   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20495   if test "x$has_forbidden_chars" != x; then
20496     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20497     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20498     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20499     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20500       # Going to short mode and back again did indeed matter. Since short mode is
20501       # case insensitive, let's make it lowercase to improve readability.
20502       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20503       # Now convert it back to Unix-stile (cygpath)
20504       input_path=`$CYGPATH -u "$shortmode_path"`
20505       new_path="$input_path"
20506     fi
20507   fi
20508 
20509   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20510   if test "x$test_cygdrive_prefix" = x; then
20511     # As a simple fix, exclude /usr/bin since it's not a real path.
20512     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20513       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20514       # a path prefixed by /cygdrive for fixpath to work.
20515       new_path="$CYGWIN_ROOT_PATH$input_path"
20516     fi
20517   fi
20518 
20519 
20520   if test "x$path" != "x$new_path"; then
20521     BOOT_JDK="$new_path"
20522     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20523 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20524   fi
20525 
20526   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20527 
20528   path="$BOOT_JDK"
20529   has_colon=`$ECHO $path | $GREP ^.:`
20530   new_path="$path"
20531   if test "x$has_colon" = x; then
20532     # Not in mixed or Windows style, start by that.
20533     new_path=`cmd //c echo $path`
20534   fi
20535 
20536 
20537   input_path="$new_path"
20538   # Check if we need to convert this using DOS-style short mode. If the path
20539   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20540   # take no chances and rewrite it.
20541   # Note: m4 eats our [], so we need to use [ and ] instead.
20542   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20543   if test "x$has_forbidden_chars" != x; then
20544     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20545     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20546   fi
20547 
20548 
20549   windows_path="$new_path"
20550   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20551     unix_path=`$CYGPATH -u "$windows_path"`
20552     new_path="$unix_path"
20553   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20554     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20555     new_path="$unix_path"
20556   fi
20557 
20558   if test "x$path" != "x$new_path"; then
20559     BOOT_JDK="$new_path"
20560     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20562   fi
20563 
20564   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20565   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20566 
20567   else
20568     # We're on a posix platform. Hooray! :)
20569     path="$BOOT_JDK"
20570     has_space=`$ECHO "$path" | $GREP " "`
20571     if test "x$has_space" != x; then
20572       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20573 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20574       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20575     fi
20576 
20577     # Use eval to expand a potential ~
20578     eval path="$path"
20579     if test ! -f "$path" && test ! -d "$path"; then
20580       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20581     fi
20582 
20583     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20584   fi
20585 
20586               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20587 $as_echo_n "checking for Boot JDK... " >&6; }
20588               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20589 $as_echo "$BOOT_JDK" >&6; }
20590               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20591 $as_echo_n "checking Boot JDK version... " >&6; }
20592               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20593               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20594 $as_echo "$BOOT_JDK_VERSION" >&6; }
20595             fi # end check jdk version
20596           fi # end check rt.jar
20597         fi # end check javac
20598       fi # end check java
20599     fi # end check boot jdk found
20600   fi
20601 
20602 
20603   if test "x$BOOT_JDK_FOUND" = xno; then
20604     # Now execute the test
20605 
20606   if test -x /usr/libexec/java_home; then
20607     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20608     BOOT_JDK_FOUND=maybe
20609     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20610 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20611   fi
20612 
20613 
20614     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20615     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20616       # Do we have a bin/java?
20617       if test ! -x "$BOOT_JDK/bin/java"; then
20618         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20620         BOOT_JDK_FOUND=no
20621       else
20622         # Do we have a bin/javac?
20623         if test ! -x "$BOOT_JDK/bin/javac"; then
20624           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20626           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20627 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20628           BOOT_JDK_FOUND=no
20629         else
20630           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20631           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20632             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20633 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20634             BOOT_JDK_FOUND=no
20635           else
20636             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20637             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20638 
20639             # Extra M4 quote needed to protect [] in grep expression.
20640             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20641             if test "x$FOUND_CORRECT_VERSION" = x; then
20642               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20644               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20645 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20646               BOOT_JDK_FOUND=no
20647             else
20648               # We're done! :-)
20649               BOOT_JDK_FOUND=yes
20650 
20651   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20652 
20653   # Input might be given as Windows format, start by converting to
20654   # unix format.
20655   path="$BOOT_JDK"
20656   new_path=`$CYGPATH -u "$path"`
20657 
20658   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20659   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20660   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20661   # "foo.exe" is OK but "foo" is an error.
20662   #
20663   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20664   # It is also a way to make sure we got the proper file name for the real test later on.
20665   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20666   if test "x$test_shortpath" = x; then
20667     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20668 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20669     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20670   fi
20671 
20672   # Call helper function which possibly converts this using DOS-style short mode.
20673   # If so, the updated path is stored in $new_path.
20674 
20675   input_path="$new_path"
20676   # Check if we need to convert this using DOS-style short mode. If the path
20677   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20678   # take no chances and rewrite it.
20679   # Note: m4 eats our [], so we need to use [ and ] instead.
20680   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20681   if test "x$has_forbidden_chars" != x; then
20682     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20683     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20684     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20685     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20686       # Going to short mode and back again did indeed matter. Since short mode is
20687       # case insensitive, let's make it lowercase to improve readability.
20688       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20689       # Now convert it back to Unix-stile (cygpath)
20690       input_path=`$CYGPATH -u "$shortmode_path"`
20691       new_path="$input_path"
20692     fi
20693   fi
20694 
20695   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20696   if test "x$test_cygdrive_prefix" = x; then
20697     # As a simple fix, exclude /usr/bin since it's not a real path.
20698     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20699       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20700       # a path prefixed by /cygdrive for fixpath to work.
20701       new_path="$CYGWIN_ROOT_PATH$input_path"
20702     fi
20703   fi
20704 
20705 
20706   if test "x$path" != "x$new_path"; then
20707     BOOT_JDK="$new_path"
20708     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20709 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20710   fi
20711 
20712   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20713 
20714   path="$BOOT_JDK"
20715   has_colon=`$ECHO $path | $GREP ^.:`
20716   new_path="$path"
20717   if test "x$has_colon" = x; then
20718     # Not in mixed or Windows style, start by that.
20719     new_path=`cmd //c echo $path`
20720   fi
20721 
20722 
20723   input_path="$new_path"
20724   # Check if we need to convert this using DOS-style short mode. If the path
20725   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20726   # take no chances and rewrite it.
20727   # Note: m4 eats our [], so we need to use [ and ] instead.
20728   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20729   if test "x$has_forbidden_chars" != x; then
20730     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20731     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20732   fi
20733 
20734 
20735   windows_path="$new_path"
20736   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20737     unix_path=`$CYGPATH -u "$windows_path"`
20738     new_path="$unix_path"
20739   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20740     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20741     new_path="$unix_path"
20742   fi
20743 
20744   if test "x$path" != "x$new_path"; then
20745     BOOT_JDK="$new_path"
20746     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20747 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20748   fi
20749 
20750   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20751   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20752 
20753   else
20754     # We're on a posix platform. Hooray! :)
20755     path="$BOOT_JDK"
20756     has_space=`$ECHO "$path" | $GREP " "`
20757     if test "x$has_space" != x; then
20758       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20759 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20760       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20761     fi
20762 
20763     # Use eval to expand a potential ~
20764     eval path="$path"
20765     if test ! -f "$path" && test ! -d "$path"; then
20766       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20767     fi
20768 
20769     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20770   fi
20771 
20772               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20773 $as_echo_n "checking for Boot JDK... " >&6; }
20774               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20775 $as_echo "$BOOT_JDK" >&6; }
20776               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20777 $as_echo_n "checking Boot JDK version... " >&6; }
20778               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20779               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20780 $as_echo "$BOOT_JDK_VERSION" >&6; }
20781             fi # end check jdk version
20782           fi # end check rt.jar
20783         fi # end check javac
20784       fi # end check java
20785     fi # end check boot jdk found
20786   fi
20787 
20788 
20789   if test "x$BOOT_JDK_FOUND" = xno; then
20790     # Now execute the test
20791 
20792   if test -x /usr/libexec/java_home; then
20793     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20794     BOOT_JDK_FOUND=maybe
20795     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20796 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20797   fi
20798 
20799 
20800     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20801     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20802       # Do we have a bin/java?
20803       if test ! -x "$BOOT_JDK/bin/java"; then
20804         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20805 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20806         BOOT_JDK_FOUND=no
20807       else
20808         # Do we have a bin/javac?
20809         if test ! -x "$BOOT_JDK/bin/javac"; then
20810           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20812           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20813 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20814           BOOT_JDK_FOUND=no
20815         else
20816           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20817           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20818             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20819 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20820             BOOT_JDK_FOUND=no
20821           else
20822             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20823             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20824 
20825             # Extra M4 quote needed to protect [] in grep expression.
20826             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20827             if test "x$FOUND_CORRECT_VERSION" = x; then
20828               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20829 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20830               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20831 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20832               BOOT_JDK_FOUND=no
20833             else
20834               # We're done! :-)
20835               BOOT_JDK_FOUND=yes
20836 
20837   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20838 
20839   # Input might be given as Windows format, start by converting to
20840   # unix format.
20841   path="$BOOT_JDK"
20842   new_path=`$CYGPATH -u "$path"`
20843 
20844   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20845   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20846   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20847   # "foo.exe" is OK but "foo" is an error.
20848   #
20849   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20850   # It is also a way to make sure we got the proper file name for the real test later on.
20851   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20852   if test "x$test_shortpath" = x; then
20853     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20854 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20855     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20856   fi
20857 
20858   # Call helper function which possibly converts this using DOS-style short mode.
20859   # If so, the updated path is stored in $new_path.
20860 
20861   input_path="$new_path"
20862   # Check if we need to convert this using DOS-style short mode. If the path
20863   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20864   # take no chances and rewrite it.
20865   # Note: m4 eats our [], so we need to use [ and ] instead.
20866   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20867   if test "x$has_forbidden_chars" != x; then
20868     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20869     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20870     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20871     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20872       # Going to short mode and back again did indeed matter. Since short mode is
20873       # case insensitive, let's make it lowercase to improve readability.
20874       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20875       # Now convert it back to Unix-stile (cygpath)
20876       input_path=`$CYGPATH -u "$shortmode_path"`
20877       new_path="$input_path"
20878     fi
20879   fi
20880 
20881   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20882   if test "x$test_cygdrive_prefix" = x; then
20883     # As a simple fix, exclude /usr/bin since it's not a real path.
20884     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20885       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20886       # a path prefixed by /cygdrive for fixpath to work.
20887       new_path="$CYGWIN_ROOT_PATH$input_path"
20888     fi
20889   fi
20890 
20891 
20892   if test "x$path" != "x$new_path"; then
20893     BOOT_JDK="$new_path"
20894     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20895 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20896   fi
20897 
20898   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20899 
20900   path="$BOOT_JDK"
20901   has_colon=`$ECHO $path | $GREP ^.:`
20902   new_path="$path"
20903   if test "x$has_colon" = x; then
20904     # Not in mixed or Windows style, start by that.
20905     new_path=`cmd //c echo $path`
20906   fi
20907 
20908 
20909   input_path="$new_path"
20910   # Check if we need to convert this using DOS-style short mode. If the path
20911   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20912   # take no chances and rewrite it.
20913   # Note: m4 eats our [], so we need to use [ and ] instead.
20914   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20915   if test "x$has_forbidden_chars" != x; then
20916     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20917     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20918   fi
20919 
20920 
20921   windows_path="$new_path"
20922   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20923     unix_path=`$CYGPATH -u "$windows_path"`
20924     new_path="$unix_path"
20925   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20926     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20927     new_path="$unix_path"
20928   fi
20929 
20930   if test "x$path" != "x$new_path"; then
20931     BOOT_JDK="$new_path"
20932     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20933 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20934   fi
20935 
20936   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20937   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20938 
20939   else
20940     # We're on a posix platform. Hooray! :)
20941     path="$BOOT_JDK"
20942     has_space=`$ECHO "$path" | $GREP " "`
20943     if test "x$has_space" != x; then
20944       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20945 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20946       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20947     fi
20948 
20949     # Use eval to expand a potential ~
20950     eval path="$path"
20951     if test ! -f "$path" && test ! -d "$path"; then
20952       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20953     fi
20954 
20955     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20956   fi
20957 
20958               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20959 $as_echo_n "checking for Boot JDK... " >&6; }
20960               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20961 $as_echo "$BOOT_JDK" >&6; }
20962               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20963 $as_echo_n "checking Boot JDK version... " >&6; }
20964               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20965               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20966 $as_echo "$BOOT_JDK_VERSION" >&6; }
20967             fi # end check jdk version
20968           fi # end check rt.jar
20969         fi # end check javac
20970       fi # end check java
20971     fi # end check boot jdk found
20972   fi
20973 
20974   fi
20975 
20976 
20977     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20978     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20979       # Do we have a bin/java?
20980       if test ! -x "$BOOT_JDK/bin/java"; then
20981         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20982 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20983         BOOT_JDK_FOUND=no
20984       else
20985         # Do we have a bin/javac?
20986         if test ! -x "$BOOT_JDK/bin/javac"; then
20987           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20988 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20989           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20990 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20991           BOOT_JDK_FOUND=no
20992         else
20993           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20994           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20995             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20996 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20997             BOOT_JDK_FOUND=no
20998           else
20999             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21000             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21001 
21002             # Extra M4 quote needed to protect [] in grep expression.
21003             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21004             if test "x$FOUND_CORRECT_VERSION" = x; then
21005               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21006 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21007               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21008 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21009               BOOT_JDK_FOUND=no
21010             else
21011               # We're done! :-)
21012               BOOT_JDK_FOUND=yes
21013 
21014   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21015 
21016   # Input might be given as Windows format, start by converting to
21017   # unix format.
21018   path="$BOOT_JDK"
21019   new_path=`$CYGPATH -u "$path"`
21020 
21021   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21022   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21023   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21024   # "foo.exe" is OK but "foo" is an error.
21025   #
21026   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21027   # It is also a way to make sure we got the proper file name for the real test later on.
21028   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21029   if test "x$test_shortpath" = x; then
21030     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21031 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21032     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21033   fi
21034 
21035   # Call helper function which possibly converts this using DOS-style short mode.
21036   # If so, the updated path is stored in $new_path.
21037 
21038   input_path="$new_path"
21039   # Check if we need to convert this using DOS-style short mode. If the path
21040   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21041   # take no chances and rewrite it.
21042   # Note: m4 eats our [], so we need to use [ and ] instead.
21043   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21044   if test "x$has_forbidden_chars" != x; then
21045     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21046     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21047     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21048     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21049       # Going to short mode and back again did indeed matter. Since short mode is
21050       # case insensitive, let's make it lowercase to improve readability.
21051       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21052       # Now convert it back to Unix-stile (cygpath)
21053       input_path=`$CYGPATH -u "$shortmode_path"`
21054       new_path="$input_path"
21055     fi
21056   fi
21057 
21058   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21059   if test "x$test_cygdrive_prefix" = x; then
21060     # As a simple fix, exclude /usr/bin since it's not a real path.
21061     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21062       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21063       # a path prefixed by /cygdrive for fixpath to work.
21064       new_path="$CYGWIN_ROOT_PATH$input_path"
21065     fi
21066   fi
21067 
21068 
21069   if test "x$path" != "x$new_path"; then
21070     BOOT_JDK="$new_path"
21071     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21072 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21073   fi
21074 
21075   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21076 
21077   path="$BOOT_JDK"
21078   has_colon=`$ECHO $path | $GREP ^.:`
21079   new_path="$path"
21080   if test "x$has_colon" = x; then
21081     # Not in mixed or Windows style, start by that.
21082     new_path=`cmd //c echo $path`
21083   fi
21084 
21085 
21086   input_path="$new_path"
21087   # Check if we need to convert this using DOS-style short mode. If the path
21088   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21089   # take no chances and rewrite it.
21090   # Note: m4 eats our [], so we need to use [ and ] instead.
21091   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21092   if test "x$has_forbidden_chars" != x; then
21093     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21094     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21095   fi
21096 
21097 
21098   windows_path="$new_path"
21099   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21100     unix_path=`$CYGPATH -u "$windows_path"`
21101     new_path="$unix_path"
21102   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21103     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21104     new_path="$unix_path"
21105   fi
21106 
21107   if test "x$path" != "x$new_path"; then
21108     BOOT_JDK="$new_path"
21109     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21110 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21111   fi
21112 
21113   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21114   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21115 
21116   else
21117     # We're on a posix platform. Hooray! :)
21118     path="$BOOT_JDK"
21119     has_space=`$ECHO "$path" | $GREP " "`
21120     if test "x$has_space" != x; then
21121       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21122 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21123       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21124     fi
21125 
21126     # Use eval to expand a potential ~
21127     eval path="$path"
21128     if test ! -f "$path" && test ! -d "$path"; then
21129       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21130     fi
21131 
21132     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21133   fi
21134 
21135               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21136 $as_echo_n "checking for Boot JDK... " >&6; }
21137               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21138 $as_echo "$BOOT_JDK" >&6; }
21139               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21140 $as_echo_n "checking Boot JDK version... " >&6; }
21141               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21142               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21143 $as_echo "$BOOT_JDK_VERSION" >&6; }
21144             fi # end check jdk version
21145           fi # end check rt.jar
21146         fi # end check javac
21147       fi # end check java
21148     fi # end check boot jdk found
21149   fi
21150 
21151 
21152   # Test: Is $JAVA_HOME set?
21153 
21154   if test "x$BOOT_JDK_FOUND" = xno; then
21155     # Now execute the test
21156 
21157   if test "x$JAVA_HOME" != x; then
21158     JAVA_HOME_PROCESSED="$JAVA_HOME"
21159 
21160   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21161 
21162   # Input might be given as Windows format, start by converting to
21163   # unix format.
21164   path="$JAVA_HOME_PROCESSED"
21165   new_path=`$CYGPATH -u "$path"`
21166 
21167   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21168   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21169   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21170   # "foo.exe" is OK but "foo" is an error.
21171   #
21172   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21173   # It is also a way to make sure we got the proper file name for the real test later on.
21174   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21175   if test "x$test_shortpath" = x; then
21176     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21177 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21178     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21179   fi
21180 
21181   # Call helper function which possibly converts this using DOS-style short mode.
21182   # If so, the updated path is stored in $new_path.
21183 
21184   input_path="$new_path"
21185   # Check if we need to convert this using DOS-style short mode. If the path
21186   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21187   # take no chances and rewrite it.
21188   # Note: m4 eats our [], so we need to use [ and ] instead.
21189   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21190   if test "x$has_forbidden_chars" != x; then
21191     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21192     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21193     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21194     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21195       # Going to short mode and back again did indeed matter. Since short mode is
21196       # case insensitive, let's make it lowercase to improve readability.
21197       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21198       # Now convert it back to Unix-stile (cygpath)
21199       input_path=`$CYGPATH -u "$shortmode_path"`
21200       new_path="$input_path"
21201     fi
21202   fi
21203 
21204   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21205   if test "x$test_cygdrive_prefix" = x; then
21206     # As a simple fix, exclude /usr/bin since it's not a real path.
21207     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21208       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21209       # a path prefixed by /cygdrive for fixpath to work.
21210       new_path="$CYGWIN_ROOT_PATH$input_path"
21211     fi
21212   fi
21213 
21214 
21215   if test "x$path" != "x$new_path"; then
21216     JAVA_HOME_PROCESSED="$new_path"
21217     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21218 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21219   fi
21220 
21221   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21222 
21223   path="$JAVA_HOME_PROCESSED"
21224   has_colon=`$ECHO $path | $GREP ^.:`
21225   new_path="$path"
21226   if test "x$has_colon" = x; then
21227     # Not in mixed or Windows style, start by that.
21228     new_path=`cmd //c echo $path`
21229   fi
21230 
21231 
21232   input_path="$new_path"
21233   # Check if we need to convert this using DOS-style short mode. If the path
21234   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21235   # take no chances and rewrite it.
21236   # Note: m4 eats our [], so we need to use [ and ] instead.
21237   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21238   if test "x$has_forbidden_chars" != x; then
21239     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21240     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21241   fi
21242 
21243 
21244   windows_path="$new_path"
21245   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21246     unix_path=`$CYGPATH -u "$windows_path"`
21247     new_path="$unix_path"
21248   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21249     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21250     new_path="$unix_path"
21251   fi
21252 
21253   if test "x$path" != "x$new_path"; then
21254     JAVA_HOME_PROCESSED="$new_path"
21255     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21256 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21257   fi
21258 
21259   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21260   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21261 
21262   else
21263     # We're on a posix platform. Hooray! :)
21264     path="$JAVA_HOME_PROCESSED"
21265     has_space=`$ECHO "$path" | $GREP " "`
21266     if test "x$has_space" != x; then
21267       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21268 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21269       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21270     fi
21271 
21272     # Use eval to expand a potential ~
21273     eval path="$path"
21274     if test ! -f "$path" && test ! -d "$path"; then
21275       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21276     fi
21277 
21278     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21279   fi
21280 
21281     if test ! -d "$JAVA_HOME_PROCESSED"; then
21282       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21283 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21284     else
21285       # Aha, the user has set a JAVA_HOME
21286       # let us use that as the Boot JDK.
21287       BOOT_JDK="$JAVA_HOME_PROCESSED"
21288       BOOT_JDK_FOUND=maybe
21289       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21290 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21291     fi
21292   fi
21293 
21294 
21295     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21296     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21297       # Do we have a bin/java?
21298       if test ! -x "$BOOT_JDK/bin/java"; then
21299         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21301         BOOT_JDK_FOUND=no
21302       else
21303         # Do we have a bin/javac?
21304         if test ! -x "$BOOT_JDK/bin/javac"; then
21305           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21306 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21307           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21308 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21309           BOOT_JDK_FOUND=no
21310         else
21311           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21312           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21313             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21314 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21315             BOOT_JDK_FOUND=no
21316           else
21317             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21318             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21319 
21320             # Extra M4 quote needed to protect [] in grep expression.
21321             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21322             if test "x$FOUND_CORRECT_VERSION" = x; then
21323               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21324 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21325               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21326 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21327               BOOT_JDK_FOUND=no
21328             else
21329               # We're done! :-)
21330               BOOT_JDK_FOUND=yes
21331 
21332   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21333 
21334   # Input might be given as Windows format, start by converting to
21335   # unix format.
21336   path="$BOOT_JDK"
21337   new_path=`$CYGPATH -u "$path"`
21338 
21339   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21340   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21341   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21342   # "foo.exe" is OK but "foo" is an error.
21343   #
21344   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21345   # It is also a way to make sure we got the proper file name for the real test later on.
21346   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21347   if test "x$test_shortpath" = x; then
21348     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21349 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21350     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21351   fi
21352 
21353   # Call helper function which possibly converts this using DOS-style short mode.
21354   # If so, the updated path is stored in $new_path.
21355 
21356   input_path="$new_path"
21357   # Check if we need to convert this using DOS-style short mode. If the path
21358   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21359   # take no chances and rewrite it.
21360   # Note: m4 eats our [], so we need to use [ and ] instead.
21361   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21362   if test "x$has_forbidden_chars" != x; then
21363     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21364     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21365     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21366     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21367       # Going to short mode and back again did indeed matter. Since short mode is
21368       # case insensitive, let's make it lowercase to improve readability.
21369       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21370       # Now convert it back to Unix-stile (cygpath)
21371       input_path=`$CYGPATH -u "$shortmode_path"`
21372       new_path="$input_path"
21373     fi
21374   fi
21375 
21376   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21377   if test "x$test_cygdrive_prefix" = x; then
21378     # As a simple fix, exclude /usr/bin since it's not a real path.
21379     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21380       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21381       # a path prefixed by /cygdrive for fixpath to work.
21382       new_path="$CYGWIN_ROOT_PATH$input_path"
21383     fi
21384   fi
21385 
21386 
21387   if test "x$path" != "x$new_path"; then
21388     BOOT_JDK="$new_path"
21389     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21390 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21391   fi
21392 
21393   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21394 
21395   path="$BOOT_JDK"
21396   has_colon=`$ECHO $path | $GREP ^.:`
21397   new_path="$path"
21398   if test "x$has_colon" = x; then
21399     # Not in mixed or Windows style, start by that.
21400     new_path=`cmd //c echo $path`
21401   fi
21402 
21403 
21404   input_path="$new_path"
21405   # Check if we need to convert this using DOS-style short mode. If the path
21406   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21407   # take no chances and rewrite it.
21408   # Note: m4 eats our [], so we need to use [ and ] instead.
21409   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21410   if test "x$has_forbidden_chars" != x; then
21411     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21412     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21413   fi
21414 
21415 
21416   windows_path="$new_path"
21417   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21418     unix_path=`$CYGPATH -u "$windows_path"`
21419     new_path="$unix_path"
21420   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21421     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21422     new_path="$unix_path"
21423   fi
21424 
21425   if test "x$path" != "x$new_path"; then
21426     BOOT_JDK="$new_path"
21427     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21428 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21429   fi
21430 
21431   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21432   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21433 
21434   else
21435     # We're on a posix platform. Hooray! :)
21436     path="$BOOT_JDK"
21437     has_space=`$ECHO "$path" | $GREP " "`
21438     if test "x$has_space" != x; then
21439       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21440 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21441       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21442     fi
21443 
21444     # Use eval to expand a potential ~
21445     eval path="$path"
21446     if test ! -f "$path" && test ! -d "$path"; then
21447       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21448     fi
21449 
21450     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21451   fi
21452 
21453               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21454 $as_echo_n "checking for Boot JDK... " >&6; }
21455               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21456 $as_echo "$BOOT_JDK" >&6; }
21457               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21458 $as_echo_n "checking Boot JDK version... " >&6; }
21459               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21460               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21461 $as_echo "$BOOT_JDK_VERSION" >&6; }
21462             fi # end check jdk version
21463           fi # end check rt.jar
21464         fi # end check javac
21465       fi # end check java
21466     fi # end check boot jdk found
21467   fi
21468 
21469 
21470   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21471 
21472   if test "x$BOOT_JDK_FOUND" = xno; then
21473     # Now execute the test
21474 
21475   # Extract the first word of "javac", so it can be a program name with args.
21476 set dummy javac; ac_word=$2
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21478 $as_echo_n "checking for $ac_word... " >&6; }
21479 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21480   $as_echo_n "(cached) " >&6
21481 else
21482   case $JAVAC_CHECK in
21483   [\\/]* | ?:[\\/]*)
21484   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21485   ;;
21486   *)
21487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21488 for as_dir in $PATH
21489 do
21490   IFS=$as_save_IFS
21491   test -z "$as_dir" && as_dir=.
21492     for ac_exec_ext in '' $ac_executable_extensions; do
21493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21494     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21496     break 2
21497   fi
21498 done
21499   done
21500 IFS=$as_save_IFS
21501 
21502   ;;
21503 esac
21504 fi
21505 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21506 if test -n "$JAVAC_CHECK"; then
21507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21508 $as_echo "$JAVAC_CHECK" >&6; }
21509 else
21510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21511 $as_echo "no" >&6; }
21512 fi
21513 
21514 
21515   # Extract the first word of "java", so it can be a program name with args.
21516 set dummy java; ac_word=$2
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21518 $as_echo_n "checking for $ac_word... " >&6; }
21519 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21520   $as_echo_n "(cached) " >&6
21521 else
21522   case $JAVA_CHECK in
21523   [\\/]* | ?:[\\/]*)
21524   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21525   ;;
21526   *)
21527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21528 for as_dir in $PATH
21529 do
21530   IFS=$as_save_IFS
21531   test -z "$as_dir" && as_dir=.
21532     for ac_exec_ext in '' $ac_executable_extensions; do
21533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21534     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21536     break 2
21537   fi
21538 done
21539   done
21540 IFS=$as_save_IFS
21541 
21542   ;;
21543 esac
21544 fi
21545 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21546 if test -n "$JAVA_CHECK"; then
21547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21548 $as_echo "$JAVA_CHECK" >&6; }
21549 else
21550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21551 $as_echo "no" >&6; }
21552 fi
21553 
21554 
21555   BINARY="$JAVAC_CHECK"
21556   if test "x$JAVAC_CHECK" = x; then
21557     BINARY="$JAVA_CHECK"
21558   fi
21559   if test "x$BINARY" != x; then
21560     # So there is a java(c) binary, it might be part of a JDK.
21561     # Lets find the JDK/JRE directory by following symbolic links.
21562     # Linux/GNU systems often have links from /usr/bin/java to
21563     # /etc/alternatives/java to the real JDK binary.
21564 
21565   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21566     # Follow a chain of symbolic links. Use readlink
21567     # where it exists, else fall back to horribly
21568     # complicated shell code.
21569     if test "x$READLINK_TESTED" != yes; then
21570       # On MacOSX there is a readlink tool with a different
21571       # purpose than the GNU readlink tool. Check the found readlink.
21572       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21573       if test "x$ISGNU" = x; then
21574         # A readlink that we do not know how to use.
21575         # Are there other non-GNU readlinks out there?
21576         READLINK_TESTED=yes
21577         READLINK=
21578       fi
21579     fi
21580 
21581     if test "x$READLINK" != x; then
21582       BINARY=`$READLINK -f $BINARY`
21583     else
21584       # Save the current directory for restoring afterwards
21585       STARTDIR=$PWD
21586       COUNTER=0
21587       sym_link_dir=`$DIRNAME $BINARY`
21588       sym_link_file=`$BASENAME $BINARY`
21589       cd $sym_link_dir
21590       # Use -P flag to resolve symlinks in directories.
21591       cd `$THEPWDCMD -P`
21592       sym_link_dir=`$THEPWDCMD -P`
21593       # Resolve file symlinks
21594       while test $COUNTER -lt 20; do
21595         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21596         if test "x$ISLINK" == x; then
21597           # This is not a symbolic link! We are done!
21598           break
21599         fi
21600         # Again resolve directory symlinks since the target of the just found
21601         # link could be in a different directory
21602         cd `$DIRNAME $ISLINK`
21603         sym_link_dir=`$THEPWDCMD -P`
21604         sym_link_file=`$BASENAME $ISLINK`
21605         let COUNTER=COUNTER+1
21606       done
21607       cd $STARTDIR
21608       BINARY=$sym_link_dir/$sym_link_file
21609     fi
21610   fi
21611 
21612     BOOT_JDK=`dirname "$BINARY"`
21613     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21614     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21615       # Looks like we found ourselves an JDK
21616       BOOT_JDK_FOUND=maybe
21617       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21618 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21619     fi
21620   fi
21621 
21622 
21623     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21624     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21625       # Do we have a bin/java?
21626       if test ! -x "$BOOT_JDK/bin/java"; then
21627         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21628 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21629         BOOT_JDK_FOUND=no
21630       else
21631         # Do we have a bin/javac?
21632         if test ! -x "$BOOT_JDK/bin/javac"; then
21633           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21635           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21636 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21637           BOOT_JDK_FOUND=no
21638         else
21639           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21640           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21641             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21642 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21643             BOOT_JDK_FOUND=no
21644           else
21645             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21646             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21647 
21648             # Extra M4 quote needed to protect [] in grep expression.
21649             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21650             if test "x$FOUND_CORRECT_VERSION" = x; then
21651               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21652 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21653               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21654 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21655               BOOT_JDK_FOUND=no
21656             else
21657               # We're done! :-)
21658               BOOT_JDK_FOUND=yes
21659 
21660   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21661 
21662   # Input might be given as Windows format, start by converting to
21663   # unix format.
21664   path="$BOOT_JDK"
21665   new_path=`$CYGPATH -u "$path"`
21666 
21667   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21668   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21669   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21670   # "foo.exe" is OK but "foo" is an error.
21671   #
21672   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21673   # It is also a way to make sure we got the proper file name for the real test later on.
21674   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21675   if test "x$test_shortpath" = x; then
21676     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21677 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21678     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21679   fi
21680 
21681   # Call helper function which possibly converts this using DOS-style short mode.
21682   # If so, the updated path is stored in $new_path.
21683 
21684   input_path="$new_path"
21685   # Check if we need to convert this using DOS-style short mode. If the path
21686   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21687   # take no chances and rewrite it.
21688   # Note: m4 eats our [], so we need to use [ and ] instead.
21689   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21690   if test "x$has_forbidden_chars" != x; then
21691     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21692     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21693     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21694     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21695       # Going to short mode and back again did indeed matter. Since short mode is
21696       # case insensitive, let's make it lowercase to improve readability.
21697       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21698       # Now convert it back to Unix-stile (cygpath)
21699       input_path=`$CYGPATH -u "$shortmode_path"`
21700       new_path="$input_path"
21701     fi
21702   fi
21703 
21704   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21705   if test "x$test_cygdrive_prefix" = x; then
21706     # As a simple fix, exclude /usr/bin since it's not a real path.
21707     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21708       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21709       # a path prefixed by /cygdrive for fixpath to work.
21710       new_path="$CYGWIN_ROOT_PATH$input_path"
21711     fi
21712   fi
21713 
21714 
21715   if test "x$path" != "x$new_path"; then
21716     BOOT_JDK="$new_path"
21717     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21718 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21719   fi
21720 
21721   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21722 
21723   path="$BOOT_JDK"
21724   has_colon=`$ECHO $path | $GREP ^.:`
21725   new_path="$path"
21726   if test "x$has_colon" = x; then
21727     # Not in mixed or Windows style, start by that.
21728     new_path=`cmd //c echo $path`
21729   fi
21730 
21731 
21732   input_path="$new_path"
21733   # Check if we need to convert this using DOS-style short mode. If the path
21734   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21735   # take no chances and rewrite it.
21736   # Note: m4 eats our [], so we need to use [ and ] instead.
21737   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21738   if test "x$has_forbidden_chars" != x; then
21739     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21740     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21741   fi
21742 
21743 
21744   windows_path="$new_path"
21745   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21746     unix_path=`$CYGPATH -u "$windows_path"`
21747     new_path="$unix_path"
21748   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21749     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21750     new_path="$unix_path"
21751   fi
21752 
21753   if test "x$path" != "x$new_path"; then
21754     BOOT_JDK="$new_path"
21755     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21756 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21757   fi
21758 
21759   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21760   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21761 
21762   else
21763     # We're on a posix platform. Hooray! :)
21764     path="$BOOT_JDK"
21765     has_space=`$ECHO "$path" | $GREP " "`
21766     if test "x$has_space" != x; then
21767       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21768 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21769       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21770     fi
21771 
21772     # Use eval to expand a potential ~
21773     eval path="$path"
21774     if test ! -f "$path" && test ! -d "$path"; then
21775       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21776     fi
21777 
21778     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21779   fi
21780 
21781               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21782 $as_echo_n "checking for Boot JDK... " >&6; }
21783               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21784 $as_echo "$BOOT_JDK" >&6; }
21785               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21786 $as_echo_n "checking Boot JDK version... " >&6; }
21787               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21788               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21789 $as_echo "$BOOT_JDK_VERSION" >&6; }
21790             fi # end check jdk version
21791           fi # end check rt.jar
21792         fi # end check javac
21793       fi # end check java
21794     fi # end check boot jdk found
21795   fi
21796 
21797 
21798   # Test: Is there a JDK installed in default, well-known locations?
21799 
21800   if test "x$BOOT_JDK_FOUND" = xno; then
21801     # Now execute the test
21802 
21803   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21804 
21805   if test "x$BOOT_JDK_FOUND" = xno; then
21806     # Now execute the test
21807 
21808   if test "x$ProgramW6432" != x; then
21809     VIRTUAL_DIR="$ProgramW6432/Java"
21810 
21811   windows_path="$VIRTUAL_DIR"
21812   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21813     unix_path=`$CYGPATH -u "$windows_path"`
21814     VIRTUAL_DIR="$unix_path"
21815   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21816     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21817     VIRTUAL_DIR="$unix_path"
21818   fi
21819 
21820 
21821   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21822   BOOT_JDK_SUFFIX=""
21823   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21824   if test "x$ALL_JDKS_FOUND" != x; then
21825     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21826 
21827   if test "x$BOOT_JDK_FOUND" = xno; then
21828     # Now execute the test
21829 
21830         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21831         if test -d "$BOOT_JDK"; then
21832           BOOT_JDK_FOUND=maybe
21833           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21834 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21835         fi
21836 
21837 
21838     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21839     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21840       # Do we have a bin/java?
21841       if test ! -x "$BOOT_JDK/bin/java"; then
21842         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21843 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21844         BOOT_JDK_FOUND=no
21845       else
21846         # Do we have a bin/javac?
21847         if test ! -x "$BOOT_JDK/bin/javac"; then
21848           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21849 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21850           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21851 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21852           BOOT_JDK_FOUND=no
21853         else
21854           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21855           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21856             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21857 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21858             BOOT_JDK_FOUND=no
21859           else
21860             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21861             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21862 
21863             # Extra M4 quote needed to protect [] in grep expression.
21864             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21865             if test "x$FOUND_CORRECT_VERSION" = x; then
21866               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21867 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21868               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21869 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21870               BOOT_JDK_FOUND=no
21871             else
21872               # We're done! :-)
21873               BOOT_JDK_FOUND=yes
21874 
21875   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21876 
21877   # Input might be given as Windows format, start by converting to
21878   # unix format.
21879   path="$BOOT_JDK"
21880   new_path=`$CYGPATH -u "$path"`
21881 
21882   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21883   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21884   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21885   # "foo.exe" is OK but "foo" is an error.
21886   #
21887   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21888   # It is also a way to make sure we got the proper file name for the real test later on.
21889   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21890   if test "x$test_shortpath" = x; then
21891     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21892 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21893     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21894   fi
21895 
21896   # Call helper function which possibly converts this using DOS-style short mode.
21897   # If so, the updated path is stored in $new_path.
21898 
21899   input_path="$new_path"
21900   # Check if we need to convert this using DOS-style short mode. If the path
21901   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21902   # take no chances and rewrite it.
21903   # Note: m4 eats our [], so we need to use [ and ] instead.
21904   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21905   if test "x$has_forbidden_chars" != x; then
21906     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21907     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21908     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21909     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21910       # Going to short mode and back again did indeed matter. Since short mode is
21911       # case insensitive, let's make it lowercase to improve readability.
21912       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21913       # Now convert it back to Unix-stile (cygpath)
21914       input_path=`$CYGPATH -u "$shortmode_path"`
21915       new_path="$input_path"
21916     fi
21917   fi
21918 
21919   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21920   if test "x$test_cygdrive_prefix" = x; then
21921     # As a simple fix, exclude /usr/bin since it's not a real path.
21922     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21923       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21924       # a path prefixed by /cygdrive for fixpath to work.
21925       new_path="$CYGWIN_ROOT_PATH$input_path"
21926     fi
21927   fi
21928 
21929 
21930   if test "x$path" != "x$new_path"; then
21931     BOOT_JDK="$new_path"
21932     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21933 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21934   fi
21935 
21936   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21937 
21938   path="$BOOT_JDK"
21939   has_colon=`$ECHO $path | $GREP ^.:`
21940   new_path="$path"
21941   if test "x$has_colon" = x; then
21942     # Not in mixed or Windows style, start by that.
21943     new_path=`cmd //c echo $path`
21944   fi
21945 
21946 
21947   input_path="$new_path"
21948   # Check if we need to convert this using DOS-style short mode. If the path
21949   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21950   # take no chances and rewrite it.
21951   # Note: m4 eats our [], so we need to use [ and ] instead.
21952   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21953   if test "x$has_forbidden_chars" != x; then
21954     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21955     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21956   fi
21957 
21958 
21959   windows_path="$new_path"
21960   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21961     unix_path=`$CYGPATH -u "$windows_path"`
21962     new_path="$unix_path"
21963   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21964     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21965     new_path="$unix_path"
21966   fi
21967 
21968   if test "x$path" != "x$new_path"; then
21969     BOOT_JDK="$new_path"
21970     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21971 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21972   fi
21973 
21974   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21975   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21976 
21977   else
21978     # We're on a posix platform. Hooray! :)
21979     path="$BOOT_JDK"
21980     has_space=`$ECHO "$path" | $GREP " "`
21981     if test "x$has_space" != x; then
21982       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21983 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21984       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21985     fi
21986 
21987     # Use eval to expand a potential ~
21988     eval path="$path"
21989     if test ! -f "$path" && test ! -d "$path"; then
21990       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21991     fi
21992 
21993     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21994   fi
21995 
21996               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21997 $as_echo_n "checking for Boot JDK... " >&6; }
21998               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21999 $as_echo "$BOOT_JDK" >&6; }
22000               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22001 $as_echo_n "checking Boot JDK version... " >&6; }
22002               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22003               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22004 $as_echo "$BOOT_JDK_VERSION" >&6; }
22005             fi # end check jdk version
22006           fi # end check rt.jar
22007         fi # end check javac
22008       fi # end check java
22009     fi # end check boot jdk found
22010   fi
22011 
22012     done
22013   fi
22014 
22015   fi
22016 
22017 
22018     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22019     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22020       # Do we have a bin/java?
22021       if test ! -x "$BOOT_JDK/bin/java"; then
22022         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22023 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22024         BOOT_JDK_FOUND=no
22025       else
22026         # Do we have a bin/javac?
22027         if test ! -x "$BOOT_JDK/bin/javac"; then
22028           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22029 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22030           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22031 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22032           BOOT_JDK_FOUND=no
22033         else
22034           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22035           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22036             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22037 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22038             BOOT_JDK_FOUND=no
22039           else
22040             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22041             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22042 
22043             # Extra M4 quote needed to protect [] in grep expression.
22044             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22045             if test "x$FOUND_CORRECT_VERSION" = x; then
22046               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22048               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22049 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22050               BOOT_JDK_FOUND=no
22051             else
22052               # We're done! :-)
22053               BOOT_JDK_FOUND=yes
22054 
22055   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22056 
22057   # Input might be given as Windows format, start by converting to
22058   # unix format.
22059   path="$BOOT_JDK"
22060   new_path=`$CYGPATH -u "$path"`
22061 
22062   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22063   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22064   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22065   # "foo.exe" is OK but "foo" is an error.
22066   #
22067   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22068   # It is also a way to make sure we got the proper file name for the real test later on.
22069   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22070   if test "x$test_shortpath" = x; then
22071     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22072 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22073     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22074   fi
22075 
22076   # Call helper function which possibly converts this using DOS-style short mode.
22077   # If so, the updated path is stored in $new_path.
22078 
22079   input_path="$new_path"
22080   # Check if we need to convert this using DOS-style short mode. If the path
22081   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22082   # take no chances and rewrite it.
22083   # Note: m4 eats our [], so we need to use [ and ] instead.
22084   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22085   if test "x$has_forbidden_chars" != x; then
22086     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22087     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22088     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22089     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22090       # Going to short mode and back again did indeed matter. Since short mode is
22091       # case insensitive, let's make it lowercase to improve readability.
22092       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22093       # Now convert it back to Unix-stile (cygpath)
22094       input_path=`$CYGPATH -u "$shortmode_path"`
22095       new_path="$input_path"
22096     fi
22097   fi
22098 
22099   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22100   if test "x$test_cygdrive_prefix" = x; then
22101     # As a simple fix, exclude /usr/bin since it's not a real path.
22102     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22103       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22104       # a path prefixed by /cygdrive for fixpath to work.
22105       new_path="$CYGWIN_ROOT_PATH$input_path"
22106     fi
22107   fi
22108 
22109 
22110   if test "x$path" != "x$new_path"; then
22111     BOOT_JDK="$new_path"
22112     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22113 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22114   fi
22115 
22116   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22117 
22118   path="$BOOT_JDK"
22119   has_colon=`$ECHO $path | $GREP ^.:`
22120   new_path="$path"
22121   if test "x$has_colon" = x; then
22122     # Not in mixed or Windows style, start by that.
22123     new_path=`cmd //c echo $path`
22124   fi
22125 
22126 
22127   input_path="$new_path"
22128   # Check if we need to convert this using DOS-style short mode. If the path
22129   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22130   # take no chances and rewrite it.
22131   # Note: m4 eats our [], so we need to use [ and ] instead.
22132   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22133   if test "x$has_forbidden_chars" != x; then
22134     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22135     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22136   fi
22137 
22138 
22139   windows_path="$new_path"
22140   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22141     unix_path=`$CYGPATH -u "$windows_path"`
22142     new_path="$unix_path"
22143   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22144     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22145     new_path="$unix_path"
22146   fi
22147 
22148   if test "x$path" != "x$new_path"; then
22149     BOOT_JDK="$new_path"
22150     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22151 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22152   fi
22153 
22154   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22155   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22156 
22157   else
22158     # We're on a posix platform. Hooray! :)
22159     path="$BOOT_JDK"
22160     has_space=`$ECHO "$path" | $GREP " "`
22161     if test "x$has_space" != x; then
22162       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22163 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22164       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22165     fi
22166 
22167     # Use eval to expand a potential ~
22168     eval path="$path"
22169     if test ! -f "$path" && test ! -d "$path"; then
22170       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22171     fi
22172 
22173     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22174   fi
22175 
22176               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22177 $as_echo_n "checking for Boot JDK... " >&6; }
22178               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22179 $as_echo "$BOOT_JDK" >&6; }
22180               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22181 $as_echo_n "checking Boot JDK version... " >&6; }
22182               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22183               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22184 $as_echo "$BOOT_JDK_VERSION" >&6; }
22185             fi # end check jdk version
22186           fi # end check rt.jar
22187         fi # end check javac
22188       fi # end check java
22189     fi # end check boot jdk found
22190   fi
22191 
22192 
22193   if test "x$BOOT_JDK_FOUND" = xno; then
22194     # Now execute the test
22195 
22196   if test "x$PROGRAMW6432" != x; then
22197     VIRTUAL_DIR="$PROGRAMW6432/Java"
22198 
22199   windows_path="$VIRTUAL_DIR"
22200   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22201     unix_path=`$CYGPATH -u "$windows_path"`
22202     VIRTUAL_DIR="$unix_path"
22203   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22204     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22205     VIRTUAL_DIR="$unix_path"
22206   fi
22207 
22208 
22209   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22210   BOOT_JDK_SUFFIX=""
22211   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22212   if test "x$ALL_JDKS_FOUND" != x; then
22213     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22214 
22215   if test "x$BOOT_JDK_FOUND" = xno; then
22216     # Now execute the test
22217 
22218         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22219         if test -d "$BOOT_JDK"; then
22220           BOOT_JDK_FOUND=maybe
22221           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22222 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22223         fi
22224 
22225 
22226     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22227     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22228       # Do we have a bin/java?
22229       if test ! -x "$BOOT_JDK/bin/java"; then
22230         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22232         BOOT_JDK_FOUND=no
22233       else
22234         # Do we have a bin/javac?
22235         if test ! -x "$BOOT_JDK/bin/javac"; then
22236           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22237 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22238           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22239 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22240           BOOT_JDK_FOUND=no
22241         else
22242           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22243           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22244             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22245 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22246             BOOT_JDK_FOUND=no
22247           else
22248             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22249             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22250 
22251             # Extra M4 quote needed to protect [] in grep expression.
22252             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22253             if test "x$FOUND_CORRECT_VERSION" = x; then
22254               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22256               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22257 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22258               BOOT_JDK_FOUND=no
22259             else
22260               # We're done! :-)
22261               BOOT_JDK_FOUND=yes
22262 
22263   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22264 
22265   # Input might be given as Windows format, start by converting to
22266   # unix format.
22267   path="$BOOT_JDK"
22268   new_path=`$CYGPATH -u "$path"`
22269 
22270   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22271   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22272   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22273   # "foo.exe" is OK but "foo" is an error.
22274   #
22275   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22276   # It is also a way to make sure we got the proper file name for the real test later on.
22277   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22278   if test "x$test_shortpath" = x; then
22279     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22280 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22281     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22282   fi
22283 
22284   # Call helper function which possibly converts this using DOS-style short mode.
22285   # If so, the updated path is stored in $new_path.
22286 
22287   input_path="$new_path"
22288   # Check if we need to convert this using DOS-style short mode. If the path
22289   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22290   # take no chances and rewrite it.
22291   # Note: m4 eats our [], so we need to use [ and ] instead.
22292   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22293   if test "x$has_forbidden_chars" != x; then
22294     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22295     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22296     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22297     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22298       # Going to short mode and back again did indeed matter. Since short mode is
22299       # case insensitive, let's make it lowercase to improve readability.
22300       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22301       # Now convert it back to Unix-stile (cygpath)
22302       input_path=`$CYGPATH -u "$shortmode_path"`
22303       new_path="$input_path"
22304     fi
22305   fi
22306 
22307   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22308   if test "x$test_cygdrive_prefix" = x; then
22309     # As a simple fix, exclude /usr/bin since it's not a real path.
22310     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22311       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22312       # a path prefixed by /cygdrive for fixpath to work.
22313       new_path="$CYGWIN_ROOT_PATH$input_path"
22314     fi
22315   fi
22316 
22317 
22318   if test "x$path" != "x$new_path"; then
22319     BOOT_JDK="$new_path"
22320     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22321 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22322   fi
22323 
22324   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22325 
22326   path="$BOOT_JDK"
22327   has_colon=`$ECHO $path | $GREP ^.:`
22328   new_path="$path"
22329   if test "x$has_colon" = x; then
22330     # Not in mixed or Windows style, start by that.
22331     new_path=`cmd //c echo $path`
22332   fi
22333 
22334 
22335   input_path="$new_path"
22336   # Check if we need to convert this using DOS-style short mode. If the path
22337   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22338   # take no chances and rewrite it.
22339   # Note: m4 eats our [], so we need to use [ and ] instead.
22340   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22341   if test "x$has_forbidden_chars" != x; then
22342     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22343     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22344   fi
22345 
22346 
22347   windows_path="$new_path"
22348   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22349     unix_path=`$CYGPATH -u "$windows_path"`
22350     new_path="$unix_path"
22351   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22352     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22353     new_path="$unix_path"
22354   fi
22355 
22356   if test "x$path" != "x$new_path"; then
22357     BOOT_JDK="$new_path"
22358     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22359 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22360   fi
22361 
22362   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22363   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22364 
22365   else
22366     # We're on a posix platform. Hooray! :)
22367     path="$BOOT_JDK"
22368     has_space=`$ECHO "$path" | $GREP " "`
22369     if test "x$has_space" != x; then
22370       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22371 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22372       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22373     fi
22374 
22375     # Use eval to expand a potential ~
22376     eval path="$path"
22377     if test ! -f "$path" && test ! -d "$path"; then
22378       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22379     fi
22380 
22381     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22382   fi
22383 
22384               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22385 $as_echo_n "checking for Boot JDK... " >&6; }
22386               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22387 $as_echo "$BOOT_JDK" >&6; }
22388               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22389 $as_echo_n "checking Boot JDK version... " >&6; }
22390               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22391               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22392 $as_echo "$BOOT_JDK_VERSION" >&6; }
22393             fi # end check jdk version
22394           fi # end check rt.jar
22395         fi # end check javac
22396       fi # end check java
22397     fi # end check boot jdk found
22398   fi
22399 
22400     done
22401   fi
22402 
22403   fi
22404 
22405 
22406     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22407     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22408       # Do we have a bin/java?
22409       if test ! -x "$BOOT_JDK/bin/java"; then
22410         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22411 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22412         BOOT_JDK_FOUND=no
22413       else
22414         # Do we have a bin/javac?
22415         if test ! -x "$BOOT_JDK/bin/javac"; then
22416           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22418           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22419 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22420           BOOT_JDK_FOUND=no
22421         else
22422           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22423           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22424             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22425 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22426             BOOT_JDK_FOUND=no
22427           else
22428             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22429             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22430 
22431             # Extra M4 quote needed to protect [] in grep expression.
22432             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22433             if test "x$FOUND_CORRECT_VERSION" = x; then
22434               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22435 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22436               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22437 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22438               BOOT_JDK_FOUND=no
22439             else
22440               # We're done! :-)
22441               BOOT_JDK_FOUND=yes
22442 
22443   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22444 
22445   # Input might be given as Windows format, start by converting to
22446   # unix format.
22447   path="$BOOT_JDK"
22448   new_path=`$CYGPATH -u "$path"`
22449 
22450   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22451   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22452   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22453   # "foo.exe" is OK but "foo" is an error.
22454   #
22455   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22456   # It is also a way to make sure we got the proper file name for the real test later on.
22457   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22458   if test "x$test_shortpath" = x; then
22459     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22461     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22462   fi
22463 
22464   # Call helper function which possibly converts this using DOS-style short mode.
22465   # If so, the updated path is stored in $new_path.
22466 
22467   input_path="$new_path"
22468   # Check if we need to convert this using DOS-style short mode. If the path
22469   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22470   # take no chances and rewrite it.
22471   # Note: m4 eats our [], so we need to use [ and ] instead.
22472   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22473   if test "x$has_forbidden_chars" != x; then
22474     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22475     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22476     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22477     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22478       # Going to short mode and back again did indeed matter. Since short mode is
22479       # case insensitive, let's make it lowercase to improve readability.
22480       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22481       # Now convert it back to Unix-stile (cygpath)
22482       input_path=`$CYGPATH -u "$shortmode_path"`
22483       new_path="$input_path"
22484     fi
22485   fi
22486 
22487   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22488   if test "x$test_cygdrive_prefix" = x; then
22489     # As a simple fix, exclude /usr/bin since it's not a real path.
22490     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22491       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22492       # a path prefixed by /cygdrive for fixpath to work.
22493       new_path="$CYGWIN_ROOT_PATH$input_path"
22494     fi
22495   fi
22496 
22497 
22498   if test "x$path" != "x$new_path"; then
22499     BOOT_JDK="$new_path"
22500     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22501 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22502   fi
22503 
22504   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22505 
22506   path="$BOOT_JDK"
22507   has_colon=`$ECHO $path | $GREP ^.:`
22508   new_path="$path"
22509   if test "x$has_colon" = x; then
22510     # Not in mixed or Windows style, start by that.
22511     new_path=`cmd //c echo $path`
22512   fi
22513 
22514 
22515   input_path="$new_path"
22516   # Check if we need to convert this using DOS-style short mode. If the path
22517   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22518   # take no chances and rewrite it.
22519   # Note: m4 eats our [], so we need to use [ and ] instead.
22520   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22521   if test "x$has_forbidden_chars" != x; then
22522     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22523     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22524   fi
22525 
22526 
22527   windows_path="$new_path"
22528   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22529     unix_path=`$CYGPATH -u "$windows_path"`
22530     new_path="$unix_path"
22531   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22532     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22533     new_path="$unix_path"
22534   fi
22535 
22536   if test "x$path" != "x$new_path"; then
22537     BOOT_JDK="$new_path"
22538     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22539 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22540   fi
22541 
22542   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22543   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22544 
22545   else
22546     # We're on a posix platform. Hooray! :)
22547     path="$BOOT_JDK"
22548     has_space=`$ECHO "$path" | $GREP " "`
22549     if test "x$has_space" != x; then
22550       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22551 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22552       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22553     fi
22554 
22555     # Use eval to expand a potential ~
22556     eval path="$path"
22557     if test ! -f "$path" && test ! -d "$path"; then
22558       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22559     fi
22560 
22561     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22562   fi
22563 
22564               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22565 $as_echo_n "checking for Boot JDK... " >&6; }
22566               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22567 $as_echo "$BOOT_JDK" >&6; }
22568               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22569 $as_echo_n "checking Boot JDK version... " >&6; }
22570               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22571               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22572 $as_echo "$BOOT_JDK_VERSION" >&6; }
22573             fi # end check jdk version
22574           fi # end check rt.jar
22575         fi # end check javac
22576       fi # end check java
22577     fi # end check boot jdk found
22578   fi
22579 
22580 
22581   if test "x$BOOT_JDK_FOUND" = xno; then
22582     # Now execute the test
22583 
22584   if test "x$PROGRAMFILES" != x; then
22585     VIRTUAL_DIR="$PROGRAMFILES/Java"
22586 
22587   windows_path="$VIRTUAL_DIR"
22588   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22589     unix_path=`$CYGPATH -u "$windows_path"`
22590     VIRTUAL_DIR="$unix_path"
22591   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22592     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22593     VIRTUAL_DIR="$unix_path"
22594   fi
22595 
22596 
22597   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22598   BOOT_JDK_SUFFIX=""
22599   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22600   if test "x$ALL_JDKS_FOUND" != x; then
22601     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22602 
22603   if test "x$BOOT_JDK_FOUND" = xno; then
22604     # Now execute the test
22605 
22606         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22607         if test -d "$BOOT_JDK"; then
22608           BOOT_JDK_FOUND=maybe
22609           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22610 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22611         fi
22612 
22613 
22614     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22615     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22616       # Do we have a bin/java?
22617       if test ! -x "$BOOT_JDK/bin/java"; then
22618         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22620         BOOT_JDK_FOUND=no
22621       else
22622         # Do we have a bin/javac?
22623         if test ! -x "$BOOT_JDK/bin/javac"; then
22624           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22626           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22627 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22628           BOOT_JDK_FOUND=no
22629         else
22630           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22631           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22632             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22633 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22634             BOOT_JDK_FOUND=no
22635           else
22636             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22637             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22638 
22639             # Extra M4 quote needed to protect [] in grep expression.
22640             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22641             if test "x$FOUND_CORRECT_VERSION" = x; then
22642               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22644               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22645 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22646               BOOT_JDK_FOUND=no
22647             else
22648               # We're done! :-)
22649               BOOT_JDK_FOUND=yes
22650 
22651   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22652 
22653   # Input might be given as Windows format, start by converting to
22654   # unix format.
22655   path="$BOOT_JDK"
22656   new_path=`$CYGPATH -u "$path"`
22657 
22658   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22659   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22660   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22661   # "foo.exe" is OK but "foo" is an error.
22662   #
22663   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22664   # It is also a way to make sure we got the proper file name for the real test later on.
22665   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22666   if test "x$test_shortpath" = x; then
22667     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22668 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22669     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22670   fi
22671 
22672   # Call helper function which possibly converts this using DOS-style short mode.
22673   # If so, the updated path is stored in $new_path.
22674 
22675   input_path="$new_path"
22676   # Check if we need to convert this using DOS-style short mode. If the path
22677   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22678   # take no chances and rewrite it.
22679   # Note: m4 eats our [], so we need to use [ and ] instead.
22680   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22681   if test "x$has_forbidden_chars" != x; then
22682     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22683     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22684     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22685     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22686       # Going to short mode and back again did indeed matter. Since short mode is
22687       # case insensitive, let's make it lowercase to improve readability.
22688       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22689       # Now convert it back to Unix-stile (cygpath)
22690       input_path=`$CYGPATH -u "$shortmode_path"`
22691       new_path="$input_path"
22692     fi
22693   fi
22694 
22695   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22696   if test "x$test_cygdrive_prefix" = x; then
22697     # As a simple fix, exclude /usr/bin since it's not a real path.
22698     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22699       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22700       # a path prefixed by /cygdrive for fixpath to work.
22701       new_path="$CYGWIN_ROOT_PATH$input_path"
22702     fi
22703   fi
22704 
22705 
22706   if test "x$path" != "x$new_path"; then
22707     BOOT_JDK="$new_path"
22708     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22709 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22710   fi
22711 
22712   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22713 
22714   path="$BOOT_JDK"
22715   has_colon=`$ECHO $path | $GREP ^.:`
22716   new_path="$path"
22717   if test "x$has_colon" = x; then
22718     # Not in mixed or Windows style, start by that.
22719     new_path=`cmd //c echo $path`
22720   fi
22721 
22722 
22723   input_path="$new_path"
22724   # Check if we need to convert this using DOS-style short mode. If the path
22725   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22726   # take no chances and rewrite it.
22727   # Note: m4 eats our [], so we need to use [ and ] instead.
22728   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22729   if test "x$has_forbidden_chars" != x; then
22730     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22731     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22732   fi
22733 
22734 
22735   windows_path="$new_path"
22736   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22737     unix_path=`$CYGPATH -u "$windows_path"`
22738     new_path="$unix_path"
22739   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22740     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22741     new_path="$unix_path"
22742   fi
22743 
22744   if test "x$path" != "x$new_path"; then
22745     BOOT_JDK="$new_path"
22746     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22747 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22748   fi
22749 
22750   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22751   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22752 
22753   else
22754     # We're on a posix platform. Hooray! :)
22755     path="$BOOT_JDK"
22756     has_space=`$ECHO "$path" | $GREP " "`
22757     if test "x$has_space" != x; then
22758       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22759 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22760       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22761     fi
22762 
22763     # Use eval to expand a potential ~
22764     eval path="$path"
22765     if test ! -f "$path" && test ! -d "$path"; then
22766       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22767     fi
22768 
22769     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22770   fi
22771 
22772               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22773 $as_echo_n "checking for Boot JDK... " >&6; }
22774               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22775 $as_echo "$BOOT_JDK" >&6; }
22776               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22777 $as_echo_n "checking Boot JDK version... " >&6; }
22778               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22779               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22780 $as_echo "$BOOT_JDK_VERSION" >&6; }
22781             fi # end check jdk version
22782           fi # end check rt.jar
22783         fi # end check javac
22784       fi # end check java
22785     fi # end check boot jdk found
22786   fi
22787 
22788     done
22789   fi
22790 
22791   fi
22792 
22793 
22794     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22795     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22796       # Do we have a bin/java?
22797       if test ! -x "$BOOT_JDK/bin/java"; then
22798         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22799 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22800         BOOT_JDK_FOUND=no
22801       else
22802         # Do we have a bin/javac?
22803         if test ! -x "$BOOT_JDK/bin/javac"; then
22804           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22805 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22806           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22807 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22808           BOOT_JDK_FOUND=no
22809         else
22810           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22811           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22812             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22813 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22814             BOOT_JDK_FOUND=no
22815           else
22816             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22817             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22818 
22819             # Extra M4 quote needed to protect [] in grep expression.
22820             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22821             if test "x$FOUND_CORRECT_VERSION" = x; then
22822               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22824               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22825 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22826               BOOT_JDK_FOUND=no
22827             else
22828               # We're done! :-)
22829               BOOT_JDK_FOUND=yes
22830 
22831   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22832 
22833   # Input might be given as Windows format, start by converting to
22834   # unix format.
22835   path="$BOOT_JDK"
22836   new_path=`$CYGPATH -u "$path"`
22837 
22838   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22839   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22840   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22841   # "foo.exe" is OK but "foo" is an error.
22842   #
22843   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22844   # It is also a way to make sure we got the proper file name for the real test later on.
22845   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22846   if test "x$test_shortpath" = x; then
22847     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22848 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22849     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22850   fi
22851 
22852   # Call helper function which possibly converts this using DOS-style short mode.
22853   # If so, the updated path is stored in $new_path.
22854 
22855   input_path="$new_path"
22856   # Check if we need to convert this using DOS-style short mode. If the path
22857   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22858   # take no chances and rewrite it.
22859   # Note: m4 eats our [], so we need to use [ and ] instead.
22860   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22861   if test "x$has_forbidden_chars" != x; then
22862     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22863     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22864     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22865     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22866       # Going to short mode and back again did indeed matter. Since short mode is
22867       # case insensitive, let's make it lowercase to improve readability.
22868       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22869       # Now convert it back to Unix-stile (cygpath)
22870       input_path=`$CYGPATH -u "$shortmode_path"`
22871       new_path="$input_path"
22872     fi
22873   fi
22874 
22875   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22876   if test "x$test_cygdrive_prefix" = x; then
22877     # As a simple fix, exclude /usr/bin since it's not a real path.
22878     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22879       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22880       # a path prefixed by /cygdrive for fixpath to work.
22881       new_path="$CYGWIN_ROOT_PATH$input_path"
22882     fi
22883   fi
22884 
22885 
22886   if test "x$path" != "x$new_path"; then
22887     BOOT_JDK="$new_path"
22888     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22889 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22890   fi
22891 
22892   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22893 
22894   path="$BOOT_JDK"
22895   has_colon=`$ECHO $path | $GREP ^.:`
22896   new_path="$path"
22897   if test "x$has_colon" = x; then
22898     # Not in mixed or Windows style, start by that.
22899     new_path=`cmd //c echo $path`
22900   fi
22901 
22902 
22903   input_path="$new_path"
22904   # Check if we need to convert this using DOS-style short mode. If the path
22905   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22906   # take no chances and rewrite it.
22907   # Note: m4 eats our [], so we need to use [ and ] instead.
22908   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22909   if test "x$has_forbidden_chars" != x; then
22910     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22911     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22912   fi
22913 
22914 
22915   windows_path="$new_path"
22916   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22917     unix_path=`$CYGPATH -u "$windows_path"`
22918     new_path="$unix_path"
22919   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22920     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22921     new_path="$unix_path"
22922   fi
22923 
22924   if test "x$path" != "x$new_path"; then
22925     BOOT_JDK="$new_path"
22926     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22927 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22928   fi
22929 
22930   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22931   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22932 
22933   else
22934     # We're on a posix platform. Hooray! :)
22935     path="$BOOT_JDK"
22936     has_space=`$ECHO "$path" | $GREP " "`
22937     if test "x$has_space" != x; then
22938       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22939 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22940       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22941     fi
22942 
22943     # Use eval to expand a potential ~
22944     eval path="$path"
22945     if test ! -f "$path" && test ! -d "$path"; then
22946       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22947     fi
22948 
22949     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22950   fi
22951 
22952               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22953 $as_echo_n "checking for Boot JDK... " >&6; }
22954               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22955 $as_echo "$BOOT_JDK" >&6; }
22956               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22957 $as_echo_n "checking Boot JDK version... " >&6; }
22958               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22959               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22960 $as_echo "$BOOT_JDK_VERSION" >&6; }
22961             fi # end check jdk version
22962           fi # end check rt.jar
22963         fi # end check javac
22964       fi # end check java
22965     fi # end check boot jdk found
22966   fi
22967 
22968 
22969   if test "x$BOOT_JDK_FOUND" = xno; then
22970     # Now execute the test
22971 
22972   if test "x$ProgramFiles" != x; then
22973     VIRTUAL_DIR="$ProgramFiles/Java"
22974 
22975   windows_path="$VIRTUAL_DIR"
22976   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22977     unix_path=`$CYGPATH -u "$windows_path"`
22978     VIRTUAL_DIR="$unix_path"
22979   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22980     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22981     VIRTUAL_DIR="$unix_path"
22982   fi
22983 
22984 
22985   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22986   BOOT_JDK_SUFFIX=""
22987   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22988   if test "x$ALL_JDKS_FOUND" != x; then
22989     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22990 
22991   if test "x$BOOT_JDK_FOUND" = xno; then
22992     # Now execute the test
22993 
22994         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22995         if test -d "$BOOT_JDK"; then
22996           BOOT_JDK_FOUND=maybe
22997           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22998 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22999         fi
23000 
23001 
23002     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23003     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23004       # Do we have a bin/java?
23005       if test ! -x "$BOOT_JDK/bin/java"; then
23006         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23008         BOOT_JDK_FOUND=no
23009       else
23010         # Do we have a bin/javac?
23011         if test ! -x "$BOOT_JDK/bin/javac"; then
23012           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23013 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23014           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23015 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23016           BOOT_JDK_FOUND=no
23017         else
23018           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23019           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23020             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23021 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23022             BOOT_JDK_FOUND=no
23023           else
23024             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23025             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23026 
23027             # Extra M4 quote needed to protect [] in grep expression.
23028             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23029             if test "x$FOUND_CORRECT_VERSION" = x; then
23030               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23031 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23032               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23033 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23034               BOOT_JDK_FOUND=no
23035             else
23036               # We're done! :-)
23037               BOOT_JDK_FOUND=yes
23038 
23039   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23040 
23041   # Input might be given as Windows format, start by converting to
23042   # unix format.
23043   path="$BOOT_JDK"
23044   new_path=`$CYGPATH -u "$path"`
23045 
23046   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23047   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23048   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23049   # "foo.exe" is OK but "foo" is an error.
23050   #
23051   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23052   # It is also a way to make sure we got the proper file name for the real test later on.
23053   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23054   if test "x$test_shortpath" = x; then
23055     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23056 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23057     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23058   fi
23059 
23060   # Call helper function which possibly converts this using DOS-style short mode.
23061   # If so, the updated path is stored in $new_path.
23062 
23063   input_path="$new_path"
23064   # Check if we need to convert this using DOS-style short mode. If the path
23065   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23066   # take no chances and rewrite it.
23067   # Note: m4 eats our [], so we need to use [ and ] instead.
23068   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23069   if test "x$has_forbidden_chars" != x; then
23070     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23071     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23072     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23073     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23074       # Going to short mode and back again did indeed matter. Since short mode is
23075       # case insensitive, let's make it lowercase to improve readability.
23076       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23077       # Now convert it back to Unix-stile (cygpath)
23078       input_path=`$CYGPATH -u "$shortmode_path"`
23079       new_path="$input_path"
23080     fi
23081   fi
23082 
23083   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23084   if test "x$test_cygdrive_prefix" = x; then
23085     # As a simple fix, exclude /usr/bin since it's not a real path.
23086     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23087       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23088       # a path prefixed by /cygdrive for fixpath to work.
23089       new_path="$CYGWIN_ROOT_PATH$input_path"
23090     fi
23091   fi
23092 
23093 
23094   if test "x$path" != "x$new_path"; then
23095     BOOT_JDK="$new_path"
23096     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23097 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23098   fi
23099 
23100   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23101 
23102   path="$BOOT_JDK"
23103   has_colon=`$ECHO $path | $GREP ^.:`
23104   new_path="$path"
23105   if test "x$has_colon" = x; then
23106     # Not in mixed or Windows style, start by that.
23107     new_path=`cmd //c echo $path`
23108   fi
23109 
23110 
23111   input_path="$new_path"
23112   # Check if we need to convert this using DOS-style short mode. If the path
23113   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23114   # take no chances and rewrite it.
23115   # Note: m4 eats our [], so we need to use [ and ] instead.
23116   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23117   if test "x$has_forbidden_chars" != x; then
23118     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23119     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23120   fi
23121 
23122 
23123   windows_path="$new_path"
23124   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23125     unix_path=`$CYGPATH -u "$windows_path"`
23126     new_path="$unix_path"
23127   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23128     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23129     new_path="$unix_path"
23130   fi
23131 
23132   if test "x$path" != "x$new_path"; then
23133     BOOT_JDK="$new_path"
23134     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23135 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23136   fi
23137 
23138   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23139   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23140 
23141   else
23142     # We're on a posix platform. Hooray! :)
23143     path="$BOOT_JDK"
23144     has_space=`$ECHO "$path" | $GREP " "`
23145     if test "x$has_space" != x; then
23146       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23147 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23148       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23149     fi
23150 
23151     # Use eval to expand a potential ~
23152     eval path="$path"
23153     if test ! -f "$path" && test ! -d "$path"; then
23154       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23155     fi
23156 
23157     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23158   fi
23159 
23160               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23161 $as_echo_n "checking for Boot JDK... " >&6; }
23162               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23163 $as_echo "$BOOT_JDK" >&6; }
23164               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23165 $as_echo_n "checking Boot JDK version... " >&6; }
23166               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23167               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23168 $as_echo "$BOOT_JDK_VERSION" >&6; }
23169             fi # end check jdk version
23170           fi # end check rt.jar
23171         fi # end check javac
23172       fi # end check java
23173     fi # end check boot jdk found
23174   fi
23175 
23176     done
23177   fi
23178 
23179   fi
23180 
23181 
23182     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23183     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23184       # Do we have a bin/java?
23185       if test ! -x "$BOOT_JDK/bin/java"; then
23186         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23188         BOOT_JDK_FOUND=no
23189       else
23190         # Do we have a bin/javac?
23191         if test ! -x "$BOOT_JDK/bin/javac"; then
23192           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23194           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23195 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23196           BOOT_JDK_FOUND=no
23197         else
23198           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23199           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23200             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23201 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23202             BOOT_JDK_FOUND=no
23203           else
23204             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23205             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23206 
23207             # Extra M4 quote needed to protect [] in grep expression.
23208             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23209             if test "x$FOUND_CORRECT_VERSION" = x; then
23210               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23211 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23212               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23213 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23214               BOOT_JDK_FOUND=no
23215             else
23216               # We're done! :-)
23217               BOOT_JDK_FOUND=yes
23218 
23219   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23220 
23221   # Input might be given as Windows format, start by converting to
23222   # unix format.
23223   path="$BOOT_JDK"
23224   new_path=`$CYGPATH -u "$path"`
23225 
23226   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23227   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23228   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23229   # "foo.exe" is OK but "foo" is an error.
23230   #
23231   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23232   # It is also a way to make sure we got the proper file name for the real test later on.
23233   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23234   if test "x$test_shortpath" = x; then
23235     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23236 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23237     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23238   fi
23239 
23240   # Call helper function which possibly converts this using DOS-style short mode.
23241   # If so, the updated path is stored in $new_path.
23242 
23243   input_path="$new_path"
23244   # Check if we need to convert this using DOS-style short mode. If the path
23245   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23246   # take no chances and rewrite it.
23247   # Note: m4 eats our [], so we need to use [ and ] instead.
23248   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23249   if test "x$has_forbidden_chars" != x; then
23250     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23251     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23252     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23253     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23254       # Going to short mode and back again did indeed matter. Since short mode is
23255       # case insensitive, let's make it lowercase to improve readability.
23256       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23257       # Now convert it back to Unix-stile (cygpath)
23258       input_path=`$CYGPATH -u "$shortmode_path"`
23259       new_path="$input_path"
23260     fi
23261   fi
23262 
23263   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23264   if test "x$test_cygdrive_prefix" = x; then
23265     # As a simple fix, exclude /usr/bin since it's not a real path.
23266     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23267       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23268       # a path prefixed by /cygdrive for fixpath to work.
23269       new_path="$CYGWIN_ROOT_PATH$input_path"
23270     fi
23271   fi
23272 
23273 
23274   if test "x$path" != "x$new_path"; then
23275     BOOT_JDK="$new_path"
23276     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23277 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23278   fi
23279 
23280   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23281 
23282   path="$BOOT_JDK"
23283   has_colon=`$ECHO $path | $GREP ^.:`
23284   new_path="$path"
23285   if test "x$has_colon" = x; then
23286     # Not in mixed or Windows style, start by that.
23287     new_path=`cmd //c echo $path`
23288   fi
23289 
23290 
23291   input_path="$new_path"
23292   # Check if we need to convert this using DOS-style short mode. If the path
23293   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23294   # take no chances and rewrite it.
23295   # Note: m4 eats our [], so we need to use [ and ] instead.
23296   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23297   if test "x$has_forbidden_chars" != x; then
23298     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23299     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23300   fi
23301 
23302 
23303   windows_path="$new_path"
23304   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23305     unix_path=`$CYGPATH -u "$windows_path"`
23306     new_path="$unix_path"
23307   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23308     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23309     new_path="$unix_path"
23310   fi
23311 
23312   if test "x$path" != "x$new_path"; then
23313     BOOT_JDK="$new_path"
23314     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23315 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23316   fi
23317 
23318   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23319   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23320 
23321   else
23322     # We're on a posix platform. Hooray! :)
23323     path="$BOOT_JDK"
23324     has_space=`$ECHO "$path" | $GREP " "`
23325     if test "x$has_space" != x; then
23326       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23327 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23328       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23329     fi
23330 
23331     # Use eval to expand a potential ~
23332     eval path="$path"
23333     if test ! -f "$path" && test ! -d "$path"; then
23334       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23335     fi
23336 
23337     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23338   fi
23339 
23340               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23341 $as_echo_n "checking for Boot JDK... " >&6; }
23342               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23343 $as_echo "$BOOT_JDK" >&6; }
23344               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23345 $as_echo_n "checking Boot JDK version... " >&6; }
23346               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23347               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23348 $as_echo "$BOOT_JDK_VERSION" >&6; }
23349             fi # end check jdk version
23350           fi # end check rt.jar
23351         fi # end check javac
23352       fi # end check java
23353     fi # end check boot jdk found
23354   fi
23355 
23356 
23357   if test "x$BOOT_JDK_FOUND" = xno; then
23358     # Now execute the test
23359 
23360   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23361   BOOT_JDK_SUFFIX=""
23362   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23363   if test "x$ALL_JDKS_FOUND" != x; then
23364     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23365 
23366   if test "x$BOOT_JDK_FOUND" = xno; then
23367     # Now execute the test
23368 
23369         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23370         if test -d "$BOOT_JDK"; then
23371           BOOT_JDK_FOUND=maybe
23372           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23373 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23374         fi
23375 
23376 
23377     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23378     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23379       # Do we have a bin/java?
23380       if test ! -x "$BOOT_JDK/bin/java"; then
23381         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23382 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23383         BOOT_JDK_FOUND=no
23384       else
23385         # Do we have a bin/javac?
23386         if test ! -x "$BOOT_JDK/bin/javac"; then
23387           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23389           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23390 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23391           BOOT_JDK_FOUND=no
23392         else
23393           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23394           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23395             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23396 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23397             BOOT_JDK_FOUND=no
23398           else
23399             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23400             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23401 
23402             # Extra M4 quote needed to protect [] in grep expression.
23403             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23404             if test "x$FOUND_CORRECT_VERSION" = x; then
23405               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23406 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23407               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23408 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23409               BOOT_JDK_FOUND=no
23410             else
23411               # We're done! :-)
23412               BOOT_JDK_FOUND=yes
23413 
23414   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23415 
23416   # Input might be given as Windows format, start by converting to
23417   # unix format.
23418   path="$BOOT_JDK"
23419   new_path=`$CYGPATH -u "$path"`
23420 
23421   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23422   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23423   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23424   # "foo.exe" is OK but "foo" is an error.
23425   #
23426   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23427   # It is also a way to make sure we got the proper file name for the real test later on.
23428   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23429   if test "x$test_shortpath" = x; then
23430     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23431 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23432     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23433   fi
23434 
23435   # Call helper function which possibly converts this using DOS-style short mode.
23436   # If so, the updated path is stored in $new_path.
23437 
23438   input_path="$new_path"
23439   # Check if we need to convert this using DOS-style short mode. If the path
23440   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23441   # take no chances and rewrite it.
23442   # Note: m4 eats our [], so we need to use [ and ] instead.
23443   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23444   if test "x$has_forbidden_chars" != x; then
23445     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23446     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23447     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23448     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23449       # Going to short mode and back again did indeed matter. Since short mode is
23450       # case insensitive, let's make it lowercase to improve readability.
23451       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23452       # Now convert it back to Unix-stile (cygpath)
23453       input_path=`$CYGPATH -u "$shortmode_path"`
23454       new_path="$input_path"
23455     fi
23456   fi
23457 
23458   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23459   if test "x$test_cygdrive_prefix" = x; then
23460     # As a simple fix, exclude /usr/bin since it's not a real path.
23461     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23462       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23463       # a path prefixed by /cygdrive for fixpath to work.
23464       new_path="$CYGWIN_ROOT_PATH$input_path"
23465     fi
23466   fi
23467 
23468 
23469   if test "x$path" != "x$new_path"; then
23470     BOOT_JDK="$new_path"
23471     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23472 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23473   fi
23474 
23475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23476 
23477   path="$BOOT_JDK"
23478   has_colon=`$ECHO $path | $GREP ^.:`
23479   new_path="$path"
23480   if test "x$has_colon" = x; then
23481     # Not in mixed or Windows style, start by that.
23482     new_path=`cmd //c echo $path`
23483   fi
23484 
23485 
23486   input_path="$new_path"
23487   # Check if we need to convert this using DOS-style short mode. If the path
23488   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23489   # take no chances and rewrite it.
23490   # Note: m4 eats our [], so we need to use [ and ] instead.
23491   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23492   if test "x$has_forbidden_chars" != x; then
23493     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23494     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23495   fi
23496 
23497 
23498   windows_path="$new_path"
23499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23500     unix_path=`$CYGPATH -u "$windows_path"`
23501     new_path="$unix_path"
23502   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23503     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23504     new_path="$unix_path"
23505   fi
23506 
23507   if test "x$path" != "x$new_path"; then
23508     BOOT_JDK="$new_path"
23509     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23510 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23511   fi
23512 
23513   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23514   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23515 
23516   else
23517     # We're on a posix platform. Hooray! :)
23518     path="$BOOT_JDK"
23519     has_space=`$ECHO "$path" | $GREP " "`
23520     if test "x$has_space" != x; then
23521       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23522 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23523       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23524     fi
23525 
23526     # Use eval to expand a potential ~
23527     eval path="$path"
23528     if test ! -f "$path" && test ! -d "$path"; then
23529       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23530     fi
23531 
23532     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23533   fi
23534 
23535               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23536 $as_echo_n "checking for Boot JDK... " >&6; }
23537               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23538 $as_echo "$BOOT_JDK" >&6; }
23539               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23540 $as_echo_n "checking Boot JDK version... " >&6; }
23541               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23542               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23543 $as_echo "$BOOT_JDK_VERSION" >&6; }
23544             fi # end check jdk version
23545           fi # end check rt.jar
23546         fi # end check javac
23547       fi # end check java
23548     fi # end check boot jdk found
23549   fi
23550 
23551     done
23552   fi
23553 
23554 
23555     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23556     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23557       # Do we have a bin/java?
23558       if test ! -x "$BOOT_JDK/bin/java"; then
23559         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23560 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23561         BOOT_JDK_FOUND=no
23562       else
23563         # Do we have a bin/javac?
23564         if test ! -x "$BOOT_JDK/bin/javac"; then
23565           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23566 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23567           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23568 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23569           BOOT_JDK_FOUND=no
23570         else
23571           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23572           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23573             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23574 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23575             BOOT_JDK_FOUND=no
23576           else
23577             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23578             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23579 
23580             # Extra M4 quote needed to protect [] in grep expression.
23581             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23582             if test "x$FOUND_CORRECT_VERSION" = x; then
23583               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23584 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23585               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23586 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23587               BOOT_JDK_FOUND=no
23588             else
23589               # We're done! :-)
23590               BOOT_JDK_FOUND=yes
23591 
23592   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23593 
23594   # Input might be given as Windows format, start by converting to
23595   # unix format.
23596   path="$BOOT_JDK"
23597   new_path=`$CYGPATH -u "$path"`
23598 
23599   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23600   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23601   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23602   # "foo.exe" is OK but "foo" is an error.
23603   #
23604   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23605   # It is also a way to make sure we got the proper file name for the real test later on.
23606   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23607   if test "x$test_shortpath" = x; then
23608     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23609 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23610     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23611   fi
23612 
23613   # Call helper function which possibly converts this using DOS-style short mode.
23614   # If so, the updated path is stored in $new_path.
23615 
23616   input_path="$new_path"
23617   # Check if we need to convert this using DOS-style short mode. If the path
23618   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23619   # take no chances and rewrite it.
23620   # Note: m4 eats our [], so we need to use [ and ] instead.
23621   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23622   if test "x$has_forbidden_chars" != x; then
23623     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23624     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23625     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23626     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23627       # Going to short mode and back again did indeed matter. Since short mode is
23628       # case insensitive, let's make it lowercase to improve readability.
23629       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23630       # Now convert it back to Unix-stile (cygpath)
23631       input_path=`$CYGPATH -u "$shortmode_path"`
23632       new_path="$input_path"
23633     fi
23634   fi
23635 
23636   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23637   if test "x$test_cygdrive_prefix" = x; then
23638     # As a simple fix, exclude /usr/bin since it's not a real path.
23639     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23640       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23641       # a path prefixed by /cygdrive for fixpath to work.
23642       new_path="$CYGWIN_ROOT_PATH$input_path"
23643     fi
23644   fi
23645 
23646 
23647   if test "x$path" != "x$new_path"; then
23648     BOOT_JDK="$new_path"
23649     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23650 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23651   fi
23652 
23653   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23654 
23655   path="$BOOT_JDK"
23656   has_colon=`$ECHO $path | $GREP ^.:`
23657   new_path="$path"
23658   if test "x$has_colon" = x; then
23659     # Not in mixed or Windows style, start by that.
23660     new_path=`cmd //c echo $path`
23661   fi
23662 
23663 
23664   input_path="$new_path"
23665   # Check if we need to convert this using DOS-style short mode. If the path
23666   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23667   # take no chances and rewrite it.
23668   # Note: m4 eats our [], so we need to use [ and ] instead.
23669   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23670   if test "x$has_forbidden_chars" != x; then
23671     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23672     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23673   fi
23674 
23675 
23676   windows_path="$new_path"
23677   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23678     unix_path=`$CYGPATH -u "$windows_path"`
23679     new_path="$unix_path"
23680   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23681     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23682     new_path="$unix_path"
23683   fi
23684 
23685   if test "x$path" != "x$new_path"; then
23686     BOOT_JDK="$new_path"
23687     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23688 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23689   fi
23690 
23691   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23692   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23693 
23694   else
23695     # We're on a posix platform. Hooray! :)
23696     path="$BOOT_JDK"
23697     has_space=`$ECHO "$path" | $GREP " "`
23698     if test "x$has_space" != x; then
23699       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23700 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23701       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23702     fi
23703 
23704     # Use eval to expand a potential ~
23705     eval path="$path"
23706     if test ! -f "$path" && test ! -d "$path"; then
23707       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23708     fi
23709 
23710     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23711   fi
23712 
23713               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23714 $as_echo_n "checking for Boot JDK... " >&6; }
23715               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23716 $as_echo "$BOOT_JDK" >&6; }
23717               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23718 $as_echo_n "checking Boot JDK version... " >&6; }
23719               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23720               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23721 $as_echo "$BOOT_JDK_VERSION" >&6; }
23722             fi # end check jdk version
23723           fi # end check rt.jar
23724         fi # end check javac
23725       fi # end check java
23726     fi # end check boot jdk found
23727   fi
23728 
23729   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23730 
23731   if test "x$BOOT_JDK_FOUND" = xno; then
23732     # Now execute the test
23733 
23734   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23735   BOOT_JDK_SUFFIX="/Contents/Home"
23736   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23737   if test "x$ALL_JDKS_FOUND" != x; then
23738     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23739 
23740   if test "x$BOOT_JDK_FOUND" = xno; then
23741     # Now execute the test
23742 
23743         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23744         if test -d "$BOOT_JDK"; then
23745           BOOT_JDK_FOUND=maybe
23746           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23747 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23748         fi
23749 
23750 
23751     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23752     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23753       # Do we have a bin/java?
23754       if test ! -x "$BOOT_JDK/bin/java"; then
23755         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23756 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23757         BOOT_JDK_FOUND=no
23758       else
23759         # Do we have a bin/javac?
23760         if test ! -x "$BOOT_JDK/bin/javac"; then
23761           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23762 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23763           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23764 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23765           BOOT_JDK_FOUND=no
23766         else
23767           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23768           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23769             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23770 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23771             BOOT_JDK_FOUND=no
23772           else
23773             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23774             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23775 
23776             # Extra M4 quote needed to protect [] in grep expression.
23777             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23778             if test "x$FOUND_CORRECT_VERSION" = x; then
23779               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23780 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23781               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23782 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23783               BOOT_JDK_FOUND=no
23784             else
23785               # We're done! :-)
23786               BOOT_JDK_FOUND=yes
23787 
23788   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23789 
23790   # Input might be given as Windows format, start by converting to
23791   # unix format.
23792   path="$BOOT_JDK"
23793   new_path=`$CYGPATH -u "$path"`
23794 
23795   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23796   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23797   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23798   # "foo.exe" is OK but "foo" is an error.
23799   #
23800   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23801   # It is also a way to make sure we got the proper file name for the real test later on.
23802   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23803   if test "x$test_shortpath" = x; then
23804     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23805 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23806     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23807   fi
23808 
23809   # Call helper function which possibly converts this using DOS-style short mode.
23810   # If so, the updated path is stored in $new_path.
23811 
23812   input_path="$new_path"
23813   # Check if we need to convert this using DOS-style short mode. If the path
23814   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23815   # take no chances and rewrite it.
23816   # Note: m4 eats our [], so we need to use [ and ] instead.
23817   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23818   if test "x$has_forbidden_chars" != x; then
23819     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23820     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23821     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23822     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23823       # Going to short mode and back again did indeed matter. Since short mode is
23824       # case insensitive, let's make it lowercase to improve readability.
23825       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23826       # Now convert it back to Unix-stile (cygpath)
23827       input_path=`$CYGPATH -u "$shortmode_path"`
23828       new_path="$input_path"
23829     fi
23830   fi
23831 
23832   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23833   if test "x$test_cygdrive_prefix" = x; then
23834     # As a simple fix, exclude /usr/bin since it's not a real path.
23835     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23836       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23837       # a path prefixed by /cygdrive for fixpath to work.
23838       new_path="$CYGWIN_ROOT_PATH$input_path"
23839     fi
23840   fi
23841 
23842 
23843   if test "x$path" != "x$new_path"; then
23844     BOOT_JDK="$new_path"
23845     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23846 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23847   fi
23848 
23849   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23850 
23851   path="$BOOT_JDK"
23852   has_colon=`$ECHO $path | $GREP ^.:`
23853   new_path="$path"
23854   if test "x$has_colon" = x; then
23855     # Not in mixed or Windows style, start by that.
23856     new_path=`cmd //c echo $path`
23857   fi
23858 
23859 
23860   input_path="$new_path"
23861   # Check if we need to convert this using DOS-style short mode. If the path
23862   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23863   # take no chances and rewrite it.
23864   # Note: m4 eats our [], so we need to use [ and ] instead.
23865   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23866   if test "x$has_forbidden_chars" != x; then
23867     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23868     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23869   fi
23870 
23871 
23872   windows_path="$new_path"
23873   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23874     unix_path=`$CYGPATH -u "$windows_path"`
23875     new_path="$unix_path"
23876   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23877     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23878     new_path="$unix_path"
23879   fi
23880 
23881   if test "x$path" != "x$new_path"; then
23882     BOOT_JDK="$new_path"
23883     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23884 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23885   fi
23886 
23887   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23888   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23889 
23890   else
23891     # We're on a posix platform. Hooray! :)
23892     path="$BOOT_JDK"
23893     has_space=`$ECHO "$path" | $GREP " "`
23894     if test "x$has_space" != x; then
23895       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23896 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23897       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23898     fi
23899 
23900     # Use eval to expand a potential ~
23901     eval path="$path"
23902     if test ! -f "$path" && test ! -d "$path"; then
23903       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23904     fi
23905 
23906     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23907   fi
23908 
23909               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23910 $as_echo_n "checking for Boot JDK... " >&6; }
23911               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23912 $as_echo "$BOOT_JDK" >&6; }
23913               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23914 $as_echo_n "checking Boot JDK version... " >&6; }
23915               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23916               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23917 $as_echo "$BOOT_JDK_VERSION" >&6; }
23918             fi # end check jdk version
23919           fi # end check rt.jar
23920         fi # end check javac
23921       fi # end check java
23922     fi # end check boot jdk found
23923   fi
23924 
23925     done
23926   fi
23927 
23928 
23929     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23930     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23931       # Do we have a bin/java?
23932       if test ! -x "$BOOT_JDK/bin/java"; then
23933         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23934 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23935         BOOT_JDK_FOUND=no
23936       else
23937         # Do we have a bin/javac?
23938         if test ! -x "$BOOT_JDK/bin/javac"; then
23939           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23941           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23942 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23943           BOOT_JDK_FOUND=no
23944         else
23945           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23946           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23947             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23948 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23949             BOOT_JDK_FOUND=no
23950           else
23951             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23952             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23953 
23954             # Extra M4 quote needed to protect [] in grep expression.
23955             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23956             if test "x$FOUND_CORRECT_VERSION" = x; then
23957               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23958 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23959               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23960 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23961               BOOT_JDK_FOUND=no
23962             else
23963               # We're done! :-)
23964               BOOT_JDK_FOUND=yes
23965 
23966   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23967 
23968   # Input might be given as Windows format, start by converting to
23969   # unix format.
23970   path="$BOOT_JDK"
23971   new_path=`$CYGPATH -u "$path"`
23972 
23973   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23974   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23975   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23976   # "foo.exe" is OK but "foo" is an error.
23977   #
23978   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23979   # It is also a way to make sure we got the proper file name for the real test later on.
23980   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23981   if test "x$test_shortpath" = x; then
23982     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23983 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23984     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23985   fi
23986 
23987   # Call helper function which possibly converts this using DOS-style short mode.
23988   # If so, the updated path is stored in $new_path.
23989 
23990   input_path="$new_path"
23991   # Check if we need to convert this using DOS-style short mode. If the path
23992   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23993   # take no chances and rewrite it.
23994   # Note: m4 eats our [], so we need to use [ and ] instead.
23995   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23996   if test "x$has_forbidden_chars" != x; then
23997     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23998     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23999     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24000     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24001       # Going to short mode and back again did indeed matter. Since short mode is
24002       # case insensitive, let's make it lowercase to improve readability.
24003       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24004       # Now convert it back to Unix-stile (cygpath)
24005       input_path=`$CYGPATH -u "$shortmode_path"`
24006       new_path="$input_path"
24007     fi
24008   fi
24009 
24010   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24011   if test "x$test_cygdrive_prefix" = x; then
24012     # As a simple fix, exclude /usr/bin since it's not a real path.
24013     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24014       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24015       # a path prefixed by /cygdrive for fixpath to work.
24016       new_path="$CYGWIN_ROOT_PATH$input_path"
24017     fi
24018   fi
24019 
24020 
24021   if test "x$path" != "x$new_path"; then
24022     BOOT_JDK="$new_path"
24023     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24024 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24025   fi
24026 
24027   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24028 
24029   path="$BOOT_JDK"
24030   has_colon=`$ECHO $path | $GREP ^.:`
24031   new_path="$path"
24032   if test "x$has_colon" = x; then
24033     # Not in mixed or Windows style, start by that.
24034     new_path=`cmd //c echo $path`
24035   fi
24036 
24037 
24038   input_path="$new_path"
24039   # Check if we need to convert this using DOS-style short mode. If the path
24040   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24041   # take no chances and rewrite it.
24042   # Note: m4 eats our [], so we need to use [ and ] instead.
24043   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24044   if test "x$has_forbidden_chars" != x; then
24045     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24046     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24047   fi
24048 
24049 
24050   windows_path="$new_path"
24051   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24052     unix_path=`$CYGPATH -u "$windows_path"`
24053     new_path="$unix_path"
24054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24055     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24056     new_path="$unix_path"
24057   fi
24058 
24059   if test "x$path" != "x$new_path"; then
24060     BOOT_JDK="$new_path"
24061     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24062 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24063   fi
24064 
24065   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24066   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24067 
24068   else
24069     # We're on a posix platform. Hooray! :)
24070     path="$BOOT_JDK"
24071     has_space=`$ECHO "$path" | $GREP " "`
24072     if test "x$has_space" != x; then
24073       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24074 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24075       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24076     fi
24077 
24078     # Use eval to expand a potential ~
24079     eval path="$path"
24080     if test ! -f "$path" && test ! -d "$path"; then
24081       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24082     fi
24083 
24084     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24085   fi
24086 
24087               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24088 $as_echo_n "checking for Boot JDK... " >&6; }
24089               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24090 $as_echo "$BOOT_JDK" >&6; }
24091               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24092 $as_echo_n "checking Boot JDK version... " >&6; }
24093               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24094               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24095 $as_echo "$BOOT_JDK_VERSION" >&6; }
24096             fi # end check jdk version
24097           fi # end check rt.jar
24098         fi # end check javac
24099       fi # end check java
24100     fi # end check boot jdk found
24101   fi
24102 
24103 
24104   if test "x$BOOT_JDK_FOUND" = xno; then
24105     # Now execute the test
24106 
24107   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24108   BOOT_JDK_SUFFIX="/Contents/Home"
24109   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24110   if test "x$ALL_JDKS_FOUND" != x; then
24111     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24112 
24113   if test "x$BOOT_JDK_FOUND" = xno; then
24114     # Now execute the test
24115 
24116         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24117         if test -d "$BOOT_JDK"; then
24118           BOOT_JDK_FOUND=maybe
24119           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24120 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24121         fi
24122 
24123 
24124     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24125     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24126       # Do we have a bin/java?
24127       if test ! -x "$BOOT_JDK/bin/java"; then
24128         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24129 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24130         BOOT_JDK_FOUND=no
24131       else
24132         # Do we have a bin/javac?
24133         if test ! -x "$BOOT_JDK/bin/javac"; then
24134           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24136           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24137 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24138           BOOT_JDK_FOUND=no
24139         else
24140           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24141           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24142             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24143 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24144             BOOT_JDK_FOUND=no
24145           else
24146             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24147             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24148 
24149             # Extra M4 quote needed to protect [] in grep expression.
24150             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24151             if test "x$FOUND_CORRECT_VERSION" = x; then
24152               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24153 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24154               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24155 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24156               BOOT_JDK_FOUND=no
24157             else
24158               # We're done! :-)
24159               BOOT_JDK_FOUND=yes
24160 
24161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24162 
24163   # Input might be given as Windows format, start by converting to
24164   # unix format.
24165   path="$BOOT_JDK"
24166   new_path=`$CYGPATH -u "$path"`
24167 
24168   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24169   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24170   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24171   # "foo.exe" is OK but "foo" is an error.
24172   #
24173   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24174   # It is also a way to make sure we got the proper file name for the real test later on.
24175   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24176   if test "x$test_shortpath" = x; then
24177     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24178 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24179     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24180   fi
24181 
24182   # Call helper function which possibly converts this using DOS-style short mode.
24183   # If so, the updated path is stored in $new_path.
24184 
24185   input_path="$new_path"
24186   # Check if we need to convert this using DOS-style short mode. If the path
24187   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24188   # take no chances and rewrite it.
24189   # Note: m4 eats our [], so we need to use [ and ] instead.
24190   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24191   if test "x$has_forbidden_chars" != x; then
24192     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24193     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24194     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24195     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24196       # Going to short mode and back again did indeed matter. Since short mode is
24197       # case insensitive, let's make it lowercase to improve readability.
24198       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24199       # Now convert it back to Unix-stile (cygpath)
24200       input_path=`$CYGPATH -u "$shortmode_path"`
24201       new_path="$input_path"
24202     fi
24203   fi
24204 
24205   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24206   if test "x$test_cygdrive_prefix" = x; then
24207     # As a simple fix, exclude /usr/bin since it's not a real path.
24208     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24209       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24210       # a path prefixed by /cygdrive for fixpath to work.
24211       new_path="$CYGWIN_ROOT_PATH$input_path"
24212     fi
24213   fi
24214 
24215 
24216   if test "x$path" != "x$new_path"; then
24217     BOOT_JDK="$new_path"
24218     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24219 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24220   fi
24221 
24222   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24223 
24224   path="$BOOT_JDK"
24225   has_colon=`$ECHO $path | $GREP ^.:`
24226   new_path="$path"
24227   if test "x$has_colon" = x; then
24228     # Not in mixed or Windows style, start by that.
24229     new_path=`cmd //c echo $path`
24230   fi
24231 
24232 
24233   input_path="$new_path"
24234   # Check if we need to convert this using DOS-style short mode. If the path
24235   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24236   # take no chances and rewrite it.
24237   # Note: m4 eats our [], so we need to use [ and ] instead.
24238   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24239   if test "x$has_forbidden_chars" != x; then
24240     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24241     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24242   fi
24243 
24244 
24245   windows_path="$new_path"
24246   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24247     unix_path=`$CYGPATH -u "$windows_path"`
24248     new_path="$unix_path"
24249   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24250     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24251     new_path="$unix_path"
24252   fi
24253 
24254   if test "x$path" != "x$new_path"; then
24255     BOOT_JDK="$new_path"
24256     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24257 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24258   fi
24259 
24260   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24261   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24262 
24263   else
24264     # We're on a posix platform. Hooray! :)
24265     path="$BOOT_JDK"
24266     has_space=`$ECHO "$path" | $GREP " "`
24267     if test "x$has_space" != x; then
24268       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24269 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24270       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24271     fi
24272 
24273     # Use eval to expand a potential ~
24274     eval path="$path"
24275     if test ! -f "$path" && test ! -d "$path"; then
24276       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24277     fi
24278 
24279     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24280   fi
24281 
24282               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24283 $as_echo_n "checking for Boot JDK... " >&6; }
24284               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24285 $as_echo "$BOOT_JDK" >&6; }
24286               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24287 $as_echo_n "checking Boot JDK version... " >&6; }
24288               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24289               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24290 $as_echo "$BOOT_JDK_VERSION" >&6; }
24291             fi # end check jdk version
24292           fi # end check rt.jar
24293         fi # end check javac
24294       fi # end check java
24295     fi # end check boot jdk found
24296   fi
24297 
24298     done
24299   fi
24300 
24301 
24302     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24303     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24304       # Do we have a bin/java?
24305       if test ! -x "$BOOT_JDK/bin/java"; then
24306         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24307 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24308         BOOT_JDK_FOUND=no
24309       else
24310         # Do we have a bin/javac?
24311         if test ! -x "$BOOT_JDK/bin/javac"; then
24312           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24313 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24314           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24315 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24316           BOOT_JDK_FOUND=no
24317         else
24318           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24319           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24320             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24321 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24322             BOOT_JDK_FOUND=no
24323           else
24324             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24325             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24326 
24327             # Extra M4 quote needed to protect [] in grep expression.
24328             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24329             if test "x$FOUND_CORRECT_VERSION" = x; then
24330               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24331 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24332               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24333 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24334               BOOT_JDK_FOUND=no
24335             else
24336               # We're done! :-)
24337               BOOT_JDK_FOUND=yes
24338 
24339   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24340 
24341   # Input might be given as Windows format, start by converting to
24342   # unix format.
24343   path="$BOOT_JDK"
24344   new_path=`$CYGPATH -u "$path"`
24345 
24346   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24347   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24348   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24349   # "foo.exe" is OK but "foo" is an error.
24350   #
24351   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24352   # It is also a way to make sure we got the proper file name for the real test later on.
24353   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24354   if test "x$test_shortpath" = x; then
24355     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24356 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24357     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24358   fi
24359 
24360   # Call helper function which possibly converts this using DOS-style short mode.
24361   # If so, the updated path is stored in $new_path.
24362 
24363   input_path="$new_path"
24364   # Check if we need to convert this using DOS-style short mode. If the path
24365   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24366   # take no chances and rewrite it.
24367   # Note: m4 eats our [], so we need to use [ and ] instead.
24368   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24369   if test "x$has_forbidden_chars" != x; then
24370     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24371     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24372     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24373     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24374       # Going to short mode and back again did indeed matter. Since short mode is
24375       # case insensitive, let's make it lowercase to improve readability.
24376       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24377       # Now convert it back to Unix-stile (cygpath)
24378       input_path=`$CYGPATH -u "$shortmode_path"`
24379       new_path="$input_path"
24380     fi
24381   fi
24382 
24383   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24384   if test "x$test_cygdrive_prefix" = x; then
24385     # As a simple fix, exclude /usr/bin since it's not a real path.
24386     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24387       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24388       # a path prefixed by /cygdrive for fixpath to work.
24389       new_path="$CYGWIN_ROOT_PATH$input_path"
24390     fi
24391   fi
24392 
24393 
24394   if test "x$path" != "x$new_path"; then
24395     BOOT_JDK="$new_path"
24396     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24397 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24398   fi
24399 
24400   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24401 
24402   path="$BOOT_JDK"
24403   has_colon=`$ECHO $path | $GREP ^.:`
24404   new_path="$path"
24405   if test "x$has_colon" = x; then
24406     # Not in mixed or Windows style, start by that.
24407     new_path=`cmd //c echo $path`
24408   fi
24409 
24410 
24411   input_path="$new_path"
24412   # Check if we need to convert this using DOS-style short mode. If the path
24413   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24414   # take no chances and rewrite it.
24415   # Note: m4 eats our [], so we need to use [ and ] instead.
24416   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24417   if test "x$has_forbidden_chars" != x; then
24418     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24419     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24420   fi
24421 
24422 
24423   windows_path="$new_path"
24424   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24425     unix_path=`$CYGPATH -u "$windows_path"`
24426     new_path="$unix_path"
24427   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24428     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24429     new_path="$unix_path"
24430   fi
24431 
24432   if test "x$path" != "x$new_path"; then
24433     BOOT_JDK="$new_path"
24434     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24435 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24436   fi
24437 
24438   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24439   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24440 
24441   else
24442     # We're on a posix platform. Hooray! :)
24443     path="$BOOT_JDK"
24444     has_space=`$ECHO "$path" | $GREP " "`
24445     if test "x$has_space" != x; then
24446       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24447 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24448       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24449     fi
24450 
24451     # Use eval to expand a potential ~
24452     eval path="$path"
24453     if test ! -f "$path" && test ! -d "$path"; then
24454       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24455     fi
24456 
24457     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24458   fi
24459 
24460               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24461 $as_echo_n "checking for Boot JDK... " >&6; }
24462               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24463 $as_echo "$BOOT_JDK" >&6; }
24464               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24465 $as_echo_n "checking Boot JDK version... " >&6; }
24466               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24467               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24468 $as_echo "$BOOT_JDK_VERSION" >&6; }
24469             fi # end check jdk version
24470           fi # end check rt.jar
24471         fi # end check javac
24472       fi # end check java
24473     fi # end check boot jdk found
24474   fi
24475 
24476   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24477 
24478   if test "x$BOOT_JDK_FOUND" = xno; then
24479     # Now execute the test
24480 
24481   BOOT_JDK_PREFIX="/usr/lib/jvm"
24482   BOOT_JDK_SUFFIX=""
24483   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24484   if test "x$ALL_JDKS_FOUND" != x; then
24485     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24486 
24487   if test "x$BOOT_JDK_FOUND" = xno; then
24488     # Now execute the test
24489 
24490         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24491         if test -d "$BOOT_JDK"; then
24492           BOOT_JDK_FOUND=maybe
24493           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24494 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24495         fi
24496 
24497 
24498     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24499     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24500       # Do we have a bin/java?
24501       if test ! -x "$BOOT_JDK/bin/java"; then
24502         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24503 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24504         BOOT_JDK_FOUND=no
24505       else
24506         # Do we have a bin/javac?
24507         if test ! -x "$BOOT_JDK/bin/javac"; then
24508           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24509 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24510           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24511 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24512           BOOT_JDK_FOUND=no
24513         else
24514           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24515           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24516             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24517 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24518             BOOT_JDK_FOUND=no
24519           else
24520             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24521             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24522 
24523             # Extra M4 quote needed to protect [] in grep expression.
24524             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24525             if test "x$FOUND_CORRECT_VERSION" = x; then
24526               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24527 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24528               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24529 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24530               BOOT_JDK_FOUND=no
24531             else
24532               # We're done! :-)
24533               BOOT_JDK_FOUND=yes
24534 
24535   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24536 
24537   # Input might be given as Windows format, start by converting to
24538   # unix format.
24539   path="$BOOT_JDK"
24540   new_path=`$CYGPATH -u "$path"`
24541 
24542   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24543   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24544   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24545   # "foo.exe" is OK but "foo" is an error.
24546   #
24547   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24548   # It is also a way to make sure we got the proper file name for the real test later on.
24549   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24550   if test "x$test_shortpath" = x; then
24551     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24552 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24553     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24554   fi
24555 
24556   # Call helper function which possibly converts this using DOS-style short mode.
24557   # If so, the updated path is stored in $new_path.
24558 
24559   input_path="$new_path"
24560   # Check if we need to convert this using DOS-style short mode. If the path
24561   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24562   # take no chances and rewrite it.
24563   # Note: m4 eats our [], so we need to use [ and ] instead.
24564   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24565   if test "x$has_forbidden_chars" != x; then
24566     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24567     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24568     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24569     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24570       # Going to short mode and back again did indeed matter. Since short mode is
24571       # case insensitive, let's make it lowercase to improve readability.
24572       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24573       # Now convert it back to Unix-stile (cygpath)
24574       input_path=`$CYGPATH -u "$shortmode_path"`
24575       new_path="$input_path"
24576     fi
24577   fi
24578 
24579   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24580   if test "x$test_cygdrive_prefix" = x; then
24581     # As a simple fix, exclude /usr/bin since it's not a real path.
24582     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24583       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24584       # a path prefixed by /cygdrive for fixpath to work.
24585       new_path="$CYGWIN_ROOT_PATH$input_path"
24586     fi
24587   fi
24588 
24589 
24590   if test "x$path" != "x$new_path"; then
24591     BOOT_JDK="$new_path"
24592     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24593 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24594   fi
24595 
24596   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24597 
24598   path="$BOOT_JDK"
24599   has_colon=`$ECHO $path | $GREP ^.:`
24600   new_path="$path"
24601   if test "x$has_colon" = x; then
24602     # Not in mixed or Windows style, start by that.
24603     new_path=`cmd //c echo $path`
24604   fi
24605 
24606 
24607   input_path="$new_path"
24608   # Check if we need to convert this using DOS-style short mode. If the path
24609   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24610   # take no chances and rewrite it.
24611   # Note: m4 eats our [], so we need to use [ and ] instead.
24612   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24613   if test "x$has_forbidden_chars" != x; then
24614     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24615     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24616   fi
24617 
24618 
24619   windows_path="$new_path"
24620   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24621     unix_path=`$CYGPATH -u "$windows_path"`
24622     new_path="$unix_path"
24623   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24624     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24625     new_path="$unix_path"
24626   fi
24627 
24628   if test "x$path" != "x$new_path"; then
24629     BOOT_JDK="$new_path"
24630     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24631 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24632   fi
24633 
24634   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24635   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24636 
24637   else
24638     # We're on a posix platform. Hooray! :)
24639     path="$BOOT_JDK"
24640     has_space=`$ECHO "$path" | $GREP " "`
24641     if test "x$has_space" != x; then
24642       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24643 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24644       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24645     fi
24646 
24647     # Use eval to expand a potential ~
24648     eval path="$path"
24649     if test ! -f "$path" && test ! -d "$path"; then
24650       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24651     fi
24652 
24653     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24654   fi
24655 
24656               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24657 $as_echo_n "checking for Boot JDK... " >&6; }
24658               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24659 $as_echo "$BOOT_JDK" >&6; }
24660               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24661 $as_echo_n "checking Boot JDK version... " >&6; }
24662               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24663               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24664 $as_echo "$BOOT_JDK_VERSION" >&6; }
24665             fi # end check jdk version
24666           fi # end check rt.jar
24667         fi # end check javac
24668       fi # end check java
24669     fi # end check boot jdk found
24670   fi
24671 
24672     done
24673   fi
24674 
24675 
24676     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24677     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24678       # Do we have a bin/java?
24679       if test ! -x "$BOOT_JDK/bin/java"; then
24680         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24681 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24682         BOOT_JDK_FOUND=no
24683       else
24684         # Do we have a bin/javac?
24685         if test ! -x "$BOOT_JDK/bin/javac"; then
24686           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24687 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24688           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24689 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24690           BOOT_JDK_FOUND=no
24691         else
24692           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24693           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24694             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24695 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24696             BOOT_JDK_FOUND=no
24697           else
24698             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24699             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24700 
24701             # Extra M4 quote needed to protect [] in grep expression.
24702             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24703