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 jdk8.
  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='jdk8'
 590 PACKAGE_STRING='OpenJDK jdk8'
 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 UCRT_DLL_DIR
 644 MSVCP_DLL
 645 MSVCR_DLL
 646 LIBCXX
 647 LLVM_LIBS
 648 LLVM_LDFLAGS
 649 LLVM_CFLAGS
 650 LLVM_CONFIG
 651 LIBFFI_LIBS
 652 LIBFFI_CFLAGS
 653 STATIC_CXX_SETTING
 654 LIBDL
 655 LIBM
 656 LIBZIP_CAN_USE_MMAP
 657 USE_EXTERNAL_LIBZ
 658 USE_EXTERNAL_LIBGIF
 659 USE_EXTERNAL_LIBJPEG
 660 FONTCONFIG_CFLAGS
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 X_EXTRA_LIBS
 668 X_LIBS
 669 X_PRE_LIBS
 670 X_CFLAGS
 671 XMKMF
 672 FIXPATH
 673 ZIP_DEBUGINFO_FILES
 674 DEBUG_BINARIES
 675 STRIP_POLICY
 676 ENABLE_DEBUG_SYMBOLS
 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 678 ZERO_ARCHFLAG
 679 LDFLAGS_CXX_JDK
 680 LDFLAGS_JDKEXE_SUFFIX
 681 LDFLAGS_JDKLIB_SUFFIX
 682 LDFLAGS_JDKEXE
 683 LDFLAGS_JDKLIB
 684 CXXFLAGS_JDKEXE
 685 CXXFLAGS_JDKLIB
 686 CFLAGS_JDKEXE
 687 CFLAGS_JDKLIB
 688 MACOSX_VERSION_MIN
 689 FDLIBM_CFLAGS
 690 NO_LIFETIME_DSE_CFLAG
 691 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 692 LEGACY_EXTRA_ASFLAGS
 693 LEGACY_EXTRA_LDFLAGS
 694 LEGACY_EXTRA_CXXFLAGS
 695 LEGACY_EXTRA_CFLAGS
 696 CXXSTD_CXXFLAG
 697 CXX_O_FLAG_NONE
 698 CXX_O_FLAG_NORM
 699 CXX_O_FLAG_HI
 700 CXX_O_FLAG_HIGHEST
 701 C_O_FLAG_NONE
 702 C_O_FLAG_NORM
 703 C_O_FLAG_HI
 704 C_O_FLAG_HIGHEST
 705 CXXFLAGS_DEBUG_SYMBOLS
 706 CFLAGS_DEBUG_SYMBOLS
 707 ASFLAGS_DEBUG_SYMBOLS
 708 CXX_FLAG_DEPS
 709 C_FLAG_DEPS
 710 SET_SHARED_LIBRARY_MAPFILE
 711 SET_SHARED_LIBRARY_NAME
 712 SET_SHARED_LIBRARY_ORIGIN
 713 SET_EXECUTABLE_ORIGIN
 714 SHARED_LIBRARY_FLAGS
 715 CXX_FLAG_REORDER
 716 C_FLAG_REORDER
 717 SYSROOT_LDFLAGS
 718 SYSROOT_CFLAGS
 719 RC_FLAGS
 720 AR_OUT_OPTION
 721 LD_OUT_OPTION
 722 EXE_OUT_OPTION
 723 CC_OUT_OPTION
 724 POST_MCS_CMD
 725 POST_STRIP_CMD
 726 ARFLAGS
 727 COMPILER_TARGET_BITS_FLAG
 728 JT_HOME
 729 JTREGEXE
 730 USING_BROKEN_SUSE_LD
 731 PACKAGE_PATH
 732 LDEXECXX
 733 LDEXE
 734 USE_CLANG
 735 HOTSPOT_LD
 736 HOTSPOT_CXX
 737 HOTSPOT_RC
 738 HOTSPOT_MT
 739 BUILD_LD
 740 BUILD_CXX
 741 BUILD_CC
 742 ac_ct_OBJDUMP
 743 OBJDUMP
 744 ac_ct_OBJCOPY
 745 OBJCOPY
 746 ac_ct_NM
 747 OTOOL
 748 ac_ct_STRIP
 749 MCS
 750 GNM
 751 NM
 752 STRIP
 753 MSBUILD
 754 DUMPBIN
 755 RC
 756 MT
 757 LIPO
 758 ac_ct_OBJC
 759 OBJCFLAGS
 760 OBJC
 761 ac_ct_AR
 762 AR
 763 AS
 764 LDCXX
 765 LD
 766 CXXCPP
 767 CPP
 768 CXX_VERSION_NUMBER
 769 CC_VERSION_NUMBER
 770 ac_ct_CXX
 771 CXXFLAGS
 772 CXX
 773 ac_ct_PROPER_COMPILER_CXX
 774 PROPER_COMPILER_CXX
 775 TOOLCHAIN_PATH_CXX
 776 POTENTIAL_CXX
 777 OBJEXT
 778 EXEEXT
 779 ac_ct_CC
 780 CPPFLAGS
 781 LDFLAGS
 782 CFLAGS
 783 CC
 784 ac_ct_PROPER_COMPILER_CC
 785 PROPER_COMPILER_CC
 786 TOOLCHAIN_PATH_CC
 787 POTENTIAL_CC
 788 SDKPATH
 789 XCODEBUILD
 790 SET_DEVELOPER_DIR
 791 VS_LIB
 792 VS_INCLUDE
 793 VS_PATH
 794 CYGWIN_LINK
 795 EXE_SUFFIX
 796 OBJ_SUFFIX
 797 STATIC_LIBRARY
 798 SHARED_LIBRARY
 799 STATIC_LIBRARY_SUFFIX
 800 SHARED_LIBRARY_SUFFIX
 801 LIBRARY_PREFIX
 802 TOOLCHAIN_TYPE
 803 BUILD_HOTSPOT
 804 HOTSPOT_DIST
 805 BUILD_OUTPUT
 806 OVERRIDE_SRC_ROOT
 807 ADD_SRC_ROOT
 808 JDK_TOPDIR
 809 NASHORN_TOPDIR
 810 HOTSPOT_TOPDIR
 811 JAXWS_TOPDIR
 812 JAXP_TOPDIR
 813 CORBA_TOPDIR
 814 LANGTOOLS_TOPDIR
 815 JAVA_FLAGS_SMALL
 816 JAVA_FLAGS_BIG
 817 JAVA_FLAGS
 818 BOOT_JDK_BITS
 819 JAVAC_FLAGS
 820 BOOT_JDK_SOURCETARGET
 821 BOOT_JDK
 822 BOOT_TOOLSJAR
 823 BOOT_RTJAR
 824 JAVA_CHECK
 825 JAVAC_CHECK
 826 COOKED_BUILD_NUMBER
 827 COOKED_JDK_UPDATE_VERSION
 828 JDK_VERSION
 829 COPYRIGHT_YEAR
 830 VENDOR_URL_VM_BUG
 831 VENDOR_URL_BUG
 832 VENDOR_URL
 833 COMPANY_NAME
 834 MACOSX_BUNDLE_ID_BASE
 835 MACOSX_BUNDLE_NAME_BASE
 836 JDK_RC_PLATFORM_NAME
 837 PRODUCT_SUFFIX
 838 PRODUCT_NAME
 839 LAUNCHER_NAME
 840 MILESTONE
 841 JDK_BUILD_NUMBER
 842 JDK_UPDATE_VERSION
 843 JDK_MICRO_VERSION
 844 JDK_MINOR_VERSION
 845 JDK_MAJOR_VERSION
 846 USER_RELEASE_SUFFIX
 847 ENABLE_JFR
 848 COMPRESS_JARS
 849 UNLIMITED_CRYPTO
 850 CACERTS_FILE
 851 TEST_IN_BUILD
 852 BUILD_HEADLESS
 853 SUPPORT_HEADFUL
 854 SUPPORT_HEADLESS
 855 BDEPS_FTP
 856 BDEPS_UNZIP
 857 OS_VERSION_MICRO
 858 OS_VERSION_MINOR
 859 OS_VERSION_MAJOR
 860 PKG_CONFIG
 861 CODESIGN
 862 XATTR
 863 DSYMUTIL
 864 IS_GNU_TIME
 865 TIME
 866 STAT
 867 HG
 868 READELF
 869 LDD
 870 ZIP
 871 UNZIP
 872 FIND_DELETE
 873 MAKE
 874 CHECK_TOOLSDIR_MAKE
 875 CHECK_TOOLSDIR_GMAKE
 876 CHECK_MAKE
 877 CHECK_GMAKE
 878 PKGHANDLER
 879 OUTPUT_ROOT
 880 CONF_NAME
 881 SPEC
 882 DEVKIT_LIB_DIR
 883 BUILD_VARIANT_RELEASE
 884 DEBUG_CLASSFILES
 885 FASTDEBUG
 886 VARIANT
 887 DEBUG_LEVEL
 888 MACOSX_UNIVERSAL
 889 INCLUDE_SA
 890 JVM_VARIANT_CORE
 891 JVM_VARIANT_ZEROSHARK
 892 JVM_VARIANT_ZERO
 893 JVM_VARIANT_KERNEL
 894 JVM_VARIANT_MINIMAL1
 895 JVM_VARIANT_CLIENT
 896 JVM_VARIANT_SERVER
 897 JVM_VARIANTS
 898 JVM_INTERPRETER
 899 JDK_VARIANT
 900 SET_OPENJDK
 901 BUILD_LOG_WRAPPER
 902 BUILD_LOG_PREVIOUS
 903 BUILD_LOG
 904 TOPDIR
 905 PATH_SEP
 906 ZERO_ARCHDEF
 907 DEFINE_CROSS_COMPILE_ARCH
 908 LP64
 909 OPENJDK_TARGET_OS_EXPORT_DIR
 910 OPENJDK_TARGET_OS_API_DIR
 911 OPENJDK_TARGET_CPU_JLI_CFLAGS
 912 OPENJDK_TARGET_CPU_OSARCH
 913 OPENJDK_TARGET_CPU_ISADIR
 914 OPENJDK_TARGET_CPU_LIBDIR
 915 OPENJDK_TARGET_CPU_LEGACY_LIB
 916 OPENJDK_TARGET_CPU_LEGACY
 917 REQUIRED_OS_VERSION
 918 REQUIRED_OS_NAME
 919 COMPILE_TYPE
 920 OPENJDK_TARGET_CPU_ENDIAN
 921 OPENJDK_TARGET_CPU_BITS
 922 OPENJDK_TARGET_CPU_ARCH
 923 OPENJDK_TARGET_CPU
 924 OPENJDK_TARGET_OS_ENV
 925 OPENJDK_TARGET_OS_API
 926 OPENJDK_TARGET_OS
 927 OPENJDK_BUILD_CPU_ENDIAN
 928 OPENJDK_BUILD_CPU_BITS
 929 OPENJDK_BUILD_CPU_ARCH
 930 OPENJDK_BUILD_CPU
 931 OPENJDK_BUILD_OS_ENV
 932 OPENJDK_BUILD_OS_API
 933 OPENJDK_BUILD_OS
 934 OPENJDK_BUILD_AUTOCONF_NAME
 935 OPENJDK_TARGET_AUTOCONF_NAME
 936 target_os
 937 target_vendor
 938 target_cpu
 939 target
 940 host_os
 941 host_vendor
 942 host_cpu
 943 host
 944 build_os
 945 build_vendor
 946 build_cpu
 947 build
 948 CPIO
 949 SETFILE
 950 DF
 951 READLINK
 952 CYGPATH
 953 SED
 954 FGREP
 955 EGREP
 956 GREP
 957 AWK
 958 XARGS
 959 WHICH
 960 WC
 961 UNIQ
 962 UNAME
 963 TR
 964 TOUCH
 965 TEE
 966 TAR
 967 TAIL
 968 SORT
 969 SH
 970 RM
 971 PRINTF
 972 NAWK
 973 MV
 974 MKTEMP
 975 MKDIR
 976 LS
 977 LN
 978 HEAD
 979 FIND
 980 FILE
 981 EXPR
 982 ECHO
 983 DIRNAME
 984 DIFF
 985 DATE
 986 CUT
 987 CP
 988 COMM
 989 CMP
 990 CHMOD
 991 CAT
 992 BASH
 993 BASENAME
 994 DATE_WHEN_CONFIGURED
 995 CONFIGURE_COMMAND_LINE
 996 CUSTOM_MAKE_DIR
 997 target_alias
 998 host_alias
 999 build_alias
1000 LIBS
1001 ECHO_T
1002 ECHO_N
1003 ECHO_C
1004 DEFS
1005 mandir
1006 localedir
1007 libdir
1008 psdir
1009 pdfdir
1010 dvidir
1011 htmldir
1012 infodir
1013 docdir
1014 oldincludedir
1015 includedir
1016 runstatedir
1017 localstatedir
1018 sharedstatedir
1019 sysconfdir
1020 datadir
1021 datarootdir
1022 libexecdir
1023 sbindir
1024 bindir
1025 program_transform_name
1026 prefix
1027 exec_prefix
1028 PACKAGE_URL
1029 PACKAGE_BUGREPORT
1030 PACKAGE_STRING
1031 PACKAGE_VERSION
1032 PACKAGE_TARNAME
1033 PACKAGE_NAME
1034 PATH_SEPARATOR
1035 SHELL'
1036 ac_subst_files=''
1037 ac_user_opts='
1038 enable_option_checking
1039 with_custom_make_dir
1040 with_target_bits
1041 enable_openjdk_only
1042 with_jdk_variant
1043 with_jvm_interpreter
1044 with_jvm_variants
1045 enable_debug
1046 with_debug_level
1047 with_devkit
1048 with_sys_root
1049 with_sysroot
1050 with_tools_dir
1051 with_toolchain_path
1052 with_extra_path
1053 with_xcode_path
1054 with_conf_name
1055 with_builddeps_conf
1056 with_builddeps_server
1057 with_builddeps_dir
1058 with_builddeps_group
1059 enable_headful
1060 enable_hotspot_test_in_build
1061 with_cacerts_file
1062 enable_unlimited_crypto
1063 enable_jfr
1064 with_milestone
1065 with_update_version
1066 with_user_release_suffix
1067 with_build_number
1068 with_vendor_name
1069 with_vendor_url
1070 with_vendor_bug_url
1071 with_vendor_vm_bug_url
1072 with_copyright_year
1073 with_boot_jdk
1074 with_boot_jdk_jvmargs
1075 with_add_source_root
1076 with_override_source_root
1077 with_adds_and_overrides
1078 with_override_langtools
1079 with_override_corba
1080 with_override_jaxp
1081 with_override_jaxws
1082 with_override_hotspot
1083 with_override_nashorn
1084 with_override_jdk
1085 with_import_hotspot
1086 with_toolchain_type
1087 with_toolchain_version
1088 with_jtreg
1089 with_extra_cflags
1090 with_extra_cxxflags
1091 with_extra_ldflags
1092 with_extra_asflags
1093 enable_debug_symbols
1094 enable_zip_debug_info
1095 with_native_debug_symbols
1096 enable_macosx_runtime_support
1097 with_x
1098 with_cups
1099 with_cups_include
1100 with_freetype
1101 with_freetype_include
1102 with_freetype_lib
1103 with_freetype_src
1104 enable_freetype_bundling
1105 with_alsa
1106 with_alsa_include
1107 with_alsa_lib
1108 with_fontconfig
1109 with_fontconfig_include
1110 with_giflib
1111 with_zlib
1112 with_stdc__lib
1113 with_msvcr_dll
1114 with_msvcp_dll
1115 with_ucrt_dll_dir
1116 with_dxsdk
1117 with_dxsdk_lib
1118 with_dxsdk_include
1119 with_num_cores
1120 with_memory_size
1121 with_jobs
1122 with_sjavac_server_java
1123 enable_sjavac
1124 enable_precompiled_headers
1125 enable_ccache
1126 with_ccache_dir
1127 '
1128       ac_precious_vars='build_alias
1129 host_alias
1130 target_alias
1131 BASENAME
1132 BASH
1133 CAT
1134 CHMOD
1135 CMP
1136 COMM
1137 CP
1138 CUT
1139 DATE
1140 DIFF
1141 DIRNAME
1142 ECHO
1143 EXPR
1144 FILE
1145 FIND
1146 HEAD
1147 LN
1148 LS
1149 MKDIR
1150 MKTEMP
1151 MV
1152 NAWK
1153 PRINTF
1154 RM
1155 SH
1156 SORT
1157 TAIL
1158 TAR
1159 TEE
1160 TOUCH
1161 TR
1162 UNAME
1163 UNIQ
1164 WC
1165 WHICH
1166 XARGS
1167 AWK
1168 GREP
1169 EGREP
1170 FGREP
1171 SED
1172 CYGPATH
1173 READLINK
1174 DF
1175 SETFILE
1176 CPIO
1177 UNZIP
1178 ZIP
1179 LDD
1180 READELF
1181 HG
1182 STAT
1183 TIME
1184 DSYMUTIL
1185 XATTR
1186 CODESIGN
1187 PKG_CONFIG
1188 CC
1189 CFLAGS
1190 LDFLAGS
1191 LIBS
1192 CPPFLAGS
1193 CXX
1194 CXXFLAGS
1195 CCC
1196 CPP
1197 CXXCPP
1198 AS
1199 AR
1200 OBJC
1201 OBJCFLAGS
1202 LIPO
1203 STRIP
1204 NM
1205 GNM
1206 MCS
1207 OBJCOPY
1208 OBJDUMP
1209 BUILD_CC
1210 BUILD_CXX
1211 BUILD_LD
1212 JTREGEXE
1213 XMKMF
1214 FREETYPE_CFLAGS
1215 FREETYPE_LIBS
1216 ALSA_CFLAGS
1217 ALSA_LIBS
1218 LIBFFI_CFLAGS
1219 LIBFFI_LIBS
1220 CCACHE'
1221 
1222 
1223 # Initialize some variables set by options.
1224 ac_init_help=
1225 ac_init_version=false
1226 ac_unrecognized_opts=
1227 ac_unrecognized_sep=
1228 # The variables have the same names as the options, with
1229 # dashes changed to underlines.
1230 cache_file=/dev/null
1231 exec_prefix=NONE
1232 no_create=
1233 no_recursion=
1234 prefix=NONE
1235 program_prefix=NONE
1236 program_suffix=NONE
1237 program_transform_name=s,x,x,
1238 silent=
1239 site=
1240 srcdir=
1241 verbose=
1242 x_includes=NONE
1243 x_libraries=NONE
1244 
1245 # Installation directory options.
1246 # These are left unexpanded so users can "make install exec_prefix=/foo"
1247 # and all the variables that are supposed to be based on exec_prefix
1248 # by default will actually change.
1249 # Use braces instead of parens because sh, perl, etc. also accept them.
1250 # (The list follows the same order as the GNU Coding Standards.)
1251 bindir='${exec_prefix}/bin'
1252 sbindir='${exec_prefix}/sbin'
1253 libexecdir='${exec_prefix}/libexec'
1254 datarootdir='${prefix}/share'
1255 datadir='${datarootdir}'
1256 sysconfdir='${prefix}/etc'
1257 sharedstatedir='${prefix}/com'
1258 localstatedir='${prefix}/var'
1259 runstatedir='${localstatedir}/run'
1260 includedir='${prefix}/include'
1261 oldincludedir='/usr/include'
1262 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1263 infodir='${datarootdir}/info'
1264 htmldir='${docdir}'
1265 dvidir='${docdir}'
1266 pdfdir='${docdir}'
1267 psdir='${docdir}'
1268 libdir='${exec_prefix}/lib'
1269 localedir='${datarootdir}/locale'
1270 mandir='${datarootdir}/man'
1271 
1272 ac_prev=
1273 ac_dashdash=
1274 for ac_option
1275 do
1276   # If the previous option needs an argument, assign it.
1277   if test -n "$ac_prev"; then
1278     eval $ac_prev=\$ac_option
1279     ac_prev=
1280     continue
1281   fi
1282 
1283   case $ac_option in
1284   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1285   *=)   ac_optarg= ;;
1286   *)    ac_optarg=yes ;;
1287   esac
1288 
1289   # Accept the important Cygnus configure options, so we can diagnose typos.
1290 
1291   case $ac_dashdash$ac_option in
1292   --)
1293     ac_dashdash=yes ;;
1294 
1295   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1296     ac_prev=bindir ;;
1297   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1298     bindir=$ac_optarg ;;
1299 
1300   -build | --build | --buil | --bui | --bu)
1301     ac_prev=build_alias ;;
1302   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1303     build_alias=$ac_optarg ;;
1304 
1305   -cache-file | --cache-file | --cache-fil | --cache-fi \
1306   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1307     ac_prev=cache_file ;;
1308   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1309   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1310     cache_file=$ac_optarg ;;
1311 
1312   --config-cache | -C)
1313     cache_file=config.cache ;;
1314 
1315   -datadir | --datadir | --datadi | --datad)
1316     ac_prev=datadir ;;
1317   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1318     datadir=$ac_optarg ;;
1319 
1320   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1321   | --dataroo | --dataro | --datar)
1322     ac_prev=datarootdir ;;
1323   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1324   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1325     datarootdir=$ac_optarg ;;
1326 
1327   -disable-* | --disable-*)
1328     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
1339          ac_unrecognized_sep=', ';;
1340     esac
1341     eval enable_$ac_useropt=no ;;
1342 
1343   -docdir | --docdir | --docdi | --doc | --do)
1344     ac_prev=docdir ;;
1345   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1346     docdir=$ac_optarg ;;
1347 
1348   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1349     ac_prev=dvidir ;;
1350   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1351     dvidir=$ac_optarg ;;
1352 
1353   -enable-* | --enable-*)
1354     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1355     # Reject names that are not valid shell variable names.
1356     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357       as_fn_error $? "invalid feature name: $ac_useropt"
1358     ac_useropt_orig=$ac_useropt
1359     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360     case $ac_user_opts in
1361       *"
1362 "enable_$ac_useropt"
1363 "*) ;;
1364       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1365          ac_unrecognized_sep=', ';;
1366     esac
1367     eval enable_$ac_useropt=\$ac_optarg ;;
1368 
1369   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1370   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1371   | --exec | --exe | --ex)
1372     ac_prev=exec_prefix ;;
1373   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1374   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1375   | --exec=* | --exe=* | --ex=*)
1376     exec_prefix=$ac_optarg ;;
1377 
1378   -gas | --gas | --ga | --g)
1379     # Obsolete; use --with-gas.
1380     with_gas=yes ;;
1381 
1382   -help | --help | --hel | --he | -h)
1383     ac_init_help=long ;;
1384   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1385     ac_init_help=recursive ;;
1386   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1387     ac_init_help=short ;;
1388 
1389   -host | --host | --hos | --ho)
1390     ac_prev=host_alias ;;
1391   -host=* | --host=* | --hos=* | --ho=*)
1392     host_alias=$ac_optarg ;;
1393 
1394   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1395     ac_prev=htmldir ;;
1396   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1397   | --ht=*)
1398     htmldir=$ac_optarg ;;
1399 
1400   -includedir | --includedir | --includedi | --included | --include \
1401   | --includ | --inclu | --incl | --inc)
1402     ac_prev=includedir ;;
1403   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1404   | --includ=* | --inclu=* | --incl=* | --inc=*)
1405     includedir=$ac_optarg ;;
1406 
1407   -infodir | --infodir | --infodi | --infod | --info | --inf)
1408     ac_prev=infodir ;;
1409   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1410     infodir=$ac_optarg ;;
1411 
1412   -libdir | --libdir | --libdi | --libd)
1413     ac_prev=libdir ;;
1414   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1415     libdir=$ac_optarg ;;
1416 
1417   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1418   | --libexe | --libex | --libe)
1419     ac_prev=libexecdir ;;
1420   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1421   | --libexe=* | --libex=* | --libe=*)
1422     libexecdir=$ac_optarg ;;
1423 
1424   -localedir | --localedir | --localedi | --localed | --locale)
1425     ac_prev=localedir ;;
1426   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1427     localedir=$ac_optarg ;;
1428 
1429   -localstatedir | --localstatedir | --localstatedi | --localstated \
1430   | --localstate | --localstat | --localsta | --localst | --locals)
1431     ac_prev=localstatedir ;;
1432   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1433   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1434     localstatedir=$ac_optarg ;;
1435 
1436   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1437     ac_prev=mandir ;;
1438   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1439     mandir=$ac_optarg ;;
1440 
1441   -nfp | --nfp | --nf)
1442     # Obsolete; use --without-fp.
1443     with_fp=no ;;
1444 
1445   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1446   | --no-cr | --no-c | -n)
1447     no_create=yes ;;
1448 
1449   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1450   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1451     no_recursion=yes ;;
1452 
1453   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1454   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1455   | --oldin | --oldi | --old | --ol | --o)
1456     ac_prev=oldincludedir ;;
1457   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1458   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1459   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1460     oldincludedir=$ac_optarg ;;
1461 
1462   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1463     ac_prev=prefix ;;
1464   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1465     prefix=$ac_optarg ;;
1466 
1467   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1468   | --program-pre | --program-pr | --program-p)
1469     ac_prev=program_prefix ;;
1470   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1471   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1472     program_prefix=$ac_optarg ;;
1473 
1474   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1475   | --program-suf | --program-su | --program-s)
1476     ac_prev=program_suffix ;;
1477   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1478   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1479     program_suffix=$ac_optarg ;;
1480 
1481   -program-transform-name | --program-transform-name \
1482   | --program-transform-nam | --program-transform-na \
1483   | --program-transform-n | --program-transform- \
1484   | --program-transform | --program-transfor \
1485   | --program-transfo | --program-transf \
1486   | --program-trans | --program-tran \
1487   | --progr-tra | --program-tr | --program-t)
1488     ac_prev=program_transform_name ;;
1489   -program-transform-name=* | --program-transform-name=* \
1490   | --program-transform-nam=* | --program-transform-na=* \
1491   | --program-transform-n=* | --program-transform-=* \
1492   | --program-transform=* | --program-transfor=* \
1493   | --program-transfo=* | --program-transf=* \
1494   | --program-trans=* | --program-tran=* \
1495   | --progr-tra=* | --program-tr=* | --program-t=*)
1496     program_transform_name=$ac_optarg ;;
1497 
1498   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1499     ac_prev=pdfdir ;;
1500   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1501     pdfdir=$ac_optarg ;;
1502 
1503   -psdir | --psdir | --psdi | --psd | --ps)
1504     ac_prev=psdir ;;
1505   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1506     psdir=$ac_optarg ;;
1507 
1508   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509   | -silent | --silent | --silen | --sile | --sil)
1510     silent=yes ;;
1511 
1512   -runstatedir | --runstatedir | --runstatedi | --runstated \
1513   | --runstate | --runstat | --runsta | --runst | --runs \
1514   | --run | --ru | --r)
1515     ac_prev=runstatedir ;;
1516   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1517   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1518   | --run=* | --ru=* | --r=*)
1519     runstatedir=$ac_optarg ;;
1520 
1521   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1522     ac_prev=sbindir ;;
1523   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1524   | --sbi=* | --sb=*)
1525     sbindir=$ac_optarg ;;
1526 
1527   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1528   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1529   | --sharedst | --shareds | --shared | --share | --shar \
1530   | --sha | --sh)
1531     ac_prev=sharedstatedir ;;
1532   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1533   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1534   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1535   | --sha=* | --sh=*)
1536     sharedstatedir=$ac_optarg ;;
1537 
1538   -site | --site | --sit)
1539     ac_prev=site ;;
1540   -site=* | --site=* | --sit=*)
1541     site=$ac_optarg ;;
1542 
1543   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1544     ac_prev=srcdir ;;
1545   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1546     srcdir=$ac_optarg ;;
1547 
1548   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1549   | --syscon | --sysco | --sysc | --sys | --sy)
1550     ac_prev=sysconfdir ;;
1551   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1552   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1553     sysconfdir=$ac_optarg ;;
1554 
1555   -target | --target | --targe | --targ | --tar | --ta | --t)
1556     ac_prev=target_alias ;;
1557   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1558     target_alias=$ac_optarg ;;
1559 
1560   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1561     verbose=yes ;;
1562 
1563   -version | --version | --versio | --versi | --vers | -V)
1564     ac_init_version=: ;;
1565 
1566   -with-* | --with-*)
1567     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1568     # Reject names that are not valid shell variable names.
1569     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1570       as_fn_error $? "invalid package name: $ac_useropt"
1571     ac_useropt_orig=$ac_useropt
1572     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1573     case $ac_user_opts in
1574       *"
1575 "with_$ac_useropt"
1576 "*) ;;
1577       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1578          ac_unrecognized_sep=', ';;
1579     esac
1580     eval with_$ac_useropt=\$ac_optarg ;;
1581 
1582   -without-* | --without-*)
1583     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1584     # Reject names that are not valid shell variable names.
1585     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1586       as_fn_error $? "invalid package name: $ac_useropt"
1587     ac_useropt_orig=$ac_useropt
1588     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1589     case $ac_user_opts in
1590       *"
1591 "with_$ac_useropt"
1592 "*) ;;
1593       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1594          ac_unrecognized_sep=', ';;
1595     esac
1596     eval with_$ac_useropt=no ;;
1597 
1598   --x)
1599     # Obsolete; use --with-x.
1600     with_x=yes ;;
1601 
1602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1603   | --x-incl | --x-inc | --x-in | --x-i)
1604     ac_prev=x_includes ;;
1605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1607     x_includes=$ac_optarg ;;
1608 
1609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1611     ac_prev=x_libraries ;;
1612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1614     x_libraries=$ac_optarg ;;
1615 
1616   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1617 Try \`$0 --help' for more information"
1618     ;;
1619 
1620   *=*)
1621     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1622     # Reject names that are not valid shell variable names.
1623     case $ac_envvar in #(
1624       '' | [0-9]* | *[!_$as_cr_alnum]* )
1625       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1626     esac
1627     eval $ac_envvar=\$ac_optarg
1628     export $ac_envvar ;;
1629 
1630   *)
1631     # FIXME: should be removed in autoconf 3.0.
1632     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1633     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1634       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1635     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1636     ;;
1637 
1638   esac
1639 done
1640 
1641 if test -n "$ac_prev"; then
1642   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1643   as_fn_error $? "missing argument to $ac_option"
1644 fi
1645 
1646 if test -n "$ac_unrecognized_opts"; then
1647   case $enable_option_checking in
1648     no) ;;
1649     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1650     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1651   esac
1652 fi
1653 
1654 # Check all directory arguments for consistency.
1655 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1656                 datadir sysconfdir sharedstatedir localstatedir includedir \
1657                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1658                 libdir localedir mandir runstatedir
1659 do
1660   eval ac_val=\$$ac_var
1661   # Remove trailing slashes.
1662   case $ac_val in
1663     */ )
1664       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1665       eval $ac_var=\$ac_val;;
1666   esac
1667   # Be sure to have absolute directory names.
1668   case $ac_val in
1669     [\\/$]* | ?:[\\/]* )  continue;;
1670     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1671   esac
1672   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1673 done
1674 
1675 # There might be people who depend on the old broken behavior: `$host'
1676 # used to hold the argument of --host etc.
1677 # FIXME: To remove some day.
1678 build=$build_alias
1679 host=$host_alias
1680 target=$target_alias
1681 
1682 # FIXME: To remove some day.
1683 if test "x$host_alias" != x; then
1684   if test "x$build_alias" = x; then
1685     cross_compiling=maybe
1686   elif test "x$build_alias" != "x$host_alias"; then
1687     cross_compiling=yes
1688   fi
1689 fi
1690 
1691 ac_tool_prefix=
1692 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1693 
1694 test "$silent" = yes && exec 6>/dev/null
1695 
1696 
1697 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1698 ac_ls_di=`ls -di .` &&
1699 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1700   as_fn_error $? "working directory cannot be determined"
1701 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1702   as_fn_error $? "pwd does not report name of working directory"
1703 
1704 
1705 # Find the source files, if location was not specified.
1706 if test -z "$srcdir"; then
1707   ac_srcdir_defaulted=yes
1708   # Try the directory containing this script, then the parent directory.
1709   ac_confdir=`$as_dirname -- "$as_myself" ||
1710 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1711          X"$as_myself" : 'X\(//\)[^/]' \| \
1712          X"$as_myself" : 'X\(//\)$' \| \
1713          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1714 $as_echo X"$as_myself" |
1715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1716             s//\1/
1717             q
1718           }
1719           /^X\(\/\/\)[^/].*/{
1720             s//\1/
1721             q
1722           }
1723           /^X\(\/\/\)$/{
1724             s//\1/
1725             q
1726           }
1727           /^X\(\/\).*/{
1728             s//\1/
1729             q
1730           }
1731           s/.*/./; q'`
1732   srcdir=$ac_confdir
1733   if test ! -r "$srcdir/$ac_unique_file"; then
1734     srcdir=..
1735   fi
1736 else
1737   ac_srcdir_defaulted=no
1738 fi
1739 if test ! -r "$srcdir/$ac_unique_file"; then
1740   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1741   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1742 fi
1743 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1744 ac_abs_confdir=`(
1745         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1746         pwd)`
1747 # When building in place, set srcdir=.
1748 if test "$ac_abs_confdir" = "$ac_pwd"; then
1749   srcdir=.
1750 fi
1751 # Remove unnecessary trailing slashes from srcdir.
1752 # Double slashes in file names in object file debugging info
1753 # mess up M-x gdb in Emacs.
1754 case $srcdir in
1755 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1756 esac
1757 for ac_var in $ac_precious_vars; do
1758   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1759   eval ac_env_${ac_var}_value=\$${ac_var}
1760   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1761   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1762 done
1763 
1764 #
1765 # Report the --help message.
1766 #
1767 if test "$ac_init_help" = "long"; then
1768   # Omit some internal or obsolete options to make the list less imposing.
1769   # This message is too long to be a string in the A/UX 3.1 sh.
1770   cat <<_ACEOF
1771 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1772 
1773 Usage: $0 [OPTION]... [VAR=VALUE]...
1774 
1775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1776 VAR=VALUE.  See below for descriptions of some of the useful variables.
1777 
1778 Defaults for the options are specified in brackets.
1779 
1780 Configuration:
1781   -h, --help              display this help and exit
1782       --help=short        display options specific to this package
1783       --help=recursive    display the short help of all the included packages
1784   -V, --version           display version information and exit
1785   -q, --quiet, --silent   do not print \`checking ...' messages
1786       --cache-file=FILE   cache test results in FILE [disabled]
1787   -C, --config-cache      alias for \`--cache-file=config.cache'
1788   -n, --no-create         do not create output files
1789       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1790 
1791 Installation directories:
1792   --prefix=PREFIX         install architecture-independent files in PREFIX
1793                           [$ac_default_prefix]
1794   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1795                           [PREFIX]
1796 
1797 By default, \`make install' will install all the files in
1798 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1799 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1800 for instance \`--prefix=\$HOME'.
1801 
1802 For better control, use the options below.
1803 
1804 Fine tuning of the installation directories:
1805   --bindir=DIR            user executables [EPREFIX/bin]
1806   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1807   --libexecdir=DIR        program executables [EPREFIX/libexec]
1808   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1809   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1810   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1811   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1812   --libdir=DIR            object code libraries [EPREFIX/lib]
1813   --includedir=DIR        C header files [PREFIX/include]
1814   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1815   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1816   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1817   --infodir=DIR           info documentation [DATAROOTDIR/info]
1818   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1819   --mandir=DIR            man documentation [DATAROOTDIR/man]
1820   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1821   --htmldir=DIR           html documentation [DOCDIR]
1822   --dvidir=DIR            dvi documentation [DOCDIR]
1823   --pdfdir=DIR            pdf documentation [DOCDIR]
1824   --psdir=DIR             ps documentation [DOCDIR]
1825 _ACEOF
1826 
1827   cat <<\_ACEOF
1828 
1829 X features:
1830   --x-includes=DIR    X include files are in DIR
1831   --x-libraries=DIR   X library files are in DIR
1832 
1833 System types:
1834   --build=BUILD     configure for building on BUILD [guessed]
1835   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1836   --target=TARGET   configure for building compilers for TARGET [HOST]
1837 _ACEOF
1838 fi
1839 
1840 if test -n "$ac_init_help"; then
1841   case $ac_init_help in
1842      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1843    esac
1844   cat <<\_ACEOF
1845 
1846 Optional Features:
1847   --disable-option-checking  ignore unrecognized --enable/--with options
1848   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1849   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1850   --enable-openjdk-only   suppress building custom source even if present
1851                           [disabled]
1852   --enable-debug          set the debug level to fastdebug (shorthand for
1853                           --with-debug-level=fastdebug) [disabled]
1854   --disable-headful       disable building headful support (graphical UI
1855                           support) [enabled]
1856   --enable-hotspot-test-in-build
1857                           run the Queens test after Hotspot build [disabled]
1858   --enable-unlimited-crypto
1859                           Enable unlimited crypto policy [disabled]
1860   --enable-jfr            Enable Java Flight Recorder support [disabled]
1861   --disable-debug-symbols disable generation of debug symbols [enabled]
1862   --disable-zip-debug-info
1863                           disable zipping of debug-info files [enabled]
1864   --enable-macosx-runtime-support
1865                           Deprecated. Option is kept for backwards
1866                           compatibility and is ignored
1867   --disable-freetype-bundling
1868                           disable bundling of the freetype library with the
1869                           build result [enabled on Windows or when using
1870                           --with-freetype, disabled otherwise]
1871   --enable-sjavac         use sjavac to do fast incremental compiles
1872                           [disabled]
1873   --disable-precompiled-headers
1874                           disable using precompiled headers when compiling C++
1875                           [enabled]
1876   --enable-ccache         enable using ccache to speed up recompilations
1877                           [disabled]
1878 
1879 Optional Packages:
1880   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1881   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1882   --with-custom-make-dir  use this directory for custom build/make files
1883   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1884                           support it), e.g. --with-target-bits=32 [guessed]
1885   --with-jdk-variant      JDK variant to build (normal) [normal]
1886   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1887   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1888                           client, minimal1, kernel, zero, zeroshark, core)
1889                           [server]
1890   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1891                           [release]
1892   --with-devkit           use this devkit for compilers, tools and resources
1893   --with-sys-root         alias for --with-sysroot for backwards compatability
1894   --with-sysroot          use this directory as sysroot)
1895   --with-tools-dir        alias for --with-toolchain-path for backwards
1896                           compatibility
1897   --with-toolchain-path   prepend these directories when searching for
1898                           toolchain binaries (compilers etc)
1899   --with-extra-path       prepend these directories to the default path
1900   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1901                           10.9 and later)
1902   --with-conf-name        use this as the name of the configuration [generated
1903                           from important configuration options]
1904   --with-builddeps-conf   use this configuration file for the builddeps
1905   --with-builddeps-server download and use build dependencies from this server
1906                           url
1907   --with-builddeps-dir    store downloaded build dependencies here
1908                           [/localhome/builddeps]
1909   --with-builddeps-group  chgrp the downloaded build dependencies to this
1910                           group
1911   --with-cacerts-file     specify alternative cacerts file
1912   --with-milestone        Set milestone value for build [internal]
1913   --with-update-version   Set update version value for build [b00]
1914   --with-user-release-suffix
1915                           Add a custom string to the version string if build
1916                           number isn't set.[username_builddateb00]
1917   --with-build-number     Set build number value for build [b00]
1918   --with-vendor-name      Set vendor name. Among others, used to set the
1919                           'java.vendor' and 'java.vm.vendor' system
1920                           properties. [not specified]
1921   --with-vendor-url       Set the 'java.vendor.url' system property [not
1922                           specified]
1923   --with-vendor-bug-url   Set the 'java.vendor.url.bug' system property [not
1924                           specified]
1925   --with-vendor-vm-bug-url
1926                           Sets the bug URL which will be displayed when the VM
1927                           crashes [not specified]
1928   --with-copyright-year   Set copyright year value for build [current year]
1929   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1930   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1931                           invocations of the Boot JDK, overriding the default
1932                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1933                           -enableassertions"
1934   --with-add-source-root  for each and every source directory, look in this
1935                           additional source root for the same directory; if it
1936                           exists and have files in it, include it in the build
1937   --with-override-source-root
1938                           for each and every source directory, look in this
1939                           override source root for the same directory; if it
1940                           exists, use that directory instead and ignore the
1941                           directory in the original source root
1942   --with-adds-and-overrides
1943                           use the subdirs 'adds' and 'overrides' in the
1944                           specified directory as add-source-root and
1945                           override-source-root
1946   --with-override-langtools
1947                           use this langtools dir for the build
1948   --with-override-corba   use this corba dir for the build
1949   --with-override-jaxp    use this jaxp dir for the build
1950   --with-override-jaxws   use this jaxws dir for the build
1951   --with-override-hotspot use this hotspot dir for the build
1952   --with-override-nashorn use this nashorn dir for the build
1953   --with-override-jdk     use this jdk dir for the build
1954   --with-import-hotspot   import hotspot binaries from this jdk image or
1955                           hotspot build dist dir instead of building from
1956                           source
1957   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1958                           to show possible values [platform dependent]
1959   --with-toolchain-version
1960                           the version of the toolchain to look for, use
1961                           '--help' to show possible values [platform
1962                           dependent]
1963   --with-jtreg            Regression Test Harness [probed]
1964   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1965   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1966   --with-extra-ldflags    extra flags to be used when linking jdk
1967   --with-extra-asflags    extra flags to be passed to the assembler
1968   --with-native-debug-symbols
1969                           set the native debug symbol configuration (none,
1970                           internal, external, zipped) [varying]
1971   --with-x                use the X Window System
1972   --with-cups             specify prefix directory for the cups package
1973                           (expecting the headers under PATH/include)
1974   --with-cups-include     specify directory for the cups include files
1975   --with-freetype         specify prefix directory for the freetype package
1976                           (expecting the libraries under PATH/lib and the
1977                           headers under PATH/include)
1978   --with-freetype-include specify directory for the freetype include files
1979   --with-freetype-lib     specify directory for the freetype library
1980   --with-freetype-src     specify directory with freetype sources to
1981                           automatically build the library (experimental,
1982                           Windows-only)
1983   --with-alsa             specify prefix directory for the alsa package
1984                           (expecting the libraries under PATH/lib and the
1985                           headers under PATH/include)
1986   --with-alsa-include     specify directory for the alsa include files
1987   --with-alsa-lib         specify directory for the alsa library
1988   --with-fontconfig       specify prefix directory for the fontconfig package
1989                           (expecting the headers under PATH/include)
1990   --with-fontconfig-include
1991                           specify directory for the fontconfig include files
1992   --with-giflib           use giflib from build system or OpenJDK source
1993                           (system, bundled) [bundled]
1994   --with-zlib             use zlib from build system or OpenJDK source
1995                           (system, bundled) [bundled]
1996   --with-stdc++lib=<static>,<dynamic>,<default>
1997                           force linking of the C++ runtime on Linux to either
1998                           static or dynamic, default is static with dynamic as
1999                           fallback
2000   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2001                           (Windows only) [probed]
2002   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2003                           (Windows only) [probed]
2004   --with-ucrt-dll-dir     path to Microsoft Windows Kit UCRT DLL dir (Windows
2005                           only) [probed]
2006   --with-dxsdk            Deprecated. Option is kept for backwards
2007                           compatibility and is ignored
2008   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2009                           compatibility and is ignored
2010   --with-dxsdk-include    Deprecated. Option is kept for backwards
2011                           compatibility and is ignored
2012   --with-num-cores        number of cores in the build system, e.g.
2013                           --with-num-cores=8 [probed]
2014   --with-memory-size      memory (in MB) available in the build system, e.g.
2015                           --with-memory-size=1024 [probed]
2016   --with-jobs             number of parallel jobs to let make run [calculated
2017                           based on cores and memory]
2018   --with-sjavac-server-java
2019                           use this java binary for running the sjavac
2020                           background server [Boot JDK java]
2021   --with-ccache-dir       where to store ccache files [~/.ccache]
2022 
2023 Some influential environment variables:
2024   BASENAME    Override default value for BASENAME
2025   BASH        Override default value for BASH
2026   CAT         Override default value for CAT
2027   CHMOD       Override default value for CHMOD
2028   CMP         Override default value for CMP
2029   COMM        Override default value for COMM
2030   CP          Override default value for CP
2031   CUT         Override default value for CUT
2032   DATE        Override default value for DATE
2033   DIFF        Override default value for DIFF
2034   DIRNAME     Override default value for DIRNAME
2035   ECHO        Override default value for ECHO
2036   EXPR        Override default value for EXPR
2037   FILE        Override default value for FILE
2038   FIND        Override default value for FIND
2039   HEAD        Override default value for HEAD
2040   LN          Override default value for LN
2041   LS          Override default value for LS
2042   MKDIR       Override default value for MKDIR
2043   MKTEMP      Override default value for MKTEMP
2044   MV          Override default value for MV
2045   NAWK        Override default value for NAWK
2046   PRINTF      Override default value for PRINTF
2047   RM          Override default value for RM
2048   SH          Override default value for SH
2049   SORT        Override default value for SORT
2050   TAIL        Override default value for TAIL
2051   TAR         Override default value for TAR
2052   TEE         Override default value for TEE
2053   TOUCH       Override default value for TOUCH
2054   TR          Override default value for TR
2055   UNAME       Override default value for UNAME
2056   UNIQ        Override default value for UNIQ
2057   WC          Override default value for WC
2058   WHICH       Override default value for WHICH
2059   XARGS       Override default value for XARGS
2060   AWK         Override default value for AWK
2061   GREP        Override default value for GREP
2062   EGREP       Override default value for EGREP
2063   FGREP       Override default value for FGREP
2064   SED         Override default value for SED
2065   CYGPATH     Override default value for CYGPATH
2066   READLINK    Override default value for READLINK
2067   DF          Override default value for DF
2068   SETFILE     Override default value for SETFILE
2069   CPIO        Override default value for CPIO
2070   UNZIP       Override default value for UNZIP
2071   ZIP         Override default value for ZIP
2072   LDD         Override default value for LDD
2073   READELF     Override default value for READELF
2074   HG          Override default value for HG
2075   STAT        Override default value for STAT
2076   TIME        Override default value for TIME
2077   DSYMUTIL    Override default value for DSYMUTIL
2078   XATTR       Override default value for XATTR
2079   CODESIGN    Override default value for CODESIGN
2080   PKG_CONFIG  path to pkg-config utility
2081   CC          C compiler command
2082   CFLAGS      C compiler flags
2083   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2084               nonstandard directory <lib dir>
2085   LIBS        libraries to pass to the linker, e.g. -l<library>
2086   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2087               you have headers in a nonstandard directory <include dir>
2088   CXX         C++ compiler command
2089   CXXFLAGS    C++ compiler flags
2090   CPP         C preprocessor
2091   CXXCPP      C++ preprocessor
2092   AS          Override default value for AS
2093   AR          Override default value for AR
2094   OBJC        Objective C compiler command
2095   OBJCFLAGS   Objective C compiler flags
2096   LIPO        Override default value for LIPO
2097   STRIP       Override default value for STRIP
2098   NM          Override default value for NM
2099   GNM         Override default value for GNM
2100   MCS         Override default value for MCS
2101   OBJCOPY     Override default value for OBJCOPY
2102   OBJDUMP     Override default value for OBJDUMP
2103   BUILD_CC    Override default value for BUILD_CC
2104   BUILD_CXX   Override default value for BUILD_CXX
2105   BUILD_LD    Override default value for BUILD_LD
2106   JTREGEXE    Override default value for JTREGEXE
2107   XMKMF       Path to xmkmf, Makefile generator for X Window System
2108   FREETYPE_CFLAGS
2109               C compiler flags for FREETYPE, overriding pkg-config
2110   FREETYPE_LIBS
2111               linker flags for FREETYPE, overriding pkg-config
2112   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2113   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2114   LIBFFI_CFLAGS
2115               C compiler flags for LIBFFI, overriding pkg-config
2116   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2117   CCACHE      Override default value for CCACHE
2118 
2119 Use these variables to override the choices made by `configure' or to help
2120 it to find libraries and programs with nonstandard names/locations.
2121 
2122 Report bugs to <build-dev@openjdk.java.net>.
2123 OpenJDK home page: <http://openjdk.java.net>.
2124 _ACEOF
2125 ac_status=$?
2126 fi
2127 
2128 if test "$ac_init_help" = "recursive"; then
2129   # If there are subdirs, report their specific --help.
2130   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2131     test -d "$ac_dir" ||
2132       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2133       continue
2134     ac_builddir=.
2135 
2136 case "$ac_dir" in
2137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2138 *)
2139   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2140   # A ".." for each directory in $ac_dir_suffix.
2141   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2142   case $ac_top_builddir_sub in
2143   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2144   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2145   esac ;;
2146 esac
2147 ac_abs_top_builddir=$ac_pwd
2148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2149 # for backward compatibility:
2150 ac_top_builddir=$ac_top_build_prefix
2151 
2152 case $srcdir in
2153   .)  # We are building in place.
2154     ac_srcdir=.
2155     ac_top_srcdir=$ac_top_builddir_sub
2156     ac_abs_top_srcdir=$ac_pwd ;;
2157   [\\/]* | ?:[\\/]* )  # Absolute name.
2158     ac_srcdir=$srcdir$ac_dir_suffix;
2159     ac_top_srcdir=$srcdir
2160     ac_abs_top_srcdir=$srcdir ;;
2161   *) # Relative name.
2162     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2163     ac_top_srcdir=$ac_top_build_prefix$srcdir
2164     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2165 esac
2166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2167 
2168     cd "$ac_dir" || { ac_status=$?; continue; }
2169     # Check for guested configure.
2170     if test -f "$ac_srcdir/configure.gnu"; then
2171       echo &&
2172       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2173     elif test -f "$ac_srcdir/configure"; then
2174       echo &&
2175       $SHELL "$ac_srcdir/configure" --help=recursive
2176     else
2177       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2178     fi || ac_status=$?
2179     cd "$ac_pwd" || { ac_status=$?; break; }
2180   done
2181 fi
2182 
2183 test -n "$ac_init_help" && exit $ac_status
2184 if $ac_init_version; then
2185   cat <<\_ACEOF
2186 OpenJDK configure jdk8
2187 generated by GNU Autoconf 2.69
2188 
2189 Copyright (C) 2012 Free Software Foundation, Inc.
2190 This configure script is free software; the Free Software Foundation
2191 gives unlimited permission to copy, distribute and modify it.
2192 _ACEOF
2193   exit
2194 fi
2195 
2196 ## ------------------------ ##
2197 ## Autoconf initialization. ##
2198 ## ------------------------ ##
2199 
2200 # ac_fn_c_try_compile LINENO
2201 # --------------------------
2202 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2203 ac_fn_c_try_compile ()
2204 {
2205   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206   rm -f conftest.$ac_objext
2207   if { { ac_try="$ac_compile"
2208 case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214   (eval "$ac_compile") 2>conftest.err
2215   ac_status=$?
2216   if test -s conftest.err; then
2217     grep -v '^ *+' conftest.err >conftest.er1
2218     cat conftest.er1 >&5
2219     mv -f conftest.er1 conftest.err
2220   fi
2221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222   test $ac_status = 0; } && {
2223          test -z "$ac_c_werror_flag" ||
2224          test ! -s conftest.err
2225        } && test -s conftest.$ac_objext; then :
2226   ac_retval=0
2227 else
2228   $as_echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230 
2231         ac_retval=1
2232 fi
2233   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234   as_fn_set_status $ac_retval
2235 
2236 } # ac_fn_c_try_compile
2237 
2238 # ac_fn_cxx_try_compile LINENO
2239 # ----------------------------
2240 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2241 ac_fn_cxx_try_compile ()
2242 {
2243   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244   rm -f conftest.$ac_objext
2245   if { { ac_try="$ac_compile"
2246 case "(($ac_try" in
2247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248   *) ac_try_echo=$ac_try;;
2249 esac
2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251 $as_echo "$ac_try_echo"; } >&5
2252   (eval "$ac_compile") 2>conftest.err
2253   ac_status=$?
2254   if test -s conftest.err; then
2255     grep -v '^ *+' conftest.err >conftest.er1
2256     cat conftest.er1 >&5
2257     mv -f conftest.er1 conftest.err
2258   fi
2259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260   test $ac_status = 0; } && {
2261          test -z "$ac_cxx_werror_flag" ||
2262          test ! -s conftest.err
2263        } && test -s conftest.$ac_objext; then :
2264   ac_retval=0
2265 else
2266   $as_echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268 
2269         ac_retval=1
2270 fi
2271   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272   as_fn_set_status $ac_retval
2273 
2274 } # ac_fn_cxx_try_compile
2275 
2276 # ac_fn_c_try_cpp LINENO
2277 # ----------------------
2278 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_c_try_cpp ()
2280 {
2281   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282   if { { ac_try="$ac_cpp conftest.$ac_ext"
2283 case "(($ac_try" in
2284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285   *) ac_try_echo=$ac_try;;
2286 esac
2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288 $as_echo "$ac_try_echo"; } >&5
2289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2290   ac_status=$?
2291   if test -s conftest.err; then
2292     grep -v '^ *+' conftest.err >conftest.er1
2293     cat conftest.er1 >&5
2294     mv -f conftest.er1 conftest.err
2295   fi
2296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297   test $ac_status = 0; } > conftest.i && {
2298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2299          test ! -s conftest.err
2300        }; then :
2301   ac_retval=0
2302 else
2303   $as_echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305 
2306     ac_retval=1
2307 fi
2308   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309   as_fn_set_status $ac_retval
2310 
2311 } # ac_fn_c_try_cpp
2312 
2313 # ac_fn_cxx_try_cpp LINENO
2314 # ------------------------
2315 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2316 ac_fn_cxx_try_cpp ()
2317 {
2318   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319   if { { ac_try="$ac_cpp conftest.$ac_ext"
2320 case "(($ac_try" in
2321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322   *) ac_try_echo=$ac_try;;
2323 esac
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325 $as_echo "$ac_try_echo"; } >&5
2326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2327   ac_status=$?
2328   if test -s conftest.err; then
2329     grep -v '^ *+' conftest.err >conftest.er1
2330     cat conftest.er1 >&5
2331     mv -f conftest.er1 conftest.err
2332   fi
2333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334   test $ac_status = 0; } > conftest.i && {
2335          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2336          test ! -s conftest.err
2337        }; then :
2338   ac_retval=0
2339 else
2340   $as_echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342 
2343     ac_retval=1
2344 fi
2345   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346   as_fn_set_status $ac_retval
2347 
2348 } # ac_fn_cxx_try_cpp
2349 
2350 # ac_fn_objc_try_compile LINENO
2351 # -----------------------------
2352 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_objc_try_compile ()
2354 {
2355   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356   rm -f conftest.$ac_objext
2357   if { { ac_try="$ac_compile"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364   (eval "$ac_compile") 2>conftest.err
2365   ac_status=$?
2366   if test -s conftest.err; then
2367     grep -v '^ *+' conftest.err >conftest.er1
2368     cat conftest.er1 >&5
2369     mv -f conftest.er1 conftest.err
2370   fi
2371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372   test $ac_status = 0; } && {
2373          test -z "$ac_objc_werror_flag" ||
2374          test ! -s conftest.err
2375        } && test -s conftest.$ac_objext; then :
2376   ac_retval=0
2377 else
2378   $as_echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380 
2381         ac_retval=1
2382 fi
2383   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384   as_fn_set_status $ac_retval
2385 
2386 } # ac_fn_objc_try_compile
2387 
2388 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2389 # ---------------------------------------------------------
2390 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2391 # the include files in INCLUDES and setting the cache variable VAR
2392 # accordingly.
2393 ac_fn_cxx_check_header_mongrel ()
2394 {
2395   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396   if eval \${$3+:} false; then :
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if eval \${$3+:} false; then :
2400   $as_echo_n "(cached) " >&6
2401 fi
2402 eval ac_res=\$$3
2403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 else
2406   # Is the header compilable?
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2408 $as_echo_n "checking $2 usability... " >&6; }
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h.  */
2411 $4
2412 #include <$2>
2413 _ACEOF
2414 if ac_fn_cxx_try_compile "$LINENO"; then :
2415   ac_header_compiler=yes
2416 else
2417   ac_header_compiler=no
2418 fi
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2421 $as_echo "$ac_header_compiler" >&6; }
2422 
2423 # Is the header present?
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2425 $as_echo_n "checking $2 presence... " >&6; }
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h.  */
2428 #include <$2>
2429 _ACEOF
2430 if ac_fn_cxx_try_cpp "$LINENO"; then :
2431   ac_header_preproc=yes
2432 else
2433   ac_header_preproc=no
2434 fi
2435 rm -f conftest.err conftest.i conftest.$ac_ext
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2437 $as_echo "$ac_header_preproc" >&6; }
2438 
2439 # So?  What about this header?
2440 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2441   yes:no: )
2442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2443 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2444     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2445 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2446     ;;
2447   no:yes:* )
2448     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2449 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2450     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2451 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2453 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2455 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2457 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2458 ( $as_echo "## ----------------------------------------- ##
2459 ## Report this to build-dev@openjdk.java.net ##
2460 ## ----------------------------------------- ##"
2461      ) | sed "s/^/$as_me: WARNING:     /" >&2
2462     ;;
2463 esac
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2465 $as_echo_n "checking for $2... " >&6; }
2466 if eval \${$3+:} false; then :
2467   $as_echo_n "(cached) " >&6
2468 else
2469   eval "$3=\$ac_header_compiler"
2470 fi
2471 eval ac_res=\$$3
2472                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 fi
2475   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2476 
2477 } # ac_fn_cxx_check_header_mongrel
2478 
2479 # ac_fn_cxx_try_run LINENO
2480 # ------------------------
2481 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2482 # that executables *can* be run.
2483 ac_fn_cxx_try_run ()
2484 {
2485   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486   if { { ac_try="$ac_link"
2487 case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2492 $as_echo "$ac_try_echo"; } >&5
2493   (eval "$ac_link") 2>&5
2494   ac_status=$?
2495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2497   { { case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503   (eval "$ac_try") 2>&5
2504   ac_status=$?
2505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506   test $ac_status = 0; }; }; then :
2507   ac_retval=0
2508 else
2509   $as_echo "$as_me: program exited with status $ac_status" >&5
2510        $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512 
2513        ac_retval=$ac_status
2514 fi
2515   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2516   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517   as_fn_set_status $ac_retval
2518 
2519 } # ac_fn_cxx_try_run
2520 
2521 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2522 # ---------------------------------------------------------
2523 # Tests whether HEADER exists and can be compiled using the include files in
2524 # INCLUDES, setting the cache variable VAR accordingly.
2525 ac_fn_cxx_check_header_compile ()
2526 {
2527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if eval \${$3+:} false; then :
2531   $as_echo_n "(cached) " >&6
2532 else
2533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h.  */
2535 $4
2536 #include <$2>
2537 _ACEOF
2538 if ac_fn_cxx_try_compile "$LINENO"; then :
2539   eval "$3=yes"
2540 else
2541   eval "$3=no"
2542 fi
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 fi
2545 eval ac_res=\$$3
2546                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2547 $as_echo "$ac_res" >&6; }
2548   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2549 
2550 } # ac_fn_cxx_check_header_compile
2551 
2552 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2553 # ----------------------------------------------
2554 # Tries to find the compile-time value of EXPR in a program that includes
2555 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2556 # computed
2557 ac_fn_cxx_compute_int ()
2558 {
2559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560   if test "$cross_compiling" = yes; then
2561     # Depending upon the size, compute the lo and hi bounds.
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h.  */
2564 $4
2565 int
2566 main ()
2567 {
2568 static int test_array [1 - 2 * !(($2) >= 0)];
2569 test_array [0] = 0;
2570 return test_array [0];
2571 
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 if ac_fn_cxx_try_compile "$LINENO"; then :
2577   ac_lo=0 ac_mid=0
2578   while :; do
2579     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h.  */
2581 $4
2582 int
2583 main ()
2584 {
2585 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2586 test_array [0] = 0;
2587 return test_array [0];
2588 
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_cxx_try_compile "$LINENO"; then :
2594   ac_hi=$ac_mid; break
2595 else
2596   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2597                         if test $ac_lo -le $ac_mid; then
2598                           ac_lo= ac_hi=
2599                           break
2600                         fi
2601                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2602 fi
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604   done
2605 else
2606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h.  */
2608 $4
2609 int
2610 main ()
2611 {
2612 static int test_array [1 - 2 * !(($2) < 0)];
2613 test_array [0] = 0;
2614 return test_array [0];
2615 
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_cxx_try_compile "$LINENO"; then :
2621   ac_hi=-1 ac_mid=-1
2622   while :; do
2623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h.  */
2625 $4
2626 int
2627 main ()
2628 {
2629 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2630 test_array [0] = 0;
2631 return test_array [0];
2632 
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_cxx_try_compile "$LINENO"; then :
2638   ac_lo=$ac_mid; break
2639 else
2640   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2641                         if test $ac_mid -le $ac_hi; then
2642                           ac_lo= ac_hi=
2643                           break
2644                         fi
2645                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648   done
2649 else
2650   ac_lo= ac_hi=
2651 fi
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 fi
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 # Binary search between lo and hi bounds.
2656 while test "x$ac_lo" != "x$ac_hi"; do
2657   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659 /* end confdefs.h.  */
2660 $4
2661 int
2662 main ()
2663 {
2664 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2665 test_array [0] = 0;
2666 return test_array [0];
2667 
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 if ac_fn_cxx_try_compile "$LINENO"; then :
2673   ac_hi=$ac_mid
2674 else
2675   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2676 fi
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 done
2679 case $ac_lo in #((
2680 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2681 '') ac_retval=1 ;;
2682 esac
2683   else
2684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h.  */
2686 $4
2687 static long int longval () { return $2; }
2688 static unsigned long int ulongval () { return $2; }
2689 #include <stdio.h>
2690 #include <stdlib.h>
2691 int
2692 main ()
2693 {
2694 
2695   FILE *f = fopen ("conftest.val", "w");
2696   if (! f)
2697     return 1;
2698   if (($2) < 0)
2699     {
2700       long int i = longval ();
2701       if (i != ($2))
2702         return 1;
2703       fprintf (f, "%ld", i);
2704     }
2705   else
2706     {
2707       unsigned long int i = ulongval ();
2708       if (i != ($2))
2709         return 1;
2710       fprintf (f, "%lu", i);
2711     }
2712   /* Do not output a trailing newline, as this causes \r\n confusion
2713      on some platforms.  */
2714   return ferror (f) || fclose (f) != 0;
2715 
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 if ac_fn_cxx_try_run "$LINENO"; then :
2721   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2722 else
2723   ac_retval=1
2724 fi
2725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2726   conftest.$ac_objext conftest.beam conftest.$ac_ext
2727 rm -f conftest.val
2728 
2729   fi
2730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2731   as_fn_set_status $ac_retval
2732 
2733 } # ac_fn_cxx_compute_int
2734 
2735 # ac_fn_cxx_try_link LINENO
2736 # -------------------------
2737 # Try to link conftest.$ac_ext, and return whether this succeeded.
2738 ac_fn_cxx_try_link ()
2739 {
2740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2741   rm -f conftest.$ac_objext conftest$ac_exeext
2742   if { { ac_try="$ac_link"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748 $as_echo "$ac_try_echo"; } >&5
2749   (eval "$ac_link") 2>conftest.err
2750   ac_status=$?
2751   if test -s conftest.err; then
2752     grep -v '^ *+' conftest.err >conftest.er1
2753     cat conftest.er1 >&5
2754     mv -f conftest.er1 conftest.err
2755   fi
2756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757   test $ac_status = 0; } && {
2758          test -z "$ac_cxx_werror_flag" ||
2759          test ! -s conftest.err
2760        } && test -s conftest$ac_exeext && {
2761          test "$cross_compiling" = yes ||
2762          test -x conftest$ac_exeext
2763        }; then :
2764   ac_retval=0
2765 else
2766   $as_echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768 
2769         ac_retval=1
2770 fi
2771   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2772   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2773   # interfere with the next link command; also delete a directory that is
2774   # left behind by Apple's compiler.  We do this before executing the actions.
2775   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2776   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777   as_fn_set_status $ac_retval
2778 
2779 } # ac_fn_cxx_try_link
2780 
2781 # ac_fn_cxx_check_func LINENO FUNC VAR
2782 # ------------------------------------
2783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2784 ac_fn_cxx_check_func ()
2785 {
2786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788 $as_echo_n "checking for $2... " >&6; }
2789 if eval \${$3+:} false; then :
2790   $as_echo_n "(cached) " >&6
2791 else
2792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h.  */
2794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2796 #define $2 innocuous_$2
2797 
2798 /* System header to define __stub macros and hopefully few prototypes,
2799     which can conflict with char $2 (); below.
2800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2801     <limits.h> exists even on freestanding compilers.  */
2802 
2803 #ifdef __STDC__
2804 # include <limits.h>
2805 #else
2806 # include <assert.h>
2807 #endif
2808 
2809 #undef $2
2810 
2811 /* Override any GCC internal prototype to avoid an error.
2812    Use char because int might match the return type of a GCC
2813    builtin and then its argument prototype would still apply.  */
2814 #ifdef __cplusplus
2815 extern "C"
2816 #endif
2817 char $2 ();
2818 /* The GNU C library defines this for functions which it implements
2819     to always fail with ENOSYS.  Some functions are actually named
2820     something starting with __ and the normal name is an alias.  */
2821 #if defined __stub_$2 || defined __stub___$2
2822 choke me
2823 #endif
2824 
2825 int
2826 main ()
2827 {
2828 return $2 ();
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 if ac_fn_cxx_try_link "$LINENO"; then :
2834   eval "$3=yes"
2835 else
2836   eval "$3=no"
2837 fi
2838 rm -f core conftest.err conftest.$ac_objext \
2839     conftest$ac_exeext conftest.$ac_ext
2840 fi
2841 eval ac_res=\$$3
2842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2845 
2846 } # ac_fn_cxx_check_func
2847 
2848 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2849 # -------------------------------------------------------
2850 # Tests whether HEADER exists and can be compiled using the include files in
2851 # INCLUDES, setting the cache variable VAR accordingly.
2852 ac_fn_c_check_header_compile ()
2853 {
2854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2856 $as_echo_n "checking for $2... " >&6; }
2857 if eval \${$3+:} false; then :
2858   $as_echo_n "(cached) " >&6
2859 else
2860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h.  */
2862 $4
2863 #include <$2>
2864 _ACEOF
2865 if ac_fn_c_try_compile "$LINENO"; then :
2866   eval "$3=yes"
2867 else
2868   eval "$3=no"
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 eval ac_res=\$$3
2873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2874 $as_echo "$ac_res" >&6; }
2875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2876 
2877 } # ac_fn_c_check_header_compile
2878 cat >config.log <<_ACEOF
2879 This file contains any messages produced by compilers while
2880 running configure, to aid debugging if configure makes a mistake.
2881 
2882 It was created by OpenJDK $as_me jdk8, which was
2883 generated by GNU Autoconf 2.69.  Invocation command line was
2884 
2885   $ $0 $@
2886 
2887 _ACEOF
2888 exec 5>>config.log
2889 {
2890 cat <<_ASUNAME
2891 ## --------- ##
2892 ## Platform. ##
2893 ## --------- ##
2894 
2895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2900 
2901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2902 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2903 
2904 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2905 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2907 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2908 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2909 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2910 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2911 
2912 _ASUNAME
2913 
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917   IFS=$as_save_IFS
2918   test -z "$as_dir" && as_dir=.
2919     $as_echo "PATH: $as_dir"
2920   done
2921 IFS=$as_save_IFS
2922 
2923 } >&5
2924 
2925 cat >&5 <<_ACEOF
2926 
2927 
2928 ## ----------- ##
2929 ## Core tests. ##
2930 ## ----------- ##
2931 
2932 _ACEOF
2933 
2934 
2935 # Keep a trace of the command line.
2936 # Strip out --no-create and --no-recursion so they do not pile up.
2937 # Strip out --silent because we don't want to record it for future runs.
2938 # Also quote any args containing shell meta-characters.
2939 # Make two passes to allow for proper duplicate-argument suppression.
2940 ac_configure_args=
2941 ac_configure_args0=
2942 ac_configure_args1=
2943 ac_must_keep_next=false
2944 for ac_pass in 1 2
2945 do
2946   for ac_arg
2947   do
2948     case $ac_arg in
2949     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2950     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2951     | -silent | --silent | --silen | --sile | --sil)
2952       continue ;;
2953     *\'*)
2954       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2955     esac
2956     case $ac_pass in
2957     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2958     2)
2959       as_fn_append ac_configure_args1 " '$ac_arg'"
2960       if test $ac_must_keep_next = true; then
2961         ac_must_keep_next=false # Got value, back to normal.
2962       else
2963         case $ac_arg in
2964           *=* | --config-cache | -C | -disable-* | --disable-* \
2965           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2966           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2967           | -with-* | --with-* | -without-* | --without-* | --x)
2968             case "$ac_configure_args0 " in
2969               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2970             esac
2971             ;;
2972           -* ) ac_must_keep_next=true ;;
2973         esac
2974       fi
2975       as_fn_append ac_configure_args " '$ac_arg'"
2976       ;;
2977     esac
2978   done
2979 done
2980 { ac_configure_args0=; unset ac_configure_args0;}
2981 { ac_configure_args1=; unset ac_configure_args1;}
2982 
2983 # When interrupted or exit'd, cleanup temporary files, and complete
2984 # config.log.  We remove comments because anyway the quotes in there
2985 # would cause problems or look ugly.
2986 # WARNING: Use '\'' to represent an apostrophe within the trap.
2987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2988 trap 'exit_status=$?
2989   # Save into config.log some information that might help in debugging.
2990   {
2991     echo
2992 
2993     $as_echo "## ---------------- ##
2994 ## Cache variables. ##
2995 ## ---------------- ##"
2996     echo
2997     # The following way of writing the cache mishandles newlines in values,
2998 (
2999   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3000     eval ac_val=\$$ac_var
3001     case $ac_val in #(
3002     *${as_nl}*)
3003       case $ac_var in #(
3004       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3006       esac
3007       case $ac_var in #(
3008       _ | IFS | as_nl) ;; #(
3009       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3010       *) { eval $ac_var=; unset $ac_var;} ;;
3011       esac ;;
3012     esac
3013   done
3014   (set) 2>&1 |
3015     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3016     *${as_nl}ac_space=\ *)
3017       sed -n \
3018         "s/'\''/'\''\\\\'\'''\''/g;
3019           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3020       ;; #(
3021     *)
3022       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3023       ;;
3024     esac |
3025     sort
3026 )
3027     echo
3028 
3029     $as_echo "## ----------------- ##
3030 ## Output variables. ##
3031 ## ----------------- ##"
3032     echo
3033     for ac_var in $ac_subst_vars
3034     do
3035       eval ac_val=\$$ac_var
3036       case $ac_val in
3037       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3038       esac
3039       $as_echo "$ac_var='\''$ac_val'\''"
3040     done | sort
3041     echo
3042 
3043     if test -n "$ac_subst_files"; then
3044       $as_echo "## ------------------- ##
3045 ## File substitutions. ##
3046 ## ------------------- ##"
3047       echo
3048       for ac_var in $ac_subst_files
3049       do
3050         eval ac_val=\$$ac_var
3051         case $ac_val in
3052         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3053         esac
3054         $as_echo "$ac_var='\''$ac_val'\''"
3055       done | sort
3056       echo
3057     fi
3058 
3059     if test -s confdefs.h; then
3060       $as_echo "## ----------- ##
3061 ## confdefs.h. ##
3062 ## ----------- ##"
3063       echo
3064       cat confdefs.h
3065       echo
3066     fi
3067     test "$ac_signal" != 0 &&
3068       $as_echo "$as_me: caught signal $ac_signal"
3069     $as_echo "$as_me: exit $exit_status"
3070   } >&5
3071   rm -f core *.core core.conftest.* &&
3072     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3073     exit $exit_status
3074 ' 0
3075 for ac_signal in 1 2 13 15; do
3076   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3077 done
3078 ac_signal=0
3079 
3080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3081 rm -f -r conftest* confdefs.h
3082 
3083 $as_echo "/* confdefs.h */" > confdefs.h
3084 
3085 # Predefined preprocessor variables.
3086 
3087 cat >>confdefs.h <<_ACEOF
3088 #define PACKAGE_NAME "$PACKAGE_NAME"
3089 _ACEOF
3090 
3091 cat >>confdefs.h <<_ACEOF
3092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3093 _ACEOF
3094 
3095 cat >>confdefs.h <<_ACEOF
3096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3097 _ACEOF
3098 
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE_STRING "$PACKAGE_STRING"
3101 _ACEOF
3102 
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3105 _ACEOF
3106 
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_URL "$PACKAGE_URL"
3109 _ACEOF
3110 
3111 
3112 # Let the site file select an alternate cache file if it wants to.
3113 # Prefer an explicitly selected file to automatically selected ones.
3114 ac_site_file1=NONE
3115 ac_site_file2=NONE
3116 if test -n "$CONFIG_SITE"; then
3117   # We do not want a PATH search for config.site.
3118   case $CONFIG_SITE in #((
3119     -*)  ac_site_file1=./$CONFIG_SITE;;
3120     */*) ac_site_file1=$CONFIG_SITE;;
3121     *)   ac_site_file1=./$CONFIG_SITE;;
3122   esac
3123 elif test "x$prefix" != xNONE; then
3124   ac_site_file1=$prefix/share/config.site
3125   ac_site_file2=$prefix/etc/config.site
3126 else
3127   ac_site_file1=$ac_default_prefix/share/config.site
3128   ac_site_file2=$ac_default_prefix/etc/config.site
3129 fi
3130 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3131 do
3132   test "x$ac_site_file" = xNONE && continue
3133   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3134     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3135 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3136     sed 's/^/| /' "$ac_site_file" >&5
3137     . "$ac_site_file" \
3138       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $? "failed to load site script $ac_site_file
3141 See \`config.log' for more details" "$LINENO" 5; }
3142   fi
3143 done
3144 
3145 if test -r "$cache_file"; then
3146   # Some versions of bash will fail to source /dev/null (special files
3147   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3148   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3149     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3150 $as_echo "$as_me: loading cache $cache_file" >&6;}
3151     case $cache_file in
3152       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3153       *)                      . "./$cache_file";;
3154     esac
3155   fi
3156 else
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3158 $as_echo "$as_me: creating cache $cache_file" >&6;}
3159   >$cache_file
3160 fi
3161 
3162 # Check that the precious variables saved in the cache have kept the same
3163 # value.
3164 ac_cache_corrupted=false
3165 for ac_var in $ac_precious_vars; do
3166   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3167   eval ac_new_set=\$ac_env_${ac_var}_set
3168   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3169   eval ac_new_val=\$ac_env_${ac_var}_value
3170   case $ac_old_set,$ac_new_set in
3171     set,)
3172       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3174       ac_cache_corrupted=: ;;
3175     ,set)
3176       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3178       ac_cache_corrupted=: ;;
3179     ,);;
3180     *)
3181       if test "x$ac_old_val" != "x$ac_new_val"; then
3182         # differences in whitespace do not lead to failure.
3183         ac_old_val_w=`echo x $ac_old_val`
3184         ac_new_val_w=`echo x $ac_new_val`
3185         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3186           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3188           ac_cache_corrupted=:
3189         else
3190           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3192           eval $ac_var=\$ac_old_val
3193         fi
3194         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3195 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3196         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3197 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3198       fi;;
3199   esac
3200   # Pass precious variables to config.status.
3201   if test "$ac_new_set" = set; then
3202     case $ac_new_val in
3203     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3204     *) ac_arg=$ac_var=$ac_new_val ;;
3205     esac
3206     case " $ac_configure_args " in
3207       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3208       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3209     esac
3210   fi
3211 done
3212 if $ac_cache_corrupted; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3217   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3218 fi
3219 ## -------------------- ##
3220 ## Main body of script. ##
3221 ## -------------------- ##
3222 
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 
3229 
3230 
3231 ac_aux_dir=
3232 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3233   if test -f "$ac_dir/install-sh"; then
3234     ac_aux_dir=$ac_dir
3235     ac_install_sh="$ac_aux_dir/install-sh -c"
3236     break
3237   elif test -f "$ac_dir/install.sh"; then
3238     ac_aux_dir=$ac_dir
3239     ac_install_sh="$ac_aux_dir/install.sh -c"
3240     break
3241   elif test -f "$ac_dir/shtool"; then
3242     ac_aux_dir=$ac_dir
3243     ac_install_sh="$ac_aux_dir/shtool install -c"
3244     break
3245   fi
3246 done
3247 if test -z "$ac_aux_dir"; then
3248   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
3249 fi
3250 
3251 # These three variables are undocumented and unsupported,
3252 # and are intended to be withdrawn in a future Autoconf release.
3253 # They can cause serious problems if a builder's source tree is in a directory
3254 # whose full name contains unusual characters.
3255 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3256 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3257 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3258 
3259 
3260 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3261 
3262 #
3263 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3264 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3265 #
3266 # This code is free software; you can redistribute it and/or modify it
3267 # under the terms of the GNU General Public License version 2 only, as
3268 # published by the Free Software Foundation.  Oracle designates this
3269 # particular file as subject to the "Classpath" exception as provided
3270 # by Oracle in the LICENSE file that accompanied this code.
3271 #
3272 # This code is distributed in the hope that it will be useful, but WITHOUT
3273 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3274 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3275 # version 2 for more details (a copy is included in the LICENSE file that
3276 # accompanied this code).
3277 #
3278 # You should have received a copy of the GNU General Public License version
3279 # 2 along with this work; if not, write to the Free Software Foundation,
3280 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3281 #
3282 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3283 # or visit www.oracle.com if you need additional information or have any
3284 # questions.
3285 #
3286 
3287 #
3288 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3289 #
3290 # This program is free software; you can redistribute it and/or modify
3291 # it under the terms of the GNU General Public License as published by
3292 # the Free Software Foundation; either version 2 of the License, or
3293 # (at your option) any later version.
3294 #
3295 # This program is distributed in the hope that it will be useful, but
3296 # WITHOUT ANY WARRANTY; without even the implied warranty of
3297 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3298 # General Public License for more details.
3299 #
3300 # You should have received a copy of the GNU General Public License
3301 # along with this program; if not, write to the Free Software
3302 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3303 #
3304 # As a special exception to the GNU General Public License, if you
3305 # distribute this file as part of a program that contains a
3306 # configuration script generated by Autoconf, you may include it under
3307 # the same distribution terms that you use for the rest of that program.
3308 
3309 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3310 # ----------------------------------
3311 # PKG_PROG_PKG_CONFIG
3312 
3313 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3314 #
3315 # Check to see whether a particular set of modules exists.  Similar
3316 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3317 #
3318 #
3319 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3320 # this or PKG_CHECK_MODULES is called, or make sure to call
3321 # PKG_CHECK_EXISTS manually
3322 # --------------------------------------------------------------
3323 
3324 
3325 
3326 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3327 # ---------------------------------------------
3328 # _PKG_CONFIG
3329 
3330 # _PKG_SHORT_ERRORS_SUPPORTED
3331 # -----------------------------
3332 # _PKG_SHORT_ERRORS_SUPPORTED
3333 
3334 
3335 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3336 # [ACTION-IF-NOT-FOUND])
3337 #
3338 #
3339 # Note that if there is a possibility the first call to
3340 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3341 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3342 #
3343 #
3344 # --------------------------------------------------------------
3345 # PKG_CHECK_MODULES
3346 
3347 
3348 # Include these first...
3349 #
3350 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3351 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3352 #
3353 # This code is free software; you can redistribute it and/or modify it
3354 # under the terms of the GNU General Public License version 2 only, as
3355 # published by the Free Software Foundation.  Oracle designates this
3356 # particular file as subject to the "Classpath" exception as provided
3357 # by Oracle in the LICENSE file that accompanied this code.
3358 #
3359 # This code is distributed in the hope that it will be useful, but WITHOUT
3360 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3361 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3362 # version 2 for more details (a copy is included in the LICENSE file that
3363 # accompanied this code).
3364 #
3365 # You should have received a copy of the GNU General Public License version
3366 # 2 along with this work; if not, write to the Free Software Foundation,
3367 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3368 #
3369 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3370 # or visit www.oracle.com if you need additional information or have any
3371 # questions.
3372 #
3373 
3374 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3375 # If so, then append $1 to $2 \
3376 # Also set JVM_ARG_OK to true/false depending on outcome.
3377 
3378 
3379 # Appends a string to a path variable, only adding the : when needed.
3380 
3381 
3382 # Prepends a string to a path variable, only adding the : when needed.
3383 
3384 
3385 # This will make sure the given variable points to a full and proper
3386 # path. This means:
3387 # 1) There will be no spaces in the path. On posix platforms,
3388 #    spaces in the path will result in an error. On Windows,
3389 #    the path will be rewritten using short-style to be space-free.
3390 # 2) The path will be absolute, and it will be in unix-style (on
3391 #     cygwin).
3392 # $1: The name of the variable to fix
3393 
3394 
3395 # This will make sure the given variable points to a executable
3396 # with a full and proper path. This means:
3397 # 1) There will be no spaces in the path. On posix platforms,
3398 #    spaces in the path will result in an error. On Windows,
3399 #    the path will be rewritten using short-style to be space-free.
3400 # 2) The path will be absolute, and it will be in unix-style (on
3401 #     cygwin).
3402 # Any arguments given to the executable is preserved.
3403 # If the input variable does not have a directory specification, then
3404 # it need to be in the PATH.
3405 # $1: The name of the variable to fix
3406 
3407 
3408 
3409 
3410 # Register a --with argument but mark it as deprecated
3411 # $1: The name of the with argument to deprecate, not including --with-
3412 
3413 
3414 # Register a --enable argument but mark it as deprecated
3415 # $1: The name of the with argument to deprecate, not including --enable-
3416 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3417 
3418 
3419 
3420 
3421 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3422 # $1: variable to check
3423 
3424 
3425 # Check that there are no unprocessed overridden variables left.
3426 # If so, they are an incorrect argument and we will exit with an error.
3427 
3428 
3429 # Setup a tool for the given variable. If correctly specified by the user,
3430 # use that value, otherwise search for the tool using the supplied code snippet.
3431 # $1: variable to set
3432 # $2: code snippet to call to look for the tool
3433 
3434 
3435 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3436 # $1: variable to set
3437 # $2: executable name (or list of names) to look for
3438 
3439 
3440 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3441 # $1: variable to set
3442 # $2: executable name (or list of names) to look for
3443 
3444 
3445 # Like BASIC_PATH_PROGS but fails if no tool was found.
3446 # $1: variable to set
3447 # $2: executable name (or list of names) to look for
3448 
3449 
3450 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3451 # $1: variable to set
3452 # $2: autoconf macro to call to look for the special tool
3453 
3454 
3455 # Setup the most fundamental tools that relies on not much else to set up,
3456 # but is used by much of the early bootstrap code.
3457 
3458 
3459 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3460 
3461 
3462 # Evaluates platform specific overrides for devkit variables.
3463 # $1: Name of variable
3464 
3465 
3466 
3467 
3468 
3469 
3470 
3471 
3472 
3473 #%%% Simple tools %%%
3474 
3475 # Check if we have found a usable version of make
3476 # $1: the path to a potential make binary (or empty)
3477 # $2: the description on how we found this
3478 
3479 
3480 # Goes looking for a usable version of GNU make.
3481 
3482 
3483 
3484 
3485 
3486 
3487 # Check if build directory is on local disk. If not possible to determine,
3488 # we prefer to claim it's local.
3489 # Argument 1: directory to test
3490 # Argument 2: what to do if it is on local disk
3491 # Argument 3: what to do otherwise (remote disk or failure)
3492 
3493 
3494 # Check that source files have basic read permissions set. This might
3495 # not be the case in cygwin in certain conditions.
3496 
3497 
3498 
3499 
3500 #
3501 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3502 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3503 #
3504 # This code is free software; you can redistribute it and/or modify it
3505 # under the terms of the GNU General Public License version 2 only, as
3506 # published by the Free Software Foundation.  Oracle designates this
3507 # particular file as subject to the "Classpath" exception as provided
3508 # by Oracle in the LICENSE file that accompanied this code.
3509 #
3510 # This code is distributed in the hope that it will be useful, but WITHOUT
3511 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3512 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3513 # version 2 for more details (a copy is included in the LICENSE file that
3514 # accompanied this code).
3515 #
3516 # You should have received a copy of the GNU General Public License version
3517 # 2 along with this work; if not, write to the Free Software Foundation,
3518 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3519 #
3520 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3521 # or visit www.oracle.com if you need additional information or have any
3522 # questions.
3523 #
3524 
3525 
3526 
3527 
3528 
3529 # Helper function which possibly converts a path using DOS-style short mode.
3530 # If so, the updated path is stored in $new_path.
3531 # $1: The path to check
3532 
3533 
3534 # Helper function which possibly converts a path using DOS-style short mode.
3535 # If so, the updated path is stored in $new_path.
3536 # $1: The path to check
3537 
3538 
3539 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3540 # and could probably be heavily simplified. However, all changes in this
3541 # area tend to need lot of testing in different scenarios, and in lack of
3542 # proper unit testing, cleaning this up has not been deemed worth the effort
3543 # at the moment.
3544 
3545 
3546 
3547 
3548 
3549 
3550 
3551 
3552 
3553 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3554 
3555 
3556 
3557 
3558 #
3559 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3560 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3561 #
3562 # This code is free software; you can redistribute it and/or modify it
3563 # under the terms of the GNU General Public License version 2 only, as
3564 # published by the Free Software Foundation.  Oracle designates this
3565 # particular file as subject to the "Classpath" exception as provided
3566 # by Oracle in the LICENSE file that accompanied this code.
3567 #
3568 # This code is distributed in the hope that it will be useful, but WITHOUT
3569 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3570 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3571 # version 2 for more details (a copy is included in the LICENSE file that
3572 # accompanied this code).
3573 #
3574 # You should have received a copy of the GNU General Public License version
3575 # 2 along with this work; if not, write to the Free Software Foundation,
3576 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3577 #
3578 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3579 # or visit www.oracle.com if you need additional information or have any
3580 # questions.
3581 #
3582 
3583 
3584 
3585 
3586 
3587 
3588 
3589 
3590 
3591 
3592 
3593 # ... then the rest
3594 #
3595 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3596 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3597 #
3598 # This code is free software; you can redistribute it and/or modify it
3599 # under the terms of the GNU General Public License version 2 only, as
3600 # published by the Free Software Foundation.  Oracle designates this
3601 # particular file as subject to the "Classpath" exception as provided
3602 # by Oracle in the LICENSE file that accompanied this code.
3603 #
3604 # This code is distributed in the hope that it will be useful, but WITHOUT
3605 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3606 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3607 # version 2 for more details (a copy is included in the LICENSE file that
3608 # accompanied this code).
3609 #
3610 # You should have received a copy of the GNU General Public License version
3611 # 2 along with this work; if not, write to the Free Software Foundation,
3612 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3613 #
3614 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3615 # or visit www.oracle.com if you need additional information or have any
3616 # questions.
3617 #
3618 
3619 # Execute the check given as argument, and verify the result
3620 # If the Boot JDK was previously found, do nothing
3621 # $1 A command line (typically autoconf macro) to execute
3622 
3623 
3624 # Test: Is bootjdk explicitely set by command line arguments?
3625 
3626 
3627 # Test: Is bootjdk available from builddeps?
3628 
3629 
3630 # Test: Is $JAVA_HOME set?
3631 
3632 
3633 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3634 
3635 
3636 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3637 
3638 
3639 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3640 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3641 # $1 = Path to directory containing jdk installations.
3642 # $2 = String to append to the found JDK directory to get the proper JDK home
3643 
3644 
3645 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3646 # environmental variable as base for where to look.
3647 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3648 
3649 
3650 # Test: Is there a JDK installed in default, well-known locations?
3651 
3652 
3653 # Check that a command-line tool in the Boot JDK is correct
3654 # $1 = name of variable to assign
3655 # $2 = name of binary
3656 
3657 
3658 ###############################################################################
3659 #
3660 # We need a Boot JDK to bootstrap the build.
3661 #
3662 
3663 
3664 
3665 
3666 
3667 #
3668 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3669 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3670 #
3671 # This code is free software; you can redistribute it and/or modify it
3672 # under the terms of the GNU General Public License version 2 only, as
3673 # published by the Free Software Foundation.  Oracle designates this
3674 # particular file as subject to the "Classpath" exception as provided
3675 # by Oracle in the LICENSE file that accompanied this code.
3676 #
3677 # This code is distributed in the hope that it will be useful, but WITHOUT
3678 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3679 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3680 # version 2 for more details (a copy is included in the LICENSE file that
3681 # accompanied this code).
3682 #
3683 # You should have received a copy of the GNU General Public License version
3684 # 2 along with this work; if not, write to the Free Software Foundation,
3685 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3686 #
3687 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3688 # or visit www.oracle.com if you need additional information or have any
3689 # questions.
3690 #
3691 
3692 
3693 
3694 
3695 
3696 
3697 
3698 
3699 
3700 
3701 
3702 
3703 
3704 
3705 
3706 
3707 
3708 
3709 
3710 
3711 #
3712 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3713 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3714 #
3715 # This code is free software; you can redistribute it and/or modify it
3716 # under the terms of the GNU General Public License version 2 only, as
3717 # published by the Free Software Foundation.  Oracle designates this
3718 # particular file as subject to the "Classpath" exception as provided
3719 # by Oracle in the LICENSE file that accompanied this code.
3720 #
3721 # This code is distributed in the hope that it will be useful, but WITHOUT
3722 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3723 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3724 # version 2 for more details (a copy is included in the LICENSE file that
3725 # accompanied this code).
3726 #
3727 # You should have received a copy of the GNU General Public License version
3728 # 2 along with this work; if not, write to the Free Software Foundation,
3729 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3730 #
3731 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3732 # or visit www.oracle.com if you need additional information or have any
3733 # questions.
3734 #
3735 
3736 
3737 
3738 
3739 
3740 # Documentation on common flags used for solstudio in HIGHEST.
3741 #
3742 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3743 #          done with care, there are some assumptions below that need to
3744 #          be understood about the use of pointers, and IEEE behavior.
3745 #
3746 # -fns: Use non-standard floating point mode (not IEEE 754)
3747 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3748 # -fsingle: Use single precision floating point with 'float'
3749 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3750 #   (Source with excessing pointer casting and data access with mixed
3751 #    pointer types are not recommended)
3752 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3753 #   (If you expect perfect errno behavior, do not use this)
3754 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3755 # -xrestrict: Pointer parameters to functions do not overlap
3756 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3757 #    If you pass in multiple pointers to the same data, do not use this)
3758 # -xlibmil: Inline some library routines
3759 #   (If you expect perfect errno behavior, do not use this)
3760 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3761 #   (If you expect perfect errno behavior, do not use this)
3762 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3763 
3764     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3765     # Bug?
3766     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3767     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3768     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3769     #fi
3770 
3771 
3772 
3773 
3774 
3775 
3776 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3777 #                                  [RUN-IF-FALSE])
3778 # ------------------------------------------------------------
3779 # Check that the C compiler supports an argument
3780 
3781 
3782 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3783 #                                    [RUN-IF-FALSE])
3784 # ------------------------------------------------------------
3785 # Check that the C++ compiler supports an argument
3786 
3787 
3788 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3789 #                                [RUN-IF-FALSE])
3790 # ------------------------------------------------------------
3791 # Check that the C and C++ compilers support an argument
3792 
3793 
3794 
3795 
3796 
3797 
3798 
3799 #
3800 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3801 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3802 #
3803 # This code is free software; you can redistribute it and/or modify it
3804 # under the terms of the GNU General Public License version 2 only, as
3805 # published by the Free Software Foundation.  Oracle designates this
3806 # particular file as subject to the "Classpath" exception as provided
3807 # by Oracle in the LICENSE file that accompanied this code.
3808 #
3809 # This code is distributed in the hope that it will be useful, but WITHOUT
3810 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3811 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3812 # version 2 for more details (a copy is included in the LICENSE file that
3813 # accompanied this code).
3814 #
3815 # You should have received a copy of the GNU General Public License version
3816 # 2 along with this work; if not, write to the Free Software Foundation,
3817 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3818 #
3819 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3820 # or visit www.oracle.com if you need additional information or have any
3821 # questions.
3822 #
3823 
3824 
3825 
3826 
3827 
3828 cygwin_help() {
3829   case $1 in
3830     unzip)
3831       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3832       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3833       ;;
3834     zip)
3835       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3836       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3837       ;;
3838     make)
3839       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3840       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3841       ;;
3842     freetype)
3843       HELP_MSG="
3844 The freetype library can now be build during the configure process.
3845 Download the freetype sources and unpack them into an arbitrary directory:
3846 
3847 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3848 tar -xzf freetype-2.5.3.tar.gz
3849 
3850 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3851 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3852 builds or into '<freetype_src>/lib32' for 32-bit builds.
3853 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3854 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3855       ;;
3856   esac
3857 }
3858 
3859 msys_help() {
3860   PKGHANDLER_COMMAND=""
3861 }
3862 
3863 apt_help() {
3864   case $1 in
3865     devkit)
3866       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3867     openjdk)
3868       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3869     alsa)
3870       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3871     cups)
3872       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3873     fontconfig)
3874       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
3875     freetype)
3876       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3877     pulse)
3878       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3879     x11)
3880       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3881     ccache)
3882       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3883   esac
3884 }
3885 
3886 yum_help() {
3887   case $1 in
3888     devkit)
3889       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3890     openjdk)
3891       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3892     alsa)
3893       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3894     cups)
3895       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3896     fontconfig)
3897       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
3898     freetype)
3899       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3900     pulse)
3901       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3902     x11)
3903       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3904     ccache)
3905       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3906   esac
3907 }
3908 
3909 port_help() {
3910   PKGHANDLER_COMMAND=""
3911 }
3912 
3913 pkgutil_help() {
3914   PKGHANDLER_COMMAND=""
3915 }
3916 
3917 pkgadd_help() {
3918   PKGHANDLER_COMMAND=""
3919 }
3920 
3921 # This function will check if we're called from the "configure" wrapper while
3922 # printing --help. If so, we will print out additional information that can
3923 # only be extracted within the autoconf script, and then exit. This must be
3924 # called at the very beginning in configure.ac.
3925 
3926 
3927 
3928 
3929 #
3930 # Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
3931 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3932 #
3933 # This code is free software; you can redistribute it and/or modify it
3934 # under the terms of the GNU General Public License version 2 only, as
3935 # published by the Free Software Foundation.  Oracle designates this
3936 # particular file as subject to the "Classpath" exception as provided
3937 # by Oracle in the LICENSE file that accompanied this code.
3938 #
3939 # This code is distributed in the hope that it will be useful, but WITHOUT
3940 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3941 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3942 # version 2 for more details (a copy is included in the LICENSE file that
3943 # accompanied this code).
3944 #
3945 # You should have received a copy of the GNU General Public License version
3946 # 2 along with this work; if not, write to the Free Software Foundation,
3947 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3948 #
3949 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3950 # or visit www.oracle.com if you need additional information or have any
3951 # questions.
3952 #
3953 
3954 
3955 
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 ###############################################################################
3964 #
3965 # Should we build only OpenJDK even if closed sources are present?
3966 #
3967 
3968 
3969 
3970 
3971 ###############################################################################
3972 #
3973 # Setup version numbers
3974 #
3975 
3976 
3977 
3978 
3979 
3980 
3981 # Support for customization of the build process. Some build files
3982 # will include counterparts from this location, if they exist. This allows
3983 # for a degree of customization of the build targets and the rules/recipes
3984 # to create them
3985 
3986 # Check whether --with-custom-make-dir was given.
3987 if test "${with_custom_make_dir+set}" = set; then :
3988   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3989 fi
3990 
3991 
3992 
3993 #
3994 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3995 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3996 #
3997 # This code is free software; you can redistribute it and/or modify it
3998 # under the terms of the GNU General Public License version 2 only, as
3999 # published by the Free Software Foundation.  Oracle designates this
4000 # particular file as subject to the "Classpath" exception as provided
4001 # by Oracle in the LICENSE file that accompanied this code.
4002 #
4003 # This code is distributed in the hope that it will be useful, but WITHOUT
4004 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4005 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4006 # version 2 for more details (a copy is included in the LICENSE file that
4007 # accompanied this code).
4008 #
4009 # You should have received a copy of the GNU General Public License version
4010 # 2 along with this work; if not, write to the Free Software Foundation,
4011 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4012 #
4013 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4014 # or visit www.oracle.com if you need additional information or have any
4015 # questions.
4016 #
4017 
4018 
4019 
4020 
4021 
4022 
4023 
4024 
4025 
4026 
4027 
4028 
4029 
4030 
4031 
4032 ################################################################################
4033 # Setup fontconfig
4034 ################################################################################
4035 
4036 
4037 
4038 
4039 
4040 
4041 
4042 
4043 #
4044 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4045 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4046 #
4047 # This code is free software; you can redistribute it and/or modify it
4048 # under the terms of the GNU General Public License version 2 only, as
4049 # published by the Free Software Foundation.  Oracle designates this
4050 # particular file as subject to the "Classpath" exception as provided
4051 # by Oracle in the LICENSE file that accompanied this code.
4052 #
4053 # This code is distributed in the hope that it will be useful, but WITHOUT
4054 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4055 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4056 # version 2 for more details (a copy is included in the LICENSE file that
4057 # accompanied this code).
4058 #
4059 # You should have received a copy of the GNU General Public License version
4060 # 2 along with this work; if not, write to the Free Software Foundation,
4061 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4062 #
4063 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4064 # or visit www.oracle.com if you need additional information or have any
4065 # questions.
4066 #
4067 
4068 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4069 # Converts autoconf style CPU name to OpenJDK style, into
4070 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4071 
4072 
4073 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4074 # Converts autoconf style OS name to OpenJDK style, into
4075 # VAR_OS and VAR_OS_API.
4076 
4077 
4078 # Expects $host_os $host_cpu $build_os and $build_cpu
4079 # and $with_target_bits to have been setup!
4080 #
4081 # Translate the standard triplet(quadruplet) definition
4082 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4083 # OPENJDK_BUILD_OS, etc.
4084 
4085 
4086 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4087 # accordingly. Must be done after setting up build and target system, but before
4088 # doing anything else with these values.
4089 
4090 
4091 # Setup the legacy variables, for controlling the old makefiles.
4092 #
4093 
4094 
4095 
4096 
4097 #%%% Build and target systems %%%
4098 
4099 
4100 
4101 
4102 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4103 # Add -mX to various FLAGS variables.
4104 
4105 
4106 
4107 
4108 
4109 
4110 #
4111 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4112 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4113 #
4114 # This code is free software; you can redistribute it and/or modify it
4115 # under the terms of the GNU General Public License version 2 only, as
4116 # published by the Free Software Foundation.  Oracle designates this
4117 # particular file as subject to the "Classpath" exception as provided
4118 # by Oracle in the LICENSE file that accompanied this code.
4119 #
4120 # This code is distributed in the hope that it will be useful, but WITHOUT
4121 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4122 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4123 # version 2 for more details (a copy is included in the LICENSE file that
4124 # accompanied this code).
4125 #
4126 # You should have received a copy of the GNU General Public License version
4127 # 2 along with this work; if not, write to the Free Software Foundation,
4128 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4129 #
4130 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4131 # or visit www.oracle.com if you need additional information or have any
4132 # questions.
4133 #
4134 
4135 
4136 
4137 
4138 
4139 
4140 
4141 
4142 #
4143 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4144 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4145 #
4146 # This code is free software; you can redistribute it and/or modify it
4147 # under the terms of the GNU General Public License version 2 only, as
4148 # published by the Free Software Foundation.  Oracle designates this
4149 # particular file as subject to the "Classpath" exception as provided
4150 # by Oracle in the LICENSE file that accompanied this code.
4151 #
4152 # This code is distributed in the hope that it will be useful, but WITHOUT
4153 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4154 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4155 # version 2 for more details (a copy is included in the LICENSE file that
4156 # accompanied this code).
4157 #
4158 # You should have received a copy of the GNU General Public License version
4159 # 2 along with this work; if not, write to the Free Software Foundation,
4160 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4161 #
4162 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4163 # or visit www.oracle.com if you need additional information or have any
4164 # questions.
4165 #
4166 
4167 ########################################################################
4168 # This file is responsible for detecting, verifying and setting up the
4169 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4170 # proper paths to the binaries, but it will not setup any flags.
4171 #
4172 # The binaries used is determined by the toolchain type, which is the family of
4173 # compilers and related tools that are used.
4174 ########################################################################
4175 
4176 
4177 # All valid toolchains, regardless of platform (used by help.m4)
4178 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4179 
4180 # These toolchains are valid on different platforms
4181 VALID_TOOLCHAINS_linux="gcc clang"
4182 VALID_TOOLCHAINS_solaris="solstudio"
4183 VALID_TOOLCHAINS_macosx="gcc clang"
4184 VALID_TOOLCHAINS_aix="xlc"
4185 VALID_TOOLCHAINS_windows="microsoft"
4186 
4187 # Toolchain descriptions
4188 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4189 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4190 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4191 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4192 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4193 
4194 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4195 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4196 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4197 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4198 
4199 
4200 # Check if the configured compiler (C and C++) is of a specific version or
4201 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4202 #
4203 # Arguments:
4204 #   $1:   The version string to check against the found version
4205 #   $2:   block to run if the compiler is at least this version (>=)
4206 #   $3:   block to run if the compiler is older than this version (<)
4207 
4208 
4209 
4210 # Setup a number of variables describing how native output files are
4211 # named on this platform/toolchain.
4212 
4213 
4214 # Determine which toolchain type to use, and make sure it is valid for this
4215 # platform. Setup various information about the selected toolchain.
4216 
4217 
4218 # Before we start detecting the toolchain executables, we might need some
4219 # special setup, e.g. additional paths etc.
4220 
4221 
4222 # Restore path, etc
4223 
4224 
4225 # Check if a compiler is of the toolchain type we expect, and save the version
4226 # information from it. If the compiler does not match the expected type,
4227 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4228 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4229 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4230 #
4231 # $1 = compiler to test (CC or CXX)
4232 # $2 = human readable name of compiler (C or C++)
4233 
4234 
4235 
4236 # Try to locate the given C or C++ compiler in the path, or otherwise.
4237 #
4238 # $1 = compiler to test (CC or CXX)
4239 # $2 = human readable name of compiler (C or C++)
4240 # $3 = list of compiler names to search for
4241 
4242 
4243 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4244 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4245 # archiver (AR). Verify that the compilers are correct according to the
4246 # toolchain type.
4247 
4248 
4249 # Setup additional tools that is considered a part of the toolchain, but not the
4250 # core part. Many of these are highly platform-specific and do not exist,
4251 # and/or are not needed on all platforms.
4252 
4253 
4254 # Setup the build tools (i.e, the compiler and linker used to build programs
4255 # that should be run on the build platform, not the target platform, as a build
4256 # helper). Since the non-cross-compile case uses the normal, target compilers
4257 # for this, we can only do this after these have been setup.
4258 
4259 
4260 # Setup legacy variables that are still needed as alternative ways to refer to
4261 # parts of the toolchain.
4262 
4263 
4264 # Do some additional checks on the detected tools.
4265 
4266 
4267 # Setup the JTReg Regression Test Harness.
4268 
4269 
4270 
4271 #
4272 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4273 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4274 #
4275 # This code is free software; you can redistribute it and/or modify it
4276 # under the terms of the GNU General Public License version 2 only, as
4277 # published by the Free Software Foundation.  Oracle designates this
4278 # particular file as subject to the "Classpath" exception as provided
4279 # by Oracle in the LICENSE file that accompanied this code.
4280 #
4281 # This code is distributed in the hope that it will be useful, but WITHOUT
4282 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4283 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4284 # version 2 for more details (a copy is included in the LICENSE file that
4285 # accompanied this code).
4286 #
4287 # You should have received a copy of the GNU General Public License version
4288 # 2 along with this work; if not, write to the Free Software Foundation,
4289 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4290 #
4291 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4292 # or visit www.oracle.com if you need additional information or have any
4293 # questions.
4294 #
4295 
4296 ################################################################################
4297 # The order of these defines the priority by which we try to find them.
4298 VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4299 
4300 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4301 VS_VERSION_INTERNAL_2010=100
4302 VS_MSVCR_2010=msvcr100.dll
4303 # We don't use msvcp on Visual Studio 2010
4304 #VS_MSVCP_2010=msvcp100.dll
4305 VS_ENVVAR_2010="VS100COMNTOOLS"
4306 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4307 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4308 VS_VS_PLATFORM_NAME_2010="v100"
4309 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4310 
4311 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4312 VS_VERSION_INTERNAL_2012=110
4313 VS_MSVCR_2012=msvcr110.dll
4314 VS_MSVCP_2012=msvcp110.dll
4315 VS_ENVVAR_2012="VS110COMNTOOLS"
4316 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4317 VS_SDK_INSTALLDIR_2012=
4318 VS_VS_PLATFORM_NAME_2012="v110"
4319 VS_SDK_PLATFORM_NAME_2012=
4320 
4321 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4322 VS_VERSION_INTERNAL_2013=120
4323 VS_MSVCR_2013=msvcr120.dll
4324 VS_MSVCP_2013=msvcp120.dll
4325 VS_ENVVAR_2013="VS120COMNTOOLS"
4326 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4327 VS_SDK_INSTALLDIR_2013=
4328 VS_VS_PLATFORM_NAME_2013="v120"
4329 VS_SDK_PLATFORM_NAME_2013=
4330 
4331 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING"
4332 VS_VERSION_INTERNAL_2015=140
4333 VS_MSVCR_2015=vcruntime140.dll
4334 VS_MSVCP_2015=msvcp140.dll
4335 VS_ENVVAR_2015="VS140COMNTOOLS"
4336 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4337 VS_SDK_INSTALLDIR_2015=
4338 VS_VS_PLATFORM_NAME_2015="v140"
4339 VS_SDK_PLATFORM_NAME_2015=
4340 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by
4341 # explicitly specifying Windows Kit 8.1 to be used.
4342 VS_ENV_ARGS_2015="8.1"
4343 
4344 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING"
4345 VS_VERSION_INTERNAL_2017=141
4346 VS_MSVCR_2017=vcruntime140.dll
4347 VS_MSVCP_2017=msvcp140.dll
4348 VS_ENVVAR_2017="VS150COMNTOOLS"
4349 VS_USE_UCRT_2017="true"
4350 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
4351 VS_EDITIONS_2017="Community Professional Enterprise"
4352 VS_SDK_INSTALLDIR_2017=
4353 VS_VS_PLATFORM_NAME_2017="v141"
4354 VS_SDK_PLATFORM_NAME_2017=
4355 
4356 ################################################################################
4357 
4358 
4359 
4360 ################################################################################
4361 
4362 
4363 
4364 ################################################################################
4365 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4366 # build environment and assigns it to VS_ENV_CMD
4367 
4368 
4369 ################################################################################
4370 
4371 
4372 
4373 ################################################################################
4374 # Check if the VS env variables were setup prior to running configure.
4375 # If not, then find vcvarsall.bat and run it automatically, and integrate
4376 # the set env variables into the spec file.
4377 
4378 
4379 
4380 
4381 
4382 
4383 
4384 
4385 
4386 
4387 
4388 
4389 
4390 
4391 # This line needs to be here, verbatim, after all includes and the dummy hook
4392 # definitions. It is replaced with custom functionality when building
4393 # custom sources.
4394 #CUSTOM_AUTOCONF_INCLUDE
4395 
4396 # Do not change or remove the following line, it is needed for consistency checks:
4397 DATE_WHEN_GENERATED=1587694859
4398 
4399 ###############################################################################
4400 #
4401 # Initialization / Boot-strapping
4402 #
4403 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4404 # thus it jumps back and forth, each time gaining something needed later on.
4405 #
4406 ###############################################################################
4407 
4408 # If we are requested to print additional help, do that and then exit.
4409 # This must be the very first call.
4410 
4411   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4412     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4413     $PRINTF "Which are valid to use depends on the build platform.\n"
4414     for toolchain in $VALID_TOOLCHAINS_all; do
4415       # Use indirect variable referencing
4416       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4417       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4418       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4419     done
4420 
4421     # And now exit directly
4422     exit 0
4423   fi
4424 
4425 
4426 # Basic initialization that must happen first of all in the normal process.
4427 
4428   # Save the original command line. This is passed to us by the wrapper configure script.
4429 
4430   DATE_WHEN_CONFIGURED=`LANG=C date`
4431 
4432   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4433 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4435 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4436 
4437 
4438   # Start with tools that do not need have cross compilation support
4439   # and can be expected to be found in the default PATH. These tools are
4440   # used by configure. Nor are these tools expected to be found in the
4441   # devkit from the builddeps server either, since they are
4442   # needed to download the devkit.
4443 
4444   # First are all the simple required tools.
4445 
4446 
4447 
4448   # Publish this variable in the help.
4449 
4450 
4451   if test "x$BASENAME" = x; then
4452     # The variable is not set by user, try to locate tool using the code snippet
4453     for ac_prog in basename
4454 do
4455   # Extract the first word of "$ac_prog", so it can be a program name with args.
4456 set dummy $ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_path_BASENAME+:} false; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462   case $BASENAME in
4463   [\\/]* | ?:[\\/]*)
4464   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4465   ;;
4466   *)
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472     for ac_exec_ext in '' $ac_executable_extensions; do
4473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479   done
4480 IFS=$as_save_IFS
4481 
4482   ;;
4483 esac
4484 fi
4485 BASENAME=$ac_cv_path_BASENAME
4486 if test -n "$BASENAME"; then
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4488 $as_echo "$BASENAME" >&6; }
4489 else
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493 
4494 
4495   test -n "$BASENAME" && break
4496 done
4497 
4498   else
4499     # The variable is set, but is it from the command line or the environment?
4500 
4501     # Try to remove the string !BASENAME! from our list.
4502     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4503     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4504       # If it failed, the variable was not from the command line. Ignore it,
4505       # but warn the user (except for BASH, which is always set by the calling BASH).
4506       if test "xBASENAME" != xBASH; then
4507         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4508 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4509       fi
4510       # Try to locate tool using the code snippet
4511       for ac_prog in basename
4512 do
4513   # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_path_BASENAME+:} false; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   case $BASENAME in
4521   [\\/]* | ?:[\\/]*)
4522   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4523   ;;
4524   *)
4525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537   done
4538 IFS=$as_save_IFS
4539 
4540   ;;
4541 esac
4542 fi
4543 BASENAME=$ac_cv_path_BASENAME
4544 if test -n "$BASENAME"; then
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4546 $as_echo "$BASENAME" >&6; }
4547 else
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551 
4552 
4553   test -n "$BASENAME" && break
4554 done
4555 
4556     else
4557       # If it succeeded, then it was overridden by the user. We will use it
4558       # for the tool.
4559 
4560       # First remove it from the list of overridden variables, so we can test
4561       # for unknown variables in the end.
4562       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4563 
4564       # Check if the provided tool contains a complete path.
4565       tool_specified="$BASENAME"
4566       tool_basename="${tool_specified##*/}"
4567       if test "x$tool_basename" = "x$tool_specified"; then
4568         # A command without a complete path is provided, search $PATH.
4569         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4570 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4571         # Extract the first word of "$tool_basename", so it can be a program name with args.
4572 set dummy $tool_basename; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if ${ac_cv_path_BASENAME+:} false; then :
4576   $as_echo_n "(cached) " >&6
4577 else
4578   case $BASENAME in
4579   [\\/]* | ?:[\\/]*)
4580   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4581   ;;
4582   *)
4583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586   IFS=$as_save_IFS
4587   test -z "$as_dir" && as_dir=.
4588     for ac_exec_ext in '' $ac_executable_extensions; do
4589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592     break 2
4593   fi
4594 done
4595   done
4596 IFS=$as_save_IFS
4597 
4598   ;;
4599 esac
4600 fi
4601 BASENAME=$ac_cv_path_BASENAME
4602 if test -n "$BASENAME"; then
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4604 $as_echo "$BASENAME" >&6; }
4605 else
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609 
4610 
4611         if test "x$BASENAME" = x; then
4612           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4613         fi
4614       else
4615         # Otherwise we believe it is a complete path. Use it as it is.
4616         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4617 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4619 $as_echo_n "checking for BASENAME... " >&6; }
4620         if test ! -x "$tool_specified"; then
4621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4622 $as_echo "not found" >&6; }
4623           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4624         fi
4625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4626 $as_echo "$tool_specified" >&6; }
4627       fi
4628     fi
4629   fi
4630 
4631 
4632 
4633   if test "x$BASENAME" = x; then
4634     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4635   fi
4636 
4637 
4638 
4639 
4640 
4641   # Publish this variable in the help.
4642 
4643 
4644   if test "x$BASH" = x; then
4645     # The variable is not set by user, try to locate tool using the code snippet
4646     for ac_prog in bash
4647 do
4648   # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_path_BASH+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   case $BASH in
4656   [\\/]* | ?:[\\/]*)
4657   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4658   ;;
4659   *)
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665     for ac_exec_ext in '' $ac_executable_extensions; do
4666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672   done
4673 IFS=$as_save_IFS
4674 
4675   ;;
4676 esac
4677 fi
4678 BASH=$ac_cv_path_BASH
4679 if test -n "$BASH"; then
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4681 $as_echo "$BASH" >&6; }
4682 else
4683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686 
4687 
4688   test -n "$BASH" && break
4689 done
4690 
4691   else
4692     # The variable is set, but is it from the command line or the environment?
4693 
4694     # Try to remove the string !BASH! from our list.
4695     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4696     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4697       # If it failed, the variable was not from the command line. Ignore it,
4698       # but warn the user (except for BASH, which is always set by the calling BASH).
4699       if test "xBASH" != xBASH; then
4700         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4701 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4702       fi
4703       # Try to locate tool using the code snippet
4704       for ac_prog in bash
4705 do
4706   # Extract the first word of "$ac_prog", so it can be a program name with args.
4707 set dummy $ac_prog; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_path_BASH+:} false; then :
4711   $as_echo_n "(cached) " >&6
4712 else
4713   case $BASH in
4714   [\\/]* | ?:[\\/]*)
4715   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4716   ;;
4717   *)
4718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723     for ac_exec_ext in '' $ac_executable_extensions; do
4724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727     break 2
4728   fi
4729 done
4730   done
4731 IFS=$as_save_IFS
4732 
4733   ;;
4734 esac
4735 fi
4736 BASH=$ac_cv_path_BASH
4737 if test -n "$BASH"; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4739 $as_echo "$BASH" >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744 
4745 
4746   test -n "$BASH" && break
4747 done
4748 
4749     else
4750       # If it succeeded, then it was overridden by the user. We will use it
4751       # for the tool.
4752 
4753       # First remove it from the list of overridden variables, so we can test
4754       # for unknown variables in the end.
4755       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4756 
4757       # Check if the provided tool contains a complete path.
4758       tool_specified="$BASH"
4759       tool_basename="${tool_specified##*/}"
4760       if test "x$tool_basename" = "x$tool_specified"; then
4761         # A command without a complete path is provided, search $PATH.
4762         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4763 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4764         # Extract the first word of "$tool_basename", so it can be a program name with args.
4765 set dummy $tool_basename; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_path_BASH+:} false; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   case $BASH in
4772   [\\/]* | ?:[\\/]*)
4773   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4774   ;;
4775   *)
4776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781     for ac_exec_ext in '' $ac_executable_extensions; do
4782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785     break 2
4786   fi
4787 done
4788   done
4789 IFS=$as_save_IFS
4790 
4791   ;;
4792 esac
4793 fi
4794 BASH=$ac_cv_path_BASH
4795 if test -n "$BASH"; then
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4797 $as_echo "$BASH" >&6; }
4798 else
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802 
4803 
4804         if test "x$BASH" = x; then
4805           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4806         fi
4807       else
4808         # Otherwise we believe it is a complete path. Use it as it is.
4809         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4810 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4812 $as_echo_n "checking for BASH... " >&6; }
4813         if test ! -x "$tool_specified"; then
4814           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4815 $as_echo "not found" >&6; }
4816           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4817         fi
4818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4819 $as_echo "$tool_specified" >&6; }
4820       fi
4821     fi
4822   fi
4823 
4824 
4825 
4826   if test "x$BASH" = x; then
4827     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4828   fi
4829 
4830 
4831 
4832 
4833 
4834   # Publish this variable in the help.
4835 
4836 
4837   if test "x$CAT" = x; then
4838     # The variable is not set by user, try to locate tool using the code snippet
4839     for ac_prog in cat
4840 do
4841   # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_path_CAT+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   case $CAT in
4849   [\\/]* | ?:[\\/]*)
4850   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4851   ;;
4852   *)
4853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865   done
4866 IFS=$as_save_IFS
4867 
4868   ;;
4869 esac
4870 fi
4871 CAT=$ac_cv_path_CAT
4872 if test -n "$CAT"; then
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4874 $as_echo "$CAT" >&6; }
4875 else
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878 fi
4879 
4880 
4881   test -n "$CAT" && break
4882 done
4883 
4884   else
4885     # The variable is set, but is it from the command line or the environment?
4886 
4887     # Try to remove the string !CAT! from our list.
4888     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4889     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4890       # If it failed, the variable was not from the command line. Ignore it,
4891       # but warn the user (except for BASH, which is always set by the calling BASH).
4892       if test "xCAT" != xBASH; then
4893         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4894 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4895       fi
4896       # Try to locate tool using the code snippet
4897       for ac_prog in cat
4898 do
4899   # Extract the first word of "$ac_prog", so it can be a program name with args.
4900 set dummy $ac_prog; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_path_CAT+:} false; then :
4904   $as_echo_n "(cached) " >&6
4905 else
4906   case $CAT in
4907   [\\/]* | ?:[\\/]*)
4908   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4909   ;;
4910   *)
4911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916     for ac_exec_ext in '' $ac_executable_extensions; do
4917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923   done
4924 IFS=$as_save_IFS
4925 
4926   ;;
4927 esac
4928 fi
4929 CAT=$ac_cv_path_CAT
4930 if test -n "$CAT"; then
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4932 $as_echo "$CAT" >&6; }
4933 else
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937 
4938 
4939   test -n "$CAT" && break
4940 done
4941 
4942     else
4943       # If it succeeded, then it was overridden by the user. We will use it
4944       # for the tool.
4945 
4946       # First remove it from the list of overridden variables, so we can test
4947       # for unknown variables in the end.
4948       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4949 
4950       # Check if the provided tool contains a complete path.
4951       tool_specified="$CAT"
4952       tool_basename="${tool_specified##*/}"
4953       if test "x$tool_basename" = "x$tool_specified"; then
4954         # A command without a complete path is provided, search $PATH.
4955         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4956 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4957         # Extract the first word of "$tool_basename", so it can be a program name with args.
4958 set dummy $tool_basename; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_path_CAT+:} false; then :
4962   $as_echo_n "(cached) " >&6
4963 else
4964   case $CAT in
4965   [\\/]* | ?:[\\/]*)
4966   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4967   ;;
4968   *)
4969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974     for ac_exec_ext in '' $ac_executable_extensions; do
4975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981   done
4982 IFS=$as_save_IFS
4983 
4984   ;;
4985 esac
4986 fi
4987 CAT=$ac_cv_path_CAT
4988 if test -n "$CAT"; then
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4990 $as_echo "$CAT" >&6; }
4991 else
4992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 fi
4995 
4996 
4997         if test "x$CAT" = x; then
4998           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4999         fi
5000       else
5001         # Otherwise we believe it is a complete path. Use it as it is.
5002         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5003 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5005 $as_echo_n "checking for CAT... " >&6; }
5006         if test ! -x "$tool_specified"; then
5007           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5008 $as_echo "not found" >&6; }
5009           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5010         fi
5011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5012 $as_echo "$tool_specified" >&6; }
5013       fi
5014     fi
5015   fi
5016 
5017 
5018 
5019   if test "x$CAT" = x; then
5020     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5021   fi
5022 
5023 
5024 
5025 
5026 
5027   # Publish this variable in the help.
5028 
5029 
5030   if test "x$CHMOD" = x; then
5031     # The variable is not set by user, try to locate tool using the code snippet
5032     for ac_prog in chmod
5033 do
5034   # Extract the first word of "$ac_prog", so it can be a program name with args.
5035 set dummy $ac_prog; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_path_CHMOD+:} false; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041   case $CHMOD in
5042   [\\/]* | ?:[\\/]*)
5043   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5044   ;;
5045   *)
5046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051     for ac_exec_ext in '' $ac_executable_extensions; do
5052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058   done
5059 IFS=$as_save_IFS
5060 
5061   ;;
5062 esac
5063 fi
5064 CHMOD=$ac_cv_path_CHMOD
5065 if test -n "$CHMOD"; then
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5067 $as_echo "$CHMOD" >&6; }
5068 else
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072 
5073 
5074   test -n "$CHMOD" && break
5075 done
5076 
5077   else
5078     # The variable is set, but is it from the command line or the environment?
5079 
5080     # Try to remove the string !CHMOD! from our list.
5081     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5082     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5083       # If it failed, the variable was not from the command line. Ignore it,
5084       # but warn the user (except for BASH, which is always set by the calling BASH).
5085       if test "xCHMOD" != xBASH; then
5086         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5087 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5088       fi
5089       # Try to locate tool using the code snippet
5090       for ac_prog in chmod
5091 do
5092   # Extract the first word of "$ac_prog", so it can be a program name with args.
5093 set dummy $ac_prog; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_path_CHMOD+:} false; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099   case $CHMOD in
5100   [\\/]* | ?:[\\/]*)
5101   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5102   ;;
5103   *)
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_exec_ext in '' $ac_executable_extensions; do
5110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116   done
5117 IFS=$as_save_IFS
5118 
5119   ;;
5120 esac
5121 fi
5122 CHMOD=$ac_cv_path_CHMOD
5123 if test -n "$CHMOD"; then
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5125 $as_echo "$CHMOD" >&6; }
5126 else
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130 
5131 
5132   test -n "$CHMOD" && break
5133 done
5134 
5135     else
5136       # If it succeeded, then it was overridden by the user. We will use it
5137       # for the tool.
5138 
5139       # First remove it from the list of overridden variables, so we can test
5140       # for unknown variables in the end.
5141       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5142 
5143       # Check if the provided tool contains a complete path.
5144       tool_specified="$CHMOD"
5145       tool_basename="${tool_specified##*/}"
5146       if test "x$tool_basename" = "x$tool_specified"; then
5147         # A command without a complete path is provided, search $PATH.
5148         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5149 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5150         # Extract the first word of "$tool_basename", so it can be a program name with args.
5151 set dummy $tool_basename; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_path_CHMOD+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   case $CHMOD in
5158   [\\/]* | ?:[\\/]*)
5159   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5160   ;;
5161   *)
5162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176 
5177   ;;
5178 esac
5179 fi
5180 CHMOD=$ac_cv_path_CHMOD
5181 if test -n "$CHMOD"; then
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5183 $as_echo "$CHMOD" >&6; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188 
5189 
5190         if test "x$CHMOD" = x; then
5191           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5192         fi
5193       else
5194         # Otherwise we believe it is a complete path. Use it as it is.
5195         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5196 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5198 $as_echo_n "checking for CHMOD... " >&6; }
5199         if test ! -x "$tool_specified"; then
5200           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5201 $as_echo "not found" >&6; }
5202           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5203         fi
5204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5205 $as_echo "$tool_specified" >&6; }
5206       fi
5207     fi
5208   fi
5209 
5210 
5211 
5212   if test "x$CHMOD" = x; then
5213     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5214   fi
5215 
5216 
5217 
5218 
5219 
5220   # Publish this variable in the help.
5221 
5222 
5223   if test "x$CMP" = x; then
5224     # The variable is not set by user, try to locate tool using the code snippet
5225     for ac_prog in cmp
5226 do
5227   # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_path_CMP+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   case $CMP in
5235   [\\/]* | ?:[\\/]*)
5236   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5237   ;;
5238   *)
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251   done
5252 IFS=$as_save_IFS
5253 
5254   ;;
5255 esac
5256 fi
5257 CMP=$ac_cv_path_CMP
5258 if test -n "$CMP"; then
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5260 $as_echo "$CMP" >&6; }
5261 else
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265 
5266 
5267   test -n "$CMP" && break
5268 done
5269 
5270   else
5271     # The variable is set, but is it from the command line or the environment?
5272 
5273     # Try to remove the string !CMP! from our list.
5274     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5275     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5276       # If it failed, the variable was not from the command line. Ignore it,
5277       # but warn the user (except for BASH, which is always set by the calling BASH).
5278       if test "xCMP" != xBASH; then
5279         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5280 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5281       fi
5282       # Try to locate tool using the code snippet
5283       for ac_prog in cmp
5284 do
5285   # Extract the first word of "$ac_prog", so it can be a program name with args.
5286 set dummy $ac_prog; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_path_CMP+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   case $CMP in
5293   [\\/]* | ?:[\\/]*)
5294   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5295   ;;
5296   *)
5297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300   IFS=$as_save_IFS
5301   test -z "$as_dir" && as_dir=.
5302     for ac_exec_ext in '' $ac_executable_extensions; do
5303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306     break 2
5307   fi
5308 done
5309   done
5310 IFS=$as_save_IFS
5311 
5312   ;;
5313 esac
5314 fi
5315 CMP=$ac_cv_path_CMP
5316 if test -n "$CMP"; then
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5318 $as_echo "$CMP" >&6; }
5319 else
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 fi
5323 
5324 
5325   test -n "$CMP" && break
5326 done
5327 
5328     else
5329       # If it succeeded, then it was overridden by the user. We will use it
5330       # for the tool.
5331 
5332       # First remove it from the list of overridden variables, so we can test
5333       # for unknown variables in the end.
5334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5335 
5336       # Check if the provided tool contains a complete path.
5337       tool_specified="$CMP"
5338       tool_basename="${tool_specified##*/}"
5339       if test "x$tool_basename" = "x$tool_specified"; then
5340         # A command without a complete path is provided, search $PATH.
5341         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5342 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5343         # Extract the first word of "$tool_basename", so it can be a program name with args.
5344 set dummy $tool_basename; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_path_CMP+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   case $CMP in
5351   [\\/]* | ?:[\\/]*)
5352   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5353   ;;
5354   *)
5355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369 
5370   ;;
5371 esac
5372 fi
5373 CMP=$ac_cv_path_CMP
5374 if test -n "$CMP"; then
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5376 $as_echo "$CMP" >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381 
5382 
5383         if test "x$CMP" = x; then
5384           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5385         fi
5386       else
5387         # Otherwise we believe it is a complete path. Use it as it is.
5388         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5389 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5391 $as_echo_n "checking for CMP... " >&6; }
5392         if test ! -x "$tool_specified"; then
5393           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5394 $as_echo "not found" >&6; }
5395           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5396         fi
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5398 $as_echo "$tool_specified" >&6; }
5399       fi
5400     fi
5401   fi
5402 
5403 
5404 
5405   if test "x$CMP" = x; then
5406     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5407   fi
5408 
5409 
5410 
5411 
5412 
5413   # Publish this variable in the help.
5414 
5415 
5416   if test "x$COMM" = x; then
5417     # The variable is not set by user, try to locate tool using the code snippet
5418     for ac_prog in comm
5419 do
5420   # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_path_COMM+:} false; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   case $COMM in
5428   [\\/]* | ?:[\\/]*)
5429   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5430   ;;
5431   *)
5432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444   done
5445 IFS=$as_save_IFS
5446 
5447   ;;
5448 esac
5449 fi
5450 COMM=$ac_cv_path_COMM
5451 if test -n "$COMM"; then
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5453 $as_echo "$COMM" >&6; }
5454 else
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458 
5459 
5460   test -n "$COMM" && break
5461 done
5462 
5463   else
5464     # The variable is set, but is it from the command line or the environment?
5465 
5466     # Try to remove the string !COMM! from our list.
5467     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5468     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5469       # If it failed, the variable was not from the command line. Ignore it,
5470       # but warn the user (except for BASH, which is always set by the calling BASH).
5471       if test "xCOMM" != xBASH; then
5472         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5473 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5474       fi
5475       # Try to locate tool using the code snippet
5476       for ac_prog in comm
5477 do
5478   # Extract the first word of "$ac_prog", so it can be a program name with args.
5479 set dummy $ac_prog; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_path_COMM+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   case $COMM in
5486   [\\/]* | ?:[\\/]*)
5487   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5488   ;;
5489   *)
5490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493   IFS=$as_save_IFS
5494   test -z "$as_dir" && as_dir=.
5495     for ac_exec_ext in '' $ac_executable_extensions; do
5496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499     break 2
5500   fi
5501 done
5502   done
5503 IFS=$as_save_IFS
5504 
5505   ;;
5506 esac
5507 fi
5508 COMM=$ac_cv_path_COMM
5509 if test -n "$COMM"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5511 $as_echo "$COMM" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516 
5517 
5518   test -n "$COMM" && break
5519 done
5520 
5521     else
5522       # If it succeeded, then it was overridden by the user. We will use it
5523       # for the tool.
5524 
5525       # First remove it from the list of overridden variables, so we can test
5526       # for unknown variables in the end.
5527       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5528 
5529       # Check if the provided tool contains a complete path.
5530       tool_specified="$COMM"
5531       tool_basename="${tool_specified##*/}"
5532       if test "x$tool_basename" = "x$tool_specified"; then
5533         # A command without a complete path is provided, search $PATH.
5534         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5535 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5536         # Extract the first word of "$tool_basename", so it can be a program name with args.
5537 set dummy $tool_basename; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_path_COMM+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   case $COMM in
5544   [\\/]* | ?:[\\/]*)
5545   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5546   ;;
5547   *)
5548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562 
5563   ;;
5564 esac
5565 fi
5566 COMM=$ac_cv_path_COMM
5567 if test -n "$COMM"; then
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5569 $as_echo "$COMM" >&6; }
5570 else
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574 
5575 
5576         if test "x$COMM" = x; then
5577           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5578         fi
5579       else
5580         # Otherwise we believe it is a complete path. Use it as it is.
5581         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5582 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5583         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5584 $as_echo_n "checking for COMM... " >&6; }
5585         if test ! -x "$tool_specified"; then
5586           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5587 $as_echo "not found" >&6; }
5588           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5589         fi
5590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5591 $as_echo "$tool_specified" >&6; }
5592       fi
5593     fi
5594   fi
5595 
5596 
5597 
5598   if test "x$COMM" = x; then
5599     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5600   fi
5601 
5602 
5603 
5604 
5605 
5606   # Publish this variable in the help.
5607 
5608 
5609   if test "x$CP" = x; then
5610     # The variable is not set by user, try to locate tool using the code snippet
5611     for ac_prog in cp
5612 do
5613   # Extract the first word of "$ac_prog", so it can be a program name with args.
5614 set dummy $ac_prog; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_path_CP+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   case $CP in
5621   [\\/]* | ?:[\\/]*)
5622   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5623   ;;
5624   *)
5625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639 
5640   ;;
5641 esac
5642 fi
5643 CP=$ac_cv_path_CP
5644 if test -n "$CP"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5646 $as_echo "$CP" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651 
5652 
5653   test -n "$CP" && break
5654 done
5655 
5656   else
5657     # The variable is set, but is it from the command line or the environment?
5658 
5659     # Try to remove the string !CP! from our list.
5660     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5661     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5662       # If it failed, the variable was not from the command line. Ignore it,
5663       # but warn the user (except for BASH, which is always set by the calling BASH).
5664       if test "xCP" != xBASH; then
5665         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5666 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5667       fi
5668       # Try to locate tool using the code snippet
5669       for ac_prog in cp
5670 do
5671   # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_path_CP+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   case $CP in
5679   [\\/]* | ?:[\\/]*)
5680   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5681   ;;
5682   *)
5683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688     for ac_exec_ext in '' $ac_executable_extensions; do
5689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695   done
5696 IFS=$as_save_IFS
5697 
5698   ;;
5699 esac
5700 fi
5701 CP=$ac_cv_path_CP
5702 if test -n "$CP"; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5704 $as_echo "$CP" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709 
5710 
5711   test -n "$CP" && break
5712 done
5713 
5714     else
5715       # If it succeeded, then it was overridden by the user. We will use it
5716       # for the tool.
5717 
5718       # First remove it from the list of overridden variables, so we can test
5719       # for unknown variables in the end.
5720       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5721 
5722       # Check if the provided tool contains a complete path.
5723       tool_specified="$CP"
5724       tool_basename="${tool_specified##*/}"
5725       if test "x$tool_basename" = "x$tool_specified"; then
5726         # A command without a complete path is provided, search $PATH.
5727         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5728 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5729         # Extract the first word of "$tool_basename", so it can be a program name with args.
5730 set dummy $tool_basename; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_path_CP+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   case $CP in
5737   [\\/]* | ?:[\\/]*)
5738   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5739   ;;
5740   *)
5741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746     for ac_exec_ext in '' $ac_executable_extensions; do
5747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753   done
5754 IFS=$as_save_IFS
5755 
5756   ;;
5757 esac
5758 fi
5759 CP=$ac_cv_path_CP
5760 if test -n "$CP"; then
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5762 $as_echo "$CP" >&6; }
5763 else
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767 
5768 
5769         if test "x$CP" = x; then
5770           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5771         fi
5772       else
5773         # Otherwise we believe it is a complete path. Use it as it is.
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5775 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5777 $as_echo_n "checking for CP... " >&6; }
5778         if test ! -x "$tool_specified"; then
5779           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5780 $as_echo "not found" >&6; }
5781           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5782         fi
5783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5784 $as_echo "$tool_specified" >&6; }
5785       fi
5786     fi
5787   fi
5788 
5789 
5790 
5791   if test "x$CP" = x; then
5792     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5793   fi
5794 
5795 
5796 
5797 
5798 
5799   # Publish this variable in the help.
5800 
5801 
5802   if test "x$CUT" = x; then
5803     # The variable is not set by user, try to locate tool using the code snippet
5804     for ac_prog in cut
5805 do
5806   # Extract the first word of "$ac_prog", so it can be a program name with args.
5807 set dummy $ac_prog; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_path_CUT+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   case $CUT in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832 
5833   ;;
5834 esac
5835 fi
5836 CUT=$ac_cv_path_CUT
5837 if test -n "$CUT"; then
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5839 $as_echo "$CUT" >&6; }
5840 else
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844 
5845 
5846   test -n "$CUT" && break
5847 done
5848 
5849   else
5850     # The variable is set, but is it from the command line or the environment?
5851 
5852     # Try to remove the string !CUT! from our list.
5853     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5854     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5855       # If it failed, the variable was not from the command line. Ignore it,
5856       # but warn the user (except for BASH, which is always set by the calling BASH).
5857       if test "xCUT" != xBASH; then
5858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5859 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5860       fi
5861       # Try to locate tool using the code snippet
5862       for ac_prog in cut
5863 do
5864   # Extract the first word of "$ac_prog", so it can be a program name with args.
5865 set dummy $ac_prog; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_path_CUT+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   case $CUT in
5872   [\\/]* | ?:[\\/]*)
5873   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5874   ;;
5875   *)
5876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890 
5891   ;;
5892 esac
5893 fi
5894 CUT=$ac_cv_path_CUT
5895 if test -n "$CUT"; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5897 $as_echo "$CUT" >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902 
5903 
5904   test -n "$CUT" && break
5905 done
5906 
5907     else
5908       # If it succeeded, then it was overridden by the user. We will use it
5909       # for the tool.
5910 
5911       # First remove it from the list of overridden variables, so we can test
5912       # for unknown variables in the end.
5913       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5914 
5915       # Check if the provided tool contains a complete path.
5916       tool_specified="$CUT"
5917       tool_basename="${tool_specified##*/}"
5918       if test "x$tool_basename" = "x$tool_specified"; then
5919         # A command without a complete path is provided, search $PATH.
5920         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5921 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5922         # Extract the first word of "$tool_basename", so it can be a program name with args.
5923 set dummy $tool_basename; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if ${ac_cv_path_CUT+:} false; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   case $CUT in
5930   [\\/]* | ?:[\\/]*)
5931   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5932   ;;
5933   *)
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939     for ac_exec_ext in '' $ac_executable_extensions; do
5940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946   done
5947 IFS=$as_save_IFS
5948 
5949   ;;
5950 esac
5951 fi
5952 CUT=$ac_cv_path_CUT
5953 if test -n "$CUT"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5955 $as_echo "$CUT" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960 
5961 
5962         if test "x$CUT" = x; then
5963           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5964         fi
5965       else
5966         # Otherwise we believe it is a complete path. Use it as it is.
5967         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5968 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5970 $as_echo_n "checking for CUT... " >&6; }
5971         if test ! -x "$tool_specified"; then
5972           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5973 $as_echo "not found" >&6; }
5974           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5975         fi
5976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5977 $as_echo "$tool_specified" >&6; }
5978       fi
5979     fi
5980   fi
5981 
5982 
5983 
5984   if test "x$CUT" = x; then
5985     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5986   fi
5987 
5988 
5989 
5990 
5991 
5992   # Publish this variable in the help.
5993 
5994 
5995   if test "x$DATE" = x; then
5996     # The variable is not set by user, try to locate tool using the code snippet
5997     for ac_prog in date
5998 do
5999   # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_path_DATE+:} false; then :
6004   $as_echo_n "(cached) " >&6
6005 else
6006   case $DATE in
6007   [\\/]* | ?:[\\/]*)
6008   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6009   ;;
6010   *)
6011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016     for ac_exec_ext in '' $ac_executable_extensions; do
6017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023   done
6024 IFS=$as_save_IFS
6025 
6026   ;;
6027 esac
6028 fi
6029 DATE=$ac_cv_path_DATE
6030 if test -n "$DATE"; then
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6032 $as_echo "$DATE" >&6; }
6033 else
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6036 fi
6037 
6038 
6039   test -n "$DATE" && break
6040 done
6041 
6042   else
6043     # The variable is set, but is it from the command line or the environment?
6044 
6045     # Try to remove the string !DATE! from our list.
6046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6048       # If it failed, the variable was not from the command line. Ignore it,
6049       # but warn the user (except for BASH, which is always set by the calling BASH).
6050       if test "xDATE" != xBASH; then
6051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6052 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6053       fi
6054       # Try to locate tool using the code snippet
6055       for ac_prog in date
6056 do
6057   # Extract the first word of "$ac_prog", so it can be a program name with args.
6058 set dummy $ac_prog; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if ${ac_cv_path_DATE+:} false; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   case $DATE in
6065   [\\/]* | ?:[\\/]*)
6066   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6067   ;;
6068   *)
6069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072   IFS=$as_save_IFS
6073   test -z "$as_dir" && as_dir=.
6074     for ac_exec_ext in '' $ac_executable_extensions; do
6075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078     break 2
6079   fi
6080 done
6081   done
6082 IFS=$as_save_IFS
6083 
6084   ;;
6085 esac
6086 fi
6087 DATE=$ac_cv_path_DATE
6088 if test -n "$DATE"; then
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6090 $as_echo "$DATE" >&6; }
6091 else
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095 
6096 
6097   test -n "$DATE" && break
6098 done
6099 
6100     else
6101       # If it succeeded, then it was overridden by the user. We will use it
6102       # for the tool.
6103 
6104       # First remove it from the list of overridden variables, so we can test
6105       # for unknown variables in the end.
6106       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6107 
6108       # Check if the provided tool contains a complete path.
6109       tool_specified="$DATE"
6110       tool_basename="${tool_specified##*/}"
6111       if test "x$tool_basename" = "x$tool_specified"; then
6112         # A command without a complete path is provided, search $PATH.
6113         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6114 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6115         # Extract the first word of "$tool_basename", so it can be a program name with args.
6116 set dummy $tool_basename; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_path_DATE+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   case $DATE in
6123   [\\/]* | ?:[\\/]*)
6124   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6125   ;;
6126   *)
6127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136     break 2
6137   fi
6138 done
6139   done
6140 IFS=$as_save_IFS
6141 
6142   ;;
6143 esac
6144 fi
6145 DATE=$ac_cv_path_DATE
6146 if test -n "$DATE"; then
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6148 $as_echo "$DATE" >&6; }
6149 else
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153 
6154 
6155         if test "x$DATE" = x; then
6156           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6157         fi
6158       else
6159         # Otherwise we believe it is a complete path. Use it as it is.
6160         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6161 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6163 $as_echo_n "checking for DATE... " >&6; }
6164         if test ! -x "$tool_specified"; then
6165           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6166 $as_echo "not found" >&6; }
6167           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6168         fi
6169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6170 $as_echo "$tool_specified" >&6; }
6171       fi
6172     fi
6173   fi
6174 
6175 
6176 
6177   if test "x$DATE" = x; then
6178     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6179   fi
6180 
6181 
6182 
6183 
6184 
6185   # Publish this variable in the help.
6186 
6187 
6188   if test "x$DIFF" = x; then
6189     # The variable is not set by user, try to locate tool using the code snippet
6190     for ac_prog in gdiff diff
6191 do
6192   # Extract the first word of "$ac_prog", so it can be a program name with args.
6193 set dummy $ac_prog; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_path_DIFF+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   case $DIFF in
6200   [\\/]* | ?:[\\/]*)
6201   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6202   ;;
6203   *)
6204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207   IFS=$as_save_IFS
6208   test -z "$as_dir" && as_dir=.
6209     for ac_exec_ext in '' $ac_executable_extensions; do
6210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213     break 2
6214   fi
6215 done
6216   done
6217 IFS=$as_save_IFS
6218 
6219   ;;
6220 esac
6221 fi
6222 DIFF=$ac_cv_path_DIFF
6223 if test -n "$DIFF"; then
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6225 $as_echo "$DIFF" >&6; }
6226 else
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230 
6231 
6232   test -n "$DIFF" && break
6233 done
6234 
6235   else
6236     # The variable is set, but is it from the command line or the environment?
6237 
6238     # Try to remove the string !DIFF! from our list.
6239     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6240     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6241       # If it failed, the variable was not from the command line. Ignore it,
6242       # but warn the user (except for BASH, which is always set by the calling BASH).
6243       if test "xDIFF" != xBASH; then
6244         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6245 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6246       fi
6247       # Try to locate tool using the code snippet
6248       for ac_prog in gdiff diff
6249 do
6250   # Extract the first word of "$ac_prog", so it can be a program name with args.
6251 set dummy $ac_prog; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_path_DIFF+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   case $DIFF in
6258   [\\/]* | ?:[\\/]*)
6259   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6260   ;;
6261   *)
6262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267     for ac_exec_ext in '' $ac_executable_extensions; do
6268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274   done
6275 IFS=$as_save_IFS
6276 
6277   ;;
6278 esac
6279 fi
6280 DIFF=$ac_cv_path_DIFF
6281 if test -n "$DIFF"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6283 $as_echo "$DIFF" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288 
6289 
6290   test -n "$DIFF" && break
6291 done
6292 
6293     else
6294       # If it succeeded, then it was overridden by the user. We will use it
6295       # for the tool.
6296 
6297       # First remove it from the list of overridden variables, so we can test
6298       # for unknown variables in the end.
6299       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6300 
6301       # Check if the provided tool contains a complete path.
6302       tool_specified="$DIFF"
6303       tool_basename="${tool_specified##*/}"
6304       if test "x$tool_basename" = "x$tool_specified"; then
6305         # A command without a complete path is provided, search $PATH.
6306         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6307 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6308         # Extract the first word of "$tool_basename", so it can be a program name with args.
6309 set dummy $tool_basename; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_path_DIFF+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   case $DIFF in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334 
6335   ;;
6336 esac
6337 fi
6338 DIFF=$ac_cv_path_DIFF
6339 if test -n "$DIFF"; then
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6341 $as_echo "$DIFF" >&6; }
6342 else
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346 
6347 
6348         if test "x$DIFF" = x; then
6349           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6350         fi
6351       else
6352         # Otherwise we believe it is a complete path. Use it as it is.
6353         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6354 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6356 $as_echo_n "checking for DIFF... " >&6; }
6357         if test ! -x "$tool_specified"; then
6358           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6359 $as_echo "not found" >&6; }
6360           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6361         fi
6362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6363 $as_echo "$tool_specified" >&6; }
6364       fi
6365     fi
6366   fi
6367 
6368 
6369 
6370   if test "x$DIFF" = x; then
6371     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6372   fi
6373 
6374 
6375 
6376 
6377 
6378   # Publish this variable in the help.
6379 
6380 
6381   if test "x$DIRNAME" = x; then
6382     # The variable is not set by user, try to locate tool using the code snippet
6383     for ac_prog in dirname
6384 do
6385   # Extract the first word of "$ac_prog", so it can be a program name with args.
6386 set dummy $ac_prog; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_path_DIRNAME+:} false; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   case $DIRNAME in
6393   [\\/]* | ?:[\\/]*)
6394   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6395   ;;
6396   *)
6397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402     for ac_exec_ext in '' $ac_executable_extensions; do
6403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409   done
6410 IFS=$as_save_IFS
6411 
6412   ;;
6413 esac
6414 fi
6415 DIRNAME=$ac_cv_path_DIRNAME
6416 if test -n "$DIRNAME"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6418 $as_echo "$DIRNAME" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423 
6424 
6425   test -n "$DIRNAME" && break
6426 done
6427 
6428   else
6429     # The variable is set, but is it from the command line or the environment?
6430 
6431     # Try to remove the string !DIRNAME! from our list.
6432     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6433     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6434       # If it failed, the variable was not from the command line. Ignore it,
6435       # but warn the user (except for BASH, which is always set by the calling BASH).
6436       if test "xDIRNAME" != xBASH; then
6437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6438 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6439       fi
6440       # Try to locate tool using the code snippet
6441       for ac_prog in dirname
6442 do
6443   # Extract the first word of "$ac_prog", so it can be a program name with args.
6444 set dummy $ac_prog; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_path_DIRNAME+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   case $DIRNAME in
6451   [\\/]* | ?:[\\/]*)
6452   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6453   ;;
6454   *)
6455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469 
6470   ;;
6471 esac
6472 fi
6473 DIRNAME=$ac_cv_path_DIRNAME
6474 if test -n "$DIRNAME"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6476 $as_echo "$DIRNAME" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481 
6482 
6483   test -n "$DIRNAME" && break
6484 done
6485 
6486     else
6487       # If it succeeded, then it was overridden by the user. We will use it
6488       # for the tool.
6489 
6490       # First remove it from the list of overridden variables, so we can test
6491       # for unknown variables in the end.
6492       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6493 
6494       # Check if the provided tool contains a complete path.
6495       tool_specified="$DIRNAME"
6496       tool_basename="${tool_specified##*/}"
6497       if test "x$tool_basename" = "x$tool_specified"; then
6498         # A command without a complete path is provided, search $PATH.
6499         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6500 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6501         # Extract the first word of "$tool_basename", so it can be a program name with args.
6502 set dummy $tool_basename; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_path_DIRNAME+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508   case $DIRNAME in
6509   [\\/]* | ?:[\\/]*)
6510   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6511   ;;
6512   *)
6513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518     for ac_exec_ext in '' $ac_executable_extensions; do
6519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525   done
6526 IFS=$as_save_IFS
6527 
6528   ;;
6529 esac
6530 fi
6531 DIRNAME=$ac_cv_path_DIRNAME
6532 if test -n "$DIRNAME"; then
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6534 $as_echo "$DIRNAME" >&6; }
6535 else
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539 
6540 
6541         if test "x$DIRNAME" = x; then
6542           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6543         fi
6544       else
6545         # Otherwise we believe it is a complete path. Use it as it is.
6546         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6547 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6549 $as_echo_n "checking for DIRNAME... " >&6; }
6550         if test ! -x "$tool_specified"; then
6551           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6552 $as_echo "not found" >&6; }
6553           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6554         fi
6555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6556 $as_echo "$tool_specified" >&6; }
6557       fi
6558     fi
6559   fi
6560 
6561 
6562 
6563   if test "x$DIRNAME" = x; then
6564     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6565   fi
6566 
6567 
6568 
6569 
6570 
6571   # Publish this variable in the help.
6572 
6573 
6574   if test "x$ECHO" = x; then
6575     # The variable is not set by user, try to locate tool using the code snippet
6576     for ac_prog in echo
6577 do
6578   # Extract the first word of "$ac_prog", so it can be a program name with args.
6579 set dummy $ac_prog; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_path_ECHO+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   case $ECHO in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595     for ac_exec_ext in '' $ac_executable_extensions; do
6596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602   done
6603 IFS=$as_save_IFS
6604 
6605   ;;
6606 esac
6607 fi
6608 ECHO=$ac_cv_path_ECHO
6609 if test -n "$ECHO"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6611 $as_echo "$ECHO" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616 
6617 
6618   test -n "$ECHO" && break
6619 done
6620 
6621   else
6622     # The variable is set, but is it from the command line or the environment?
6623 
6624     # Try to remove the string !ECHO! from our list.
6625     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6626     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6627       # If it failed, the variable was not from the command line. Ignore it,
6628       # but warn the user (except for BASH, which is always set by the calling BASH).
6629       if test "xECHO" != xBASH; then
6630         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6631 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6632       fi
6633       # Try to locate tool using the code snippet
6634       for ac_prog in echo
6635 do
6636   # Extract the first word of "$ac_prog", so it can be a program name with args.
6637 set dummy $ac_prog; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_path_ECHO+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   case $ECHO in
6644   [\\/]* | ?:[\\/]*)
6645   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6646   ;;
6647   *)
6648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653     for ac_exec_ext in '' $ac_executable_extensions; do
6654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660   done
6661 IFS=$as_save_IFS
6662 
6663   ;;
6664 esac
6665 fi
6666 ECHO=$ac_cv_path_ECHO
6667 if test -n "$ECHO"; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6669 $as_echo "$ECHO" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674 
6675 
6676   test -n "$ECHO" && break
6677 done
6678 
6679     else
6680       # If it succeeded, then it was overridden by the user. We will use it
6681       # for the tool.
6682 
6683       # First remove it from the list of overridden variables, so we can test
6684       # for unknown variables in the end.
6685       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6686 
6687       # Check if the provided tool contains a complete path.
6688       tool_specified="$ECHO"
6689       tool_basename="${tool_specified##*/}"
6690       if test "x$tool_basename" = "x$tool_specified"; then
6691         # A command without a complete path is provided, search $PATH.
6692         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6693 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6694         # Extract the first word of "$tool_basename", so it can be a program name with args.
6695 set dummy $tool_basename; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_path_ECHO+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   case $ECHO in
6702   [\\/]* | ?:[\\/]*)
6703   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6704   ;;
6705   *)
6706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711     for ac_exec_ext in '' $ac_executable_extensions; do
6712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718   done
6719 IFS=$as_save_IFS
6720 
6721   ;;
6722 esac
6723 fi
6724 ECHO=$ac_cv_path_ECHO
6725 if test -n "$ECHO"; then
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6727 $as_echo "$ECHO" >&6; }
6728 else
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732 
6733 
6734         if test "x$ECHO" = x; then
6735           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6736         fi
6737       else
6738         # Otherwise we believe it is a complete path. Use it as it is.
6739         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6740 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6741         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6742 $as_echo_n "checking for ECHO... " >&6; }
6743         if test ! -x "$tool_specified"; then
6744           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6745 $as_echo "not found" >&6; }
6746           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6747         fi
6748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6749 $as_echo "$tool_specified" >&6; }
6750       fi
6751     fi
6752   fi
6753 
6754 
6755 
6756   if test "x$ECHO" = x; then
6757     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6758   fi
6759 
6760 
6761 
6762 
6763 
6764   # Publish this variable in the help.
6765 
6766 
6767   if test "x$EXPR" = x; then
6768     # The variable is not set by user, try to locate tool using the code snippet
6769     for ac_prog in expr
6770 do
6771   # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_path_EXPR+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   case $EXPR in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797 
6798   ;;
6799 esac
6800 fi
6801 EXPR=$ac_cv_path_EXPR
6802 if test -n "$EXPR"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6804 $as_echo "$EXPR" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809 
6810 
6811   test -n "$EXPR" && break
6812 done
6813 
6814   else
6815     # The variable is set, but is it from the command line or the environment?
6816 
6817     # Try to remove the string !EXPR! from our list.
6818     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6819     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6820       # If it failed, the variable was not from the command line. Ignore it,
6821       # but warn the user (except for BASH, which is always set by the calling BASH).
6822       if test "xEXPR" != xBASH; then
6823         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6824 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6825       fi
6826       # Try to locate tool using the code snippet
6827       for ac_prog in expr
6828 do
6829   # Extract the first word of "$ac_prog", so it can be a program name with args.
6830 set dummy $ac_prog; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_path_EXPR+:} false; then :
6834   $as_echo_n "(cached) " >&6
6835 else
6836   case $EXPR in
6837   [\\/]* | ?:[\\/]*)
6838   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6839   ;;
6840   *)
6841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846     for ac_exec_ext in '' $ac_executable_extensions; do
6847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853   done
6854 IFS=$as_save_IFS
6855 
6856   ;;
6857 esac
6858 fi
6859 EXPR=$ac_cv_path_EXPR
6860 if test -n "$EXPR"; then
6861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6862 $as_echo "$EXPR" >&6; }
6863 else
6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867 
6868 
6869   test -n "$EXPR" && break
6870 done
6871 
6872     else
6873       # If it succeeded, then it was overridden by the user. We will use it
6874       # for the tool.
6875 
6876       # First remove it from the list of overridden variables, so we can test
6877       # for unknown variables in the end.
6878       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6879 
6880       # Check if the provided tool contains a complete path.
6881       tool_specified="$EXPR"
6882       tool_basename="${tool_specified##*/}"
6883       if test "x$tool_basename" = "x$tool_specified"; then
6884         # A command without a complete path is provided, search $PATH.
6885         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6886 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6887         # Extract the first word of "$tool_basename", so it can be a program name with args.
6888 set dummy $tool_basename; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_path_EXPR+:} false; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   case $EXPR in
6895   [\\/]* | ?:[\\/]*)
6896   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6897   ;;
6898   *)
6899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904     for ac_exec_ext in '' $ac_executable_extensions; do
6905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911   done
6912 IFS=$as_save_IFS
6913 
6914   ;;
6915 esac
6916 fi
6917 EXPR=$ac_cv_path_EXPR
6918 if test -n "$EXPR"; then
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6920 $as_echo "$EXPR" >&6; }
6921 else
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925 
6926 
6927         if test "x$EXPR" = x; then
6928           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6929         fi
6930       else
6931         # Otherwise we believe it is a complete path. Use it as it is.
6932         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6933 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6935 $as_echo_n "checking for EXPR... " >&6; }
6936         if test ! -x "$tool_specified"; then
6937           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6938 $as_echo "not found" >&6; }
6939           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6940         fi
6941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6942 $as_echo "$tool_specified" >&6; }
6943       fi
6944     fi
6945   fi
6946 
6947 
6948 
6949   if test "x$EXPR" = x; then
6950     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6951   fi
6952 
6953 
6954 
6955 
6956 
6957   # Publish this variable in the help.
6958 
6959 
6960   if test "x$FILE" = x; then
6961     # The variable is not set by user, try to locate tool using the code snippet
6962     for ac_prog in file
6963 do
6964   # Extract the first word of "$ac_prog", so it can be a program name with args.
6965 set dummy $ac_prog; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_path_FILE+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   case $FILE in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990 
6991   ;;
6992 esac
6993 fi
6994 FILE=$ac_cv_path_FILE
6995 if test -n "$FILE"; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6997 $as_echo "$FILE" >&6; }
6998 else
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002 
7003 
7004   test -n "$FILE" && break
7005 done
7006 
7007   else
7008     # The variable is set, but is it from the command line or the environment?
7009 
7010     # Try to remove the string !FILE! from our list.
7011     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7012     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7013       # If it failed, the variable was not from the command line. Ignore it,
7014       # but warn the user (except for BASH, which is always set by the calling BASH).
7015       if test "xFILE" != xBASH; then
7016         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7017 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7018       fi
7019       # Try to locate tool using the code snippet
7020       for ac_prog in file
7021 do
7022   # Extract the first word of "$ac_prog", so it can be a program name with args.
7023 set dummy $ac_prog; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_path_FILE+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   case $FILE in
7030   [\\/]* | ?:[\\/]*)
7031   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7032   ;;
7033   *)
7034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039     for ac_exec_ext in '' $ac_executable_extensions; do
7040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046   done
7047 IFS=$as_save_IFS
7048 
7049   ;;
7050 esac
7051 fi
7052 FILE=$ac_cv_path_FILE
7053 if test -n "$FILE"; then
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7055 $as_echo "$FILE" >&6; }
7056 else
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060 
7061 
7062   test -n "$FILE" && break
7063 done
7064 
7065     else
7066       # If it succeeded, then it was overridden by the user. We will use it
7067       # for the tool.
7068 
7069       # First remove it from the list of overridden variables, so we can test
7070       # for unknown variables in the end.
7071       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7072 
7073       # Check if the provided tool contains a complete path.
7074       tool_specified="$FILE"
7075       tool_basename="${tool_specified##*/}"
7076       if test "x$tool_basename" = "x$tool_specified"; then
7077         # A command without a complete path is provided, search $PATH.
7078         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7079 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7080         # Extract the first word of "$tool_basename", so it can be a program name with args.
7081 set dummy $tool_basename; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_path_FILE+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   case $FILE in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097     for ac_exec_ext in '' $ac_executable_extensions; do
7098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104   done
7105 IFS=$as_save_IFS
7106 
7107   ;;
7108 esac
7109 fi
7110 FILE=$ac_cv_path_FILE
7111 if test -n "$FILE"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7113 $as_echo "$FILE" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118 
7119 
7120         if test "x$FILE" = x; then
7121           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7122         fi
7123       else
7124         # Otherwise we believe it is a complete path. Use it as it is.
7125         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7126 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7128 $as_echo_n "checking for FILE... " >&6; }
7129         if test ! -x "$tool_specified"; then
7130           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7131 $as_echo "not found" >&6; }
7132           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7133         fi
7134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7135 $as_echo "$tool_specified" >&6; }
7136       fi
7137     fi
7138   fi
7139 
7140 
7141 
7142   if test "x$FILE" = x; then
7143     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7144   fi
7145 
7146 
7147 
7148 
7149 
7150   # Publish this variable in the help.
7151 
7152 
7153   if test "x$FIND" = x; then
7154     # The variable is not set by user, try to locate tool using the code snippet
7155     for ac_prog in find
7156 do
7157   # Extract the first word of "$ac_prog", so it can be a program name with args.
7158 set dummy $ac_prog; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_path_FIND+:} false; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   case $FIND in
7165   [\\/]* | ?:[\\/]*)
7166   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7167   ;;
7168   *)
7169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174     for ac_exec_ext in '' $ac_executable_extensions; do
7175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181   done
7182 IFS=$as_save_IFS
7183 
7184   ;;
7185 esac
7186 fi
7187 FIND=$ac_cv_path_FIND
7188 if test -n "$FIND"; then
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7190 $as_echo "$FIND" >&6; }
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195 
7196 
7197   test -n "$FIND" && break
7198 done
7199 
7200   else
7201     # The variable is set, but is it from the command line or the environment?
7202 
7203     # Try to remove the string !FIND! from our list.
7204     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7205     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7206       # If it failed, the variable was not from the command line. Ignore it,
7207       # but warn the user (except for BASH, which is always set by the calling BASH).
7208       if test "xFIND" != xBASH; then
7209         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7210 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7211       fi
7212       # Try to locate tool using the code snippet
7213       for ac_prog in find
7214 do
7215   # Extract the first word of "$ac_prog", so it can be a program name with args.
7216 set dummy $ac_prog; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_path_FIND+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   case $FIND in
7223   [\\/]* | ?:[\\/]*)
7224   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7225   ;;
7226   *)
7227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241 
7242   ;;
7243 esac
7244 fi
7245 FIND=$ac_cv_path_FIND
7246 if test -n "$FIND"; then
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7248 $as_echo "$FIND" >&6; }
7249 else
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253 
7254 
7255   test -n "$FIND" && break
7256 done
7257 
7258     else
7259       # If it succeeded, then it was overridden by the user. We will use it
7260       # for the tool.
7261 
7262       # First remove it from the list of overridden variables, so we can test
7263       # for unknown variables in the end.
7264       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7265 
7266       # Check if the provided tool contains a complete path.
7267       tool_specified="$FIND"
7268       tool_basename="${tool_specified##*/}"
7269       if test "x$tool_basename" = "x$tool_specified"; then
7270         # A command without a complete path is provided, search $PATH.
7271         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7272 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7273         # Extract the first word of "$tool_basename", so it can be a program name with args.
7274 set dummy $tool_basename; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_path_FIND+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   case $FIND in
7281   [\\/]* | ?:[\\/]*)
7282   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7283   ;;
7284   *)
7285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290     for ac_exec_ext in '' $ac_executable_extensions; do
7291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297   done
7298 IFS=$as_save_IFS
7299 
7300   ;;
7301 esac
7302 fi
7303 FIND=$ac_cv_path_FIND
7304 if test -n "$FIND"; then
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7306 $as_echo "$FIND" >&6; }
7307 else
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311 
7312 
7313         if test "x$FIND" = x; then
7314           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7315         fi
7316       else
7317         # Otherwise we believe it is a complete path. Use it as it is.
7318         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7319 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7321 $as_echo_n "checking for FIND... " >&6; }
7322         if test ! -x "$tool_specified"; then
7323           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7324 $as_echo "not found" >&6; }
7325           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7326         fi
7327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7328 $as_echo "$tool_specified" >&6; }
7329       fi
7330     fi
7331   fi
7332 
7333 
7334 
7335   if test "x$FIND" = x; then
7336     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7337   fi
7338 
7339 
7340 
7341 
7342 
7343   # Publish this variable in the help.
7344 
7345 
7346   if test "x$HEAD" = x; then
7347     # The variable is not set by user, try to locate tool using the code snippet
7348     for ac_prog in head
7349 do
7350   # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_path_HEAD+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   case $HEAD in
7358   [\\/]* | ?:[\\/]*)
7359   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7360   ;;
7361   *)
7362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_exec_ext in '' $ac_executable_extensions; do
7368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374   done
7375 IFS=$as_save_IFS
7376 
7377   ;;
7378 esac
7379 fi
7380 HEAD=$ac_cv_path_HEAD
7381 if test -n "$HEAD"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7383 $as_echo "$HEAD" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388 
7389 
7390   test -n "$HEAD" && break
7391 done
7392 
7393   else
7394     # The variable is set, but is it from the command line or the environment?
7395 
7396     # Try to remove the string !HEAD! from our list.
7397     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7398     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7399       # If it failed, the variable was not from the command line. Ignore it,
7400       # but warn the user (except for BASH, which is always set by the calling BASH).
7401       if test "xHEAD" != xBASH; then
7402         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7403 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7404       fi
7405       # Try to locate tool using the code snippet
7406       for ac_prog in head
7407 do
7408   # Extract the first word of "$ac_prog", so it can be a program name with args.
7409 set dummy $ac_prog; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_path_HEAD+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   case $HEAD in
7416   [\\/]* | ?:[\\/]*)
7417   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7418   ;;
7419   *)
7420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434 
7435   ;;
7436 esac
7437 fi
7438 HEAD=$ac_cv_path_HEAD
7439 if test -n "$HEAD"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7441 $as_echo "$HEAD" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446 
7447 
7448   test -n "$HEAD" && break
7449 done
7450 
7451     else
7452       # If it succeeded, then it was overridden by the user. We will use it
7453       # for the tool.
7454 
7455       # First remove it from the list of overridden variables, so we can test
7456       # for unknown variables in the end.
7457       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7458 
7459       # Check if the provided tool contains a complete path.
7460       tool_specified="$HEAD"
7461       tool_basename="${tool_specified##*/}"
7462       if test "x$tool_basename" = "x$tool_specified"; then
7463         # A command without a complete path is provided, search $PATH.
7464         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7465 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7466         # Extract the first word of "$tool_basename", so it can be a program name with args.
7467 set dummy $tool_basename; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_path_HEAD+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   case $HEAD in
7474   [\\/]* | ?:[\\/]*)
7475   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7476   ;;
7477   *)
7478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483     for ac_exec_ext in '' $ac_executable_extensions; do
7484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490   done
7491 IFS=$as_save_IFS
7492 
7493   ;;
7494 esac
7495 fi
7496 HEAD=$ac_cv_path_HEAD
7497 if test -n "$HEAD"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7499 $as_echo "$HEAD" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504 
7505 
7506         if test "x$HEAD" = x; then
7507           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7508         fi
7509       else
7510         # Otherwise we believe it is a complete path. Use it as it is.
7511         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7512 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7514 $as_echo_n "checking for HEAD... " >&6; }
7515         if test ! -x "$tool_specified"; then
7516           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7517 $as_echo "not found" >&6; }
7518           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7519         fi
7520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7521 $as_echo "$tool_specified" >&6; }
7522       fi
7523     fi
7524   fi
7525 
7526 
7527 
7528   if test "x$HEAD" = x; then
7529     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7530   fi
7531 
7532 
7533 
7534 
7535 
7536   # Publish this variable in the help.
7537 
7538 
7539   if test "x$LN" = x; then
7540     # The variable is not set by user, try to locate tool using the code snippet
7541     for ac_prog in ln
7542 do
7543   # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_path_LN+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   case $LN in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569 
7570   ;;
7571 esac
7572 fi
7573 LN=$ac_cv_path_LN
7574 if test -n "$LN"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7576 $as_echo "$LN" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581 
7582 
7583   test -n "$LN" && break
7584 done
7585 
7586   else
7587     # The variable is set, but is it from the command line or the environment?
7588 
7589     # Try to remove the string !LN! from our list.
7590     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7591     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7592       # If it failed, the variable was not from the command line. Ignore it,
7593       # but warn the user (except for BASH, which is always set by the calling BASH).
7594       if test "xLN" != xBASH; then
7595         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7596 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7597       fi
7598       # Try to locate tool using the code snippet
7599       for ac_prog in ln
7600 do
7601   # Extract the first word of "$ac_prog", so it can be a program name with args.
7602 set dummy $ac_prog; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_path_LN+:} false; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   case $LN in
7609   [\\/]* | ?:[\\/]*)
7610   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7611   ;;
7612   *)
7613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618     for ac_exec_ext in '' $ac_executable_extensions; do
7619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625   done
7626 IFS=$as_save_IFS
7627 
7628   ;;
7629 esac
7630 fi
7631 LN=$ac_cv_path_LN
7632 if test -n "$LN"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7634 $as_echo "$LN" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639 
7640 
7641   test -n "$LN" && break
7642 done
7643 
7644     else
7645       # If it succeeded, then it was overridden by the user. We will use it
7646       # for the tool.
7647 
7648       # First remove it from the list of overridden variables, so we can test
7649       # for unknown variables in the end.
7650       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7651 
7652       # Check if the provided tool contains a complete path.
7653       tool_specified="$LN"
7654       tool_basename="${tool_specified##*/}"
7655       if test "x$tool_basename" = "x$tool_specified"; then
7656         # A command without a complete path is provided, search $PATH.
7657         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7658 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7659         # Extract the first word of "$tool_basename", so it can be a program name with args.
7660 set dummy $tool_basename; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_path_LN+:} false; then :
7664   $as_echo_n "(cached) " >&6
7665 else
7666   case $LN in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683   done
7684 IFS=$as_save_IFS
7685 
7686   ;;
7687 esac
7688 fi
7689 LN=$ac_cv_path_LN
7690 if test -n "$LN"; then
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7692 $as_echo "$LN" >&6; }
7693 else
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7696 fi
7697 
7698 
7699         if test "x$LN" = x; then
7700           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7701         fi
7702       else
7703         # Otherwise we believe it is a complete path. Use it as it is.
7704         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7705 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7706         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7707 $as_echo_n "checking for LN... " >&6; }
7708         if test ! -x "$tool_specified"; then
7709           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7710 $as_echo "not found" >&6; }
7711           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7712         fi
7713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7714 $as_echo "$tool_specified" >&6; }
7715       fi
7716     fi
7717   fi
7718 
7719 
7720 
7721   if test "x$LN" = x; then
7722     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7723   fi
7724 
7725 
7726 
7727 
7728 
7729   # Publish this variable in the help.
7730 
7731 
7732   if test "x$LS" = x; then
7733     # The variable is not set by user, try to locate tool using the code snippet
7734     for ac_prog in ls
7735 do
7736   # Extract the first word of "$ac_prog", so it can be a program name with args.
7737 set dummy $ac_prog; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_path_LS+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   case $LS in
7744   [\\/]* | ?:[\\/]*)
7745   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7746   ;;
7747   *)
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762 
7763   ;;
7764 esac
7765 fi
7766 LS=$ac_cv_path_LS
7767 if test -n "$LS"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7769 $as_echo "$LS" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774 
7775 
7776   test -n "$LS" && break
7777 done
7778 
7779   else
7780     # The variable is set, but is it from the command line or the environment?
7781 
7782     # Try to remove the string !LS! from our list.
7783     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7784     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7785       # If it failed, the variable was not from the command line. Ignore it,
7786       # but warn the user (except for BASH, which is always set by the calling BASH).
7787       if test "xLS" != xBASH; then
7788         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7789 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7790       fi
7791       # Try to locate tool using the code snippet
7792       for ac_prog in ls
7793 do
7794   # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_path_LS+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   case $LS in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811     for ac_exec_ext in '' $ac_executable_extensions; do
7812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818   done
7819 IFS=$as_save_IFS
7820 
7821   ;;
7822 esac
7823 fi
7824 LS=$ac_cv_path_LS
7825 if test -n "$LS"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7827 $as_echo "$LS" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832 
7833 
7834   test -n "$LS" && break
7835 done
7836 
7837     else
7838       # If it succeeded, then it was overridden by the user. We will use it
7839       # for the tool.
7840 
7841       # First remove it from the list of overridden variables, so we can test
7842       # for unknown variables in the end.
7843       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7844 
7845       # Check if the provided tool contains a complete path.
7846       tool_specified="$LS"
7847       tool_basename="${tool_specified##*/}"
7848       if test "x$tool_basename" = "x$tool_specified"; then
7849         # A command without a complete path is provided, search $PATH.
7850         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7851 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7852         # Extract the first word of "$tool_basename", so it can be a program name with args.
7853 set dummy $tool_basename; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_path_LS+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   case $LS in
7860   [\\/]* | ?:[\\/]*)
7861   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7862   ;;
7863   *)
7864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869     for ac_exec_ext in '' $ac_executable_extensions; do
7870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876   done
7877 IFS=$as_save_IFS
7878 
7879   ;;
7880 esac
7881 fi
7882 LS=$ac_cv_path_LS
7883 if test -n "$LS"; then
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7885 $as_echo "$LS" >&6; }
7886 else
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 fi
7890 
7891 
7892         if test "x$LS" = x; then
7893           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7894         fi
7895       else
7896         # Otherwise we believe it is a complete path. Use it as it is.
7897         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7898 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7900 $as_echo_n "checking for LS... " >&6; }
7901         if test ! -x "$tool_specified"; then
7902           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7903 $as_echo "not found" >&6; }
7904           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7905         fi
7906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7907 $as_echo "$tool_specified" >&6; }
7908       fi
7909     fi
7910   fi
7911 
7912 
7913 
7914   if test "x$LS" = x; then
7915     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7916   fi
7917 
7918 
7919 
7920 
7921 
7922   # Publish this variable in the help.
7923 
7924 
7925   if test "x$MKDIR" = x; then
7926     # The variable is not set by user, try to locate tool using the code snippet
7927     for ac_prog in mkdir
7928 do
7929   # Extract the first word of "$ac_prog", so it can be a program name with args.
7930 set dummy $ac_prog; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_path_MKDIR+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   case $MKDIR in
7937   [\\/]* | ?:[\\/]*)
7938   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7939   ;;
7940   *)
7941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944   IFS=$as_save_IFS
7945   test -z "$as_dir" && as_dir=.
7946     for ac_exec_ext in '' $ac_executable_extensions; do
7947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950     break 2
7951   fi
7952 done
7953   done
7954 IFS=$as_save_IFS
7955 
7956   ;;
7957 esac
7958 fi
7959 MKDIR=$ac_cv_path_MKDIR
7960 if test -n "$MKDIR"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7962 $as_echo "$MKDIR" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967 
7968 
7969   test -n "$MKDIR" && break
7970 done
7971 
7972   else
7973     # The variable is set, but is it from the command line or the environment?
7974 
7975     # Try to remove the string !MKDIR! from our list.
7976     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7977     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7978       # If it failed, the variable was not from the command line. Ignore it,
7979       # but warn the user (except for BASH, which is always set by the calling BASH).
7980       if test "xMKDIR" != xBASH; then
7981         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7982 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7983       fi
7984       # Try to locate tool using the code snippet
7985       for ac_prog in mkdir
7986 do
7987   # Extract the first word of "$ac_prog", so it can be a program name with args.
7988 set dummy $ac_prog; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_path_MKDIR+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   case $MKDIR in
7995   [\\/]* | ?:[\\/]*)
7996   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7997   ;;
7998   *)
7999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004     for ac_exec_ext in '' $ac_executable_extensions; do
8005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011   done
8012 IFS=$as_save_IFS
8013 
8014   ;;
8015 esac
8016 fi
8017 MKDIR=$ac_cv_path_MKDIR
8018 if test -n "$MKDIR"; then
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8020 $as_echo "$MKDIR" >&6; }
8021 else
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025 
8026 
8027   test -n "$MKDIR" && break
8028 done
8029 
8030     else
8031       # If it succeeded, then it was overridden by the user. We will use it
8032       # for the tool.
8033 
8034       # First remove it from the list of overridden variables, so we can test
8035       # for unknown variables in the end.
8036       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8037 
8038       # Check if the provided tool contains a complete path.
8039       tool_specified="$MKDIR"
8040       tool_basename="${tool_specified##*/}"
8041       if test "x$tool_basename" = "x$tool_specified"; then
8042         # A command without a complete path is provided, search $PATH.
8043         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8044 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8045         # Extract the first word of "$tool_basename", so it can be a program name with args.
8046 set dummy $tool_basename; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if ${ac_cv_path_MKDIR+:} false; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   case $MKDIR in
8053   [\\/]* | ?:[\\/]*)
8054   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8055   ;;
8056   *)
8057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060   IFS=$as_save_IFS
8061   test -z "$as_dir" && as_dir=.
8062     for ac_exec_ext in '' $ac_executable_extensions; do
8063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066     break 2
8067   fi
8068 done
8069   done
8070 IFS=$as_save_IFS
8071 
8072   ;;
8073 esac
8074 fi
8075 MKDIR=$ac_cv_path_MKDIR
8076 if test -n "$MKDIR"; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8078 $as_echo "$MKDIR" >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083 
8084 
8085         if test "x$MKDIR" = x; then
8086           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8087         fi
8088       else
8089         # Otherwise we believe it is a complete path. Use it as it is.
8090         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8091 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8093 $as_echo_n "checking for MKDIR... " >&6; }
8094         if test ! -x "$tool_specified"; then
8095           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8096 $as_echo "not found" >&6; }
8097           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8098         fi
8099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8100 $as_echo "$tool_specified" >&6; }
8101       fi
8102     fi
8103   fi
8104 
8105 
8106 
8107   if test "x$MKDIR" = x; then
8108     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8109   fi
8110 
8111 
8112 
8113 
8114 
8115   # Publish this variable in the help.
8116 
8117 
8118   if test "x$MKTEMP" = x; then
8119     # The variable is not set by user, try to locate tool using the code snippet
8120     for ac_prog in mktemp
8121 do
8122   # Extract the first word of "$ac_prog", so it can be a program name with args.
8123 set dummy $ac_prog; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if ${ac_cv_path_MKTEMP+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   case $MKTEMP in
8130   [\\/]* | ?:[\\/]*)
8131   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8132   ;;
8133   *)
8134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139     for ac_exec_ext in '' $ac_executable_extensions; do
8140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146   done
8147 IFS=$as_save_IFS
8148 
8149   ;;
8150 esac
8151 fi
8152 MKTEMP=$ac_cv_path_MKTEMP
8153 if test -n "$MKTEMP"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8155 $as_echo "$MKTEMP" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160 
8161 
8162   test -n "$MKTEMP" && break
8163 done
8164 
8165   else
8166     # The variable is set, but is it from the command line or the environment?
8167 
8168     # Try to remove the string !MKTEMP! from our list.
8169     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8170     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8171       # If it failed, the variable was not from the command line. Ignore it,
8172       # but warn the user (except for BASH, which is always set by the calling BASH).
8173       if test "xMKTEMP" != xBASH; then
8174         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8175 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8176       fi
8177       # Try to locate tool using the code snippet
8178       for ac_prog in mktemp
8179 do
8180   # Extract the first word of "$ac_prog", so it can be a program name with args.
8181 set dummy $ac_prog; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if ${ac_cv_path_MKTEMP+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   case $MKTEMP in
8188   [\\/]* | ?:[\\/]*)
8189   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8190   ;;
8191   *)
8192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197     for ac_exec_ext in '' $ac_executable_extensions; do
8198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204   done
8205 IFS=$as_save_IFS
8206 
8207   ;;
8208 esac
8209 fi
8210 MKTEMP=$ac_cv_path_MKTEMP
8211 if test -n "$MKTEMP"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8213 $as_echo "$MKTEMP" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218 
8219 
8220   test -n "$MKTEMP" && break
8221 done
8222 
8223     else
8224       # If it succeeded, then it was overridden by the user. We will use it
8225       # for the tool.
8226 
8227       # First remove it from the list of overridden variables, so we can test
8228       # for unknown variables in the end.
8229       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8230 
8231       # Check if the provided tool contains a complete path.
8232       tool_specified="$MKTEMP"
8233       tool_basename="${tool_specified##*/}"
8234       if test "x$tool_basename" = "x$tool_specified"; then
8235         # A command without a complete path is provided, search $PATH.
8236         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8237 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8238         # Extract the first word of "$tool_basename", so it can be a program name with args.
8239 set dummy $tool_basename; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if ${ac_cv_path_MKTEMP+:} false; then :
8243   $as_echo_n "(cached) " >&6
8244 else
8245   case $MKTEMP in
8246   [\\/]* | ?:[\\/]*)
8247   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8248   ;;
8249   *)
8250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255     for ac_exec_ext in '' $ac_executable_extensions; do
8256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262   done
8263 IFS=$as_save_IFS
8264 
8265   ;;
8266 esac
8267 fi
8268 MKTEMP=$ac_cv_path_MKTEMP
8269 if test -n "$MKTEMP"; then
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8271 $as_echo "$MKTEMP" >&6; }
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276 
8277 
8278         if test "x$MKTEMP" = x; then
8279           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8280         fi
8281       else
8282         # Otherwise we believe it is a complete path. Use it as it is.
8283         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8284 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8286 $as_echo_n "checking for MKTEMP... " >&6; }
8287         if test ! -x "$tool_specified"; then
8288           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8289 $as_echo "not found" >&6; }
8290           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8291         fi
8292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8293 $as_echo "$tool_specified" >&6; }
8294       fi
8295     fi
8296   fi
8297 
8298 
8299 
8300   if test "x$MKTEMP" = x; then
8301     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8302   fi
8303 
8304 
8305 
8306 
8307 
8308   # Publish this variable in the help.
8309 
8310 
8311   if test "x$MV" = x; then
8312     # The variable is not set by user, try to locate tool using the code snippet
8313     for ac_prog in mv
8314 do
8315   # Extract the first word of "$ac_prog", so it can be a program name with args.
8316 set dummy $ac_prog; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_path_MV+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   case $MV in
8323   [\\/]* | ?:[\\/]*)
8324   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8325   ;;
8326   *)
8327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330   IFS=$as_save_IFS
8331   test -z "$as_dir" && as_dir=.
8332     for ac_exec_ext in '' $ac_executable_extensions; do
8333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336     break 2
8337   fi
8338 done
8339   done
8340 IFS=$as_save_IFS
8341 
8342   ;;
8343 esac
8344 fi
8345 MV=$ac_cv_path_MV
8346 if test -n "$MV"; then
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8348 $as_echo "$MV" >&6; }
8349 else
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 fi
8353 
8354 
8355   test -n "$MV" && break
8356 done
8357 
8358   else
8359     # The variable is set, but is it from the command line or the environment?
8360 
8361     # Try to remove the string !MV! from our list.
8362     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8363     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8364       # If it failed, the variable was not from the command line. Ignore it,
8365       # but warn the user (except for BASH, which is always set by the calling BASH).
8366       if test "xMV" != xBASH; then
8367         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8368 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8369       fi
8370       # Try to locate tool using the code snippet
8371       for ac_prog in mv
8372 do
8373   # Extract the first word of "$ac_prog", so it can be a program name with args.
8374 set dummy $ac_prog; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_path_MV+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   case $MV in
8381   [\\/]* | ?:[\\/]*)
8382   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8383   ;;
8384   *)
8385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388   IFS=$as_save_IFS
8389   test -z "$as_dir" && as_dir=.
8390     for ac_exec_ext in '' $ac_executable_extensions; do
8391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394     break 2
8395   fi
8396 done
8397   done
8398 IFS=$as_save_IFS
8399 
8400   ;;
8401 esac
8402 fi
8403 MV=$ac_cv_path_MV
8404 if test -n "$MV"; then
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8406 $as_echo "$MV" >&6; }
8407 else
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 fi
8411 
8412 
8413   test -n "$MV" && break
8414 done
8415 
8416     else
8417       # If it succeeded, then it was overridden by the user. We will use it
8418       # for the tool.
8419 
8420       # First remove it from the list of overridden variables, so we can test
8421       # for unknown variables in the end.
8422       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8423 
8424       # Check if the provided tool contains a complete path.
8425       tool_specified="$MV"
8426       tool_basename="${tool_specified##*/}"
8427       if test "x$tool_basename" = "x$tool_specified"; then
8428         # A command without a complete path is provided, search $PATH.
8429         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8430 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8431         # Extract the first word of "$tool_basename", so it can be a program name with args.
8432 set dummy $tool_basename; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_path_MV+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   case $MV in
8439   [\\/]* | ?:[\\/]*)
8440   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8441   ;;
8442   *)
8443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8445 do
8446   IFS=$as_save_IFS
8447   test -z "$as_dir" && as_dir=.
8448     for ac_exec_ext in '' $ac_executable_extensions; do
8449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452     break 2
8453   fi
8454 done
8455   done
8456 IFS=$as_save_IFS
8457 
8458   ;;
8459 esac
8460 fi
8461 MV=$ac_cv_path_MV
8462 if test -n "$MV"; then
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8464 $as_echo "$MV" >&6; }
8465 else
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469 
8470 
8471         if test "x$MV" = x; then
8472           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8473         fi
8474       else
8475         # Otherwise we believe it is a complete path. Use it as it is.
8476         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8477 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8478         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8479 $as_echo_n "checking for MV... " >&6; }
8480         if test ! -x "$tool_specified"; then
8481           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8482 $as_echo "not found" >&6; }
8483           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8484         fi
8485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8486 $as_echo "$tool_specified" >&6; }
8487       fi
8488     fi
8489   fi
8490 
8491 
8492 
8493   if test "x$MV" = x; then
8494     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8495   fi
8496 
8497 
8498 
8499 
8500 
8501   # Publish this variable in the help.
8502 
8503 
8504   if test "x$NAWK" = x; then
8505     # The variable is not set by user, try to locate tool using the code snippet
8506     for ac_prog in nawk gawk awk
8507 do
8508   # Extract the first word of "$ac_prog", so it can be a program name with args.
8509 set dummy $ac_prog; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_path_NAWK+:} false; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   case $NAWK in
8516   [\\/]* | ?:[\\/]*)
8517   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8518   ;;
8519   *)
8520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534 
8535   ;;
8536 esac
8537 fi
8538 NAWK=$ac_cv_path_NAWK
8539 if test -n "$NAWK"; then
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8541 $as_echo "$NAWK" >&6; }
8542 else
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546 
8547 
8548   test -n "$NAWK" && break
8549 done
8550 
8551   else
8552     # The variable is set, but is it from the command line or the environment?
8553 
8554     # Try to remove the string !NAWK! from our list.
8555     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8556     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8557       # If it failed, the variable was not from the command line. Ignore it,
8558       # but warn the user (except for BASH, which is always set by the calling BASH).
8559       if test "xNAWK" != xBASH; then
8560         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8561 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8562       fi
8563       # Try to locate tool using the code snippet
8564       for ac_prog in nawk gawk awk
8565 do
8566   # Extract the first word of "$ac_prog", so it can be a program name with args.
8567 set dummy $ac_prog; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_path_NAWK+:} false; then :
8571   $as_echo_n "(cached) " >&6
8572 else
8573   case $NAWK in
8574   [\\/]* | ?:[\\/]*)
8575   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8576   ;;
8577   *)
8578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581   IFS=$as_save_IFS
8582   test -z "$as_dir" && as_dir=.
8583     for ac_exec_ext in '' $ac_executable_extensions; do
8584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587     break 2
8588   fi
8589 done
8590   done
8591 IFS=$as_save_IFS
8592 
8593   ;;
8594 esac
8595 fi
8596 NAWK=$ac_cv_path_NAWK
8597 if test -n "$NAWK"; then
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8599 $as_echo "$NAWK" >&6; }
8600 else
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 fi
8604 
8605 
8606   test -n "$NAWK" && break
8607 done
8608 
8609     else
8610       # If it succeeded, then it was overridden by the user. We will use it
8611       # for the tool.
8612 
8613       # First remove it from the list of overridden variables, so we can test
8614       # for unknown variables in the end.
8615       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8616 
8617       # Check if the provided tool contains a complete path.
8618       tool_specified="$NAWK"
8619       tool_basename="${tool_specified##*/}"
8620       if test "x$tool_basename" = "x$tool_specified"; then
8621         # A command without a complete path is provided, search $PATH.
8622         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8623 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8624         # Extract the first word of "$tool_basename", so it can be a program name with args.
8625 set dummy $tool_basename; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if ${ac_cv_path_NAWK+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   case $NAWK in
8632   [\\/]* | ?:[\\/]*)
8633   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8634   ;;
8635   *)
8636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639   IFS=$as_save_IFS
8640   test -z "$as_dir" && as_dir=.
8641     for ac_exec_ext in '' $ac_executable_extensions; do
8642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645     break 2
8646   fi
8647 done
8648   done
8649 IFS=$as_save_IFS
8650 
8651   ;;
8652 esac
8653 fi
8654 NAWK=$ac_cv_path_NAWK
8655 if test -n "$NAWK"; then
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8657 $as_echo "$NAWK" >&6; }
8658 else
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8661 fi
8662 
8663 
8664         if test "x$NAWK" = x; then
8665           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8666         fi
8667       else
8668         # Otherwise we believe it is a complete path. Use it as it is.
8669         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8670 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8672 $as_echo_n "checking for NAWK... " >&6; }
8673         if test ! -x "$tool_specified"; then
8674           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8675 $as_echo "not found" >&6; }
8676           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8677         fi
8678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8679 $as_echo "$tool_specified" >&6; }
8680       fi
8681     fi
8682   fi
8683 
8684 
8685 
8686   if test "x$NAWK" = x; then
8687     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8688   fi
8689 
8690 
8691 
8692 
8693 
8694   # Publish this variable in the help.
8695 
8696 
8697   if test "x$PRINTF" = x; then
8698     # The variable is not set by user, try to locate tool using the code snippet
8699     for ac_prog in printf
8700 do
8701   # Extract the first word of "$ac_prog", so it can be a program name with args.
8702 set dummy $ac_prog; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_path_PRINTF+:} false; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   case $PRINTF in
8709   [\\/]* | ?:[\\/]*)
8710   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8711   ;;
8712   *)
8713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716   IFS=$as_save_IFS
8717   test -z "$as_dir" && as_dir=.
8718     for ac_exec_ext in '' $ac_executable_extensions; do
8719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8720     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722     break 2
8723   fi
8724 done
8725   done
8726 IFS=$as_save_IFS
8727 
8728   ;;
8729 esac
8730 fi
8731 PRINTF=$ac_cv_path_PRINTF
8732 if test -n "$PRINTF"; then
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8734 $as_echo "$PRINTF" >&6; }
8735 else
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738 fi
8739 
8740 
8741   test -n "$PRINTF" && break
8742 done
8743 
8744   else
8745     # The variable is set, but is it from the command line or the environment?
8746 
8747     # Try to remove the string !PRINTF! from our list.
8748     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8749     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8750       # If it failed, the variable was not from the command line. Ignore it,
8751       # but warn the user (except for BASH, which is always set by the calling BASH).
8752       if test "xPRINTF" != xBASH; then
8753         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8754 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8755       fi
8756       # Try to locate tool using the code snippet
8757       for ac_prog in printf
8758 do
8759   # Extract the first word of "$ac_prog", so it can be a program name with args.
8760 set dummy $ac_prog; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_PRINTF+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   case $PRINTF in
8767   [\\/]* | ?:[\\/]*)
8768   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8769   ;;
8770   *)
8771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774   IFS=$as_save_IFS
8775   test -z "$as_dir" && as_dir=.
8776     for ac_exec_ext in '' $ac_executable_extensions; do
8777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780     break 2
8781   fi
8782 done
8783   done
8784 IFS=$as_save_IFS
8785 
8786   ;;
8787 esac
8788 fi
8789 PRINTF=$ac_cv_path_PRINTF
8790 if test -n "$PRINTF"; then
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8792 $as_echo "$PRINTF" >&6; }
8793 else
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797 
8798 
8799   test -n "$PRINTF" && break
8800 done
8801 
8802     else
8803       # If it succeeded, then it was overridden by the user. We will use it
8804       # for the tool.
8805 
8806       # First remove it from the list of overridden variables, so we can test
8807       # for unknown variables in the end.
8808       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8809 
8810       # Check if the provided tool contains a complete path.
8811       tool_specified="$PRINTF"
8812       tool_basename="${tool_specified##*/}"
8813       if test "x$tool_basename" = "x$tool_specified"; then
8814         # A command without a complete path is provided, search $PATH.
8815         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8816 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8817         # Extract the first word of "$tool_basename", so it can be a program name with args.
8818 set dummy $tool_basename; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_path_PRINTF+:} false; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   case $PRINTF in
8825   [\\/]* | ?:[\\/]*)
8826   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8827   ;;
8828   *)
8829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832   IFS=$as_save_IFS
8833   test -z "$as_dir" && as_dir=.
8834     for ac_exec_ext in '' $ac_executable_extensions; do
8835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838     break 2
8839   fi
8840 done
8841   done
8842 IFS=$as_save_IFS
8843 
8844   ;;
8845 esac
8846 fi
8847 PRINTF=$ac_cv_path_PRINTF
8848 if test -n "$PRINTF"; then
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8850 $as_echo "$PRINTF" >&6; }
8851 else
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855 
8856 
8857         if test "x$PRINTF" = x; then
8858           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8859         fi
8860       else
8861         # Otherwise we believe it is a complete path. Use it as it is.
8862         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8863 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8865 $as_echo_n "checking for PRINTF... " >&6; }
8866         if test ! -x "$tool_specified"; then
8867           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8868 $as_echo "not found" >&6; }
8869           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8870         fi
8871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8872 $as_echo "$tool_specified" >&6; }
8873       fi
8874     fi
8875   fi
8876 
8877 
8878 
8879   if test "x$PRINTF" = x; then
8880     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8881   fi
8882 
8883 
8884 
8885 
8886 
8887   # Publish this variable in the help.
8888 
8889 
8890   if test "x$RM" = x; then
8891     # The variable is not set by user, try to locate tool using the code snippet
8892     for ac_prog in rm
8893 do
8894   # Extract the first word of "$ac_prog", so it can be a program name with args.
8895 set dummy $ac_prog; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_path_RM+:} false; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   case $RM in
8902   [\\/]* | ?:[\\/]*)
8903   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8904   ;;
8905   *)
8906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909   IFS=$as_save_IFS
8910   test -z "$as_dir" && as_dir=.
8911     for ac_exec_ext in '' $ac_executable_extensions; do
8912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915     break 2
8916   fi
8917 done
8918   done
8919 IFS=$as_save_IFS
8920 
8921   ;;
8922 esac
8923 fi
8924 RM=$ac_cv_path_RM
8925 if test -n "$RM"; then
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8927 $as_echo "$RM" >&6; }
8928 else
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8931 fi
8932 
8933 
8934   test -n "$RM" && break
8935 done
8936 
8937   else
8938     # The variable is set, but is it from the command line or the environment?
8939 
8940     # Try to remove the string !RM! from our list.
8941     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8942     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8943       # If it failed, the variable was not from the command line. Ignore it,
8944       # but warn the user (except for BASH, which is always set by the calling BASH).
8945       if test "xRM" != xBASH; then
8946         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8947 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8948       fi
8949       # Try to locate tool using the code snippet
8950       for ac_prog in rm
8951 do
8952   # Extract the first word of "$ac_prog", so it can be a program name with args.
8953 set dummy $ac_prog; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if ${ac_cv_path_RM+:} false; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   case $RM in
8960   [\\/]* | ?:[\\/]*)
8961   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8962   ;;
8963   *)
8964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967   IFS=$as_save_IFS
8968   test -z "$as_dir" && as_dir=.
8969     for ac_exec_ext in '' $ac_executable_extensions; do
8970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973     break 2
8974   fi
8975 done
8976   done
8977 IFS=$as_save_IFS
8978 
8979   ;;
8980 esac
8981 fi
8982 RM=$ac_cv_path_RM
8983 if test -n "$RM"; then
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8985 $as_echo "$RM" >&6; }
8986 else
8987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8989 fi
8990 
8991 
8992   test -n "$RM" && break
8993 done
8994 
8995     else
8996       # If it succeeded, then it was overridden by the user. We will use it
8997       # for the tool.
8998 
8999       # First remove it from the list of overridden variables, so we can test
9000       # for unknown variables in the end.
9001       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9002 
9003       # Check if the provided tool contains a complete path.
9004       tool_specified="$RM"
9005       tool_basename="${tool_specified##*/}"
9006       if test "x$tool_basename" = "x$tool_specified"; then
9007         # A command without a complete path is provided, search $PATH.
9008         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9009 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9010         # Extract the first word of "$tool_basename", so it can be a program name with args.
9011 set dummy $tool_basename; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if ${ac_cv_path_RM+:} false; then :
9015   $as_echo_n "(cached) " >&6
9016 else
9017   case $RM in
9018   [\\/]* | ?:[\\/]*)
9019   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9020   ;;
9021   *)
9022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9024 do
9025   IFS=$as_save_IFS
9026   test -z "$as_dir" && as_dir=.
9027     for ac_exec_ext in '' $ac_executable_extensions; do
9028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9029     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031     break 2
9032   fi
9033 done
9034   done
9035 IFS=$as_save_IFS
9036 
9037   ;;
9038 esac
9039 fi
9040 RM=$ac_cv_path_RM
9041 if test -n "$RM"; then
9042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9043 $as_echo "$RM" >&6; }
9044 else
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9047 fi
9048 
9049 
9050         if test "x$RM" = x; then
9051           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9052         fi
9053       else
9054         # Otherwise we believe it is a complete path. Use it as it is.
9055         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9056 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9058 $as_echo_n "checking for RM... " >&6; }
9059         if test ! -x "$tool_specified"; then
9060           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9061 $as_echo "not found" >&6; }
9062           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9063         fi
9064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9065 $as_echo "$tool_specified" >&6; }
9066       fi
9067     fi
9068   fi
9069 
9070 
9071 
9072   if test "x$RM" = x; then
9073     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9074   fi
9075 
9076 
9077 
9078 
9079 
9080   # Publish this variable in the help.
9081 
9082 
9083   if test "x$SH" = x; then
9084     # The variable is not set by user, try to locate tool using the code snippet
9085     for ac_prog in sh
9086 do
9087   # Extract the first word of "$ac_prog", so it can be a program name with args.
9088 set dummy $ac_prog; ac_word=$2
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090 $as_echo_n "checking for $ac_word... " >&6; }
9091 if ${ac_cv_path_SH+:} false; then :
9092   $as_echo_n "(cached) " >&6
9093 else
9094   case $SH in
9095   [\\/]* | ?:[\\/]*)
9096   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9097   ;;
9098   *)
9099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9101 do
9102   IFS=$as_save_IFS
9103   test -z "$as_dir" && as_dir=.
9104     for ac_exec_ext in '' $ac_executable_extensions; do
9105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108     break 2
9109   fi
9110 done
9111   done
9112 IFS=$as_save_IFS
9113 
9114   ;;
9115 esac
9116 fi
9117 SH=$ac_cv_path_SH
9118 if test -n "$SH"; then
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9120 $as_echo "$SH" >&6; }
9121 else
9122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9124 fi
9125 
9126 
9127   test -n "$SH" && break
9128 done
9129 
9130   else
9131     # The variable is set, but is it from the command line or the environment?
9132 
9133     # Try to remove the string !SH! from our list.
9134     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9135     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9136       # If it failed, the variable was not from the command line. Ignore it,
9137       # but warn the user (except for BASH, which is always set by the calling BASH).
9138       if test "xSH" != xBASH; then
9139         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9140 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9141       fi
9142       # Try to locate tool using the code snippet
9143       for ac_prog in sh
9144 do
9145   # Extract the first word of "$ac_prog", so it can be a program name with args.
9146 set dummy $ac_prog; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_path_SH+:} false; then :
9150   $as_echo_n "(cached) " >&6
9151 else
9152   case $SH in
9153   [\\/]* | ?:[\\/]*)
9154   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9155   ;;
9156   *)
9157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160   IFS=$as_save_IFS
9161   test -z "$as_dir" && as_dir=.
9162     for ac_exec_ext in '' $ac_executable_extensions; do
9163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166     break 2
9167   fi
9168 done
9169   done
9170 IFS=$as_save_IFS
9171 
9172   ;;
9173 esac
9174 fi
9175 SH=$ac_cv_path_SH
9176 if test -n "$SH"; then
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9178 $as_echo "$SH" >&6; }
9179 else
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183 
9184 
9185   test -n "$SH" && break
9186 done
9187 
9188     else
9189       # If it succeeded, then it was overridden by the user. We will use it
9190       # for the tool.
9191 
9192       # First remove it from the list of overridden variables, so we can test
9193       # for unknown variables in the end.
9194       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9195 
9196       # Check if the provided tool contains a complete path.
9197       tool_specified="$SH"
9198       tool_basename="${tool_specified##*/}"
9199       if test "x$tool_basename" = "x$tool_specified"; then
9200         # A command without a complete path is provided, search $PATH.
9201         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9202 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9203         # Extract the first word of "$tool_basename", so it can be a program name with args.
9204 set dummy $tool_basename; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if ${ac_cv_path_SH+:} false; then :
9208   $as_echo_n "(cached) " >&6
9209 else
9210   case $SH in
9211   [\\/]* | ?:[\\/]*)
9212   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9213   ;;
9214   *)
9215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218   IFS=$as_save_IFS
9219   test -z "$as_dir" && as_dir=.
9220     for ac_exec_ext in '' $ac_executable_extensions; do
9221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9222     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224     break 2
9225   fi
9226 done
9227   done
9228 IFS=$as_save_IFS
9229 
9230   ;;
9231 esac
9232 fi
9233 SH=$ac_cv_path_SH
9234 if test -n "$SH"; then
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9236 $as_echo "$SH" >&6; }
9237 else
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9240 fi
9241 
9242 
9243         if test "x$SH" = x; then
9244           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9245         fi
9246       else
9247         # Otherwise we believe it is a complete path. Use it as it is.
9248         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9249 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9251 $as_echo_n "checking for SH... " >&6; }
9252         if test ! -x "$tool_specified"; then
9253           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9254 $as_echo "not found" >&6; }
9255           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9256         fi
9257         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9258 $as_echo "$tool_specified" >&6; }
9259       fi
9260     fi
9261   fi
9262 
9263 
9264 
9265   if test "x$SH" = x; then
9266     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9267   fi
9268 
9269 
9270 
9271 
9272 
9273   # Publish this variable in the help.
9274 
9275 
9276   if test "x$SORT" = x; then
9277     # The variable is not set by user, try to locate tool using the code snippet
9278     for ac_prog in sort
9279 do
9280   # Extract the first word of "$ac_prog", so it can be a program name with args.
9281 set dummy $ac_prog; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_path_SORT+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   case $SORT in
9288   [\\/]* | ?:[\\/]*)
9289   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9290   ;;
9291   *)
9292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295   IFS=$as_save_IFS
9296   test -z "$as_dir" && as_dir=.
9297     for ac_exec_ext in '' $ac_executable_extensions; do
9298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301     break 2
9302   fi
9303 done
9304   done
9305 IFS=$as_save_IFS
9306 
9307   ;;
9308 esac
9309 fi
9310 SORT=$ac_cv_path_SORT
9311 if test -n "$SORT"; then
9312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9313 $as_echo "$SORT" >&6; }
9314 else
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9317 fi
9318 
9319 
9320   test -n "$SORT" && break
9321 done
9322 
9323   else
9324     # The variable is set, but is it from the command line or the environment?
9325 
9326     # Try to remove the string !SORT! from our list.
9327     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9328     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9329       # If it failed, the variable was not from the command line. Ignore it,
9330       # but warn the user (except for BASH, which is always set by the calling BASH).
9331       if test "xSORT" != xBASH; then
9332         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9333 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9334       fi
9335       # Try to locate tool using the code snippet
9336       for ac_prog in sort
9337 do
9338   # Extract the first word of "$ac_prog", so it can be a program name with args.
9339 set dummy $ac_prog; ac_word=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if ${ac_cv_path_SORT+:} false; then :
9343   $as_echo_n "(cached) " >&6
9344 else
9345   case $SORT in
9346   [\\/]* | ?:[\\/]*)
9347   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9348   ;;
9349   *)
9350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9352 do
9353   IFS=$as_save_IFS
9354   test -z "$as_dir" && as_dir=.
9355     for ac_exec_ext in '' $ac_executable_extensions; do
9356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9357     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359     break 2
9360   fi
9361 done
9362   done
9363 IFS=$as_save_IFS
9364 
9365   ;;
9366 esac
9367 fi
9368 SORT=$ac_cv_path_SORT
9369 if test -n "$SORT"; then
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9371 $as_echo "$SORT" >&6; }
9372 else
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9375 fi
9376 
9377 
9378   test -n "$SORT" && break
9379 done
9380 
9381     else
9382       # If it succeeded, then it was overridden by the user. We will use it
9383       # for the tool.
9384 
9385       # First remove it from the list of overridden variables, so we can test
9386       # for unknown variables in the end.
9387       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9388 
9389       # Check if the provided tool contains a complete path.
9390       tool_specified="$SORT"
9391       tool_basename="${tool_specified##*/}"
9392       if test "x$tool_basename" = "x$tool_specified"; then
9393         # A command without a complete path is provided, search $PATH.
9394         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9395 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9396         # Extract the first word of "$tool_basename", so it can be a program name with args.
9397 set dummy $tool_basename; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_path_SORT+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   case $SORT in
9404   [\\/]* | ?:[\\/]*)
9405   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9406   ;;
9407   *)
9408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9410 do
9411   IFS=$as_save_IFS
9412   test -z "$as_dir" && as_dir=.
9413     for ac_exec_ext in '' $ac_executable_extensions; do
9414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417     break 2
9418   fi
9419 done
9420   done
9421 IFS=$as_save_IFS
9422 
9423   ;;
9424 esac
9425 fi
9426 SORT=$ac_cv_path_SORT
9427 if test -n "$SORT"; then
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9429 $as_echo "$SORT" >&6; }
9430 else
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9433 fi
9434 
9435 
9436         if test "x$SORT" = x; then
9437           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9438         fi
9439       else
9440         # Otherwise we believe it is a complete path. Use it as it is.
9441         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9442 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9444 $as_echo_n "checking for SORT... " >&6; }
9445         if test ! -x "$tool_specified"; then
9446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9447 $as_echo "not found" >&6; }
9448           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9449         fi
9450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9451 $as_echo "$tool_specified" >&6; }
9452       fi
9453     fi
9454   fi
9455 
9456 
9457 
9458   if test "x$SORT" = x; then
9459     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9460   fi
9461 
9462 
9463 
9464 
9465 
9466   # Publish this variable in the help.
9467 
9468 
9469   if test "x$TAIL" = x; then
9470     # The variable is not set by user, try to locate tool using the code snippet
9471     for ac_prog in tail
9472 do
9473   # Extract the first word of "$ac_prog", so it can be a program name with args.
9474 set dummy $ac_prog; ac_word=$2
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9476 $as_echo_n "checking for $ac_word... " >&6; }
9477 if ${ac_cv_path_TAIL+:} false; then :
9478   $as_echo_n "(cached) " >&6
9479 else
9480   case $TAIL in
9481   [\\/]* | ?:[\\/]*)
9482   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9483   ;;
9484   *)
9485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9487 do
9488   IFS=$as_save_IFS
9489   test -z "$as_dir" && as_dir=.
9490     for ac_exec_ext in '' $ac_executable_extensions; do
9491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494     break 2
9495   fi
9496 done
9497   done
9498 IFS=$as_save_IFS
9499 
9500   ;;
9501 esac
9502 fi
9503 TAIL=$ac_cv_path_TAIL
9504 if test -n "$TAIL"; then
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9506 $as_echo "$TAIL" >&6; }
9507 else
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9510 fi
9511 
9512 
9513   test -n "$TAIL" && break
9514 done
9515 
9516   else
9517     # The variable is set, but is it from the command line or the environment?
9518 
9519     # Try to remove the string !TAIL! from our list.
9520     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9521     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9522       # If it failed, the variable was not from the command line. Ignore it,
9523       # but warn the user (except for BASH, which is always set by the calling BASH).
9524       if test "xTAIL" != xBASH; then
9525         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9526 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9527       fi
9528       # Try to locate tool using the code snippet
9529       for ac_prog in tail
9530 do
9531   # Extract the first word of "$ac_prog", so it can be a program name with args.
9532 set dummy $ac_prog; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_path_TAIL+:} false; then :
9536   $as_echo_n "(cached) " >&6
9537 else
9538   case $TAIL in
9539   [\\/]* | ?:[\\/]*)
9540   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9541   ;;
9542   *)
9543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9545 do
9546   IFS=$as_save_IFS
9547   test -z "$as_dir" && as_dir=.
9548     for ac_exec_ext in '' $ac_executable_extensions; do
9549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9550     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552     break 2
9553   fi
9554 done
9555   done
9556 IFS=$as_save_IFS
9557 
9558   ;;
9559 esac
9560 fi
9561 TAIL=$ac_cv_path_TAIL
9562 if test -n "$TAIL"; then
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9564 $as_echo "$TAIL" >&6; }
9565 else
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569 
9570 
9571   test -n "$TAIL" && break
9572 done
9573 
9574     else
9575       # If it succeeded, then it was overridden by the user. We will use it
9576       # for the tool.
9577 
9578       # First remove it from the list of overridden variables, so we can test
9579       # for unknown variables in the end.
9580       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9581 
9582       # Check if the provided tool contains a complete path.
9583       tool_specified="$TAIL"
9584       tool_basename="${tool_specified##*/}"
9585       if test "x$tool_basename" = "x$tool_specified"; then
9586         # A command without a complete path is provided, search $PATH.
9587         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9588 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9589         # Extract the first word of "$tool_basename", so it can be a program name with args.
9590 set dummy $tool_basename; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if ${ac_cv_path_TAIL+:} false; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   case $TAIL in
9597   [\\/]* | ?:[\\/]*)
9598   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9599   ;;
9600   *)
9601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604   IFS=$as_save_IFS
9605   test -z "$as_dir" && as_dir=.
9606     for ac_exec_ext in '' $ac_executable_extensions; do
9607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610     break 2
9611   fi
9612 done
9613   done
9614 IFS=$as_save_IFS
9615 
9616   ;;
9617 esac
9618 fi
9619 TAIL=$ac_cv_path_TAIL
9620 if test -n "$TAIL"; then
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9622 $as_echo "$TAIL" >&6; }
9623 else
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9626 fi
9627 
9628 
9629         if test "x$TAIL" = x; then
9630           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9631         fi
9632       else
9633         # Otherwise we believe it is a complete path. Use it as it is.
9634         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9635 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9637 $as_echo_n "checking for TAIL... " >&6; }
9638         if test ! -x "$tool_specified"; then
9639           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9640 $as_echo "not found" >&6; }
9641           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9642         fi
9643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9644 $as_echo "$tool_specified" >&6; }
9645       fi
9646     fi
9647   fi
9648 
9649 
9650 
9651   if test "x$TAIL" = x; then
9652     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9653   fi
9654 
9655 
9656 
9657 
9658 
9659   # Publish this variable in the help.
9660 
9661 
9662   if test "x$TAR" = x; then
9663     # The variable is not set by user, try to locate tool using the code snippet
9664     for ac_prog in tar
9665 do
9666   # Extract the first word of "$ac_prog", so it can be a program name with args.
9667 set dummy $ac_prog; ac_word=$2
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 $as_echo_n "checking for $ac_word... " >&6; }
9670 if ${ac_cv_path_TAR+:} false; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   case $TAR in
9674   [\\/]* | ?:[\\/]*)
9675   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9676   ;;
9677   *)
9678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9680 do
9681   IFS=$as_save_IFS
9682   test -z "$as_dir" && as_dir=.
9683     for ac_exec_ext in '' $ac_executable_extensions; do
9684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9685     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687     break 2
9688   fi
9689 done
9690   done
9691 IFS=$as_save_IFS
9692 
9693   ;;
9694 esac
9695 fi
9696 TAR=$ac_cv_path_TAR
9697 if test -n "$TAR"; then
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9699 $as_echo "$TAR" >&6; }
9700 else
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9703 fi
9704 
9705 
9706   test -n "$TAR" && break
9707 done
9708 
9709   else
9710     # The variable is set, but is it from the command line or the environment?
9711 
9712     # Try to remove the string !TAR! from our list.
9713     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9714     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9715       # If it failed, the variable was not from the command line. Ignore it,
9716       # but warn the user (except for BASH, which is always set by the calling BASH).
9717       if test "xTAR" != xBASH; then
9718         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9719 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9720       fi
9721       # Try to locate tool using the code snippet
9722       for ac_prog in tar
9723 do
9724   # Extract the first word of "$ac_prog", so it can be a program name with args.
9725 set dummy $ac_prog; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if ${ac_cv_path_TAR+:} false; then :
9729   $as_echo_n "(cached) " >&6
9730 else
9731   case $TAR in
9732   [\\/]* | ?:[\\/]*)
9733   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9734   ;;
9735   *)
9736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9738 do
9739   IFS=$as_save_IFS
9740   test -z "$as_dir" && as_dir=.
9741     for ac_exec_ext in '' $ac_executable_extensions; do
9742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745     break 2
9746   fi
9747 done
9748   done
9749 IFS=$as_save_IFS
9750 
9751   ;;
9752 esac
9753 fi
9754 TAR=$ac_cv_path_TAR
9755 if test -n "$TAR"; then
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9757 $as_echo "$TAR" >&6; }
9758 else
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9761 fi
9762 
9763 
9764   test -n "$TAR" && break
9765 done
9766 
9767     else
9768       # If it succeeded, then it was overridden by the user. We will use it
9769       # for the tool.
9770 
9771       # First remove it from the list of overridden variables, so we can test
9772       # for unknown variables in the end.
9773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9774 
9775       # Check if the provided tool contains a complete path.
9776       tool_specified="$TAR"
9777       tool_basename="${tool_specified##*/}"
9778       if test "x$tool_basename" = "x$tool_specified"; then
9779         # A command without a complete path is provided, search $PATH.
9780         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9781 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9782         # Extract the first word of "$tool_basename", so it can be a program name with args.
9783 set dummy $tool_basename; ac_word=$2
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9785 $as_echo_n "checking for $ac_word... " >&6; }
9786 if ${ac_cv_path_TAR+:} false; then :
9787   $as_echo_n "(cached) " >&6
9788 else
9789   case $TAR in
9790   [\\/]* | ?:[\\/]*)
9791   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9792   ;;
9793   *)
9794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9796 do
9797   IFS=$as_save_IFS
9798   test -z "$as_dir" && as_dir=.
9799     for ac_exec_ext in '' $ac_executable_extensions; do
9800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9801     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803     break 2
9804   fi
9805 done
9806   done
9807 IFS=$as_save_IFS
9808 
9809   ;;
9810 esac
9811 fi
9812 TAR=$ac_cv_path_TAR
9813 if test -n "$TAR"; then
9814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9815 $as_echo "$TAR" >&6; }
9816 else
9817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818 $as_echo "no" >&6; }
9819 fi
9820 
9821 
9822         if test "x$TAR" = x; then
9823           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9824         fi
9825       else
9826         # Otherwise we believe it is a complete path. Use it as it is.
9827         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9828 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9830 $as_echo_n "checking for TAR... " >&6; }
9831         if test ! -x "$tool_specified"; then
9832           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9833 $as_echo "not found" >&6; }
9834           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9835         fi
9836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9837 $as_echo "$tool_specified" >&6; }
9838       fi
9839     fi
9840   fi
9841 
9842 
9843 
9844   if test "x$TAR" = x; then
9845     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9846   fi
9847 
9848 
9849 
9850 
9851 
9852   # Publish this variable in the help.
9853 
9854 
9855   if test "x$TEE" = x; then
9856     # The variable is not set by user, try to locate tool using the code snippet
9857     for ac_prog in tee
9858 do
9859   # Extract the first word of "$ac_prog", so it can be a program name with args.
9860 set dummy $ac_prog; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_path_TEE+:} false; then :
9864   $as_echo_n "(cached) " >&6
9865 else
9866   case $TEE in
9867   [\\/]* | ?:[\\/]*)
9868   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9869   ;;
9870   *)
9871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874   IFS=$as_save_IFS
9875   test -z "$as_dir" && as_dir=.
9876     for ac_exec_ext in '' $ac_executable_extensions; do
9877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880     break 2
9881   fi
9882 done
9883   done
9884 IFS=$as_save_IFS
9885 
9886   ;;
9887 esac
9888 fi
9889 TEE=$ac_cv_path_TEE
9890 if test -n "$TEE"; then
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9892 $as_echo "$TEE" >&6; }
9893 else
9894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9896 fi
9897 
9898 
9899   test -n "$TEE" && break
9900 done
9901 
9902   else
9903     # The variable is set, but is it from the command line or the environment?
9904 
9905     # Try to remove the string !TEE! from our list.
9906     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9907     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9908       # If it failed, the variable was not from the command line. Ignore it,
9909       # but warn the user (except for BASH, which is always set by the calling BASH).
9910       if test "xTEE" != xBASH; then
9911         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9912 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9913       fi
9914       # Try to locate tool using the code snippet
9915       for ac_prog in tee
9916 do
9917   # Extract the first word of "$ac_prog", so it can be a program name with args.
9918 set dummy $ac_prog; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_path_TEE+:} false; then :
9922   $as_echo_n "(cached) " >&6
9923 else
9924   case $TEE in
9925   [\\/]* | ?:[\\/]*)
9926   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9927   ;;
9928   *)
9929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9931 do
9932   IFS=$as_save_IFS
9933   test -z "$as_dir" && as_dir=.
9934     for ac_exec_ext in '' $ac_executable_extensions; do
9935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938     break 2
9939   fi
9940 done
9941   done
9942 IFS=$as_save_IFS
9943 
9944   ;;
9945 esac
9946 fi
9947 TEE=$ac_cv_path_TEE
9948 if test -n "$TEE"; then
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9950 $as_echo "$TEE" >&6; }
9951 else
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9954 fi
9955 
9956 
9957   test -n "$TEE" && break
9958 done
9959 
9960     else
9961       # If it succeeded, then it was overridden by the user. We will use it
9962       # for the tool.
9963 
9964       # First remove it from the list of overridden variables, so we can test
9965       # for unknown variables in the end.
9966       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9967 
9968       # Check if the provided tool contains a complete path.
9969       tool_specified="$TEE"
9970       tool_basename="${tool_specified##*/}"
9971       if test "x$tool_basename" = "x$tool_specified"; then
9972         # A command without a complete path is provided, search $PATH.
9973         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9974 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9975         # Extract the first word of "$tool_basename", so it can be a program name with args.
9976 set dummy $tool_basename; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_path_TEE+:} false; then :
9980   $as_echo_n "(cached) " >&6
9981 else
9982   case $TEE in
9983   [\\/]* | ?:[\\/]*)
9984   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9985   ;;
9986   *)
9987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9989 do
9990   IFS=$as_save_IFS
9991   test -z "$as_dir" && as_dir=.
9992     for ac_exec_ext in '' $ac_executable_extensions; do
9993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996     break 2
9997   fi
9998 done
9999   done
10000 IFS=$as_save_IFS
10001 
10002   ;;
10003 esac
10004 fi
10005 TEE=$ac_cv_path_TEE
10006 if test -n "$TEE"; then
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10008 $as_echo "$TEE" >&6; }
10009 else
10010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10012 fi
10013 
10014 
10015         if test "x$TEE" = x; then
10016           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10017         fi
10018       else
10019         # Otherwise we believe it is a complete path. Use it as it is.
10020         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10021 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10023 $as_echo_n "checking for TEE... " >&6; }
10024         if test ! -x "$tool_specified"; then
10025           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10026 $as_echo "not found" >&6; }
10027           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10028         fi
10029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10030 $as_echo "$tool_specified" >&6; }
10031       fi
10032     fi
10033   fi
10034 
10035 
10036 
10037   if test "x$TEE" = x; then
10038     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10039   fi
10040 
10041 
10042 
10043 
10044 
10045   # Publish this variable in the help.
10046 
10047 
10048   if test "x$TOUCH" = x; then
10049     # The variable is not set by user, try to locate tool using the code snippet
10050     for ac_prog in touch
10051 do
10052   # Extract the first word of "$ac_prog", so it can be a program name with args.
10053 set dummy $ac_prog; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if ${ac_cv_path_TOUCH+:} false; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059   case $TOUCH in
10060   [\\/]* | ?:[\\/]*)
10061   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10062   ;;
10063   *)
10064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067   IFS=$as_save_IFS
10068   test -z "$as_dir" && as_dir=.
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073     break 2
10074   fi
10075 done
10076   done
10077 IFS=$as_save_IFS
10078 
10079   ;;
10080 esac
10081 fi
10082 TOUCH=$ac_cv_path_TOUCH
10083 if test -n "$TOUCH"; then
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10085 $as_echo "$TOUCH" >&6; }
10086 else
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090 
10091 
10092   test -n "$TOUCH" && break
10093 done
10094 
10095   else
10096     # The variable is set, but is it from the command line or the environment?
10097 
10098     # Try to remove the string !TOUCH! from our list.
10099     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10100     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10101       # If it failed, the variable was not from the command line. Ignore it,
10102       # but warn the user (except for BASH, which is always set by the calling BASH).
10103       if test "xTOUCH" != xBASH; then
10104         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10105 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10106       fi
10107       # Try to locate tool using the code snippet
10108       for ac_prog in touch
10109 do
10110   # Extract the first word of "$ac_prog", so it can be a program name with args.
10111 set dummy $ac_prog; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if ${ac_cv_path_TOUCH+:} false; then :
10115   $as_echo_n "(cached) " >&6
10116 else
10117   case $TOUCH in
10118   [\\/]* | ?:[\\/]*)
10119   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10120   ;;
10121   *)
10122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10124 do
10125   IFS=$as_save_IFS
10126   test -z "$as_dir" && as_dir=.
10127     for ac_exec_ext in '' $ac_executable_extensions; do
10128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10129     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131     break 2
10132   fi
10133 done
10134   done
10135 IFS=$as_save_IFS
10136 
10137   ;;
10138 esac
10139 fi
10140 TOUCH=$ac_cv_path_TOUCH
10141 if test -n "$TOUCH"; then
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10143 $as_echo "$TOUCH" >&6; }
10144 else
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10147 fi
10148 
10149 
10150   test -n "$TOUCH" && break
10151 done
10152 
10153     else
10154       # If it succeeded, then it was overridden by the user. We will use it
10155       # for the tool.
10156 
10157       # First remove it from the list of overridden variables, so we can test
10158       # for unknown variables in the end.
10159       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10160 
10161       # Check if the provided tool contains a complete path.
10162       tool_specified="$TOUCH"
10163       tool_basename="${tool_specified##*/}"
10164       if test "x$tool_basename" = "x$tool_specified"; then
10165         # A command without a complete path is provided, search $PATH.
10166         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10167 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10168         # Extract the first word of "$tool_basename", so it can be a program name with args.
10169 set dummy $tool_basename; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_path_TOUCH+:} false; then :
10173   $as_echo_n "(cached) " >&6
10174 else
10175   case $TOUCH in
10176   [\\/]* | ?:[\\/]*)
10177   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10178   ;;
10179   *)
10180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183   IFS=$as_save_IFS
10184   test -z "$as_dir" && as_dir=.
10185     for ac_exec_ext in '' $ac_executable_extensions; do
10186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10187     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189     break 2
10190   fi
10191 done
10192   done
10193 IFS=$as_save_IFS
10194 
10195   ;;
10196 esac
10197 fi
10198 TOUCH=$ac_cv_path_TOUCH
10199 if test -n "$TOUCH"; then
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10201 $as_echo "$TOUCH" >&6; }
10202 else
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10205 fi
10206 
10207 
10208         if test "x$TOUCH" = x; then
10209           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10210         fi
10211       else
10212         # Otherwise we believe it is a complete path. Use it as it is.
10213         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10214 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10215         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10216 $as_echo_n "checking for TOUCH... " >&6; }
10217         if test ! -x "$tool_specified"; then
10218           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10219 $as_echo "not found" >&6; }
10220           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10221         fi
10222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10223 $as_echo "$tool_specified" >&6; }
10224       fi
10225     fi
10226   fi
10227 
10228 
10229 
10230   if test "x$TOUCH" = x; then
10231     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10232   fi
10233 
10234 
10235 
10236 
10237 
10238   # Publish this variable in the help.
10239 
10240 
10241   if test "x$TR" = x; then
10242     # The variable is not set by user, try to locate tool using the code snippet
10243     for ac_prog in tr
10244 do
10245   # Extract the first word of "$ac_prog", so it can be a program name with args.
10246 set dummy $ac_prog; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if ${ac_cv_path_TR+:} false; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   case $TR in
10253   [\\/]* | ?:[\\/]*)
10254   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10255   ;;
10256   *)
10257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262     for ac_exec_ext in '' $ac_executable_extensions; do
10263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10264     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269   done
10270 IFS=$as_save_IFS
10271 
10272   ;;
10273 esac
10274 fi
10275 TR=$ac_cv_path_TR
10276 if test -n "$TR"; then
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10278 $as_echo "$TR" >&6; }
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283 
10284 
10285   test -n "$TR" && break
10286 done
10287 
10288   else
10289     # The variable is set, but is it from the command line or the environment?
10290 
10291     # Try to remove the string !TR! from our list.
10292     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10293     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10294       # If it failed, the variable was not from the command line. Ignore it,
10295       # but warn the user (except for BASH, which is always set by the calling BASH).
10296       if test "xTR" != xBASH; then
10297         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10298 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10299       fi
10300       # Try to locate tool using the code snippet
10301       for ac_prog in tr
10302 do
10303   # Extract the first word of "$ac_prog", so it can be a program name with args.
10304 set dummy $ac_prog; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if ${ac_cv_path_TR+:} false; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   case $TR in
10311   [\\/]* | ?:[\\/]*)
10312   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10313   ;;
10314   *)
10315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316 for as_dir in $PATH
10317 do
10318   IFS=$as_save_IFS
10319   test -z "$as_dir" && as_dir=.
10320     for ac_exec_ext in '' $ac_executable_extensions; do
10321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10322     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324     break 2
10325   fi
10326 done
10327   done
10328 IFS=$as_save_IFS
10329 
10330   ;;
10331 esac
10332 fi
10333 TR=$ac_cv_path_TR
10334 if test -n "$TR"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10336 $as_echo "$TR" >&6; }
10337 else
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341 
10342 
10343   test -n "$TR" && break
10344 done
10345 
10346     else
10347       # If it succeeded, then it was overridden by the user. We will use it
10348       # for the tool.
10349 
10350       # First remove it from the list of overridden variables, so we can test
10351       # for unknown variables in the end.
10352       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10353 
10354       # Check if the provided tool contains a complete path.
10355       tool_specified="$TR"
10356       tool_basename="${tool_specified##*/}"
10357       if test "x$tool_basename" = "x$tool_specified"; then
10358         # A command without a complete path is provided, search $PATH.
10359         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10360 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10361         # Extract the first word of "$tool_basename", so it can be a program name with args.
10362 set dummy $tool_basename; ac_word=$2
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10364 $as_echo_n "checking for $ac_word... " >&6; }
10365 if ${ac_cv_path_TR+:} false; then :
10366   $as_echo_n "(cached) " >&6
10367 else
10368   case $TR in
10369   [\\/]* | ?:[\\/]*)
10370   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10371   ;;
10372   *)
10373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH
10375 do
10376   IFS=$as_save_IFS
10377   test -z "$as_dir" && as_dir=.
10378     for ac_exec_ext in '' $ac_executable_extensions; do
10379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382     break 2
10383   fi
10384 done
10385   done
10386 IFS=$as_save_IFS
10387 
10388   ;;
10389 esac
10390 fi
10391 TR=$ac_cv_path_TR
10392 if test -n "$TR"; then
10393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10394 $as_echo "$TR" >&6; }
10395 else
10396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 fi
10399 
10400 
10401         if test "x$TR" = x; then
10402           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10403         fi
10404       else
10405         # Otherwise we believe it is a complete path. Use it as it is.
10406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10407 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10409 $as_echo_n "checking for TR... " >&6; }
10410         if test ! -x "$tool_specified"; then
10411           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10412 $as_echo "not found" >&6; }
10413           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10414         fi
10415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10416 $as_echo "$tool_specified" >&6; }
10417       fi
10418     fi
10419   fi
10420 
10421 
10422 
10423   if test "x$TR" = x; then
10424     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10425   fi
10426 
10427 
10428 
10429 
10430 
10431   # Publish this variable in the help.
10432 
10433 
10434   if test "x$UNAME" = x; then
10435     # The variable is not set by user, try to locate tool using the code snippet
10436     for ac_prog in uname
10437 do
10438   # Extract the first word of "$ac_prog", so it can be a program name with args.
10439 set dummy $ac_prog; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_path_UNAME+:} false; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445   case $UNAME in
10446   [\\/]* | ?:[\\/]*)
10447   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10448   ;;
10449   *)
10450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453   IFS=$as_save_IFS
10454   test -z "$as_dir" && as_dir=.
10455     for ac_exec_ext in '' $ac_executable_extensions; do
10456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10457     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459     break 2
10460   fi
10461 done
10462   done
10463 IFS=$as_save_IFS
10464 
10465   ;;
10466 esac
10467 fi
10468 UNAME=$ac_cv_path_UNAME
10469 if test -n "$UNAME"; then
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10471 $as_echo "$UNAME" >&6; }
10472 else
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10475 fi
10476 
10477 
10478   test -n "$UNAME" && break
10479 done
10480 
10481   else
10482     # The variable is set, but is it from the command line or the environment?
10483 
10484     # Try to remove the string !UNAME! from our list.
10485     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10486     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10487       # If it failed, the variable was not from the command line. Ignore it,
10488       # but warn the user (except for BASH, which is always set by the calling BASH).
10489       if test "xUNAME" != xBASH; then
10490         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10491 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10492       fi
10493       # Try to locate tool using the code snippet
10494       for ac_prog in uname
10495 do
10496   # Extract the first word of "$ac_prog", so it can be a program name with args.
10497 set dummy $ac_prog; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_path_UNAME+:} false; then :
10501   $as_echo_n "(cached) " >&6
10502 else
10503   case $UNAME in
10504   [\\/]* | ?:[\\/]*)
10505   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10506   ;;
10507   *)
10508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10510 do
10511   IFS=$as_save_IFS
10512   test -z "$as_dir" && as_dir=.
10513     for ac_exec_ext in '' $ac_executable_extensions; do
10514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517     break 2
10518   fi
10519 done
10520   done
10521 IFS=$as_save_IFS
10522 
10523   ;;
10524 esac
10525 fi
10526 UNAME=$ac_cv_path_UNAME
10527 if test -n "$UNAME"; then
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10529 $as_echo "$UNAME" >&6; }
10530 else
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 fi
10534 
10535 
10536   test -n "$UNAME" && break
10537 done
10538 
10539     else
10540       # If it succeeded, then it was overridden by the user. We will use it
10541       # for the tool.
10542 
10543       # First remove it from the list of overridden variables, so we can test
10544       # for unknown variables in the end.
10545       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10546 
10547       # Check if the provided tool contains a complete path.
10548       tool_specified="$UNAME"
10549       tool_basename="${tool_specified##*/}"
10550       if test "x$tool_basename" = "x$tool_specified"; then
10551         # A command without a complete path is provided, search $PATH.
10552         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10553 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10554         # Extract the first word of "$tool_basename", so it can be a program name with args.
10555 set dummy $tool_basename; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if ${ac_cv_path_UNAME+:} false; then :
10559   $as_echo_n "(cached) " >&6
10560 else
10561   case $UNAME in
10562   [\\/]* | ?:[\\/]*)
10563   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10564   ;;
10565   *)
10566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10568 do
10569   IFS=$as_save_IFS
10570   test -z "$as_dir" && as_dir=.
10571     for ac_exec_ext in '' $ac_executable_extensions; do
10572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575     break 2
10576   fi
10577 done
10578   done
10579 IFS=$as_save_IFS
10580 
10581   ;;
10582 esac
10583 fi
10584 UNAME=$ac_cv_path_UNAME
10585 if test -n "$UNAME"; then
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10587 $as_echo "$UNAME" >&6; }
10588 else
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 $as_echo "no" >&6; }
10591 fi
10592 
10593 
10594         if test "x$UNAME" = x; then
10595           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10596         fi
10597       else
10598         # Otherwise we believe it is a complete path. Use it as it is.
10599         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10600 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10602 $as_echo_n "checking for UNAME... " >&6; }
10603         if test ! -x "$tool_specified"; then
10604           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10605 $as_echo "not found" >&6; }
10606           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10607         fi
10608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10609 $as_echo "$tool_specified" >&6; }
10610       fi
10611     fi
10612   fi
10613 
10614 
10615 
10616   if test "x$UNAME" = x; then
10617     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10618   fi
10619 
10620 
10621 
10622 
10623 
10624   # Publish this variable in the help.
10625 
10626 
10627   if test "x$UNIQ" = x; then
10628     # The variable is not set by user, try to locate tool using the code snippet
10629     for ac_prog in uniq
10630 do
10631   # Extract the first word of "$ac_prog", so it can be a program name with args.
10632 set dummy $ac_prog; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_path_UNIQ+:} false; then :
10636   $as_echo_n "(cached) " >&6
10637 else
10638   case $UNIQ in
10639   [\\/]* | ?:[\\/]*)
10640   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10641   ;;
10642   *)
10643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10645 do
10646   IFS=$as_save_IFS
10647   test -z "$as_dir" && as_dir=.
10648     for ac_exec_ext in '' $ac_executable_extensions; do
10649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652     break 2
10653   fi
10654 done
10655   done
10656 IFS=$as_save_IFS
10657 
10658   ;;
10659 esac
10660 fi
10661 UNIQ=$ac_cv_path_UNIQ
10662 if test -n "$UNIQ"; then
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10664 $as_echo "$UNIQ" >&6; }
10665 else
10666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 fi
10669 
10670 
10671   test -n "$UNIQ" && break
10672 done
10673 
10674   else
10675     # The variable is set, but is it from the command line or the environment?
10676 
10677     # Try to remove the string !UNIQ! from our list.
10678     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10679     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10680       # If it failed, the variable was not from the command line. Ignore it,
10681       # but warn the user (except for BASH, which is always set by the calling BASH).
10682       if test "xUNIQ" != xBASH; then
10683         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10684 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10685       fi
10686       # Try to locate tool using the code snippet
10687       for ac_prog in uniq
10688 do
10689   # Extract the first word of "$ac_prog", so it can be a program name with args.
10690 set dummy $ac_prog; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_path_UNIQ+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   case $UNIQ in
10697   [\\/]* | ?:[\\/]*)
10698   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10699   ;;
10700   *)
10701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715 
10716   ;;
10717 esac
10718 fi
10719 UNIQ=$ac_cv_path_UNIQ
10720 if test -n "$UNIQ"; then
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10722 $as_echo "$UNIQ" >&6; }
10723 else
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727 
10728 
10729   test -n "$UNIQ" && break
10730 done
10731 
10732     else
10733       # If it succeeded, then it was overridden by the user. We will use it
10734       # for the tool.
10735 
10736       # First remove it from the list of overridden variables, so we can test
10737       # for unknown variables in the end.
10738       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10739 
10740       # Check if the provided tool contains a complete path.
10741       tool_specified="$UNIQ"
10742       tool_basename="${tool_specified##*/}"
10743       if test "x$tool_basename" = "x$tool_specified"; then
10744         # A command without a complete path is provided, search $PATH.
10745         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10746 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10747         # Extract the first word of "$tool_basename", so it can be a program name with args.
10748 set dummy $tool_basename; ac_word=$2
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750 $as_echo_n "checking for $ac_word... " >&6; }
10751 if ${ac_cv_path_UNIQ+:} false; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   case $UNIQ in
10755   [\\/]* | ?:[\\/]*)
10756   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10757   ;;
10758   *)
10759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10761 do
10762   IFS=$as_save_IFS
10763   test -z "$as_dir" && as_dir=.
10764     for ac_exec_ext in '' $ac_executable_extensions; do
10765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768     break 2
10769   fi
10770 done
10771   done
10772 IFS=$as_save_IFS
10773 
10774   ;;
10775 esac
10776 fi
10777 UNIQ=$ac_cv_path_UNIQ
10778 if test -n "$UNIQ"; then
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10780 $as_echo "$UNIQ" >&6; }
10781 else
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785 
10786 
10787         if test "x$UNIQ" = x; then
10788           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10789         fi
10790       else
10791         # Otherwise we believe it is a complete path. Use it as it is.
10792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10793 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10795 $as_echo_n "checking for UNIQ... " >&6; }
10796         if test ! -x "$tool_specified"; then
10797           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10798 $as_echo "not found" >&6; }
10799           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10800         fi
10801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10802 $as_echo "$tool_specified" >&6; }
10803       fi
10804     fi
10805   fi
10806 
10807 
10808 
10809   if test "x$UNIQ" = x; then
10810     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10811   fi
10812 
10813 
10814 
10815 
10816 
10817   # Publish this variable in the help.
10818 
10819 
10820   if test "x$WC" = x; then
10821     # The variable is not set by user, try to locate tool using the code snippet
10822     for ac_prog in wc
10823 do
10824   # Extract the first word of "$ac_prog", so it can be a program name with args.
10825 set dummy $ac_prog; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if ${ac_cv_path_WC+:} false; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   case $WC in
10832   [\\/]* | ?:[\\/]*)
10833   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10834   ;;
10835   *)
10836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839   IFS=$as_save_IFS
10840   test -z "$as_dir" && as_dir=.
10841     for ac_exec_ext in '' $ac_executable_extensions; do
10842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845     break 2
10846   fi
10847 done
10848   done
10849 IFS=$as_save_IFS
10850 
10851   ;;
10852 esac
10853 fi
10854 WC=$ac_cv_path_WC
10855 if test -n "$WC"; then
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10857 $as_echo "$WC" >&6; }
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 fi
10862 
10863 
10864   test -n "$WC" && break
10865 done
10866 
10867   else
10868     # The variable is set, but is it from the command line or the environment?
10869 
10870     # Try to remove the string !WC! from our list.
10871     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10872     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10873       # If it failed, the variable was not from the command line. Ignore it,
10874       # but warn the user (except for BASH, which is always set by the calling BASH).
10875       if test "xWC" != xBASH; then
10876         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10877 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10878       fi
10879       # Try to locate tool using the code snippet
10880       for ac_prog in wc
10881 do
10882   # Extract the first word of "$ac_prog", so it can be a program name with args.
10883 set dummy $ac_prog; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_path_WC+:} false; then :
10887   $as_echo_n "(cached) " >&6
10888 else
10889   case $WC in
10890   [\\/]* | ?:[\\/]*)
10891   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10892   ;;
10893   *)
10894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10896 do
10897   IFS=$as_save_IFS
10898   test -z "$as_dir" && as_dir=.
10899     for ac_exec_ext in '' $ac_executable_extensions; do
10900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903     break 2
10904   fi
10905 done
10906   done
10907 IFS=$as_save_IFS
10908 
10909   ;;
10910 esac
10911 fi
10912 WC=$ac_cv_path_WC
10913 if test -n "$WC"; then
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10915 $as_echo "$WC" >&6; }
10916 else
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 fi
10920 
10921 
10922   test -n "$WC" && break
10923 done
10924 
10925     else
10926       # If it succeeded, then it was overridden by the user. We will use it
10927       # for the tool.
10928 
10929       # First remove it from the list of overridden variables, so we can test
10930       # for unknown variables in the end.
10931       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10932 
10933       # Check if the provided tool contains a complete path.
10934       tool_specified="$WC"
10935       tool_basename="${tool_specified##*/}"
10936       if test "x$tool_basename" = "x$tool_specified"; then
10937         # A command without a complete path is provided, search $PATH.
10938         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10939 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10940         # Extract the first word of "$tool_basename", so it can be a program name with args.
10941 set dummy $tool_basename; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 $as_echo_n "checking for $ac_word... " >&6; }
10944 if ${ac_cv_path_WC+:} false; then :
10945   $as_echo_n "(cached) " >&6
10946 else
10947   case $WC in
10948   [\\/]* | ?:[\\/]*)
10949   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10950   ;;
10951   *)
10952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10954 do
10955   IFS=$as_save_IFS
10956   test -z "$as_dir" && as_dir=.
10957     for ac_exec_ext in '' $ac_executable_extensions; do
10958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961     break 2
10962   fi
10963 done
10964   done
10965 IFS=$as_save_IFS
10966 
10967   ;;
10968 esac
10969 fi
10970 WC=$ac_cv_path_WC
10971 if test -n "$WC"; then
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10973 $as_echo "$WC" >&6; }
10974 else
10975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10977 fi
10978 
10979 
10980         if test "x$WC" = x; then
10981           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10982         fi
10983       else
10984         # Otherwise we believe it is a complete path. Use it as it is.
10985         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10986 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10988 $as_echo_n "checking for WC... " >&6; }
10989         if test ! -x "$tool_specified"; then
10990           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10991 $as_echo "not found" >&6; }
10992           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10993         fi
10994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10995 $as_echo "$tool_specified" >&6; }
10996       fi
10997     fi
10998   fi
10999 
11000 
11001 
11002   if test "x$WC" = x; then
11003     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11004   fi
11005 
11006 
11007 
11008 
11009 
11010   # Publish this variable in the help.
11011 
11012 
11013   if test "x$WHICH" = x; then
11014     # The variable is not set by user, try to locate tool using the code snippet
11015     for ac_prog in which
11016 do
11017   # Extract the first word of "$ac_prog", so it can be a program name with args.
11018 set dummy $ac_prog; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020 $as_echo_n "checking for $ac_word... " >&6; }
11021 if ${ac_cv_path_WHICH+:} false; then :
11022   $as_echo_n "(cached) " >&6
11023 else
11024   case $WHICH in
11025   [\\/]* | ?:[\\/]*)
11026   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11027   ;;
11028   *)
11029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032   IFS=$as_save_IFS
11033   test -z "$as_dir" && as_dir=.
11034     for ac_exec_ext in '' $ac_executable_extensions; do
11035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038     break 2
11039   fi
11040 done
11041   done
11042 IFS=$as_save_IFS
11043 
11044   ;;
11045 esac
11046 fi
11047 WHICH=$ac_cv_path_WHICH
11048 if test -n "$WHICH"; then
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11050 $as_echo "$WHICH" >&6; }
11051 else
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 fi
11055 
11056 
11057   test -n "$WHICH" && break
11058 done
11059 
11060   else
11061     # The variable is set, but is it from the command line or the environment?
11062 
11063     # Try to remove the string !WHICH! from our list.
11064     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11065     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11066       # If it failed, the variable was not from the command line. Ignore it,
11067       # but warn the user (except for BASH, which is always set by the calling BASH).
11068       if test "xWHICH" != xBASH; then
11069         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11070 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11071       fi
11072       # Try to locate tool using the code snippet
11073       for ac_prog in which
11074 do
11075   # Extract the first word of "$ac_prog", so it can be a program name with args.
11076 set dummy $ac_prog; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if ${ac_cv_path_WHICH+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   case $WHICH in
11083   [\\/]* | ?:[\\/]*)
11084   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11085   ;;
11086   *)
11087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088 for as_dir in $PATH
11089 do
11090   IFS=$as_save_IFS
11091   test -z "$as_dir" && as_dir=.
11092     for ac_exec_ext in '' $ac_executable_extensions; do
11093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11094     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096     break 2
11097   fi
11098 done
11099   done
11100 IFS=$as_save_IFS
11101 
11102   ;;
11103 esac
11104 fi
11105 WHICH=$ac_cv_path_WHICH
11106 if test -n "$WHICH"; then
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11108 $as_echo "$WHICH" >&6; }
11109 else
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11112 fi
11113 
11114 
11115   test -n "$WHICH" && break
11116 done
11117 
11118     else
11119       # If it succeeded, then it was overridden by the user. We will use it
11120       # for the tool.
11121 
11122       # First remove it from the list of overridden variables, so we can test
11123       # for unknown variables in the end.
11124       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11125 
11126       # Check if the provided tool contains a complete path.
11127       tool_specified="$WHICH"
11128       tool_basename="${tool_specified##*/}"
11129       if test "x$tool_basename" = "x$tool_specified"; then
11130         # A command without a complete path is provided, search $PATH.
11131         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11132 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11133         # Extract the first word of "$tool_basename", so it can be a program name with args.
11134 set dummy $tool_basename; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_path_WHICH+:} false; then :
11138   $as_echo_n "(cached) " >&6
11139 else
11140   case $WHICH in
11141   [\\/]* | ?:[\\/]*)
11142   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11143   ;;
11144   *)
11145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11147 do
11148   IFS=$as_save_IFS
11149   test -z "$as_dir" && as_dir=.
11150     for ac_exec_ext in '' $ac_executable_extensions; do
11151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154     break 2
11155   fi
11156 done
11157   done
11158 IFS=$as_save_IFS
11159 
11160   ;;
11161 esac
11162 fi
11163 WHICH=$ac_cv_path_WHICH
11164 if test -n "$WHICH"; then
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11166 $as_echo "$WHICH" >&6; }
11167 else
11168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171 
11172 
11173         if test "x$WHICH" = x; then
11174           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11175         fi
11176       else
11177         # Otherwise we believe it is a complete path. Use it as it is.
11178         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11179 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11181 $as_echo_n "checking for WHICH... " >&6; }
11182         if test ! -x "$tool_specified"; then
11183           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11184 $as_echo "not found" >&6; }
11185           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11186         fi
11187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11188 $as_echo "$tool_specified" >&6; }
11189       fi
11190     fi
11191   fi
11192 
11193 
11194 
11195   if test "x$WHICH" = x; then
11196     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11197   fi
11198 
11199 
11200 
11201 
11202 
11203   # Publish this variable in the help.
11204 
11205 
11206   if test "x$XARGS" = x; then
11207     # The variable is not set by user, try to locate tool using the code snippet
11208     for ac_prog in xargs
11209 do
11210   # Extract the first word of "$ac_prog", so it can be a program name with args.
11211 set dummy $ac_prog; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_path_XARGS+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   case $XARGS in
11218   [\\/]* | ?:[\\/]*)
11219   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11220   ;;
11221   *)
11222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11224 do
11225   IFS=$as_save_IFS
11226   test -z "$as_dir" && as_dir=.
11227     for ac_exec_ext in '' $ac_executable_extensions; do
11228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231     break 2
11232   fi
11233 done
11234   done
11235 IFS=$as_save_IFS
11236 
11237   ;;
11238 esac
11239 fi
11240 XARGS=$ac_cv_path_XARGS
11241 if test -n "$XARGS"; then
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11243 $as_echo "$XARGS" >&6; }
11244 else
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248 
11249 
11250   test -n "$XARGS" && break
11251 done
11252 
11253   else
11254     # The variable is set, but is it from the command line or the environment?
11255 
11256     # Try to remove the string !XARGS! from our list.
11257     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11258     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11259       # If it failed, the variable was not from the command line. Ignore it,
11260       # but warn the user (except for BASH, which is always set by the calling BASH).
11261       if test "xXARGS" != xBASH; then
11262         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11263 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11264       fi
11265       # Try to locate tool using the code snippet
11266       for ac_prog in xargs
11267 do
11268   # Extract the first word of "$ac_prog", so it can be a program name with args.
11269 set dummy $ac_prog; ac_word=$2
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11271 $as_echo_n "checking for $ac_word... " >&6; }
11272 if ${ac_cv_path_XARGS+:} false; then :
11273   $as_echo_n "(cached) " >&6
11274 else
11275   case $XARGS in
11276   [\\/]* | ?:[\\/]*)
11277   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11278   ;;
11279   *)
11280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281 for as_dir in $PATH
11282 do
11283   IFS=$as_save_IFS
11284   test -z "$as_dir" && as_dir=.
11285     for ac_exec_ext in '' $ac_executable_extensions; do
11286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11287     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11289     break 2
11290   fi
11291 done
11292   done
11293 IFS=$as_save_IFS
11294 
11295   ;;
11296 esac
11297 fi
11298 XARGS=$ac_cv_path_XARGS
11299 if test -n "$XARGS"; then
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11301 $as_echo "$XARGS" >&6; }
11302 else
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; }
11305 fi
11306 
11307 
11308   test -n "$XARGS" && break
11309 done
11310 
11311     else
11312       # If it succeeded, then it was overridden by the user. We will use it
11313       # for the tool.
11314 
11315       # First remove it from the list of overridden variables, so we can test
11316       # for unknown variables in the end.
11317       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11318 
11319       # Check if the provided tool contains a complete path.
11320       tool_specified="$XARGS"
11321       tool_basename="${tool_specified##*/}"
11322       if test "x$tool_basename" = "x$tool_specified"; then
11323         # A command without a complete path is provided, search $PATH.
11324         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11325 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11326         # Extract the first word of "$tool_basename", so it can be a program name with args.
11327 set dummy $tool_basename; ac_word=$2
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329 $as_echo_n "checking for $ac_word... " >&6; }
11330 if ${ac_cv_path_XARGS+:} false; then :
11331   $as_echo_n "(cached) " >&6
11332 else
11333   case $XARGS in
11334   [\\/]* | ?:[\\/]*)
11335   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11336   ;;
11337   *)
11338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 for as_dir in $PATH
11340 do
11341   IFS=$as_save_IFS
11342   test -z "$as_dir" && as_dir=.
11343     for ac_exec_ext in '' $ac_executable_extensions; do
11344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11345     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11347     break 2
11348   fi
11349 done
11350   done
11351 IFS=$as_save_IFS
11352 
11353   ;;
11354 esac
11355 fi
11356 XARGS=$ac_cv_path_XARGS
11357 if test -n "$XARGS"; then
11358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11359 $as_echo "$XARGS" >&6; }
11360 else
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363 fi
11364 
11365 
11366         if test "x$XARGS" = x; then
11367           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11368         fi
11369       else
11370         # Otherwise we believe it is a complete path. Use it as it is.
11371         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11372 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11373         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11374 $as_echo_n "checking for XARGS... " >&6; }
11375         if test ! -x "$tool_specified"; then
11376           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11377 $as_echo "not found" >&6; }
11378           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11379         fi
11380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11381 $as_echo "$tool_specified" >&6; }
11382       fi
11383     fi
11384   fi
11385 
11386 
11387 
11388   if test "x$XARGS" = x; then
11389     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11390   fi
11391 
11392 
11393 
11394   # Then required tools that require some special treatment.
11395 
11396 
11397   # Publish this variable in the help.
11398 
11399 
11400   if test "x$AWK" = x; then
11401     # The variable is not set by user, try to locate tool using the code snippet
11402     for ac_prog in gawk mawk nawk awk
11403 do
11404   # Extract the first word of "$ac_prog", so it can be a program name with args.
11405 set dummy $ac_prog; ac_word=$2
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407 $as_echo_n "checking for $ac_word... " >&6; }
11408 if ${ac_cv_prog_AWK+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   if test -n "$AWK"; then
11412   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11413 else
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11416 do
11417   IFS=$as_save_IFS
11418   test -z "$as_dir" && as_dir=.
11419     for ac_exec_ext in '' $ac_executable_extensions; do
11420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421     ac_cv_prog_AWK="$ac_prog"
11422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423     break 2
11424   fi
11425 done
11426   done
11427 IFS=$as_save_IFS
11428 
11429 fi
11430 fi
11431 AWK=$ac_cv_prog_AWK
11432 if test -n "$AWK"; then
11433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11434 $as_echo "$AWK" >&6; }
11435 else
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11438 fi
11439 
11440 
11441   test -n "$AWK" && break
11442 done
11443 
11444   else
11445     # The variable is set, but is it from the command line or the environment?
11446 
11447     # Try to remove the string !AWK! from our list.
11448     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11449     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11450       # If it failed, the variable was not from the command line. Ignore it,
11451       # but warn the user (except for BASH, which is always set by the calling BASH).
11452       if test "xAWK" != xBASH; then
11453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11454 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11455       fi
11456       # Try to locate tool using the code snippet
11457       for ac_prog in gawk mawk nawk awk
11458 do
11459   # Extract the first word of "$ac_prog", so it can be a program name with args.
11460 set dummy $ac_prog; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if ${ac_cv_prog_AWK+:} false; then :
11464   $as_echo_n "(cached) " >&6
11465 else
11466   if test -n "$AWK"; then
11467   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11468 else
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11471 do
11472   IFS=$as_save_IFS
11473   test -z "$as_dir" && as_dir=.
11474     for ac_exec_ext in '' $ac_executable_extensions; do
11475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476     ac_cv_prog_AWK="$ac_prog"
11477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478     break 2
11479   fi
11480 done
11481   done
11482 IFS=$as_save_IFS
11483 
11484 fi
11485 fi
11486 AWK=$ac_cv_prog_AWK
11487 if test -n "$AWK"; then
11488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11489 $as_echo "$AWK" >&6; }
11490 else
11491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11493 fi
11494 
11495 
11496   test -n "$AWK" && break
11497 done
11498 
11499     else
11500       # If it succeeded, then it was overridden by the user. We will use it
11501       # for the tool.
11502 
11503       # First remove it from the list of overridden variables, so we can test
11504       # for unknown variables in the end.
11505       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11506 
11507       # Check if the provided tool contains a complete path.
11508       tool_specified="$AWK"
11509       tool_basename="${tool_specified##*/}"
11510       if test "x$tool_basename" = "x$tool_specified"; then
11511         # A command without a complete path is provided, search $PATH.
11512         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11513 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11514         # Extract the first word of "$tool_basename", so it can be a program name with args.
11515 set dummy $tool_basename; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_path_AWK+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   case $AWK in
11522   [\\/]* | ?:[\\/]*)
11523   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11524   ;;
11525   *)
11526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11528 do
11529   IFS=$as_save_IFS
11530   test -z "$as_dir" && as_dir=.
11531     for ac_exec_ext in '' $ac_executable_extensions; do
11532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535     break 2
11536   fi
11537 done
11538   done
11539 IFS=$as_save_IFS
11540 
11541   ;;
11542 esac
11543 fi
11544 AWK=$ac_cv_path_AWK
11545 if test -n "$AWK"; then
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11547 $as_echo "$AWK" >&6; }
11548 else
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 fi
11552 
11553 
11554         if test "x$AWK" = x; then
11555           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11556         fi
11557       else
11558         # Otherwise we believe it is a complete path. Use it as it is.
11559         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11560 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11562 $as_echo_n "checking for AWK... " >&6; }
11563         if test ! -x "$tool_specified"; then
11564           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11565 $as_echo "not found" >&6; }
11566           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11567         fi
11568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11569 $as_echo "$tool_specified" >&6; }
11570       fi
11571     fi
11572   fi
11573 
11574 
11575   if test "x$AWK" = x; then
11576     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11577   fi
11578 
11579 
11580 
11581 
11582   # Publish this variable in the help.
11583 
11584 
11585   if test "x$GREP" = x; then
11586     # The variable is not set by user, try to locate tool using the code snippet
11587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11589 if ${ac_cv_path_GREP+:} false; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   if test -z "$GREP"; then
11593   ac_path_GREP_found=false
11594   # Loop through the user's path and test for each of PROGNAME-LIST
11595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11597 do
11598   IFS=$as_save_IFS
11599   test -z "$as_dir" && as_dir=.
11600     for ac_prog in grep ggrep; do
11601     for ac_exec_ext in '' $ac_executable_extensions; do
11602       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11603       as_fn_executable_p "$ac_path_GREP" || continue
11604 # Check for GNU ac_path_GREP and select it if it is found.
11605   # Check for GNU $ac_path_GREP
11606 case `"$ac_path_GREP" --version 2>&1` in
11607 *GNU*)
11608   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11609 *)
11610   ac_count=0
11611   $as_echo_n 0123456789 >"conftest.in"
11612   while :
11613   do
11614     cat "conftest.in" "conftest.in" >"conftest.tmp"
11615     mv "conftest.tmp" "conftest.in"
11616     cp "conftest.in" "conftest.nl"
11617     $as_echo 'GREP' >> "conftest.nl"
11618     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11619     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11620     as_fn_arith $ac_count + 1 && ac_count=$as_val
11621     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11622       # Best one so far, save it but keep looking for a better one
11623       ac_cv_path_GREP="$ac_path_GREP"
11624       ac_path_GREP_max=$ac_count
11625     fi
11626     # 10*(2^10) chars as input seems more than enough
11627     test $ac_count -gt 10 && break
11628   done
11629   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11630 esac
11631 
11632       $ac_path_GREP_found && break 3
11633     done
11634   done
11635   done
11636 IFS=$as_save_IFS
11637   if test -z "$ac_cv_path_GREP"; then
11638     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11639   fi
11640 else
11641   ac_cv_path_GREP=$GREP
11642 fi
11643 
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11646 $as_echo "$ac_cv_path_GREP" >&6; }
11647  GREP="$ac_cv_path_GREP"
11648 
11649 
11650   else
11651     # The variable is set, but is it from the command line or the environment?
11652 
11653     # Try to remove the string !GREP! from our list.
11654     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11655     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11656       # If it failed, the variable was not from the command line. Ignore it,
11657       # but warn the user (except for BASH, which is always set by the calling BASH).
11658       if test "xGREP" != xBASH; then
11659         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11660 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11661       fi
11662       # Try to locate tool using the code snippet
11663       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11664 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11665 if ${ac_cv_path_GREP+:} false; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   if test -z "$GREP"; then
11669   ac_path_GREP_found=false
11670   # Loop through the user's path and test for each of PROGNAME-LIST
11671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676     for ac_prog in grep ggrep; do
11677     for ac_exec_ext in '' $ac_executable_extensions; do
11678       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11679       as_fn_executable_p "$ac_path_GREP" || continue
11680 # Check for GNU ac_path_GREP and select it if it is found.
11681   # Check for GNU $ac_path_GREP
11682 case `"$ac_path_GREP" --version 2>&1` in
11683 *GNU*)
11684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11685 *)
11686   ac_count=0
11687   $as_echo_n 0123456789 >"conftest.in"
11688   while :
11689   do
11690     cat "conftest.in" "conftest.in" >"conftest.tmp"
11691     mv "conftest.tmp" "conftest.in"
11692     cp "conftest.in" "conftest.nl"
11693     $as_echo 'GREP' >> "conftest.nl"
11694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11696     as_fn_arith $ac_count + 1 && ac_count=$as_val
11697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11698       # Best one so far, save it but keep looking for a better one
11699       ac_cv_path_GREP="$ac_path_GREP"
11700       ac_path_GREP_max=$ac_count
11701     fi
11702     # 10*(2^10) chars as input seems more than enough
11703     test $ac_count -gt 10 && break
11704   done
11705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11706 esac
11707 
11708       $ac_path_GREP_found && break 3
11709     done
11710   done
11711   done
11712 IFS=$as_save_IFS
11713   if test -z "$ac_cv_path_GREP"; then
11714     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11715   fi
11716 else
11717   ac_cv_path_GREP=$GREP
11718 fi
11719 
11720 fi
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11722 $as_echo "$ac_cv_path_GREP" >&6; }
11723  GREP="$ac_cv_path_GREP"
11724 
11725 
11726     else
11727       # If it succeeded, then it was overridden by the user. We will use it
11728       # for the tool.
11729 
11730       # First remove it from the list of overridden variables, so we can test
11731       # for unknown variables in the end.
11732       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11733 
11734       # Check if the provided tool contains a complete path.
11735       tool_specified="$GREP"
11736       tool_basename="${tool_specified##*/}"
11737       if test "x$tool_basename" = "x$tool_specified"; then
11738         # A command without a complete path is provided, search $PATH.
11739         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11740 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11741         # Extract the first word of "$tool_basename", so it can be a program name with args.
11742 set dummy $tool_basename; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if ${ac_cv_path_GREP+:} false; then :
11746   $as_echo_n "(cached) " >&6
11747 else
11748   case $GREP in
11749   [\\/]* | ?:[\\/]*)
11750   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11751   ;;
11752   *)
11753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $PATH
11755 do
11756   IFS=$as_save_IFS
11757   test -z "$as_dir" && as_dir=.
11758     for ac_exec_ext in '' $ac_executable_extensions; do
11759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11760     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762     break 2
11763   fi
11764 done
11765   done
11766 IFS=$as_save_IFS
11767 
11768   ;;
11769 esac
11770 fi
11771 GREP=$ac_cv_path_GREP
11772 if test -n "$GREP"; then
11773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11774 $as_echo "$GREP" >&6; }
11775 else
11776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 fi
11779 
11780 
11781         if test "x$GREP" = x; then
11782           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11783         fi
11784       else
11785         # Otherwise we believe it is a complete path. Use it as it is.
11786         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11787 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11789 $as_echo_n "checking for GREP... " >&6; }
11790         if test ! -x "$tool_specified"; then
11791           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11792 $as_echo "not found" >&6; }
11793           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11794         fi
11795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11796 $as_echo "$tool_specified" >&6; }
11797       fi
11798     fi
11799   fi
11800 
11801 
11802   if test "x$GREP" = x; then
11803     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11804   fi
11805 
11806 
11807 
11808 
11809   # Publish this variable in the help.
11810 
11811 
11812   if test "x$EGREP" = x; then
11813     # The variable is not set by user, try to locate tool using the code snippet
11814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11815 $as_echo_n "checking for egrep... " >&6; }
11816 if ${ac_cv_path_EGREP+:} false; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11820    then ac_cv_path_EGREP="$GREP -E"
11821    else
11822      if test -z "$EGREP"; then
11823   ac_path_EGREP_found=false
11824   # Loop through the user's path and test for each of PROGNAME-LIST
11825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11827 do
11828   IFS=$as_save_IFS
11829   test -z "$as_dir" && as_dir=.
11830     for ac_prog in egrep; do
11831     for ac_exec_ext in '' $ac_executable_extensions; do
11832       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11833       as_fn_executable_p "$ac_path_EGREP" || continue
11834 # Check for GNU ac_path_EGREP and select it if it is found.
11835   # Check for GNU $ac_path_EGREP
11836 case `"$ac_path_EGREP" --version 2>&1` in
11837 *GNU*)
11838   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11839 *)
11840   ac_count=0
11841   $as_echo_n 0123456789 >"conftest.in"
11842   while :
11843   do
11844     cat "conftest.in" "conftest.in" >"conftest.tmp"
11845     mv "conftest.tmp" "conftest.in"
11846     cp "conftest.in" "conftest.nl"
11847     $as_echo 'EGREP' >> "conftest.nl"
11848     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11849     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11850     as_fn_arith $ac_count + 1 && ac_count=$as_val
11851     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11852       # Best one so far, save it but keep looking for a better one
11853       ac_cv_path_EGREP="$ac_path_EGREP"
11854       ac_path_EGREP_max=$ac_count
11855     fi
11856     # 10*(2^10) chars as input seems more than enough
11857     test $ac_count -gt 10 && break
11858   done
11859   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11860 esac
11861 
11862       $ac_path_EGREP_found && break 3
11863     done
11864   done
11865   done
11866 IFS=$as_save_IFS
11867   if test -z "$ac_cv_path_EGREP"; then
11868     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11869   fi
11870 else
11871   ac_cv_path_EGREP=$EGREP
11872 fi
11873 
11874    fi
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11877 $as_echo "$ac_cv_path_EGREP" >&6; }
11878  EGREP="$ac_cv_path_EGREP"
11879 
11880 
11881   else
11882     # The variable is set, but is it from the command line or the environment?
11883 
11884     # Try to remove the string !EGREP! from our list.
11885     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11886     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11887       # If it failed, the variable was not from the command line. Ignore it,
11888       # but warn the user (except for BASH, which is always set by the calling BASH).
11889       if test "xEGREP" != xBASH; then
11890         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11891 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11892       fi
11893       # Try to locate tool using the code snippet
11894       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11895 $as_echo_n "checking for egrep... " >&6; }
11896 if ${ac_cv_path_EGREP+:} false; then :
11897   $as_echo_n "(cached) " >&6
11898 else
11899   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11900    then ac_cv_path_EGREP="$GREP -E"
11901    else
11902      if test -z "$EGREP"; then
11903   ac_path_EGREP_found=false
11904   # Loop through the user's path and test for each of PROGNAME-LIST
11905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910     for ac_prog in egrep; do
11911     for ac_exec_ext in '' $ac_executable_extensions; do
11912       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11913       as_fn_executable_p "$ac_path_EGREP" || continue
11914 # Check for GNU ac_path_EGREP and select it if it is found.
11915   # Check for GNU $ac_path_EGREP
11916 case `"$ac_path_EGREP" --version 2>&1` in
11917 *GNU*)
11918   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11919 *)
11920   ac_count=0
11921   $as_echo_n 0123456789 >"conftest.in"
11922   while :
11923   do
11924     cat "conftest.in" "conftest.in" >"conftest.tmp"
11925     mv "conftest.tmp" "conftest.in"
11926     cp "conftest.in" "conftest.nl"
11927     $as_echo 'EGREP' >> "conftest.nl"
11928     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11929     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11930     as_fn_arith $ac_count + 1 && ac_count=$as_val
11931     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11932       # Best one so far, save it but keep looking for a better one
11933       ac_cv_path_EGREP="$ac_path_EGREP"
11934       ac_path_EGREP_max=$ac_count
11935     fi
11936     # 10*(2^10) chars as input seems more than enough
11937     test $ac_count -gt 10 && break
11938   done
11939   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11940 esac
11941 
11942       $ac_path_EGREP_found && break 3
11943     done
11944   done
11945   done
11946 IFS=$as_save_IFS
11947   if test -z "$ac_cv_path_EGREP"; then
11948     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11949   fi
11950 else
11951   ac_cv_path_EGREP=$EGREP
11952 fi
11953 
11954    fi
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11957 $as_echo "$ac_cv_path_EGREP" >&6; }
11958  EGREP="$ac_cv_path_EGREP"
11959 
11960 
11961     else
11962       # If it succeeded, then it was overridden by the user. We will use it
11963       # for the tool.
11964 
11965       # First remove it from the list of overridden variables, so we can test
11966       # for unknown variables in the end.
11967       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11968 
11969       # Check if the provided tool contains a complete path.
11970       tool_specified="$EGREP"
11971       tool_basename="${tool_specified##*/}"
11972       if test "x$tool_basename" = "x$tool_specified"; then
11973         # A command without a complete path is provided, search $PATH.
11974         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11975 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11976         # Extract the first word of "$tool_basename", so it can be a program name with args.
11977 set dummy $tool_basename; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if ${ac_cv_path_EGREP+:} false; then :
11981   $as_echo_n "(cached) " >&6
11982 else
11983   case $EGREP in
11984   [\\/]* | ?:[\\/]*)
11985   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11986   ;;
11987   *)
11988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991   IFS=$as_save_IFS
11992   test -z "$as_dir" && as_dir=.
11993     for ac_exec_ext in '' $ac_executable_extensions; do
11994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997     break 2
11998   fi
11999 done
12000   done
12001 IFS=$as_save_IFS
12002 
12003   ;;
12004 esac
12005 fi
12006 EGREP=$ac_cv_path_EGREP
12007 if test -n "$EGREP"; then
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12009 $as_echo "$EGREP" >&6; }
12010 else
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014 
12015 
12016         if test "x$EGREP" = x; then
12017           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12018         fi
12019       else
12020         # Otherwise we believe it is a complete path. Use it as it is.
12021         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12022 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12024 $as_echo_n "checking for EGREP... " >&6; }
12025         if test ! -x "$tool_specified"; then
12026           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12027 $as_echo "not found" >&6; }
12028           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12029         fi
12030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12031 $as_echo "$tool_specified" >&6; }
12032       fi
12033     fi
12034   fi
12035 
12036 
12037   if test "x$EGREP" = x; then
12038     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12039   fi
12040 
12041 
12042 
12043 
12044   # Publish this variable in the help.
12045 
12046 
12047   if test "x$FGREP" = x; then
12048     # The variable is not set by user, try to locate tool using the code snippet
12049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12050 $as_echo_n "checking for fgrep... " >&6; }
12051 if ${ac_cv_path_FGREP+:} false; then :
12052   $as_echo_n "(cached) " >&6
12053 else
12054   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12055    then ac_cv_path_FGREP="$GREP -F"
12056    else
12057      if test -z "$FGREP"; then
12058   ac_path_FGREP_found=false
12059   # Loop through the user's path and test for each of PROGNAME-LIST
12060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12062 do
12063   IFS=$as_save_IFS
12064   test -z "$as_dir" && as_dir=.
12065     for ac_prog in fgrep; do
12066     for ac_exec_ext in '' $ac_executable_extensions; do
12067       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12068       as_fn_executable_p "$ac_path_FGREP" || continue
12069 # Check for GNU ac_path_FGREP and select it if it is found.
12070   # Check for GNU $ac_path_FGREP
12071 case `"$ac_path_FGREP" --version 2>&1` in
12072 *GNU*)
12073   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12074 *)
12075   ac_count=0
12076   $as_echo_n 0123456789 >"conftest.in"
12077   while :
12078   do
12079     cat "conftest.in" "conftest.in" >"conftest.tmp"
12080     mv "conftest.tmp" "conftest.in"
12081     cp "conftest.in" "conftest.nl"
12082     $as_echo 'FGREP' >> "conftest.nl"
12083     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12085     as_fn_arith $ac_count + 1 && ac_count=$as_val
12086     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12087       # Best one so far, save it but keep looking for a better one
12088       ac_cv_path_FGREP="$ac_path_FGREP"
12089       ac_path_FGREP_max=$ac_count
12090     fi
12091     # 10*(2^10) chars as input seems more than enough
12092     test $ac_count -gt 10 && break
12093   done
12094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12095 esac
12096 
12097       $ac_path_FGREP_found && break 3
12098     done
12099   done
12100   done
12101 IFS=$as_save_IFS
12102   if test -z "$ac_cv_path_FGREP"; then
12103     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12104   fi
12105 else
12106   ac_cv_path_FGREP=$FGREP
12107 fi
12108 
12109    fi
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12112 $as_echo "$ac_cv_path_FGREP" >&6; }
12113  FGREP="$ac_cv_path_FGREP"
12114 
12115 
12116   else
12117     # The variable is set, but is it from the command line or the environment?
12118 
12119     # Try to remove the string !FGREP! from our list.
12120     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12121     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12122       # If it failed, the variable was not from the command line. Ignore it,
12123       # but warn the user (except for BASH, which is always set by the calling BASH).
12124       if test "xFGREP" != xBASH; then
12125         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12126 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12127       fi
12128       # Try to locate tool using the code snippet
12129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12130 $as_echo_n "checking for fgrep... " >&6; }
12131 if ${ac_cv_path_FGREP+:} false; then :
12132   $as_echo_n "(cached) " >&6
12133 else
12134   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12135    then ac_cv_path_FGREP="$GREP -F"
12136    else
12137      if test -z "$FGREP"; then
12138   ac_path_FGREP_found=false
12139   # Loop through the user's path and test for each of PROGNAME-LIST
12140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12142 do
12143   IFS=$as_save_IFS
12144   test -z "$as_dir" && as_dir=.
12145     for ac_prog in fgrep; do
12146     for ac_exec_ext in '' $ac_executable_extensions; do
12147       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12148       as_fn_executable_p "$ac_path_FGREP" || continue
12149 # Check for GNU ac_path_FGREP and select it if it is found.
12150   # Check for GNU $ac_path_FGREP
12151 case `"$ac_path_FGREP" --version 2>&1` in
12152 *GNU*)
12153   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12154 *)
12155   ac_count=0
12156   $as_echo_n 0123456789 >"conftest.in"
12157   while :
12158   do
12159     cat "conftest.in" "conftest.in" >"conftest.tmp"
12160     mv "conftest.tmp" "conftest.in"
12161     cp "conftest.in" "conftest.nl"
12162     $as_echo 'FGREP' >> "conftest.nl"
12163     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12164     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12165     as_fn_arith $ac_count + 1 && ac_count=$as_val
12166     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12167       # Best one so far, save it but keep looking for a better one
12168       ac_cv_path_FGREP="$ac_path_FGREP"
12169       ac_path_FGREP_max=$ac_count
12170     fi
12171     # 10*(2^10) chars as input seems more than enough
12172     test $ac_count -gt 10 && break
12173   done
12174   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12175 esac
12176 
12177       $ac_path_FGREP_found && break 3
12178     done
12179   done
12180   done
12181 IFS=$as_save_IFS
12182   if test -z "$ac_cv_path_FGREP"; then
12183     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12184   fi
12185 else
12186   ac_cv_path_FGREP=$FGREP
12187 fi
12188 
12189    fi
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12192 $as_echo "$ac_cv_path_FGREP" >&6; }
12193  FGREP="$ac_cv_path_FGREP"
12194 
12195 
12196     else
12197       # If it succeeded, then it was overridden by the user. We will use it
12198       # for the tool.
12199 
12200       # First remove it from the list of overridden variables, so we can test
12201       # for unknown variables in the end.
12202       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12203 
12204       # Check if the provided tool contains a complete path.
12205       tool_specified="$FGREP"
12206       tool_basename="${tool_specified##*/}"
12207       if test "x$tool_basename" = "x$tool_specified"; then
12208         # A command without a complete path is provided, search $PATH.
12209         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12210 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12211         # Extract the first word of "$tool_basename", so it can be a program name with args.
12212 set dummy $tool_basename; ac_word=$2
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214 $as_echo_n "checking for $ac_word... " >&6; }
12215 if ${ac_cv_path_FGREP+:} false; then :
12216   $as_echo_n "(cached) " >&6
12217 else
12218   case $FGREP in
12219   [\\/]* | ?:[\\/]*)
12220   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12221   ;;
12222   *)
12223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12225 do
12226   IFS=$as_save_IFS
12227   test -z "$as_dir" && as_dir=.
12228     for ac_exec_ext in '' $ac_executable_extensions; do
12229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12230     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232     break 2
12233   fi
12234 done
12235   done
12236 IFS=$as_save_IFS
12237 
12238   ;;
12239 esac
12240 fi
12241 FGREP=$ac_cv_path_FGREP
12242 if test -n "$FGREP"; then
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12244 $as_echo "$FGREP" >&6; }
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249 
12250 
12251         if test "x$FGREP" = x; then
12252           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12253         fi
12254       else
12255         # Otherwise we believe it is a complete path. Use it as it is.
12256         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12257 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12258         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12259 $as_echo_n "checking for FGREP... " >&6; }
12260         if test ! -x "$tool_specified"; then
12261           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12262 $as_echo "not found" >&6; }
12263           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12264         fi
12265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12266 $as_echo "$tool_specified" >&6; }
12267       fi
12268     fi
12269   fi
12270 
12271 
12272   if test "x$FGREP" = x; then
12273     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12274   fi
12275 
12276 
12277 
12278 
12279   # Publish this variable in the help.
12280 
12281 
12282   if test "x$SED" = x; then
12283     # The variable is not set by user, try to locate tool using the code snippet
12284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12285 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12286 if ${ac_cv_path_SED+:} false; then :
12287   $as_echo_n "(cached) " >&6
12288 else
12289             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12290      for ac_i in 1 2 3 4 5 6 7; do
12291        ac_script="$ac_script$as_nl$ac_script"
12292      done
12293      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12294      { ac_script=; unset ac_script;}
12295      if test -z "$SED"; then
12296   ac_path_SED_found=false
12297   # Loop through the user's path and test for each of PROGNAME-LIST
12298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12300 do
12301   IFS=$as_save_IFS
12302   test -z "$as_dir" && as_dir=.
12303     for ac_prog in sed gsed; do
12304     for ac_exec_ext in '' $ac_executable_extensions; do
12305       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12306       as_fn_executable_p "$ac_path_SED" || continue
12307 # Check for GNU ac_path_SED and select it if it is found.
12308   # Check for GNU $ac_path_SED
12309 case `"$ac_path_SED" --version 2>&1` in
12310 *GNU*)
12311   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12312 *)
12313   ac_count=0
12314   $as_echo_n 0123456789 >"conftest.in"
12315   while :
12316   do
12317     cat "conftest.in" "conftest.in" >"conftest.tmp"
12318     mv "conftest.tmp" "conftest.in"
12319     cp "conftest.in" "conftest.nl"
12320     $as_echo '' >> "conftest.nl"
12321     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12322     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12323     as_fn_arith $ac_count + 1 && ac_count=$as_val
12324     if test $ac_count -gt ${ac_path_SED_max-0}; then
12325       # Best one so far, save it but keep looking for a better one
12326       ac_cv_path_SED="$ac_path_SED"
12327       ac_path_SED_max=$ac_count
12328     fi
12329     # 10*(2^10) chars as input seems more than enough
12330     test $ac_count -gt 10 && break
12331   done
12332   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12333 esac
12334 
12335       $ac_path_SED_found && break 3
12336     done
12337   done
12338   done
12339 IFS=$as_save_IFS
12340   if test -z "$ac_cv_path_SED"; then
12341     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12342   fi
12343 else
12344   ac_cv_path_SED=$SED
12345 fi
12346 
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12349 $as_echo "$ac_cv_path_SED" >&6; }
12350  SED="$ac_cv_path_SED"
12351   rm -f conftest.sed
12352 
12353   else
12354     # The variable is set, but is it from the command line or the environment?
12355 
12356     # Try to remove the string !SED! from our list.
12357     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12358     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12359       # If it failed, the variable was not from the command line. Ignore it,
12360       # but warn the user (except for BASH, which is always set by the calling BASH).
12361       if test "xSED" != xBASH; then
12362         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12363 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12364       fi
12365       # Try to locate tool using the code snippet
12366       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12367 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12368 if ${ac_cv_path_SED+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12372      for ac_i in 1 2 3 4 5 6 7; do
12373        ac_script="$ac_script$as_nl$ac_script"
12374      done
12375      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12376      { ac_script=; unset ac_script;}
12377      if test -z "$SED"; then
12378   ac_path_SED_found=false
12379   # Loop through the user's path and test for each of PROGNAME-LIST
12380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12382 do
12383   IFS=$as_save_IFS
12384   test -z "$as_dir" && as_dir=.
12385     for ac_prog in sed gsed; do
12386     for ac_exec_ext in '' $ac_executable_extensions; do
12387       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12388       as_fn_executable_p "$ac_path_SED" || continue
12389 # Check for GNU ac_path_SED and select it if it is found.
12390   # Check for GNU $ac_path_SED
12391 case `"$ac_path_SED" --version 2>&1` in
12392 *GNU*)
12393   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12394 *)
12395   ac_count=0
12396   $as_echo_n 0123456789 >"conftest.in"
12397   while :
12398   do
12399     cat "conftest.in" "conftest.in" >"conftest.tmp"
12400     mv "conftest.tmp" "conftest.in"
12401     cp "conftest.in" "conftest.nl"
12402     $as_echo '' >> "conftest.nl"
12403     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12404     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12405     as_fn_arith $ac_count + 1 && ac_count=$as_val
12406     if test $ac_count -gt ${ac_path_SED_max-0}; then
12407       # Best one so far, save it but keep looking for a better one
12408       ac_cv_path_SED="$ac_path_SED"
12409       ac_path_SED_max=$ac_count
12410     fi
12411     # 10*(2^10) chars as input seems more than enough
12412     test $ac_count -gt 10 && break
12413   done
12414   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12415 esac
12416 
12417       $ac_path_SED_found && break 3
12418     done
12419   done
12420   done
12421 IFS=$as_save_IFS
12422   if test -z "$ac_cv_path_SED"; then
12423     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12424   fi
12425 else
12426   ac_cv_path_SED=$SED
12427 fi
12428 
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12431 $as_echo "$ac_cv_path_SED" >&6; }
12432  SED="$ac_cv_path_SED"
12433   rm -f conftest.sed
12434 
12435     else
12436       # If it succeeded, then it was overridden by the user. We will use it
12437       # for the tool.
12438 
12439       # First remove it from the list of overridden variables, so we can test
12440       # for unknown variables in the end.
12441       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12442 
12443       # Check if the provided tool contains a complete path.
12444       tool_specified="$SED"
12445       tool_basename="${tool_specified##*/}"
12446       if test "x$tool_basename" = "x$tool_specified"; then
12447         # A command without a complete path is provided, search $PATH.
12448         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12449 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12450         # Extract the first word of "$tool_basename", so it can be a program name with args.
12451 set dummy $tool_basename; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_path_SED+:} false; then :
12455   $as_echo_n "(cached) " >&6
12456 else
12457   case $SED in
12458   [\\/]* | ?:[\\/]*)
12459   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12460   ;;
12461   *)
12462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12464 do
12465   IFS=$as_save_IFS
12466   test -z "$as_dir" && as_dir=.
12467     for ac_exec_ext in '' $ac_executable_extensions; do
12468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12469     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471     break 2
12472   fi
12473 done
12474   done
12475 IFS=$as_save_IFS
12476 
12477   ;;
12478 esac
12479 fi
12480 SED=$ac_cv_path_SED
12481 if test -n "$SED"; then
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12483 $as_echo "$SED" >&6; }
12484 else
12485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487 fi
12488 
12489 
12490         if test "x$SED" = x; then
12491           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12492         fi
12493       else
12494         # Otherwise we believe it is a complete path. Use it as it is.
12495         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12496 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12498 $as_echo_n "checking for SED... " >&6; }
12499         if test ! -x "$tool_specified"; then
12500           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12501 $as_echo "not found" >&6; }
12502           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12503         fi
12504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12505 $as_echo "$tool_specified" >&6; }
12506       fi
12507     fi
12508   fi
12509 
12510 
12511   if test "x$SED" = x; then
12512     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12513   fi
12514 
12515 
12516 
12517   # Always force rm.
12518   RM="$RM -f"
12519 
12520   # pwd behaves differently on various platforms and some don't support the -L flag.
12521   # Always use the bash builtin pwd to get uniform behavior.
12522   THEPWDCMD=pwd
12523 
12524   # These are not required on all platforms
12525 
12526 
12527   # Publish this variable in the help.
12528 
12529 
12530   if test "x$CYGPATH" = x; then
12531     # The variable is not set by user, try to locate tool using the code snippet
12532     for ac_prog in cygpath
12533 do
12534   # Extract the first word of "$ac_prog", so it can be a program name with args.
12535 set dummy $ac_prog; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if ${ac_cv_path_CYGPATH+:} false; then :
12539   $as_echo_n "(cached) " >&6
12540 else
12541   case $CYGPATH in
12542   [\\/]* | ?:[\\/]*)
12543   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12544   ;;
12545   *)
12546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547 for as_dir in $PATH
12548 do
12549   IFS=$as_save_IFS
12550   test -z "$as_dir" && as_dir=.
12551     for ac_exec_ext in '' $ac_executable_extensions; do
12552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12553     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555     break 2
12556   fi
12557 done
12558   done
12559 IFS=$as_save_IFS
12560 
12561   ;;
12562 esac
12563 fi
12564 CYGPATH=$ac_cv_path_CYGPATH
12565 if test -n "$CYGPATH"; then
12566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12567 $as_echo "$CYGPATH" >&6; }
12568 else
12569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12571 fi
12572 
12573 
12574   test -n "$CYGPATH" && break
12575 done
12576 
12577   else
12578     # The variable is set, but is it from the command line or the environment?
12579 
12580     # Try to remove the string !CYGPATH! from our list.
12581     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12582     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12583       # If it failed, the variable was not from the command line. Ignore it,
12584       # but warn the user (except for BASH, which is always set by the calling BASH).
12585       if test "xCYGPATH" != xBASH; then
12586         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12587 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12588       fi
12589       # Try to locate tool using the code snippet
12590       for ac_prog in cygpath
12591 do
12592   # Extract the first word of "$ac_prog", so it can be a program name with args.
12593 set dummy $ac_prog; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_path_CYGPATH+:} false; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   case $CYGPATH in
12600   [\\/]* | ?:[\\/]*)
12601   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12602   ;;
12603   *)
12604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in $PATH
12606 do
12607   IFS=$as_save_IFS
12608   test -z "$as_dir" && as_dir=.
12609     for ac_exec_ext in '' $ac_executable_extensions; do
12610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613     break 2
12614   fi
12615 done
12616   done
12617 IFS=$as_save_IFS
12618 
12619   ;;
12620 esac
12621 fi
12622 CYGPATH=$ac_cv_path_CYGPATH
12623 if test -n "$CYGPATH"; then
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12625 $as_echo "$CYGPATH" >&6; }
12626 else
12627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12629 fi
12630 
12631 
12632   test -n "$CYGPATH" && break
12633 done
12634 
12635     else
12636       # If it succeeded, then it was overridden by the user. We will use it
12637       # for the tool.
12638 
12639       # First remove it from the list of overridden variables, so we can test
12640       # for unknown variables in the end.
12641       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12642 
12643       # Check if the provided tool contains a complete path.
12644       tool_specified="$CYGPATH"
12645       tool_basename="${tool_specified##*/}"
12646       if test "x$tool_basename" = "x$tool_specified"; then
12647         # A command without a complete path is provided, search $PATH.
12648         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12649 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12650         # Extract the first word of "$tool_basename", so it can be a program name with args.
12651 set dummy $tool_basename; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_path_CYGPATH+:} false; then :
12655   $as_echo_n "(cached) " >&6
12656 else
12657   case $CYGPATH in
12658   [\\/]* | ?:[\\/]*)
12659   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12660   ;;
12661   *)
12662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665   IFS=$as_save_IFS
12666   test -z "$as_dir" && as_dir=.
12667     for ac_exec_ext in '' $ac_executable_extensions; do
12668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671     break 2
12672   fi
12673 done
12674   done
12675 IFS=$as_save_IFS
12676 
12677   ;;
12678 esac
12679 fi
12680 CYGPATH=$ac_cv_path_CYGPATH
12681 if test -n "$CYGPATH"; then
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12683 $as_echo "$CYGPATH" >&6; }
12684 else
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688 
12689 
12690         if test "x$CYGPATH" = x; then
12691           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12692         fi
12693       else
12694         # Otherwise we believe it is a complete path. Use it as it is.
12695         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12696 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12697         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12698 $as_echo_n "checking for CYGPATH... " >&6; }
12699         if test ! -x "$tool_specified"; then
12700           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12701 $as_echo "not found" >&6; }
12702           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12703         fi
12704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12705 $as_echo "$tool_specified" >&6; }
12706       fi
12707     fi
12708   fi
12709 
12710 
12711 
12712 
12713   # Publish this variable in the help.
12714 
12715 
12716   if test "x$READLINK" = x; then
12717     # The variable is not set by user, try to locate tool using the code snippet
12718     for ac_prog in greadlink readlink
12719 do
12720   # Extract the first word of "$ac_prog", so it can be a program name with args.
12721 set dummy $ac_prog; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if ${ac_cv_path_READLINK+:} false; then :
12725   $as_echo_n "(cached) " >&6
12726 else
12727   case $READLINK in
12728   [\\/]* | ?:[\\/]*)
12729   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12730   ;;
12731   *)
12732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12734 do
12735   IFS=$as_save_IFS
12736   test -z "$as_dir" && as_dir=.
12737     for ac_exec_ext in '' $ac_executable_extensions; do
12738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12739     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741     break 2
12742   fi
12743 done
12744   done
12745 IFS=$as_save_IFS
12746 
12747   ;;
12748 esac
12749 fi
12750 READLINK=$ac_cv_path_READLINK
12751 if test -n "$READLINK"; then
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12753 $as_echo "$READLINK" >&6; }
12754 else
12755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758 
12759 
12760   test -n "$READLINK" && break
12761 done
12762 
12763   else
12764     # The variable is set, but is it from the command line or the environment?
12765 
12766     # Try to remove the string !READLINK! from our list.
12767     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12768     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12769       # If it failed, the variable was not from the command line. Ignore it,
12770       # but warn the user (except for BASH, which is always set by the calling BASH).
12771       if test "xREADLINK" != xBASH; then
12772         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12773 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12774       fi
12775       # Try to locate tool using the code snippet
12776       for ac_prog in greadlink readlink
12777 do
12778   # Extract the first word of "$ac_prog", so it can be a program name with args.
12779 set dummy $ac_prog; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if ${ac_cv_path_READLINK+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   case $READLINK in
12786   [\\/]* | ?:[\\/]*)
12787   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12788   ;;
12789   *)
12790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12792 do
12793   IFS=$as_save_IFS
12794   test -z "$as_dir" && as_dir=.
12795     for ac_exec_ext in '' $ac_executable_extensions; do
12796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799     break 2
12800   fi
12801 done
12802   done
12803 IFS=$as_save_IFS
12804 
12805   ;;
12806 esac
12807 fi
12808 READLINK=$ac_cv_path_READLINK
12809 if test -n "$READLINK"; then
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12811 $as_echo "$READLINK" >&6; }
12812 else
12813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816 
12817 
12818   test -n "$READLINK" && break
12819 done
12820 
12821     else
12822       # If it succeeded, then it was overridden by the user. We will use it
12823       # for the tool.
12824 
12825       # First remove it from the list of overridden variables, so we can test
12826       # for unknown variables in the end.
12827       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12828 
12829       # Check if the provided tool contains a complete path.
12830       tool_specified="$READLINK"
12831       tool_basename="${tool_specified##*/}"
12832       if test "x$tool_basename" = "x$tool_specified"; then
12833         # A command without a complete path is provided, search $PATH.
12834         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12835 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12836         # Extract the first word of "$tool_basename", so it can be a program name with args.
12837 set dummy $tool_basename; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_path_READLINK+:} false; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   case $READLINK in
12844   [\\/]* | ?:[\\/]*)
12845   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12846   ;;
12847   *)
12848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12850 do
12851   IFS=$as_save_IFS
12852   test -z "$as_dir" && as_dir=.
12853     for ac_exec_ext in '' $ac_executable_extensions; do
12854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12855     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857     break 2
12858   fi
12859 done
12860   done
12861 IFS=$as_save_IFS
12862 
12863   ;;
12864 esac
12865 fi
12866 READLINK=$ac_cv_path_READLINK
12867 if test -n "$READLINK"; then
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12869 $as_echo "$READLINK" >&6; }
12870 else
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12873 fi
12874 
12875 
12876         if test "x$READLINK" = x; then
12877           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12878         fi
12879       else
12880         # Otherwise we believe it is a complete path. Use it as it is.
12881         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12882 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12884 $as_echo_n "checking for READLINK... " >&6; }
12885         if test ! -x "$tool_specified"; then
12886           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12887 $as_echo "not found" >&6; }
12888           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12889         fi
12890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12891 $as_echo "$tool_specified" >&6; }
12892       fi
12893     fi
12894   fi
12895 
12896 
12897 
12898 
12899   # Publish this variable in the help.
12900 
12901 
12902   if test "x$DF" = x; then
12903     # The variable is not set by user, try to locate tool using the code snippet
12904     for ac_prog in df
12905 do
12906   # Extract the first word of "$ac_prog", so it can be a program name with args.
12907 set dummy $ac_prog; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if ${ac_cv_path_DF+:} false; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913   case $DF in
12914   [\\/]* | ?:[\\/]*)
12915   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12916   ;;
12917   *)
12918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 for as_dir in $PATH
12920 do
12921   IFS=$as_save_IFS
12922   test -z "$as_dir" && as_dir=.
12923     for ac_exec_ext in '' $ac_executable_extensions; do
12924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12925     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12927     break 2
12928   fi
12929 done
12930   done
12931 IFS=$as_save_IFS
12932 
12933   ;;
12934 esac
12935 fi
12936 DF=$ac_cv_path_DF
12937 if test -n "$DF"; then
12938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12939 $as_echo "$DF" >&6; }
12940 else
12941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12943 fi
12944 
12945 
12946   test -n "$DF" && break
12947 done
12948 
12949   else
12950     # The variable is set, but is it from the command line or the environment?
12951 
12952     # Try to remove the string !DF! from our list.
12953     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12954     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12955       # If it failed, the variable was not from the command line. Ignore it,
12956       # but warn the user (except for BASH, which is always set by the calling BASH).
12957       if test "xDF" != xBASH; then
12958         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12959 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12960       fi
12961       # Try to locate tool using the code snippet
12962       for ac_prog in df
12963 do
12964   # Extract the first word of "$ac_prog", so it can be a program name with args.
12965 set dummy $ac_prog; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if ${ac_cv_path_DF+:} false; then :
12969   $as_echo_n "(cached) " >&6
12970 else
12971   case $DF in
12972   [\\/]* | ?:[\\/]*)
12973   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12974   ;;
12975   *)
12976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12978 do
12979   IFS=$as_save_IFS
12980   test -z "$as_dir" && as_dir=.
12981     for ac_exec_ext in '' $ac_executable_extensions; do
12982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985     break 2
12986   fi
12987 done
12988   done
12989 IFS=$as_save_IFS
12990 
12991   ;;
12992 esac
12993 fi
12994 DF=$ac_cv_path_DF
12995 if test -n "$DF"; then
12996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12997 $as_echo "$DF" >&6; }
12998 else
12999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001 fi
13002 
13003 
13004   test -n "$DF" && break
13005 done
13006 
13007     else
13008       # If it succeeded, then it was overridden by the user. We will use it
13009       # for the tool.
13010 
13011       # First remove it from the list of overridden variables, so we can test
13012       # for unknown variables in the end.
13013       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13014 
13015       # Check if the provided tool contains a complete path.
13016       tool_specified="$DF"
13017       tool_basename="${tool_specified##*/}"
13018       if test "x$tool_basename" = "x$tool_specified"; then
13019         # A command without a complete path is provided, search $PATH.
13020         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13021 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13022         # Extract the first word of "$tool_basename", so it can be a program name with args.
13023 set dummy $tool_basename; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025 $as_echo_n "checking for $ac_word... " >&6; }
13026 if ${ac_cv_path_DF+:} false; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029   case $DF in
13030   [\\/]* | ?:[\\/]*)
13031   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13032   ;;
13033   *)
13034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13036 do
13037   IFS=$as_save_IFS
13038   test -z "$as_dir" && as_dir=.
13039     for ac_exec_ext in '' $ac_executable_extensions; do
13040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043     break 2
13044   fi
13045 done
13046   done
13047 IFS=$as_save_IFS
13048 
13049   ;;
13050 esac
13051 fi
13052 DF=$ac_cv_path_DF
13053 if test -n "$DF"; then
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13055 $as_echo "$DF" >&6; }
13056 else
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059 fi
13060 
13061 
13062         if test "x$DF" = x; then
13063           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13064         fi
13065       else
13066         # Otherwise we believe it is a complete path. Use it as it is.
13067         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13068 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13070 $as_echo_n "checking for DF... " >&6; }
13071         if test ! -x "$tool_specified"; then
13072           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13073 $as_echo "not found" >&6; }
13074           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13075         fi
13076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13077 $as_echo "$tool_specified" >&6; }
13078       fi
13079     fi
13080   fi
13081 
13082 
13083 
13084 
13085   # Publish this variable in the help.
13086 
13087 
13088   if test "x$SETFILE" = x; then
13089     # The variable is not set by user, try to locate tool using the code snippet
13090     for ac_prog in SetFile
13091 do
13092   # Extract the first word of "$ac_prog", so it can be a program name with args.
13093 set dummy $ac_prog; ac_word=$2
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095 $as_echo_n "checking for $ac_word... " >&6; }
13096 if ${ac_cv_path_SETFILE+:} false; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   case $SETFILE in
13100   [\\/]* | ?:[\\/]*)
13101   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13102   ;;
13103   *)
13104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13106 do
13107   IFS=$as_save_IFS
13108   test -z "$as_dir" && as_dir=.
13109     for ac_exec_ext in '' $ac_executable_extensions; do
13110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13111     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113     break 2
13114   fi
13115 done
13116   done
13117 IFS=$as_save_IFS
13118 
13119   ;;
13120 esac
13121 fi
13122 SETFILE=$ac_cv_path_SETFILE
13123 if test -n "$SETFILE"; then
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13125 $as_echo "$SETFILE" >&6; }
13126 else
13127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13129 fi
13130 
13131 
13132   test -n "$SETFILE" && break
13133 done
13134 
13135   else
13136     # The variable is set, but is it from the command line or the environment?
13137 
13138     # Try to remove the string !SETFILE! from our list.
13139     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13140     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13141       # If it failed, the variable was not from the command line. Ignore it,
13142       # but warn the user (except for BASH, which is always set by the calling BASH).
13143       if test "xSETFILE" != xBASH; then
13144         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13145 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13146       fi
13147       # Try to locate tool using the code snippet
13148       for ac_prog in SetFile
13149 do
13150   # Extract the first word of "$ac_prog", so it can be a program name with args.
13151 set dummy $ac_prog; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if ${ac_cv_path_SETFILE+:} false; then :
13155   $as_echo_n "(cached) " >&6
13156 else
13157   case $SETFILE in
13158   [\\/]* | ?:[\\/]*)
13159   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13160   ;;
13161   *)
13162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13164 do
13165   IFS=$as_save_IFS
13166   test -z "$as_dir" && as_dir=.
13167     for ac_exec_ext in '' $ac_executable_extensions; do
13168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13169     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171     break 2
13172   fi
13173 done
13174   done
13175 IFS=$as_save_IFS
13176 
13177   ;;
13178 esac
13179 fi
13180 SETFILE=$ac_cv_path_SETFILE
13181 if test -n "$SETFILE"; then
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13183 $as_echo "$SETFILE" >&6; }
13184 else
13185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188 
13189 
13190   test -n "$SETFILE" && break
13191 done
13192 
13193     else
13194       # If it succeeded, then it was overridden by the user. We will use it
13195       # for the tool.
13196 
13197       # First remove it from the list of overridden variables, so we can test
13198       # for unknown variables in the end.
13199       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13200 
13201       # Check if the provided tool contains a complete path.
13202       tool_specified="$SETFILE"
13203       tool_basename="${tool_specified##*/}"
13204       if test "x$tool_basename" = "x$tool_specified"; then
13205         # A command without a complete path is provided, search $PATH.
13206         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13207 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13208         # Extract the first word of "$tool_basename", so it can be a program name with args.
13209 set dummy $tool_basename; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if ${ac_cv_path_SETFILE+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   case $SETFILE in
13216   [\\/]* | ?:[\\/]*)
13217   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13218   ;;
13219   *)
13220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13222 do
13223   IFS=$as_save_IFS
13224   test -z "$as_dir" && as_dir=.
13225     for ac_exec_ext in '' $ac_executable_extensions; do
13226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13227     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229     break 2
13230   fi
13231 done
13232   done
13233 IFS=$as_save_IFS
13234 
13235   ;;
13236 esac
13237 fi
13238 SETFILE=$ac_cv_path_SETFILE
13239 if test -n "$SETFILE"; then
13240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13241 $as_echo "$SETFILE" >&6; }
13242 else
13243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13245 fi
13246 
13247 
13248         if test "x$SETFILE" = x; then
13249           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13250         fi
13251       else
13252         # Otherwise we believe it is a complete path. Use it as it is.
13253         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13254 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13256 $as_echo_n "checking for SETFILE... " >&6; }
13257         if test ! -x "$tool_specified"; then
13258           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13259 $as_echo "not found" >&6; }
13260           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13261         fi
13262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13263 $as_echo "$tool_specified" >&6; }
13264       fi
13265     fi
13266   fi
13267 
13268 
13269 
13270 
13271   # Publish this variable in the help.
13272 
13273 
13274   if test "x$CPIO" = x; then
13275     # The variable is not set by user, try to locate tool using the code snippet
13276     for ac_prog in cpio bsdcpio
13277 do
13278   # Extract the first word of "$ac_prog", so it can be a program name with args.
13279 set dummy $ac_prog; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if ${ac_cv_path_CPIO+:} false; then :
13283   $as_echo_n "(cached) " >&6
13284 else
13285   case $CPIO in
13286   [\\/]* | ?:[\\/]*)
13287   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13288   ;;
13289   *)
13290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291 for as_dir in $PATH
13292 do
13293   IFS=$as_save_IFS
13294   test -z "$as_dir" && as_dir=.
13295     for ac_exec_ext in '' $ac_executable_extensions; do
13296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13297     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13299     break 2
13300   fi
13301 done
13302   done
13303 IFS=$as_save_IFS
13304 
13305   ;;
13306 esac
13307 fi
13308 CPIO=$ac_cv_path_CPIO
13309 if test -n "$CPIO"; then
13310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13311 $as_echo "$CPIO" >&6; }
13312 else
13313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315 fi
13316 
13317 
13318   test -n "$CPIO" && break
13319 done
13320 
13321   else
13322     # The variable is set, but is it from the command line or the environment?
13323 
13324     # Try to remove the string !CPIO! from our list.
13325     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13326     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13327       # If it failed, the variable was not from the command line. Ignore it,
13328       # but warn the user (except for BASH, which is always set by the calling BASH).
13329       if test "xCPIO" != xBASH; then
13330         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13331 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13332       fi
13333       # Try to locate tool using the code snippet
13334       for ac_prog in cpio bsdcpio
13335 do
13336   # Extract the first word of "$ac_prog", so it can be a program name with args.
13337 set dummy $ac_prog; ac_word=$2
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339 $as_echo_n "checking for $ac_word... " >&6; }
13340 if ${ac_cv_path_CPIO+:} false; then :
13341   $as_echo_n "(cached) " >&6
13342 else
13343   case $CPIO in
13344   [\\/]* | ?:[\\/]*)
13345   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13346   ;;
13347   *)
13348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 for as_dir in $PATH
13350 do
13351   IFS=$as_save_IFS
13352   test -z "$as_dir" && as_dir=.
13353     for ac_exec_ext in '' $ac_executable_extensions; do
13354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13355     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357     break 2
13358   fi
13359 done
13360   done
13361 IFS=$as_save_IFS
13362 
13363   ;;
13364 esac
13365 fi
13366 CPIO=$ac_cv_path_CPIO
13367 if test -n "$CPIO"; then
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13369 $as_echo "$CPIO" >&6; }
13370 else
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13373 fi
13374 
13375 
13376   test -n "$CPIO" && break
13377 done
13378 
13379     else
13380       # If it succeeded, then it was overridden by the user. We will use it
13381       # for the tool.
13382 
13383       # First remove it from the list of overridden variables, so we can test
13384       # for unknown variables in the end.
13385       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13386 
13387       # Check if the provided tool contains a complete path.
13388       tool_specified="$CPIO"
13389       tool_basename="${tool_specified##*/}"
13390       if test "x$tool_basename" = "x$tool_specified"; then
13391         # A command without a complete path is provided, search $PATH.
13392         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13393 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13394         # Extract the first word of "$tool_basename", so it can be a program name with args.
13395 set dummy $tool_basename; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if ${ac_cv_path_CPIO+:} false; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   case $CPIO in
13402   [\\/]* | ?:[\\/]*)
13403   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13404   ;;
13405   *)
13406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409   IFS=$as_save_IFS
13410   test -z "$as_dir" && as_dir=.
13411     for ac_exec_ext in '' $ac_executable_extensions; do
13412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13413     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415     break 2
13416   fi
13417 done
13418   done
13419 IFS=$as_save_IFS
13420 
13421   ;;
13422 esac
13423 fi
13424 CPIO=$ac_cv_path_CPIO
13425 if test -n "$CPIO"; then
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13427 $as_echo "$CPIO" >&6; }
13428 else
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432 
13433 
13434         if test "x$CPIO" = x; then
13435           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13436         fi
13437       else
13438         # Otherwise we believe it is a complete path. Use it as it is.
13439         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13440 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13442 $as_echo_n "checking for CPIO... " >&6; }
13443         if test ! -x "$tool_specified"; then
13444           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13445 $as_echo "not found" >&6; }
13446           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13447         fi
13448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13449 $as_echo "$tool_specified" >&6; }
13450       fi
13451     fi
13452   fi
13453 
13454 
13455 
13456 
13457 # Now we can determine OpenJDK build and target platforms. This is required to
13458 # have early on.
13459 # Make sure we can run config.sub.
13460 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13461   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13462 
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13464 $as_echo_n "checking build system type... " >&6; }
13465 if ${ac_cv_build+:} false; then :
13466   $as_echo_n "(cached) " >&6
13467 else
13468   ac_build_alias=$build_alias
13469 test "x$ac_build_alias" = x &&
13470   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13471 test "x$ac_build_alias" = x &&
13472   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13474   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13475 
13476 fi
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13478 $as_echo "$ac_cv_build" >&6; }
13479 case $ac_cv_build in
13480 *-*-*) ;;
13481 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13482 esac
13483 build=$ac_cv_build
13484 ac_save_IFS=$IFS; IFS='-'
13485 set x $ac_cv_build
13486 shift
13487 build_cpu=$1
13488 build_vendor=$2
13489 shift; shift
13490 # Remember, the first character of IFS is used to create $*,
13491 # except with old shells:
13492 build_os=$*
13493 IFS=$ac_save_IFS
13494 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13495 
13496 
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13498 $as_echo_n "checking host system type... " >&6; }
13499 if ${ac_cv_host+:} false; then :
13500   $as_echo_n "(cached) " >&6
13501 else
13502   if test "x$host_alias" = x; then
13503   ac_cv_host=$ac_cv_build
13504 else
13505   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13506     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13507 fi
13508 
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13511 $as_echo "$ac_cv_host" >&6; }
13512 case $ac_cv_host in
13513 *-*-*) ;;
13514 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13515 esac
13516 host=$ac_cv_host
13517 ac_save_IFS=$IFS; IFS='-'
13518 set x $ac_cv_host
13519 shift
13520 host_cpu=$1
13521 host_vendor=$2
13522 shift; shift
13523 # Remember, the first character of IFS is used to create $*,
13524 # except with old shells:
13525 host_os=$*
13526 IFS=$ac_save_IFS
13527 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13528 
13529 
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13531 $as_echo_n "checking target system type... " >&6; }
13532 if ${ac_cv_target+:} false; then :
13533   $as_echo_n "(cached) " >&6
13534 else
13535   if test "x$target_alias" = x; then
13536   ac_cv_target=$ac_cv_host
13537 else
13538   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13539     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13540 fi
13541 
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13544 $as_echo "$ac_cv_target" >&6; }
13545 case $ac_cv_target in
13546 *-*-*) ;;
13547 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13548 esac
13549 target=$ac_cv_target
13550 ac_save_IFS=$IFS; IFS='-'
13551 set x $ac_cv_target
13552 shift
13553 target_cpu=$1
13554 target_vendor=$2
13555 shift; shift
13556 # Remember, the first character of IFS is used to create $*,
13557 # except with old shells:
13558 target_os=$*
13559 IFS=$ac_save_IFS
13560 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13561 
13562 
13563 # The aliases save the names the user supplied, while $host etc.
13564 # will get canonicalized.
13565 test -n "$target_alias" &&
13566   test "$program_prefix$program_suffix$program_transform_name" = \
13567     NONENONEs,x,x, &&
13568   program_prefix=${target_alias}-
13569 
13570   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13571   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13572   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13573   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13574   # to use the configure naming style.
13575 
13576 
13577 
13578 
13579 
13580   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13581   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13582   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13583   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13584   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13585   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13586 
13587 
13588 
13589   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13590 
13591   case "$build_os" in
13592     *linux*)
13593       VAR_OS=linux
13594       VAR_OS_API=posix
13595       VAR_OS_ENV=linux
13596       ;;
13597     *solaris*)
13598       VAR_OS=solaris
13599       VAR_OS_API=posix
13600       VAR_OS_ENV=solaris
13601       ;;
13602     *darwin*)
13603       VAR_OS=macosx
13604       VAR_OS_API=posix
13605       VAR_OS_ENV=macosx
13606       ;;
13607     *bsd*)
13608       VAR_OS=bsd
13609       VAR_OS_API=posix
13610       VAR_OS_ENV=bsd
13611       ;;
13612     *cygwin*)
13613       VAR_OS=windows
13614       VAR_OS_API=winapi
13615       VAR_OS_ENV=windows.cygwin
13616       ;;
13617     *mingw*)
13618       VAR_OS=windows
13619       VAR_OS_API=winapi
13620       VAR_OS_ENV=windows.msys
13621       ;;
13622     *aix*)
13623       VAR_OS=aix
13624       VAR_OS_API=posix
13625       VAR_OS_ENV=aix
13626       ;;
13627     *)
13628       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13629       ;;
13630   esac
13631 
13632 
13633   # First argument is the cpu name from the trip/quad
13634   case "$build_cpu" in
13635     x86_64)
13636       VAR_CPU=x86_64
13637       VAR_CPU_ARCH=x86
13638       VAR_CPU_BITS=64
13639       VAR_CPU_ENDIAN=little
13640       ;;
13641     i?86)
13642       VAR_CPU=x86
13643       VAR_CPU_ARCH=x86
13644       VAR_CPU_BITS=32
13645       VAR_CPU_ENDIAN=little
13646       ;;
13647     arm*)
13648       VAR_CPU=arm
13649       VAR_CPU_ARCH=arm
13650       VAR_CPU_BITS=32
13651       VAR_CPU_ENDIAN=little
13652       ;;
13653     aarch64)
13654       VAR_CPU=aarch64
13655       VAR_CPU_ARCH=aarch64
13656       VAR_CPU_BITS=64
13657       VAR_CPU_ENDIAN=little
13658       ;;
13659     powerpc)
13660       VAR_CPU=ppc
13661       VAR_CPU_ARCH=ppc
13662       VAR_CPU_BITS=32
13663       VAR_CPU_ENDIAN=big
13664       ;;
13665     powerpc64)
13666       VAR_CPU=ppc64
13667       VAR_CPU_ARCH=ppc
13668       VAR_CPU_BITS=64
13669       VAR_CPU_ENDIAN=big
13670       ;;
13671     powerpc64le)
13672       VAR_CPU=ppc64le
13673       VAR_CPU_ARCH=ppc
13674       VAR_CPU_BITS=64
13675       VAR_CPU_ENDIAN=little
13676       ;;
13677     s390)
13678       VAR_CPU=s390
13679       VAR_CPU_ARCH=s390
13680       VAR_CPU_BITS=32
13681       VAR_CPU_ENDIAN=big
13682       ;;
13683     s390x)
13684       VAR_CPU=s390x
13685       VAR_CPU_ARCH=s390
13686       VAR_CPU_BITS=64
13687       VAR_CPU_ENDIAN=big
13688       ;;
13689     sparc)
13690       VAR_CPU=sparc
13691       VAR_CPU_ARCH=sparc
13692       VAR_CPU_BITS=32
13693       VAR_CPU_ENDIAN=big
13694       ;;
13695     sparcv9|sparc64)
13696       VAR_CPU=sparcv9
13697       VAR_CPU_ARCH=sparc
13698       VAR_CPU_BITS=64
13699       VAR_CPU_ENDIAN=big
13700       ;;
13701     *)
13702       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13703       ;;
13704   esac
13705 
13706   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13707   OPENJDK_BUILD_OS="$VAR_OS"
13708   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13709   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13710   OPENJDK_BUILD_CPU="$VAR_CPU"
13711   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13712   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13713   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13714 
13715 
13716 
13717 
13718 
13719 
13720 
13721 
13722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13723 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13725 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13726 
13727   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13728 
13729   case "$host_os" in
13730     *linux*)
13731       VAR_OS=linux
13732       VAR_OS_API=posix
13733       VAR_OS_ENV=linux
13734       ;;
13735     *solaris*)
13736       VAR_OS=solaris
13737       VAR_OS_API=posix
13738       VAR_OS_ENV=solaris
13739       ;;
13740     *darwin*)
13741       VAR_OS=macosx
13742       VAR_OS_API=posix
13743       VAR_OS_ENV=macosx
13744       ;;
13745     *bsd*)
13746       VAR_OS=bsd
13747       VAR_OS_API=posix
13748       VAR_OS_ENV=bsd
13749       ;;
13750     *cygwin*)
13751       VAR_OS=windows
13752       VAR_OS_API=winapi
13753       VAR_OS_ENV=windows.cygwin
13754       ;;
13755     *mingw*)
13756       VAR_OS=windows
13757       VAR_OS_API=winapi
13758       VAR_OS_ENV=windows.msys
13759       ;;
13760     *aix*)
13761       VAR_OS=aix
13762       VAR_OS_API=posix
13763       VAR_OS_ENV=aix
13764       ;;
13765     *)
13766       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13767       ;;
13768   esac
13769 
13770 
13771   # First argument is the cpu name from the trip/quad
13772   case "$host_cpu" in
13773     x86_64)
13774       VAR_CPU=x86_64
13775       VAR_CPU_ARCH=x86
13776       VAR_CPU_BITS=64
13777       VAR_CPU_ENDIAN=little
13778       ;;
13779     i?86)
13780       VAR_CPU=x86
13781       VAR_CPU_ARCH=x86
13782       VAR_CPU_BITS=32
13783       VAR_CPU_ENDIAN=little
13784       ;;
13785     arm*)
13786       VAR_CPU=arm
13787       VAR_CPU_ARCH=arm
13788       VAR_CPU_BITS=32
13789       VAR_CPU_ENDIAN=little
13790       ;;
13791     aarch64)
13792       VAR_CPU=aarch64
13793       VAR_CPU_ARCH=aarch64
13794       VAR_CPU_BITS=64
13795       VAR_CPU_ENDIAN=little
13796       ;;
13797     powerpc)
13798       VAR_CPU=ppc
13799       VAR_CPU_ARCH=ppc
13800       VAR_CPU_BITS=32
13801       VAR_CPU_ENDIAN=big
13802       ;;
13803     powerpc64)
13804       VAR_CPU=ppc64
13805       VAR_CPU_ARCH=ppc
13806       VAR_CPU_BITS=64
13807       VAR_CPU_ENDIAN=big
13808       ;;
13809     powerpc64le)
13810       VAR_CPU=ppc64le
13811       VAR_CPU_ARCH=ppc
13812       VAR_CPU_BITS=64
13813       VAR_CPU_ENDIAN=little
13814       ;;
13815     s390)
13816       VAR_CPU=s390
13817       VAR_CPU_ARCH=s390
13818       VAR_CPU_BITS=32
13819       VAR_CPU_ENDIAN=big
13820       ;;
13821     s390x)
13822       VAR_CPU=s390x
13823       VAR_CPU_ARCH=s390
13824       VAR_CPU_BITS=64
13825       VAR_CPU_ENDIAN=big
13826       ;;
13827     sparc)
13828       VAR_CPU=sparc
13829       VAR_CPU_ARCH=sparc
13830       VAR_CPU_BITS=32
13831       VAR_CPU_ENDIAN=big
13832       ;;
13833     sparcv9|sparc64)
13834       VAR_CPU=sparcv9
13835       VAR_CPU_ARCH=sparc
13836       VAR_CPU_BITS=64
13837       VAR_CPU_ENDIAN=big
13838       ;;
13839     *)
13840       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13841       ;;
13842   esac
13843 
13844   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13845   OPENJDK_TARGET_OS="$VAR_OS"
13846   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13847   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13848   OPENJDK_TARGET_CPU="$VAR_CPU"
13849   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13850   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13851   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13852 
13853 
13854 
13855 
13856 
13857 
13858 
13859 
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13861 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13863 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13864 
13865 
13866 
13867 # Check whether --with-target-bits was given.
13868 if test "${with_target_bits+set}" = set; then :
13869   withval=$with_target_bits;
13870 fi
13871 
13872 
13873   # We have three types of compiles:
13874   # native  == normal compilation, target system == build system
13875   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13876   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13877   #
13878   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13879     # We're doing a proper cross-compilation
13880     COMPILE_TYPE="cross"
13881   else
13882     COMPILE_TYPE="native"
13883   fi
13884 
13885   if test "x$with_target_bits" != x; then
13886     if test "x$COMPILE_TYPE" = "xcross"; then
13887       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13888     fi
13889 
13890     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13891       # A reduced build is requested
13892       COMPILE_TYPE="reduced"
13893       OPENJDK_TARGET_CPU_BITS=32
13894       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13895         OPENJDK_TARGET_CPU=x86
13896       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13897         OPENJDK_TARGET_CPU=sparc
13898       else
13899         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13900       fi
13901     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13902       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
13903     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13904       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13905 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13906     else
13907       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13908     fi
13909   fi
13910 
13911 
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13913 $as_echo_n "checking compilation type... " >&6; }
13914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13915 $as_echo "$COMPILE_TYPE" >&6; }
13916 
13917 
13918   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13919     REQUIRED_OS_NAME=SunOS
13920     REQUIRED_OS_VERSION=5.10
13921   fi
13922   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13923     REQUIRED_OS_NAME=Linux
13924     REQUIRED_OS_VERSION=2.6
13925   fi
13926   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13927     REQUIRED_OS_NAME=Windows
13928     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13929       REQUIRED_OS_VERSION=5.2
13930     else
13931       REQUIRED_OS_VERSION=5.1
13932     fi
13933   fi
13934   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13935     REQUIRED_OS_NAME=Darwin
13936     REQUIRED_OS_VERSION=11.2
13937   fi
13938 
13939 
13940 
13941 
13942 
13943   # Also store the legacy naming of the cpu.
13944   # Ie i586 and amd64 instead of x86 and x86_64
13945   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13946   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13947     OPENJDK_TARGET_CPU_LEGACY="i586"
13948   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13949     # On all platforms except MacOSX replace x86_64 with amd64.
13950     OPENJDK_TARGET_CPU_LEGACY="amd64"
13951   fi
13952 
13953 
13954   # And the second legacy naming of the cpu.
13955   # Ie i386 and amd64 instead of x86 and x86_64.
13956   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13957   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13958     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13959   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13960     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13961   fi
13962 
13963 
13964   # This is the name of the cpu (but using i386 and amd64 instead of
13965   # x86 and x86_64, respectively), preceeded by a /, to be used when
13966   # locating libraries. On macosx, it's empty, though.
13967   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13968   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13969     OPENJDK_TARGET_CPU_LIBDIR=""
13970   fi
13971 
13972 
13973   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13974   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13975   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13976   OPENJDK_TARGET_CPU_ISADIR=""
13977   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13978     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13979       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13980     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13981       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13982     fi
13983   fi
13984 
13985 
13986   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13987   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13988   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13989     # On linux only, we replace x86 with i386.
13990     OPENJDK_TARGET_CPU_OSARCH="i386"
13991   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13992     # On all platforms except macosx, we replace x86_64 with amd64.
13993     OPENJDK_TARGET_CPU_OSARCH="amd64"
13994   fi
13995 
13996 
13997   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13998   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13999     OPENJDK_TARGET_CPU_JLI="i386"
14000   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14001     # On all platforms except macosx, we replace x86_64 with amd64.
14002     OPENJDK_TARGET_CPU_JLI="amd64"
14003   fi
14004   # Now setup the -D flags for building libjli.
14005   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14006   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14007     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14008       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14009     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14010       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14011     fi
14012   fi
14013 
14014 
14015   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
14016   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
14017     OPENJDK_TARGET_OS_API_DIR="solaris"
14018   fi
14019   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
14020     OPENJDK_TARGET_OS_API_DIR="windows"
14021   fi
14022 
14023 
14024   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14025       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14026   else
14027       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
14028   fi
14029 
14030 
14031   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14032     A_LP64="LP64:="
14033     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14034     # unpack200.exe
14035     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14036       ADD_LP64="-D_LP64=1"
14037     fi
14038   fi
14039   LP64=$A_LP64
14040 
14041 
14042   if test "x$COMPILE_TYPE" = "xcross"; then
14043     # FIXME: ... or should this include reduced builds..?
14044     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14045   else
14046     DEFINE_CROSS_COMPILE_ARCH=""
14047   fi
14048 
14049 
14050   # ZERO_ARCHDEF is used to enable architecture-specific code
14051   case "${OPENJDK_TARGET_CPU}" in
14052     ppc)     ZERO_ARCHDEF=PPC32 ;;
14053     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14054     s390*)   ZERO_ARCHDEF=S390  ;;
14055     sparc*)  ZERO_ARCHDEF=SPARC ;;
14056     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14057     x86)     ZERO_ARCHDEF=IA32  ;;
14058     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14059   esac
14060 
14061 
14062 
14063 
14064 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14065 
14066   # Save the current directory this script was started from
14067   CURDIR="$PWD"
14068 
14069   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14070     PATH_SEP=";"
14071 
14072   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14073   if test $SRC_ROOT_LENGTH -gt 100; then
14074     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14075   fi
14076 
14077   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14079 $as_echo_n "checking cygwin release... " >&6; }
14080     CYGWIN_VERSION=`$UNAME -r`
14081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14082 $as_echo "$CYGWIN_VERSION" >&6; }
14083     WINDOWS_ENV_VENDOR='cygwin'
14084     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14085 
14086     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
14087     if test "x$CYGWIN_VERSION_OLD" != x; then
14088       { $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
14089 $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;}
14090       as_fn_error $? "Cannot continue" "$LINENO" 5
14091     fi
14092     if test "x$CYGPATH" = x; then
14093       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14094     fi
14095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14096 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14097     # The cmd output ends with Windows line endings (CR/LF)
14098     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14099     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14100     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14102 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14103     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14104     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14105     if test "x$test_cygdrive_prefix" = x; then
14106       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14107     fi
14108   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14110 $as_echo_n "checking msys release... " >&6; }
14111     MSYS_VERSION=`$UNAME -r`
14112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14113 $as_echo "$MSYS_VERSION" >&6; }
14114 
14115     WINDOWS_ENV_VENDOR='msys'
14116     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14117 
14118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14119 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14120     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14121     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14122 
14123   windows_path="$MSYS_ROOT_PATH"
14124   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14125     unix_path=`$CYGPATH -u "$windows_path"`
14126     MSYS_ROOT_PATH="$unix_path"
14127   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14128     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14129     MSYS_ROOT_PATH="$unix_path"
14130   fi
14131 
14132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14133 $as_echo "$MSYS_ROOT_PATH" >&6; }
14134     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14135   else
14136     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14137   fi
14138 
14139   # Test if windows or unix (cygwin/msys) find is first in path.
14140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14141 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14142   FIND_BINARY_OUTPUT=`find --version 2>&1`
14143   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14145 $as_echo "unix style" >&6; }
14146   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14148 $as_echo "Windows" >&6; }
14149     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14150 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14151     { $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
14152 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14153     as_fn_error $? "Cannot continue" "$LINENO" 5
14154   else
14155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14156 $as_echo "unknown" >&6; }
14157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14158 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14159   fi
14160 
14161   else
14162     PATH_SEP=":"
14163   fi
14164 
14165 
14166   # We get the top-level directory from the supporting wrappers.
14167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14168 $as_echo_n "checking for top-level directory... " >&6; }
14169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14170 $as_echo "$TOPDIR" >&6; }
14171 
14172 
14173   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14174 
14175   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14176 
14177   # Input might be given as Windows format, start by converting to
14178   # unix format.
14179   path="$CURDIR"
14180   new_path=`$CYGPATH -u "$path"`
14181 
14182   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14183   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14184   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14185   # "foo.exe" is OK but "foo" is an error.
14186   #
14187   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14188   # It is also a way to make sure we got the proper file name for the real test later on.
14189   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14190   if test "x$test_shortpath" = x; then
14191     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14192 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14193     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14194   fi
14195 
14196   # Call helper function which possibly converts this using DOS-style short mode.
14197   # If so, the updated path is stored in $new_path.
14198 
14199   input_path="$new_path"
14200   # Check if we need to convert this using DOS-style short mode. If the path
14201   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14202   # take no chances and rewrite it.
14203   # Note: m4 eats our [], so we need to use [ and ] instead.
14204   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14205   if test "x$has_forbidden_chars" != x; then
14206     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14207     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14208     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14209     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14210       # Going to short mode and back again did indeed matter. Since short mode is
14211       # case insensitive, let's make it lowercase to improve readability.
14212       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14213       # Now convert it back to Unix-style (cygpath)
14214       input_path=`$CYGPATH -u "$shortmode_path"`
14215       new_path="$input_path"
14216     fi
14217   fi
14218 
14219   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14220   if test "x$test_cygdrive_prefix" = x; then
14221     # As a simple fix, exclude /usr/bin since it's not a real path.
14222     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14223       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14224       # a path prefixed by /cygdrive for fixpath to work.
14225       new_path="$CYGWIN_ROOT_PATH$input_path"
14226     fi
14227   fi
14228 
14229 
14230   if test "x$path" != "x$new_path"; then
14231     CURDIR="$new_path"
14232     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14233 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14234   fi
14235 
14236   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14237 
14238   path="$CURDIR"
14239   has_colon=`$ECHO $path | $GREP ^.:`
14240   new_path="$path"
14241   if test "x$has_colon" = x; then
14242     # Not in mixed or Windows style, start by that.
14243     new_path=`cmd //c echo $path`
14244   fi
14245 
14246 
14247   input_path="$new_path"
14248   # Check if we need to convert this using DOS-style short mode. If the path
14249   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14250   # take no chances and rewrite it.
14251   # Note: m4 eats our [], so we need to use [ and ] instead.
14252   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14253   if test "x$has_forbidden_chars" != x; then
14254     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14255     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14256   fi
14257 
14258 
14259   windows_path="$new_path"
14260   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14261     unix_path=`$CYGPATH -u "$windows_path"`
14262     new_path="$unix_path"
14263   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14264     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14265     new_path="$unix_path"
14266   fi
14267 
14268   if test "x$path" != "x$new_path"; then
14269     CURDIR="$new_path"
14270     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14271 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14272   fi
14273 
14274   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14275   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14276 
14277   else
14278     # We're on a posix platform. Hooray! :)
14279     path="$CURDIR"
14280     has_space=`$ECHO "$path" | $GREP " "`
14281     if test "x$has_space" != x; then
14282       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14283 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14284       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14285     fi
14286 
14287     # Use eval to expand a potential ~
14288     eval path="$path"
14289     if test ! -f "$path" && test ! -d "$path"; then
14290       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14291     fi
14292 
14293     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14294   fi
14295 
14296 
14297   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14298 
14299   # Input might be given as Windows format, start by converting to
14300   # unix format.
14301   path="$TOPDIR"
14302   new_path=`$CYGPATH -u "$path"`
14303 
14304   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14305   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14306   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14307   # "foo.exe" is OK but "foo" is an error.
14308   #
14309   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14310   # It is also a way to make sure we got the proper file name for the real test later on.
14311   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14312   if test "x$test_shortpath" = x; then
14313     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14314 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14315     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14316   fi
14317 
14318   # Call helper function which possibly converts this using DOS-style short mode.
14319   # If so, the updated path is stored in $new_path.
14320 
14321   input_path="$new_path"
14322   # Check if we need to convert this using DOS-style short mode. If the path
14323   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14324   # take no chances and rewrite it.
14325   # Note: m4 eats our [], so we need to use [ and ] instead.
14326   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14327   if test "x$has_forbidden_chars" != x; then
14328     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14329     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14330     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14331     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14332       # Going to short mode and back again did indeed matter. Since short mode is
14333       # case insensitive, let's make it lowercase to improve readability.
14334       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14335       # Now convert it back to Unix-style (cygpath)
14336       input_path=`$CYGPATH -u "$shortmode_path"`
14337       new_path="$input_path"
14338     fi
14339   fi
14340 
14341   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14342   if test "x$test_cygdrive_prefix" = x; then
14343     # As a simple fix, exclude /usr/bin since it's not a real path.
14344     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14345       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14346       # a path prefixed by /cygdrive for fixpath to work.
14347       new_path="$CYGWIN_ROOT_PATH$input_path"
14348     fi
14349   fi
14350 
14351 
14352   if test "x$path" != "x$new_path"; then
14353     TOPDIR="$new_path"
14354     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14355 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14356   fi
14357 
14358   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14359 
14360   path="$TOPDIR"
14361   has_colon=`$ECHO $path | $GREP ^.:`
14362   new_path="$path"
14363   if test "x$has_colon" = x; then
14364     # Not in mixed or Windows style, start by that.
14365     new_path=`cmd //c echo $path`
14366   fi
14367 
14368 
14369   input_path="$new_path"
14370   # Check if we need to convert this using DOS-style short mode. If the path
14371   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14372   # take no chances and rewrite it.
14373   # Note: m4 eats our [], so we need to use [ and ] instead.
14374   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14375   if test "x$has_forbidden_chars" != x; then
14376     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14377     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14378   fi
14379 
14380 
14381   windows_path="$new_path"
14382   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14383     unix_path=`$CYGPATH -u "$windows_path"`
14384     new_path="$unix_path"
14385   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14386     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14387     new_path="$unix_path"
14388   fi
14389 
14390   if test "x$path" != "x$new_path"; then
14391     TOPDIR="$new_path"
14392     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14393 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14394   fi
14395 
14396   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14397   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14398 
14399   else
14400     # We're on a posix platform. Hooray! :)
14401     path="$TOPDIR"
14402     has_space=`$ECHO "$path" | $GREP " "`
14403     if test "x$has_space" != x; then
14404       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14405 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14406       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14407     fi
14408 
14409     # Use eval to expand a potential ~
14410     eval path="$path"
14411     if test ! -f "$path" && test ! -d "$path"; then
14412       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14413     fi
14414 
14415     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14416   fi
14417 
14418   # SRC_ROOT is a traditional alias for TOPDIR.
14419   SRC_ROOT=$TOPDIR
14420 
14421   # Locate the directory of this script.
14422   AUTOCONF_DIR=$TOPDIR/common/autoconf
14423 
14424 
14425   # Setup default logging of stdout and stderr to build.log in the output root.
14426   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14427   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14428   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14429 
14430 
14431 
14432 
14433 
14434 # Check if it's a pure open build or if custom sources are to be used.
14435 
14436   # Check whether --enable-openjdk-only was given.
14437 if test "${enable_openjdk_only+set}" = set; then :
14438   enableval=$enable_openjdk_only;
14439 else
14440   enable_openjdk_only="no"
14441 fi
14442 
14443 
14444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14445 $as_echo_n "checking for presence of closed sources... " >&6; }
14446   if test -d "$SRC_ROOT/jdk/src/closed"; then
14447     CLOSED_SOURCE_PRESENT=yes
14448   else
14449     CLOSED_SOURCE_PRESENT=no
14450   fi
14451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14452 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14453 
14454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14455 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14456   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14458 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14459 
14460   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14461     OPENJDK=true
14462     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14463       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14464 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14465     fi
14466   else
14467     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14468       OPENJDK=true
14469     else
14470       OPENJDK=false
14471     fi
14472   fi
14473 
14474   if test "x$OPENJDK" = "xtrue"; then
14475     SET_OPENJDK="OPENJDK=true"
14476   fi
14477 
14478 
14479 
14480 
14481 # These are needed to be able to create a configuration name (and thus the output directory)
14482 
14483   ###############################################################################
14484   #
14485   # Check which variant of the JDK that we want to build.
14486   # Currently we have:
14487   #    normal:   standard edition
14488   # but the custom make system may add other variants
14489   #
14490   # Effectively the JDK variant gives a name to a specific set of
14491   # modules to compile into the JDK. In the future, these modules
14492   # might even be Jigsaw modules.
14493   #
14494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14495 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14496 
14497 # Check whether --with-jdk-variant was given.
14498 if test "${with_jdk_variant+set}" = set; then :
14499   withval=$with_jdk_variant;
14500 fi
14501 
14502 
14503   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14504     JDK_VARIANT="normal"
14505   else
14506     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14507   fi
14508 
14509 
14510 
14511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14512 $as_echo "$JDK_VARIANT" >&6; }
14513 
14514 
14515 ###############################################################################
14516 #
14517 # Check which interpreter of the JVM we want to build.
14518 # Currently we have:
14519 #    template: Template interpreter (the default)
14520 #    cpp     : C++ interpreter
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14522 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14523 
14524 # Check whether --with-jvm-interpreter was given.
14525 if test "${with_jvm_interpreter+set}" = set; then :
14526   withval=$with_jvm_interpreter;
14527 fi
14528 
14529 
14530 if test "x$with_jvm_interpreter" = x; then
14531      with_jvm_interpreter="template"
14532 fi
14533 
14534 JVM_INTERPRETER="$with_jvm_interpreter"
14535 
14536 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14537    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14538 fi
14539 
14540 
14541 
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14543 $as_echo "$with_jvm_interpreter" >&6; }
14544 
14545 
14546 
14547   ###############################################################################
14548   #
14549   # Check which variants of the JVM that we want to build.
14550   # Currently we have:
14551   #    server: normal interpreter and a tiered C1/C2 compiler
14552   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14553   #    minimal1: reduced form of client with optional VM services and features stripped out
14554   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14555   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14556   #    zero: no machine code interpreter, no compiler
14557   #    zeroshark: zero interpreter and shark/llvm compiler backend
14558 #    core: interpreter only, no compiler (only works on some platforms)
14559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14560 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14561 
14562 # Check whether --with-jvm-variants was given.
14563 if test "${with_jvm_variants+set}" = set; then :
14564   withval=$with_jvm_variants;
14565 fi
14566 
14567 
14568   if test "x$with_jvm_variants" = x; then
14569     with_jvm_variants="server"
14570   fi
14571 
14572   JVM_VARIANTS=",$with_jvm_variants,"
14573   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,//'`
14574 
14575   if test "x$TEST_VARIANTS" != "x,"; then
14576      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14577   fi
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14579 $as_echo "$with_jvm_variants" >&6; }
14580 
14581   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14582   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14583   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14584   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14585   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14586   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14587   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14588 
14589   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14590     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14591       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14592     fi
14593   fi
14594   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14595     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14596       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14597     fi
14598   fi
14599   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14600     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14601       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14602     fi
14603   fi
14604 
14605   # Replace the commas with AND for use in the build directory name.
14606   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14607   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/'`
14608   if test "x$COUNT_VARIANTS" != "x,1"; then
14609     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14610   else
14611     BUILDING_MULTIPLE_JVM_VARIANTS=no
14612   fi
14613 
14614 
14615 
14616 
14617 
14618 
14619 
14620 
14621 
14622 
14623   INCLUDE_SA=true
14624   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14625     INCLUDE_SA=false
14626   fi
14627   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14628     INCLUDE_SA=false
14629   fi
14630   if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
14631     INCLUDE_SA=false
14632   fi
14633   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14634     INCLUDE_SA=false
14635   fi
14636 
14637 
14638   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14639     MACOSX_UNIVERSAL="false"
14640   fi
14641 
14642 
14643 
14644 
14645   ###############################################################################
14646   #
14647   # Set the debug level
14648   #    release: no debug information, all optimizations, no asserts.
14649   #    fastdebug: debug information (-g), all optimizations, all asserts
14650   #    slowdebug: debug information (-g), no optimizations, all asserts
14651   #
14652   DEBUG_LEVEL="release"
14653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14654 $as_echo_n "checking which debug level to use... " >&6; }
14655   # Check whether --enable-debug was given.
14656 if test "${enable_debug+set}" = set; then :
14657   enableval=$enable_debug;
14658         ENABLE_DEBUG="${enableval}"
14659         DEBUG_LEVEL="fastdebug"
14660 
14661 else
14662   ENABLE_DEBUG="no"
14663 fi
14664 
14665 
14666 
14667 # Check whether --with-debug-level was given.
14668 if test "${with_debug_level+set}" = set; then :
14669   withval=$with_debug_level;
14670         DEBUG_LEVEL="${withval}"
14671         if test "x$ENABLE_DEBUG" = xyes; then
14672           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14673         fi
14674 
14675 fi
14676 
14677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14678 $as_echo "$DEBUG_LEVEL" >&6; }
14679 
14680   if test "x$DEBUG_LEVEL" != xrelease && \
14681       test "x$DEBUG_LEVEL" != xfastdebug && \
14682       test "x$DEBUG_LEVEL" != xslowdebug; then
14683     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14684   fi
14685 
14686 
14687   ###############################################################################
14688   #
14689   # Setup legacy vars/targets and new vars to deal with different debug levels.
14690   #
14691 
14692   case $DEBUG_LEVEL in
14693     release )
14694       VARIANT="OPT"
14695       FASTDEBUG="false"
14696       DEBUG_CLASSFILES="false"
14697       BUILD_VARIANT_RELEASE=""
14698       HOTSPOT_DEBUG_LEVEL="product"
14699       HOTSPOT_EXPORT="product"
14700       ;;
14701     fastdebug )
14702       VARIANT="DBG"
14703       FASTDEBUG="true"
14704       DEBUG_CLASSFILES="true"
14705       BUILD_VARIANT_RELEASE="-fastdebug"
14706       HOTSPOT_DEBUG_LEVEL="fastdebug"
14707       HOTSPOT_EXPORT="fastdebug"
14708       ;;
14709     slowdebug )
14710       VARIANT="DBG"
14711       FASTDEBUG="false"
14712       DEBUG_CLASSFILES="true"
14713       BUILD_VARIANT_RELEASE="-debug"
14714       HOTSPOT_DEBUG_LEVEL="jvmg"
14715       HOTSPOT_EXPORT="debug"
14716       ;;
14717   esac
14718 
14719   #####
14720   # Generate the legacy makefile targets for hotspot.
14721   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14722   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14723   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14724   # But until then ...
14725   HOTSPOT_TARGET=""
14726 
14727   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14728     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14729   fi
14730 
14731   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14732     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14733   fi
14734 
14735   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14736     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14737   fi
14738 
14739   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14740     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14741   fi
14742 
14743   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14744     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14745   fi
14746 
14747   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14748     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14749   fi
14750 
14751   if test "x$JVM_VARIANT_CORE" = xtrue; then
14752     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14753   fi
14754 
14755   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14756 
14757   # On Macosx universal binaries are produced, but they only contain
14758   # 64 bit intel. This invalidates control of which jvms are built
14759   # from configure, but only server is valid anyway. Fix this
14760   # when hotspot makefiles are rewritten.
14761   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14762     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14763   fi
14764 
14765   #####
14766 
14767 
14768 
14769 
14770 
14771 
14772 
14773 
14774 # With basic setup done, call the custom early hook.
14775 
14776 
14777 # Check if we have devkits, extra paths or sysroot set.
14778 
14779 
14780 # Check whether --with-devkit was given.
14781 if test "${with_devkit+set}" = set; then :
14782   withval=$with_devkit;
14783 fi
14784 
14785 
14786   if test "x$with_devkit" = xyes; then
14787     as_fn_error $? "--with-devkit must have a value" "$LINENO" 5
14788   elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
14789 
14790   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14791 
14792   # Input might be given as Windows format, start by converting to
14793   # unix format.
14794   path="$with_devkit"
14795   new_path=`$CYGPATH -u "$path"`
14796 
14797   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14798   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14799   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14800   # "foo.exe" is OK but "foo" is an error.
14801   #
14802   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14803   # It is also a way to make sure we got the proper file name for the real test later on.
14804   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14805   if test "x$test_shortpath" = x; then
14806     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14807 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14808     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14809   fi
14810 
14811   # Call helper function which possibly converts this using DOS-style short mode.
14812   # If so, the updated path is stored in $new_path.
14813 
14814   input_path="$new_path"
14815   # Check if we need to convert this using DOS-style short mode. If the path
14816   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14817   # take no chances and rewrite it.
14818   # Note: m4 eats our [], so we need to use [ and ] instead.
14819   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14820   if test "x$has_forbidden_chars" != x; then
14821     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14822     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14823     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14824     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14825       # Going to short mode and back again did indeed matter. Since short mode is
14826       # case insensitive, let's make it lowercase to improve readability.
14827       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14828       # Now convert it back to Unix-style (cygpath)
14829       input_path=`$CYGPATH -u "$shortmode_path"`
14830       new_path="$input_path"
14831     fi
14832   fi
14833 
14834   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14835   if test "x$test_cygdrive_prefix" = x; then
14836     # As a simple fix, exclude /usr/bin since it's not a real path.
14837     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14838       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14839       # a path prefixed by /cygdrive for fixpath to work.
14840       new_path="$CYGWIN_ROOT_PATH$input_path"
14841     fi
14842   fi
14843 
14844 
14845   if test "x$path" != "x$new_path"; then
14846     with_devkit="$new_path"
14847     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14848 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14849   fi
14850 
14851   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14852 
14853   path="$with_devkit"
14854   has_colon=`$ECHO $path | $GREP ^.:`
14855   new_path="$path"
14856   if test "x$has_colon" = x; then
14857     # Not in mixed or Windows style, start by that.
14858     new_path=`cmd //c echo $path`
14859   fi
14860 
14861 
14862   input_path="$new_path"
14863   # Check if we need to convert this using DOS-style short mode. If the path
14864   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14865   # take no chances and rewrite it.
14866   # Note: m4 eats our [], so we need to use [ and ] instead.
14867   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14868   if test "x$has_forbidden_chars" != x; then
14869     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14870     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14871   fi
14872 
14873 
14874   windows_path="$new_path"
14875   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14876     unix_path=`$CYGPATH -u "$windows_path"`
14877     new_path="$unix_path"
14878   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14879     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14880     new_path="$unix_path"
14881   fi
14882 
14883   if test "x$path" != "x$new_path"; then
14884     with_devkit="$new_path"
14885     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14886 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14887   fi
14888 
14889   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14890   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14891 
14892   else
14893     # We're on a posix platform. Hooray! :)
14894     path="$with_devkit"
14895     has_space=`$ECHO "$path" | $GREP " "`
14896     if test "x$has_space" != x; then
14897       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14898 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14899       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14900     fi
14901 
14902     # Use eval to expand a potential ~
14903     eval path="$path"
14904     if test ! -f "$path" && test ! -d "$path"; then
14905       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14906     fi
14907 
14908     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14909   fi
14910 
14911     DEVKIT_ROOT="$with_devkit"
14912     # Check for a meta data info file in the root of the devkit
14913     if test -f "$DEVKIT_ROOT/devkit.info"; then
14914       . $DEVKIT_ROOT/devkit.info
14915       # This potentially sets the following:
14916       # A descriptive name of the devkit
14917 
14918   if test "x$DEVKIT_NAME" = x; then
14919     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14920   fi
14921 
14922       # Corresponds to --with-extra-path
14923 
14924   if test "x$DEVKIT_EXTRA_PATH" = x; then
14925     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14926   fi
14927 
14928       # Corresponds to --with-toolchain-path
14929 
14930   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14931     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14932   fi
14933 
14934       # Corresponds to --with-sysroot
14935 
14936   if test "x$DEVKIT_SYSROOT" = x; then
14937     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14938   fi
14939 
14940 
14941       # Identifies the Visual Studio version in the devkit
14942 
14943   if test "x$DEVKIT_VS_VERSION" = x; then
14944     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14945   fi
14946 
14947       # The Visual Studio include environment variable
14948 
14949   if test "x$DEVKIT_VS_INCLUDE" = x; then
14950     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14951   fi
14952 
14953       # The Visual Studio lib environment variable
14954 
14955   if test "x$DEVKIT_VS_LIB" = x; then
14956     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14957   fi
14958 
14959       # Corresponds to --with-msvcr-dll
14960 
14961   if test "x$DEVKIT_MSVCR_DLL" = x; then
14962     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14963   fi
14964 
14965       # Corresponds to --with-msvcp-dll
14966 
14967   if test "x$DEVKIT_MSVCP_DLL" = x; then
14968     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14969   fi
14970 
14971       # Corresponds to --with-ucrt-dll-dir
14972 
14973   if test "x$DEVKIT_UCRT_DLL_DIR" = x; then
14974     eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}"
14975   fi
14976 
14977     fi
14978 
14979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14980 $as_echo_n "checking for devkit... " >&6; }
14981     if test "x$DEVKIT_NAME" != x; then
14982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14983 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14984     else
14985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14986 $as_echo "$DEVKIT_ROOT" >&6; }
14987     fi
14988 
14989 
14990   if test "x$DEVKIT_EXTRA_PATH" != x; then
14991     if test "x$EXTRA_PATH" = x; then
14992       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14993     else
14994       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14995     fi
14996   fi
14997 
14998 
14999     # Fallback default of just /bin if DEVKIT_PATH is not defined
15000     if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15001       DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
15002     fi
15003 
15004   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
15005     if test "x$TOOLCHAIN_PATH" = x; then
15006       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
15007     else
15008       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
15009     fi
15010   fi
15011 
15012 
15013     # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
15014     # places for backwards compatiblity.
15015     if test "x$DEVKIT_SYSROOT" != x; then
15016       SYSROOT="$DEVKIT_SYSROOT"
15017     elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
15018       SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15019     elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15020       SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15021     fi
15022 
15023     if test "x$DEVKIT_ROOT" != x; then
15024       DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
15025       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15026         DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
15027       fi
15028 
15029     fi
15030   fi
15031 
15032   # You can force the sysroot if the sysroot encoded into the compiler tools
15033   # is not correct.
15034 
15035 # Check whether --with-sys-root was given.
15036 if test "${with_sys_root+set}" = set; then :
15037   withval=$with_sys_root; SYSROOT=$with_sys_root
15038 
15039 fi
15040 
15041 
15042 
15043 # Check whether --with-sysroot was given.
15044 if test "${with_sysroot+set}" = set; then :
15045   withval=$with_sysroot; SYSROOT=$with_sysroot
15046 
15047 fi
15048 
15049 
15050 
15051 # Check whether --with-tools-dir was given.
15052 if test "${with_tools_dir+set}" = set; then :
15053   withval=$with_tools_dir;
15054   if test "x$with_tools_dir" != x; then
15055     if test "x$TOOLCHAIN_PATH" = x; then
15056       TOOLCHAIN_PATH="$with_tools_dir"
15057     else
15058       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15059     fi
15060   fi
15061 
15062 
15063 fi
15064 
15065 
15066 
15067 # Check whether --with-toolchain-path was given.
15068 if test "${with_toolchain_path+set}" = set; then :
15069   withval=$with_toolchain_path;
15070   if test "x$with_toolchain_path" != x; then
15071     if test "x$TOOLCHAIN_PATH" = x; then
15072       TOOLCHAIN_PATH="$with_toolchain_path"
15073     else
15074       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15075     fi
15076   fi
15077 
15078 
15079 fi
15080 
15081 
15082 
15083 # Check whether --with-extra-path was given.
15084 if test "${with_extra_path+set}" = set; then :
15085   withval=$with_extra_path;
15086   if test "x$with_extra_path" != x; then
15087     if test "x$EXTRA_PATH" = x; then
15088       EXTRA_PATH="$with_extra_path"
15089     else
15090       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15091     fi
15092   fi
15093 
15094 
15095 fi
15096 
15097 
15098   # Prepend the extra path to the global path
15099 
15100   if test "x$EXTRA_PATH" != x; then
15101     if test "x$PATH" = x; then
15102       PATH="$EXTRA_PATH"
15103     else
15104       PATH="$EXTRA_PATH:$PATH"
15105     fi
15106   fi
15107 
15108 
15109   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15110     # Add extra search paths on solaris for utilities like ar and as etc...
15111     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15112   fi
15113 
15114   # Xcode version will be validated later
15115 
15116 # Check whether --with-xcode-path was given.
15117 if test "${with_xcode_path+set}" = set; then :
15118   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15119 
15120 fi
15121 
15122 
15123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15124 $as_echo_n "checking for sysroot... " >&6; }
15125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15126 $as_echo "$SYSROOT" >&6; }
15127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15128 $as_echo_n "checking for toolchain path... " >&6; }
15129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15130 $as_echo "$TOOLCHAIN_PATH" >&6; }
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15132 $as_echo_n "checking for extra path... " >&6; }
15133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15134 $as_echo "$EXTRA_PATH" >&6; }
15135 
15136 
15137 # To properly create a configuration name, we need to have the OpenJDK target
15138 # and options (variants and debug level) parsed.
15139 
15140 
15141 
15142 # Check whether --with-conf-name was given.
15143 if test "${with_conf_name+set}" = set; then :
15144   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15145 fi
15146 
15147 
15148   # Test from where we are running configure, in or outside of src root.
15149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15150 $as_echo_n "checking where to store configuration... " >&6; }
15151   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15152       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15153       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15154     # We are running configure from the src root.
15155     # Create a default ./build/target-variant-debuglevel output root.
15156     if test "x${CONF_NAME}" = x; then
15157       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15158 $as_echo "in default location" >&6; }
15159       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15160     else
15161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15162 $as_echo "in build directory with custom name" >&6; }
15163     fi
15164     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15165     $MKDIR -p "$OUTPUT_ROOT"
15166     if test ! -d "$OUTPUT_ROOT"; then
15167       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15168     fi
15169   else
15170     # We are running configure from outside of the src dir.
15171     # Then use the current directory as output dir!
15172     # If configuration is situated in normal build directory, just use the build
15173     # directory name as configuration name, otherwise use the complete path.
15174     if test "x${CONF_NAME}" = x; then
15175       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15176     fi
15177     OUTPUT_ROOT="$CURDIR"
15178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15179 $as_echo "in current directory" >&6; }
15180 
15181     # WARNING: This might be a bad thing to do. You need to be sure you want to
15182     # have a configuration in this directory. Do some sanity checks!
15183 
15184     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15185       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15186       # other files
15187       files_present=`$LS $OUTPUT_ROOT`
15188       # Configure has already touched config.log and confdefs.h in the current dir when this check
15189       # is performed.
15190       filtered_files=`$ECHO "$files_present" \
15191           | $SED -e 's/config.log//g' \
15192               -e 's/confdefs.h//g' \
15193               -e 's/fixpath.exe//g' \
15194               -e 's/ //g' \
15195           | $TR -d '\n'`
15196       if test "x$filtered_files" != x; then
15197         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15198 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15199         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15200 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15201         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15202 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15203         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15204 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15205         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15206 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15207         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15208 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15209         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15210 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15211         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15212       fi
15213     fi
15214   fi
15215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15216 $as_echo_n "checking what configuration name to use... " >&6; }
15217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15218 $as_echo "$CONF_NAME" >&6; }
15219 
15220 
15221   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15222 
15223   # Input might be given as Windows format, start by converting to
15224   # unix format.
15225   path="$OUTPUT_ROOT"
15226   new_path=`$CYGPATH -u "$path"`
15227 
15228   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15229   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15230   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15231   # "foo.exe" is OK but "foo" is an error.
15232   #
15233   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15234   # It is also a way to make sure we got the proper file name for the real test later on.
15235   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15236   if test "x$test_shortpath" = x; then
15237     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15238 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15239     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15240   fi
15241 
15242   # Call helper function which possibly converts this using DOS-style short mode.
15243   # If so, the updated path is stored in $new_path.
15244 
15245   input_path="$new_path"
15246   # Check if we need to convert this using DOS-style short mode. If the path
15247   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15248   # take no chances and rewrite it.
15249   # Note: m4 eats our [], so we need to use [ and ] instead.
15250   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15251   if test "x$has_forbidden_chars" != x; then
15252     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15253     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15254     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15255     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15256       # Going to short mode and back again did indeed matter. Since short mode is
15257       # case insensitive, let's make it lowercase to improve readability.
15258       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15259       # Now convert it back to Unix-style (cygpath)
15260       input_path=`$CYGPATH -u "$shortmode_path"`
15261       new_path="$input_path"
15262     fi
15263   fi
15264 
15265   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15266   if test "x$test_cygdrive_prefix" = x; then
15267     # As a simple fix, exclude /usr/bin since it's not a real path.
15268     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15269       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15270       # a path prefixed by /cygdrive for fixpath to work.
15271       new_path="$CYGWIN_ROOT_PATH$input_path"
15272     fi
15273   fi
15274 
15275 
15276   if test "x$path" != "x$new_path"; then
15277     OUTPUT_ROOT="$new_path"
15278     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15279 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15280   fi
15281 
15282   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15283 
15284   path="$OUTPUT_ROOT"
15285   has_colon=`$ECHO $path | $GREP ^.:`
15286   new_path="$path"
15287   if test "x$has_colon" = x; then
15288     # Not in mixed or Windows style, start by that.
15289     new_path=`cmd //c echo $path`
15290   fi
15291 
15292 
15293   input_path="$new_path"
15294   # Check if we need to convert this using DOS-style short mode. If the path
15295   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15296   # take no chances and rewrite it.
15297   # Note: m4 eats our [], so we need to use [ and ] instead.
15298   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15299   if test "x$has_forbidden_chars" != x; then
15300     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15301     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15302   fi
15303 
15304 
15305   windows_path="$new_path"
15306   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15307     unix_path=`$CYGPATH -u "$windows_path"`
15308     new_path="$unix_path"
15309   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15310     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15311     new_path="$unix_path"
15312   fi
15313 
15314   if test "x$path" != "x$new_path"; then
15315     OUTPUT_ROOT="$new_path"
15316     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15317 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15318   fi
15319 
15320   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15321   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15322 
15323   else
15324     # We're on a posix platform. Hooray! :)
15325     path="$OUTPUT_ROOT"
15326     has_space=`$ECHO "$path" | $GREP " "`
15327     if test "x$has_space" != x; then
15328       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15329 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15330       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15331     fi
15332 
15333     # Use eval to expand a potential ~
15334     eval path="$path"
15335     if test ! -f "$path" && test ! -d "$path"; then
15336       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15337     fi
15338 
15339     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15340   fi
15341 
15342 
15343   SPEC=$OUTPUT_ROOT/spec.gmk
15344 
15345   CONF_NAME=$CONF_NAME
15346 
15347   OUTPUT_ROOT=$OUTPUT_ROOT
15348 
15349 
15350   # Most of the probed defines are put into config.h
15351   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15352 
15353   # The spec.gmk file contains all variables for the make system.
15354   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15355 
15356   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15357   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15358 
15359   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15360   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15361 
15362   # The compare.sh is used to compare the build output to other builds.
15363   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15364 
15365   # Spec.sh is currently used by compare-objects.sh
15366   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15367 
15368   # The generated Makefile knows where the spec.gmk is and where the source is.
15369   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15370   # which will look for generated configurations
15371   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15372 
15373 
15374 
15375 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15376 
15377   for ac_prog in apt-get yum port pkgutil pkgadd
15378 do
15379   # Extract the first word of "$ac_prog", so it can be a program name with args.
15380 set dummy $ac_prog; ac_word=$2
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15382 $as_echo_n "checking for $ac_word... " >&6; }
15383 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15384   $as_echo_n "(cached) " >&6
15385 else
15386   if test -n "$PKGHANDLER"; then
15387   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15388 else
15389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390 for as_dir in $PATH
15391 do
15392   IFS=$as_save_IFS
15393   test -z "$as_dir" && as_dir=.
15394     for ac_exec_ext in '' $ac_executable_extensions; do
15395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15396     ac_cv_prog_PKGHANDLER="$ac_prog"
15397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15398     break 2
15399   fi
15400 done
15401   done
15402 IFS=$as_save_IFS
15403 
15404 fi
15405 fi
15406 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15407 if test -n "$PKGHANDLER"; then
15408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15409 $as_echo "$PKGHANDLER" >&6; }
15410 else
15411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15412 $as_echo "no" >&6; }
15413 fi
15414 
15415 
15416   test -n "$PKGHANDLER" && break
15417 done
15418 
15419 
15420 
15421 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15422 
15423 
15424   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15425   if test "x$MAKE" != x; then
15426     # User has supplied a make, test it.
15427     if test ! -f "$MAKE"; then
15428       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15429     fi
15430 
15431   MAKE_CANDIDATE=""$MAKE""
15432   DESCRIPTION="user supplied MAKE=$MAKE"
15433   if test "x$MAKE_CANDIDATE" != x; then
15434     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15435 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15436     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15437     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15438     if test "x$IS_GNU_MAKE" = x; then
15439       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15440 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15441     else
15442       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15443       if test "x$IS_MODERN_MAKE" = x; then
15444         { $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
15445 $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;}
15446       else
15447         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15448           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15449             MAKE_EXPECTED_ENV='cygwin'
15450           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15451             MAKE_EXPECTED_ENV='msys'
15452           else
15453             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15454           fi
15455           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15456           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15457         else
15458           # Not relevant for non-Windows
15459           IS_MAKE_CORRECT_ENV=true
15460         fi
15461         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15462           { $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
15463 $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;}
15464         else
15465           FOUND_MAKE=$MAKE_CANDIDATE
15466 
15467   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15468 
15469   # First separate the path from the arguments. This will split at the first
15470   # space.
15471   complete="$FOUND_MAKE"
15472   path="${complete%% *}"
15473   tmp="$complete EOL"
15474   arguments="${tmp#* }"
15475 
15476   # Input might be given as Windows format, start by converting to
15477   # unix format.
15478   new_path=`$CYGPATH -u "$path"`
15479 
15480   # Now try to locate executable using which
15481   new_path=`$WHICH "$new_path" 2> /dev/null`
15482   # bat and cmd files are not always considered executable in cygwin causing which
15483   # to not find them
15484   if test "x$new_path" = x \
15485       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15486       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15487     new_path=`$CYGPATH -u "$path"`
15488   fi
15489   if test "x$new_path" = x; then
15490     # Oops. Which didn't find the executable.
15491     # The splitting of arguments from the executable at a space might have been incorrect,
15492     # since paths with space are more likely in Windows. Give it another try with the whole
15493     # argument.
15494     path="$complete"
15495     arguments="EOL"
15496     new_path=`$CYGPATH -u "$path"`
15497     new_path=`$WHICH "$new_path" 2> /dev/null`
15498     # bat and cmd files are not always considered executable in cygwin causing which
15499     # to not find them
15500     if test "x$new_path" = x \
15501         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15502         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15503       new_path=`$CYGPATH -u "$path"`
15504     fi
15505     if test "x$new_path" = x; then
15506       # It's still not found. Now this is an unrecoverable error.
15507       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15508 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15509       has_space=`$ECHO "$complete" | $GREP " "`
15510       if test "x$has_space" != x; then
15511         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15512 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15513       fi
15514       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15515     fi
15516   fi
15517 
15518   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15519   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15520   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15521   # "foo.exe" is OK but "foo" is an error.
15522   #
15523   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15524   # It is also a way to make sure we got the proper file name for the real test later on.
15525   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15526   if test "x$test_shortpath" = x; then
15527     # Short path failed, file does not exist as specified.
15528     # Try adding .exe or .cmd
15529     if test -f "${new_path}.exe"; then
15530       input_to_shortpath="${new_path}.exe"
15531     elif test -f "${new_path}.cmd"; then
15532       input_to_shortpath="${new_path}.cmd"
15533     else
15534       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15535 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15536       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15537 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15538       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15539     fi
15540   else
15541     input_to_shortpath="$new_path"
15542   fi
15543 
15544   # Call helper function which possibly converts this using DOS-style short mode.
15545   # If so, the updated path is stored in $new_path.
15546   new_path="$input_to_shortpath"
15547 
15548   input_path="$input_to_shortpath"
15549   # Check if we need to convert this using DOS-style short mode. If the path
15550   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15551   # take no chances and rewrite it.
15552   # Note: m4 eats our [], so we need to use [ and ] instead.
15553   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15554   if test "x$has_forbidden_chars" != x; then
15555     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15556     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15557     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15558     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15559       # Going to short mode and back again did indeed matter. Since short mode is
15560       # case insensitive, let's make it lowercase to improve readability.
15561       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15562       # Now convert it back to Unix-style (cygpath)
15563       input_path=`$CYGPATH -u "$shortmode_path"`
15564       new_path="$input_path"
15565     fi
15566   fi
15567 
15568   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15569   if test "x$test_cygdrive_prefix" = x; then
15570     # As a simple fix, exclude /usr/bin since it's not a real path.
15571     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15572       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15573       # a path prefixed by /cygdrive for fixpath to work.
15574       new_path="$CYGWIN_ROOT_PATH$input_path"
15575     fi
15576   fi
15577 
15578   # remove trailing .exe if any
15579   new_path="${new_path/%.exe/}"
15580 
15581   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15582 
15583   # First separate the path from the arguments. This will split at the first
15584   # space.
15585   complete="$FOUND_MAKE"
15586   path="${complete%% *}"
15587   tmp="$complete EOL"
15588   arguments="${tmp#* }"
15589 
15590   # Input might be given as Windows format, start by converting to
15591   # unix format.
15592   new_path="$path"
15593 
15594   windows_path="$new_path"
15595   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15596     unix_path=`$CYGPATH -u "$windows_path"`
15597     new_path="$unix_path"
15598   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15599     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15600     new_path="$unix_path"
15601   fi
15602 
15603 
15604   # Now try to locate executable using which
15605   new_path=`$WHICH "$new_path" 2> /dev/null`
15606 
15607   if test "x$new_path" = x; then
15608     # Oops. Which didn't find the executable.
15609     # The splitting of arguments from the executable at a space might have been incorrect,
15610     # since paths with space are more likely in Windows. Give it another try with the whole
15611     # argument.
15612     path="$complete"
15613     arguments="EOL"
15614     new_path="$path"
15615 
15616   windows_path="$new_path"
15617   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15618     unix_path=`$CYGPATH -u "$windows_path"`
15619     new_path="$unix_path"
15620   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15621     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15622     new_path="$unix_path"
15623   fi
15624 
15625 
15626     new_path=`$WHICH "$new_path" 2> /dev/null`
15627     # bat and cmd files are not always considered executable in MSYS causing which
15628     # to not find them
15629     if test "x$new_path" = x \
15630         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15631         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15632       new_path="$path"
15633 
15634   windows_path="$new_path"
15635   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15636     unix_path=`$CYGPATH -u "$windows_path"`
15637     new_path="$unix_path"
15638   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15639     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15640     new_path="$unix_path"
15641   fi
15642 
15643     fi
15644 
15645     if test "x$new_path" = x; then
15646       # It's still not found. Now this is an unrecoverable error.
15647       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15648 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15649       has_space=`$ECHO "$complete" | $GREP " "`
15650       if test "x$has_space" != x; then
15651         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15652 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15653       fi
15654       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15655     fi
15656   fi
15657 
15658   # Now new_path has a complete unix path to the binary
15659   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15660     # Keep paths in /bin as-is, but remove trailing .exe if any
15661     new_path="${new_path/%.exe/}"
15662     # Do not save /bin paths to all_fixpath_prefixes!
15663   else
15664     # Not in mixed or Windows style, start by that.
15665     new_path=`cmd //c echo $new_path`
15666 
15667   input_path="$new_path"
15668   # Check if we need to convert this using DOS-style short mode. If the path
15669   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15670   # take no chances and rewrite it.
15671   # Note: m4 eats our [], so we need to use [ and ] instead.
15672   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15673   if test "x$has_forbidden_chars" != x; then
15674     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15675     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15676   fi
15677 
15678     # Output is in $new_path
15679 
15680   windows_path="$new_path"
15681   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15682     unix_path=`$CYGPATH -u "$windows_path"`
15683     new_path="$unix_path"
15684   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15685     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15686     new_path="$unix_path"
15687   fi
15688 
15689     # remove trailing .exe if any
15690     new_path="${new_path/%.exe/}"
15691 
15692     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15693     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15694   fi
15695 
15696   else
15697     # We're on a posix platform. Hooray! :)
15698     # First separate the path from the arguments. This will split at the first
15699     # space.
15700     complete="$FOUND_MAKE"
15701     path="${complete%% *}"
15702     tmp="$complete EOL"
15703     arguments="${tmp#* }"
15704 
15705     # Cannot rely on the command "which" here since it doesn't always work.
15706     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15707     if test -z "$is_absolute_path"; then
15708       # Path to executable is not absolute. Find it.
15709       IFS_save="$IFS"
15710       IFS=:
15711       for p in $PATH; do
15712         if test -f "$p/$path" && test -x "$p/$path"; then
15713           new_path="$p/$path"
15714           break
15715         fi
15716       done
15717       IFS="$IFS_save"
15718     else
15719       # This is an absolute path, we can use it without further modifications.
15720       new_path="$path"
15721     fi
15722 
15723     if test "x$new_path" = x; then
15724       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15725 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15726       has_space=`$ECHO "$complete" | $GREP " "`
15727       if test "x$has_space" != x; then
15728         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15729 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15730       fi
15731       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15732     fi
15733   fi
15734 
15735   # Now join together the path and the arguments once again
15736   if test "x$arguments" != xEOL; then
15737     new_complete="$new_path ${arguments% *}"
15738   else
15739     new_complete="$new_path"
15740   fi
15741 
15742   if test "x$complete" != "x$new_complete"; then
15743     FOUND_MAKE="$new_complete"
15744     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15745 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15746   fi
15747 
15748         fi
15749       fi
15750     fi
15751   fi
15752 
15753     if test "x$FOUND_MAKE" = x; then
15754       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15755     fi
15756   else
15757     # Try our hardest to locate a correct version of GNU make
15758     for ac_prog in gmake
15759 do
15760   # Extract the first word of "$ac_prog", so it can be a program name with args.
15761 set dummy $ac_prog; ac_word=$2
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15763 $as_echo_n "checking for $ac_word... " >&6; }
15764 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15765   $as_echo_n "(cached) " >&6
15766 else
15767   case $CHECK_GMAKE in
15768   [\\/]* | ?:[\\/]*)
15769   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15770   ;;
15771   *)
15772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773 for as_dir in $PATH
15774 do
15775   IFS=$as_save_IFS
15776   test -z "$as_dir" && as_dir=.
15777     for ac_exec_ext in '' $ac_executable_extensions; do
15778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15779     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15781     break 2
15782   fi
15783 done
15784   done
15785 IFS=$as_save_IFS
15786 
15787   ;;
15788 esac
15789 fi
15790 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15791 if test -n "$CHECK_GMAKE"; then
15792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15793 $as_echo "$CHECK_GMAKE" >&6; }
15794 else
15795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15796 $as_echo "no" >&6; }
15797 fi
15798 
15799 
15800   test -n "$CHECK_GMAKE" && break
15801 done
15802 
15803 
15804   MAKE_CANDIDATE=""$CHECK_GMAKE""
15805   DESCRIPTION="gmake in PATH"
15806   if test "x$MAKE_CANDIDATE" != x; then
15807     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15808 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15809     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15810     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15811     if test "x$IS_GNU_MAKE" = x; then
15812       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15813 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15814     else
15815       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15816       if test "x$IS_MODERN_MAKE" = x; then
15817         { $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
15818 $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;}
15819       else
15820         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15821           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15822             MAKE_EXPECTED_ENV='cygwin'
15823           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15824             MAKE_EXPECTED_ENV='msys'
15825           else
15826             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15827           fi
15828           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15829           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15830         else
15831           # Not relevant for non-Windows
15832           IS_MAKE_CORRECT_ENV=true
15833         fi
15834         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15835           { $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
15836 $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;}
15837         else
15838           FOUND_MAKE=$MAKE_CANDIDATE
15839 
15840   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15841 
15842   # First separate the path from the arguments. This will split at the first
15843   # space.
15844   complete="$FOUND_MAKE"
15845   path="${complete%% *}"
15846   tmp="$complete EOL"
15847   arguments="${tmp#* }"
15848 
15849   # Input might be given as Windows format, start by converting to
15850   # unix format.
15851   new_path=`$CYGPATH -u "$path"`
15852 
15853   # Now try to locate executable using which
15854   new_path=`$WHICH "$new_path" 2> /dev/null`
15855   # bat and cmd files are not always considered executable in cygwin causing which
15856   # to not find them
15857   if test "x$new_path" = x \
15858       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15859       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15860     new_path=`$CYGPATH -u "$path"`
15861   fi
15862   if test "x$new_path" = x; then
15863     # Oops. Which didn't find the executable.
15864     # The splitting of arguments from the executable at a space might have been incorrect,
15865     # since paths with space are more likely in Windows. Give it another try with the whole
15866     # argument.
15867     path="$complete"
15868     arguments="EOL"
15869     new_path=`$CYGPATH -u "$path"`
15870     new_path=`$WHICH "$new_path" 2> /dev/null`
15871     # bat and cmd files are not always considered executable in cygwin causing which
15872     # to not find them
15873     if test "x$new_path" = x \
15874         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15875         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15876       new_path=`$CYGPATH -u "$path"`
15877     fi
15878     if test "x$new_path" = x; then
15879       # It's still not found. Now this is an unrecoverable error.
15880       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15881 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15882       has_space=`$ECHO "$complete" | $GREP " "`
15883       if test "x$has_space" != x; then
15884         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15885 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15886       fi
15887       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15888     fi
15889   fi
15890 
15891   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15892   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15893   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15894   # "foo.exe" is OK but "foo" is an error.
15895   #
15896   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15897   # It is also a way to make sure we got the proper file name for the real test later on.
15898   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15899   if test "x$test_shortpath" = x; then
15900     # Short path failed, file does not exist as specified.
15901     # Try adding .exe or .cmd
15902     if test -f "${new_path}.exe"; then
15903       input_to_shortpath="${new_path}.exe"
15904     elif test -f "${new_path}.cmd"; then
15905       input_to_shortpath="${new_path}.cmd"
15906     else
15907       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15908 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15909       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15910 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15911       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15912     fi
15913   else
15914     input_to_shortpath="$new_path"
15915   fi
15916 
15917   # Call helper function which possibly converts this using DOS-style short mode.
15918   # If so, the updated path is stored in $new_path.
15919   new_path="$input_to_shortpath"
15920 
15921   input_path="$input_to_shortpath"
15922   # Check if we need to convert this using DOS-style short mode. If the path
15923   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15924   # take no chances and rewrite it.
15925   # Note: m4 eats our [], so we need to use [ and ] instead.
15926   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15927   if test "x$has_forbidden_chars" != x; then
15928     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15929     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15930     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15931     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15932       # Going to short mode and back again did indeed matter. Since short mode is
15933       # case insensitive, let's make it lowercase to improve readability.
15934       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15935       # Now convert it back to Unix-style (cygpath)
15936       input_path=`$CYGPATH -u "$shortmode_path"`
15937       new_path="$input_path"
15938     fi
15939   fi
15940 
15941   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15942   if test "x$test_cygdrive_prefix" = x; then
15943     # As a simple fix, exclude /usr/bin since it's not a real path.
15944     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15945       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15946       # a path prefixed by /cygdrive for fixpath to work.
15947       new_path="$CYGWIN_ROOT_PATH$input_path"
15948     fi
15949   fi
15950 
15951   # remove trailing .exe if any
15952   new_path="${new_path/%.exe/}"
15953 
15954   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15955 
15956   # First separate the path from the arguments. This will split at the first
15957   # space.
15958   complete="$FOUND_MAKE"
15959   path="${complete%% *}"
15960   tmp="$complete EOL"
15961   arguments="${tmp#* }"
15962 
15963   # Input might be given as Windows format, start by converting to
15964   # unix format.
15965   new_path="$path"
15966 
15967   windows_path="$new_path"
15968   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15969     unix_path=`$CYGPATH -u "$windows_path"`
15970     new_path="$unix_path"
15971   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15972     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15973     new_path="$unix_path"
15974   fi
15975 
15976 
15977   # Now try to locate executable using which
15978   new_path=`$WHICH "$new_path" 2> /dev/null`
15979 
15980   if test "x$new_path" = x; then
15981     # Oops. Which didn't find the executable.
15982     # The splitting of arguments from the executable at a space might have been incorrect,
15983     # since paths with space are more likely in Windows. Give it another try with the whole
15984     # argument.
15985     path="$complete"
15986     arguments="EOL"
15987     new_path="$path"
15988 
15989   windows_path="$new_path"
15990   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15991     unix_path=`$CYGPATH -u "$windows_path"`
15992     new_path="$unix_path"
15993   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15994     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15995     new_path="$unix_path"
15996   fi
15997 
15998 
15999     new_path=`$WHICH "$new_path" 2> /dev/null`
16000     # bat and cmd files are not always considered executable in MSYS causing which
16001     # to not find them
16002     if test "x$new_path" = x \
16003         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16004         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16005       new_path="$path"
16006 
16007   windows_path="$new_path"
16008   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16009     unix_path=`$CYGPATH -u "$windows_path"`
16010     new_path="$unix_path"
16011   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16012     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16013     new_path="$unix_path"
16014   fi
16015 
16016     fi
16017 
16018     if test "x$new_path" = x; then
16019       # It's still not found. Now this is an unrecoverable error.
16020       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16021 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16022       has_space=`$ECHO "$complete" | $GREP " "`
16023       if test "x$has_space" != x; then
16024         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16025 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16026       fi
16027       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16028     fi
16029   fi
16030 
16031   # Now new_path has a complete unix path to the binary
16032   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16033     # Keep paths in /bin as-is, but remove trailing .exe if any
16034     new_path="${new_path/%.exe/}"
16035     # Do not save /bin paths to all_fixpath_prefixes!
16036   else
16037     # Not in mixed or Windows style, start by that.
16038     new_path=`cmd //c echo $new_path`
16039 
16040   input_path="$new_path"
16041   # Check if we need to convert this using DOS-style short mode. If the path
16042   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16043   # take no chances and rewrite it.
16044   # Note: m4 eats our [], so we need to use [ and ] instead.
16045   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16046   if test "x$has_forbidden_chars" != x; then
16047     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16048     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16049   fi
16050 
16051     # Output is in $new_path
16052 
16053   windows_path="$new_path"
16054   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16055     unix_path=`$CYGPATH -u "$windows_path"`
16056     new_path="$unix_path"
16057   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16058     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16059     new_path="$unix_path"
16060   fi
16061 
16062     # remove trailing .exe if any
16063     new_path="${new_path/%.exe/}"
16064 
16065     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16066     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16067   fi
16068 
16069   else
16070     # We're on a posix platform. Hooray! :)
16071     # First separate the path from the arguments. This will split at the first
16072     # space.
16073     complete="$FOUND_MAKE"
16074     path="${complete%% *}"
16075     tmp="$complete EOL"
16076     arguments="${tmp#* }"
16077 
16078     # Cannot rely on the command "which" here since it doesn't always work.
16079     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16080     if test -z "$is_absolute_path"; then
16081       # Path to executable is not absolute. Find it.
16082       IFS_save="$IFS"
16083       IFS=:
16084       for p in $PATH; do
16085         if test -f "$p/$path" && test -x "$p/$path"; then
16086           new_path="$p/$path"
16087           break
16088         fi
16089       done
16090       IFS="$IFS_save"
16091     else
16092       # This is an absolute path, we can use it without further modifications.
16093       new_path="$path"
16094     fi
16095 
16096     if test "x$new_path" = x; then
16097       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16098 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16099       has_space=`$ECHO "$complete" | $GREP " "`
16100       if test "x$has_space" != x; then
16101         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16102 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16103       fi
16104       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16105     fi
16106   fi
16107 
16108   # Now join together the path and the arguments once again
16109   if test "x$arguments" != xEOL; then
16110     new_complete="$new_path ${arguments% *}"
16111   else
16112     new_complete="$new_path"
16113   fi
16114 
16115   if test "x$complete" != "x$new_complete"; then
16116     FOUND_MAKE="$new_complete"
16117     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16118 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16119   fi
16120 
16121         fi
16122       fi
16123     fi
16124   fi
16125 
16126 
16127     if test "x$FOUND_MAKE" = x; then
16128       for ac_prog in make
16129 do
16130   # Extract the first word of "$ac_prog", so it can be a program name with args.
16131 set dummy $ac_prog; ac_word=$2
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16133 $as_echo_n "checking for $ac_word... " >&6; }
16134 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16135   $as_echo_n "(cached) " >&6
16136 else
16137   case $CHECK_MAKE in
16138   [\\/]* | ?:[\\/]*)
16139   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16140   ;;
16141   *)
16142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16143 for as_dir in $PATH
16144 do
16145   IFS=$as_save_IFS
16146   test -z "$as_dir" && as_dir=.
16147     for ac_exec_ext in '' $ac_executable_extensions; do
16148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16149     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16151     break 2
16152   fi
16153 done
16154   done
16155 IFS=$as_save_IFS
16156 
16157   ;;
16158 esac
16159 fi
16160 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16161 if test -n "$CHECK_MAKE"; then
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16163 $as_echo "$CHECK_MAKE" >&6; }
16164 else
16165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166 $as_echo "no" >&6; }
16167 fi
16168 
16169 
16170   test -n "$CHECK_MAKE" && break
16171 done
16172 
16173 
16174   MAKE_CANDIDATE=""$CHECK_MAKE""
16175   DESCRIPTION="make in PATH"
16176   if test "x$MAKE_CANDIDATE" != x; then
16177     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16178 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16179     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16180     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16181     if test "x$IS_GNU_MAKE" = x; then
16182       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16183 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16184     else
16185       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16186       if test "x$IS_MODERN_MAKE" = x; then
16187         { $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
16188 $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;}
16189       else
16190         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16191           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16192             MAKE_EXPECTED_ENV='cygwin'
16193           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16194             MAKE_EXPECTED_ENV='msys'
16195           else
16196             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16197           fi
16198           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16199           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16200         else
16201           # Not relevant for non-Windows
16202           IS_MAKE_CORRECT_ENV=true
16203         fi
16204         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16205           { $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
16206 $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;}
16207         else
16208           FOUND_MAKE=$MAKE_CANDIDATE
16209 
16210   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16211 
16212   # First separate the path from the arguments. This will split at the first
16213   # space.
16214   complete="$FOUND_MAKE"
16215   path="${complete%% *}"
16216   tmp="$complete EOL"
16217   arguments="${tmp#* }"
16218 
16219   # Input might be given as Windows format, start by converting to
16220   # unix format.
16221   new_path=`$CYGPATH -u "$path"`
16222 
16223   # Now try to locate executable using which
16224   new_path=`$WHICH "$new_path" 2> /dev/null`
16225   # bat and cmd files are not always considered executable in cygwin causing which
16226   # to not find them
16227   if test "x$new_path" = x \
16228       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16229       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16230     new_path=`$CYGPATH -u "$path"`
16231   fi
16232   if test "x$new_path" = x; then
16233     # Oops. Which didn't find the executable.
16234     # The splitting of arguments from the executable at a space might have been incorrect,
16235     # since paths with space are more likely in Windows. Give it another try with the whole
16236     # argument.
16237     path="$complete"
16238     arguments="EOL"
16239     new_path=`$CYGPATH -u "$path"`
16240     new_path=`$WHICH "$new_path" 2> /dev/null`
16241     # bat and cmd files are not always considered executable in cygwin causing which
16242     # to not find them
16243     if test "x$new_path" = x \
16244         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16245         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16246       new_path=`$CYGPATH -u "$path"`
16247     fi
16248     if test "x$new_path" = x; then
16249       # It's still not found. Now this is an unrecoverable error.
16250       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16251 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16252       has_space=`$ECHO "$complete" | $GREP " "`
16253       if test "x$has_space" != x; then
16254         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16255 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16256       fi
16257       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16258     fi
16259   fi
16260 
16261   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16262   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16263   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16264   # "foo.exe" is OK but "foo" is an error.
16265   #
16266   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16267   # It is also a way to make sure we got the proper file name for the real test later on.
16268   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16269   if test "x$test_shortpath" = x; then
16270     # Short path failed, file does not exist as specified.
16271     # Try adding .exe or .cmd
16272     if test -f "${new_path}.exe"; then
16273       input_to_shortpath="${new_path}.exe"
16274     elif test -f "${new_path}.cmd"; then
16275       input_to_shortpath="${new_path}.cmd"
16276     else
16277       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16278 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16279       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16280 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16281       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16282     fi
16283   else
16284     input_to_shortpath="$new_path"
16285   fi
16286 
16287   # Call helper function which possibly converts this using DOS-style short mode.
16288   # If so, the updated path is stored in $new_path.
16289   new_path="$input_to_shortpath"
16290 
16291   input_path="$input_to_shortpath"
16292   # Check if we need to convert this using DOS-style short mode. If the path
16293   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16294   # take no chances and rewrite it.
16295   # Note: m4 eats our [], so we need to use [ and ] instead.
16296   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16297   if test "x$has_forbidden_chars" != x; then
16298     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16299     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16300     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16301     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16302       # Going to short mode and back again did indeed matter. Since short mode is
16303       # case insensitive, let's make it lowercase to improve readability.
16304       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16305       # Now convert it back to Unix-style (cygpath)
16306       input_path=`$CYGPATH -u "$shortmode_path"`
16307       new_path="$input_path"
16308     fi
16309   fi
16310 
16311   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16312   if test "x$test_cygdrive_prefix" = x; then
16313     # As a simple fix, exclude /usr/bin since it's not a real path.
16314     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16315       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16316       # a path prefixed by /cygdrive for fixpath to work.
16317       new_path="$CYGWIN_ROOT_PATH$input_path"
16318     fi
16319   fi
16320 
16321   # remove trailing .exe if any
16322   new_path="${new_path/%.exe/}"
16323 
16324   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16325 
16326   # First separate the path from the arguments. This will split at the first
16327   # space.
16328   complete="$FOUND_MAKE"
16329   path="${complete%% *}"
16330   tmp="$complete EOL"
16331   arguments="${tmp#* }"
16332 
16333   # Input might be given as Windows format, start by converting to
16334   # unix format.
16335   new_path="$path"
16336 
16337   windows_path="$new_path"
16338   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16339     unix_path=`$CYGPATH -u "$windows_path"`
16340     new_path="$unix_path"
16341   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16342     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16343     new_path="$unix_path"
16344   fi
16345 
16346 
16347   # Now try to locate executable using which
16348   new_path=`$WHICH "$new_path" 2> /dev/null`
16349 
16350   if test "x$new_path" = x; then
16351     # Oops. Which didn't find the executable.
16352     # The splitting of arguments from the executable at a space might have been incorrect,
16353     # since paths with space are more likely in Windows. Give it another try with the whole
16354     # argument.
16355     path="$complete"
16356     arguments="EOL"
16357     new_path="$path"
16358 
16359   windows_path="$new_path"
16360   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16361     unix_path=`$CYGPATH -u "$windows_path"`
16362     new_path="$unix_path"
16363   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16364     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16365     new_path="$unix_path"
16366   fi
16367 
16368 
16369     new_path=`$WHICH "$new_path" 2> /dev/null`
16370     # bat and cmd files are not always considered executable in MSYS causing which
16371     # to not find them
16372     if test "x$new_path" = x \
16373         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16374         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16375       new_path="$path"
16376 
16377   windows_path="$new_path"
16378   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16379     unix_path=`$CYGPATH -u "$windows_path"`
16380     new_path="$unix_path"
16381   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16382     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16383     new_path="$unix_path"
16384   fi
16385 
16386     fi
16387 
16388     if test "x$new_path" = x; then
16389       # It's still not found. Now this is an unrecoverable error.
16390       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16391 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16392       has_space=`$ECHO "$complete" | $GREP " "`
16393       if test "x$has_space" != x; then
16394         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16395 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16396       fi
16397       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16398     fi
16399   fi
16400 
16401   # Now new_path has a complete unix path to the binary
16402   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16403     # Keep paths in /bin as-is, but remove trailing .exe if any
16404     new_path="${new_path/%.exe/}"
16405     # Do not save /bin paths to all_fixpath_prefixes!
16406   else
16407     # Not in mixed or Windows style, start by that.
16408     new_path=`cmd //c echo $new_path`
16409 
16410   input_path="$new_path"
16411   # Check if we need to convert this using DOS-style short mode. If the path
16412   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16413   # take no chances and rewrite it.
16414   # Note: m4 eats our [], so we need to use [ and ] instead.
16415   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16416   if test "x$has_forbidden_chars" != x; then
16417     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16418     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16419   fi
16420 
16421     # Output is in $new_path
16422 
16423   windows_path="$new_path"
16424   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16425     unix_path=`$CYGPATH -u "$windows_path"`
16426     new_path="$unix_path"
16427   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16428     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16429     new_path="$unix_path"
16430   fi
16431 
16432     # remove trailing .exe if any
16433     new_path="${new_path/%.exe/}"
16434 
16435     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16436     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16437   fi
16438 
16439   else
16440     # We're on a posix platform. Hooray! :)
16441     # First separate the path from the arguments. This will split at the first
16442     # space.
16443     complete="$FOUND_MAKE"
16444     path="${complete%% *}"
16445     tmp="$complete EOL"
16446     arguments="${tmp#* }"
16447 
16448     # Cannot rely on the command "which" here since it doesn't always work.
16449     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16450     if test -z "$is_absolute_path"; then
16451       # Path to executable is not absolute. Find it.
16452       IFS_save="$IFS"
16453       IFS=:
16454       for p in $PATH; do
16455         if test -f "$p/$path" && test -x "$p/$path"; then
16456           new_path="$p/$path"
16457           break
16458         fi
16459       done
16460       IFS="$IFS_save"
16461     else
16462       # This is an absolute path, we can use it without further modifications.
16463       new_path="$path"
16464     fi
16465 
16466     if test "x$new_path" = x; then
16467       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16468 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16469       has_space=`$ECHO "$complete" | $GREP " "`
16470       if test "x$has_space" != x; then
16471         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16472 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16473       fi
16474       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16475     fi
16476   fi
16477 
16478   # Now join together the path and the arguments once again
16479   if test "x$arguments" != xEOL; then
16480     new_complete="$new_path ${arguments% *}"
16481   else
16482     new_complete="$new_path"
16483   fi
16484 
16485   if test "x$complete" != "x$new_complete"; then
16486     FOUND_MAKE="$new_complete"
16487     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16488 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16489   fi
16490 
16491         fi
16492       fi
16493     fi
16494   fi
16495 
16496     fi
16497 
16498     if test "x$FOUND_MAKE" = x; then
16499       if test "x$TOOLCHAIN_PATH" != x; then
16500         # We have a toolchain path, check that as well before giving up.
16501         OLD_PATH=$PATH
16502         PATH=$TOOLCHAIN_PATH:$PATH
16503         for ac_prog in gmake
16504 do
16505   # Extract the first word of "$ac_prog", so it can be a program name with args.
16506 set dummy $ac_prog; ac_word=$2
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16508 $as_echo_n "checking for $ac_word... " >&6; }
16509 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16510   $as_echo_n "(cached) " >&6
16511 else
16512   case $CHECK_TOOLSDIR_GMAKE in
16513   [\\/]* | ?:[\\/]*)
16514   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16515   ;;
16516   *)
16517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16518 for as_dir in $PATH
16519 do
16520   IFS=$as_save_IFS
16521   test -z "$as_dir" && as_dir=.
16522     for ac_exec_ext in '' $ac_executable_extensions; do
16523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16524     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16526     break 2
16527   fi
16528 done
16529   done
16530 IFS=$as_save_IFS
16531 
16532   ;;
16533 esac
16534 fi
16535 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16536 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16538 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16539 else
16540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 $as_echo "no" >&6; }
16542 fi
16543 
16544 
16545   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16546 done
16547 
16548 
16549   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16550   DESCRIPTION="gmake in tools-dir"
16551   if test "x$MAKE_CANDIDATE" != x; then
16552     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16553 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16554     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16555     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16556     if test "x$IS_GNU_MAKE" = x; then
16557       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16558 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16559     else
16560       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16561       if test "x$IS_MODERN_MAKE" = x; then
16562         { $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
16563 $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;}
16564       else
16565         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16566           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16567             MAKE_EXPECTED_ENV='cygwin'
16568           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16569             MAKE_EXPECTED_ENV='msys'
16570           else
16571             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16572           fi
16573           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16574           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16575         else
16576           # Not relevant for non-Windows
16577           IS_MAKE_CORRECT_ENV=true
16578         fi
16579         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16580           { $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
16581 $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;}
16582         else
16583           FOUND_MAKE=$MAKE_CANDIDATE
16584 
16585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16586 
16587   # First separate the path from the arguments. This will split at the first
16588   # space.
16589   complete="$FOUND_MAKE"
16590   path="${complete%% *}"
16591   tmp="$complete EOL"
16592   arguments="${tmp#* }"
16593 
16594   # Input might be given as Windows format, start by converting to
16595   # unix format.
16596   new_path=`$CYGPATH -u "$path"`
16597 
16598   # Now try to locate executable using which
16599   new_path=`$WHICH "$new_path" 2> /dev/null`
16600   # bat and cmd files are not always considered executable in cygwin causing which
16601   # to not find them
16602   if test "x$new_path" = x \
16603       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16604       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16605     new_path=`$CYGPATH -u "$path"`
16606   fi
16607   if test "x$new_path" = x; then
16608     # Oops. Which didn't find the executable.
16609     # The splitting of arguments from the executable at a space might have been incorrect,
16610     # since paths with space are more likely in Windows. Give it another try with the whole
16611     # argument.
16612     path="$complete"
16613     arguments="EOL"
16614     new_path=`$CYGPATH -u "$path"`
16615     new_path=`$WHICH "$new_path" 2> /dev/null`
16616     # bat and cmd files are not always considered executable in cygwin causing which
16617     # to not find them
16618     if test "x$new_path" = x \
16619         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16620         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16621       new_path=`$CYGPATH -u "$path"`
16622     fi
16623     if test "x$new_path" = x; then
16624       # It's still not found. Now this is an unrecoverable error.
16625       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16626 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16627       has_space=`$ECHO "$complete" | $GREP " "`
16628       if test "x$has_space" != x; then
16629         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16630 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16631       fi
16632       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16633     fi
16634   fi
16635 
16636   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16637   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16638   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16639   # "foo.exe" is OK but "foo" is an error.
16640   #
16641   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16642   # It is also a way to make sure we got the proper file name for the real test later on.
16643   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16644   if test "x$test_shortpath" = x; then
16645     # Short path failed, file does not exist as specified.
16646     # Try adding .exe or .cmd
16647     if test -f "${new_path}.exe"; then
16648       input_to_shortpath="${new_path}.exe"
16649     elif test -f "${new_path}.cmd"; then
16650       input_to_shortpath="${new_path}.cmd"
16651     else
16652       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16653 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16654       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16655 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16656       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16657     fi
16658   else
16659     input_to_shortpath="$new_path"
16660   fi
16661 
16662   # Call helper function which possibly converts this using DOS-style short mode.
16663   # If so, the updated path is stored in $new_path.
16664   new_path="$input_to_shortpath"
16665 
16666   input_path="$input_to_shortpath"
16667   # Check if we need to convert this using DOS-style short mode. If the path
16668   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16669   # take no chances and rewrite it.
16670   # Note: m4 eats our [], so we need to use [ and ] instead.
16671   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16672   if test "x$has_forbidden_chars" != x; then
16673     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16674     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16675     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16676     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16677       # Going to short mode and back again did indeed matter. Since short mode is
16678       # case insensitive, let's make it lowercase to improve readability.
16679       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16680       # Now convert it back to Unix-style (cygpath)
16681       input_path=`$CYGPATH -u "$shortmode_path"`
16682       new_path="$input_path"
16683     fi
16684   fi
16685 
16686   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16687   if test "x$test_cygdrive_prefix" = x; then
16688     # As a simple fix, exclude /usr/bin since it's not a real path.
16689     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16690       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16691       # a path prefixed by /cygdrive for fixpath to work.
16692       new_path="$CYGWIN_ROOT_PATH$input_path"
16693     fi
16694   fi
16695 
16696   # remove trailing .exe if any
16697   new_path="${new_path/%.exe/}"
16698 
16699   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16700 
16701   # First separate the path from the arguments. This will split at the first
16702   # space.
16703   complete="$FOUND_MAKE"
16704   path="${complete%% *}"
16705   tmp="$complete EOL"
16706   arguments="${tmp#* }"
16707 
16708   # Input might be given as Windows format, start by converting to
16709   # unix format.
16710   new_path="$path"
16711 
16712   windows_path="$new_path"
16713   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16714     unix_path=`$CYGPATH -u "$windows_path"`
16715     new_path="$unix_path"
16716   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16717     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16718     new_path="$unix_path"
16719   fi
16720 
16721 
16722   # Now try to locate executable using which
16723   new_path=`$WHICH "$new_path" 2> /dev/null`
16724 
16725   if test "x$new_path" = x; then
16726     # Oops. Which didn't find the executable.
16727     # The splitting of arguments from the executable at a space might have been incorrect,
16728     # since paths with space are more likely in Windows. Give it another try with the whole
16729     # argument.
16730     path="$complete"
16731     arguments="EOL"
16732     new_path="$path"
16733 
16734   windows_path="$new_path"
16735   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16736     unix_path=`$CYGPATH -u "$windows_path"`
16737     new_path="$unix_path"
16738   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16739     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16740     new_path="$unix_path"
16741   fi
16742 
16743 
16744     new_path=`$WHICH "$new_path" 2> /dev/null`
16745     # bat and cmd files are not always considered executable in MSYS causing which
16746     # to not find them
16747     if test "x$new_path" = x \
16748         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16749         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16750       new_path="$path"
16751 
16752   windows_path="$new_path"
16753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16754     unix_path=`$CYGPATH -u "$windows_path"`
16755     new_path="$unix_path"
16756   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16757     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16758     new_path="$unix_path"
16759   fi
16760 
16761     fi
16762 
16763     if test "x$new_path" = x; then
16764       # It's still not found. Now this is an unrecoverable error.
16765       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16766 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16767       has_space=`$ECHO "$complete" | $GREP " "`
16768       if test "x$has_space" != x; then
16769         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16770 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16771       fi
16772       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16773     fi
16774   fi
16775 
16776   # Now new_path has a complete unix path to the binary
16777   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16778     # Keep paths in /bin as-is, but remove trailing .exe if any
16779     new_path="${new_path/%.exe/}"
16780     # Do not save /bin paths to all_fixpath_prefixes!
16781   else
16782     # Not in mixed or Windows style, start by that.
16783     new_path=`cmd //c echo $new_path`
16784 
16785   input_path="$new_path"
16786   # Check if we need to convert this using DOS-style short mode. If the path
16787   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16788   # take no chances and rewrite it.
16789   # Note: m4 eats our [], so we need to use [ and ] instead.
16790   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16791   if test "x$has_forbidden_chars" != x; then
16792     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16793     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16794   fi
16795 
16796     # Output is in $new_path
16797 
16798   windows_path="$new_path"
16799   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16800     unix_path=`$CYGPATH -u "$windows_path"`
16801     new_path="$unix_path"
16802   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16803     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16804     new_path="$unix_path"
16805   fi
16806 
16807     # remove trailing .exe if any
16808     new_path="${new_path/%.exe/}"
16809 
16810     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16811     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16812   fi
16813 
16814   else
16815     # We're on a posix platform. Hooray! :)
16816     # First separate the path from the arguments. This will split at the first
16817     # space.
16818     complete="$FOUND_MAKE"
16819     path="${complete%% *}"
16820     tmp="$complete EOL"
16821     arguments="${tmp#* }"
16822 
16823     # Cannot rely on the command "which" here since it doesn't always work.
16824     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16825     if test -z "$is_absolute_path"; then
16826       # Path to executable is not absolute. Find it.
16827       IFS_save="$IFS"
16828       IFS=:
16829       for p in $PATH; do
16830         if test -f "$p/$path" && test -x "$p/$path"; then
16831           new_path="$p/$path"
16832           break
16833         fi
16834       done
16835       IFS="$IFS_save"
16836     else
16837       # This is an absolute path, we can use it without further modifications.
16838       new_path="$path"
16839     fi
16840 
16841     if test "x$new_path" = x; then
16842       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16843 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16844       has_space=`$ECHO "$complete" | $GREP " "`
16845       if test "x$has_space" != x; then
16846         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16847 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16848       fi
16849       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16850     fi
16851   fi
16852 
16853   # Now join together the path and the arguments once again
16854   if test "x$arguments" != xEOL; then
16855     new_complete="$new_path ${arguments% *}"
16856   else
16857     new_complete="$new_path"
16858   fi
16859 
16860   if test "x$complete" != "x$new_complete"; then
16861     FOUND_MAKE="$new_complete"
16862     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16863 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16864   fi
16865 
16866         fi
16867       fi
16868     fi
16869   fi
16870 
16871         if test "x$FOUND_MAKE" = x; then
16872           for ac_prog in make
16873 do
16874   # Extract the first word of "$ac_prog", so it can be a program name with args.
16875 set dummy $ac_prog; ac_word=$2
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16877 $as_echo_n "checking for $ac_word... " >&6; }
16878 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16879   $as_echo_n "(cached) " >&6
16880 else
16881   case $CHECK_TOOLSDIR_MAKE in
16882   [\\/]* | ?:[\\/]*)
16883   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16884   ;;
16885   *)
16886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16887 for as_dir in $PATH
16888 do
16889   IFS=$as_save_IFS
16890   test -z "$as_dir" && as_dir=.
16891     for ac_exec_ext in '' $ac_executable_extensions; do
16892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16893     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16895     break 2
16896   fi
16897 done
16898   done
16899 IFS=$as_save_IFS
16900 
16901   ;;
16902 esac
16903 fi
16904 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16905 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16907 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16908 else
16909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910 $as_echo "no" >&6; }
16911 fi
16912 
16913 
16914   test -n "$CHECK_TOOLSDIR_MAKE" && break
16915 done
16916 
16917 
16918   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16919   DESCRIPTION="make in tools-dir"
16920   if test "x$MAKE_CANDIDATE" != x; then
16921     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16922 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16923     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16924     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16925     if test "x$IS_GNU_MAKE" = x; then
16926       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16927 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16928     else
16929       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16930       if test "x$IS_MODERN_MAKE" = x; then
16931         { $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
16932 $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;}
16933       else
16934         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16935           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16936             MAKE_EXPECTED_ENV='cygwin'
16937           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16938             MAKE_EXPECTED_ENV='msys'
16939           else
16940             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16941           fi
16942           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16943           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16944         else
16945           # Not relevant for non-Windows
16946           IS_MAKE_CORRECT_ENV=true
16947         fi
16948         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16949           { $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
16950 $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;}
16951         else
16952           FOUND_MAKE=$MAKE_CANDIDATE
16953 
16954   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16955 
16956   # First separate the path from the arguments. This will split at the first
16957   # space.
16958   complete="$FOUND_MAKE"
16959   path="${complete%% *}"
16960   tmp="$complete EOL"
16961   arguments="${tmp#* }"
16962 
16963   # Input might be given as Windows format, start by converting to
16964   # unix format.
16965   new_path=`$CYGPATH -u "$path"`
16966 
16967   # Now try to locate executable using which
16968   new_path=`$WHICH "$new_path" 2> /dev/null`
16969   # bat and cmd files are not always considered executable in cygwin causing which
16970   # to not find them
16971   if test "x$new_path" = x \
16972       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16973       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16974     new_path=`$CYGPATH -u "$path"`
16975   fi
16976   if test "x$new_path" = x; then
16977     # Oops. Which didn't find the executable.
16978     # The splitting of arguments from the executable at a space might have been incorrect,
16979     # since paths with space are more likely in Windows. Give it another try with the whole
16980     # argument.
16981     path="$complete"
16982     arguments="EOL"
16983     new_path=`$CYGPATH -u "$path"`
16984     new_path=`$WHICH "$new_path" 2> /dev/null`
16985     # bat and cmd files are not always considered executable in cygwin causing which
16986     # to not find them
16987     if test "x$new_path" = x \
16988         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16989         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16990       new_path=`$CYGPATH -u "$path"`
16991     fi
16992     if test "x$new_path" = x; then
16993       # It's still not found. Now this is an unrecoverable error.
16994       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16995 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16996       has_space=`$ECHO "$complete" | $GREP " "`
16997       if test "x$has_space" != x; then
16998         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16999 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17000       fi
17001       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17002     fi
17003   fi
17004 
17005   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17006   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17007   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17008   # "foo.exe" is OK but "foo" is an error.
17009   #
17010   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17011   # It is also a way to make sure we got the proper file name for the real test later on.
17012   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17013   if test "x$test_shortpath" = x; then
17014     # Short path failed, file does not exist as specified.
17015     # Try adding .exe or .cmd
17016     if test -f "${new_path}.exe"; then
17017       input_to_shortpath="${new_path}.exe"
17018     elif test -f "${new_path}.cmd"; then
17019       input_to_shortpath="${new_path}.cmd"
17020     else
17021       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17022 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17023       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17024 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17025       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17026     fi
17027   else
17028     input_to_shortpath="$new_path"
17029   fi
17030 
17031   # Call helper function which possibly converts this using DOS-style short mode.
17032   # If so, the updated path is stored in $new_path.
17033   new_path="$input_to_shortpath"
17034 
17035   input_path="$input_to_shortpath"
17036   # Check if we need to convert this using DOS-style short mode. If the path
17037   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17038   # take no chances and rewrite it.
17039   # Note: m4 eats our [], so we need to use [ and ] instead.
17040   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17041   if test "x$has_forbidden_chars" != x; then
17042     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17043     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17044     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17045     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17046       # Going to short mode and back again did indeed matter. Since short mode is
17047       # case insensitive, let's make it lowercase to improve readability.
17048       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17049       # Now convert it back to Unix-style (cygpath)
17050       input_path=`$CYGPATH -u "$shortmode_path"`
17051       new_path="$input_path"
17052     fi
17053   fi
17054 
17055   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17056   if test "x$test_cygdrive_prefix" = x; then
17057     # As a simple fix, exclude /usr/bin since it's not a real path.
17058     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17059       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17060       # a path prefixed by /cygdrive for fixpath to work.
17061       new_path="$CYGWIN_ROOT_PATH$input_path"
17062     fi
17063   fi
17064 
17065   # remove trailing .exe if any
17066   new_path="${new_path/%.exe/}"
17067 
17068   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17069 
17070   # First separate the path from the arguments. This will split at the first
17071   # space.
17072   complete="$FOUND_MAKE"
17073   path="${complete%% *}"
17074   tmp="$complete EOL"
17075   arguments="${tmp#* }"
17076 
17077   # Input might be given as Windows format, start by converting to
17078   # unix format.
17079   new_path="$path"
17080 
17081   windows_path="$new_path"
17082   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17083     unix_path=`$CYGPATH -u "$windows_path"`
17084     new_path="$unix_path"
17085   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17086     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17087     new_path="$unix_path"
17088   fi
17089 
17090 
17091   # Now try to locate executable using which
17092   new_path=`$WHICH "$new_path" 2> /dev/null`
17093 
17094   if test "x$new_path" = x; then
17095     # Oops. Which didn't find the executable.
17096     # The splitting of arguments from the executable at a space might have been incorrect,
17097     # since paths with space are more likely in Windows. Give it another try with the whole
17098     # argument.
17099     path="$complete"
17100     arguments="EOL"
17101     new_path="$path"
17102 
17103   windows_path="$new_path"
17104   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17105     unix_path=`$CYGPATH -u "$windows_path"`
17106     new_path="$unix_path"
17107   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17108     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17109     new_path="$unix_path"
17110   fi
17111 
17112 
17113     new_path=`$WHICH "$new_path" 2> /dev/null`
17114     # bat and cmd files are not always considered executable in MSYS causing which
17115     # to not find them
17116     if test "x$new_path" = x \
17117         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17118         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17119       new_path="$path"
17120 
17121   windows_path="$new_path"
17122   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17123     unix_path=`$CYGPATH -u "$windows_path"`
17124     new_path="$unix_path"
17125   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17126     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17127     new_path="$unix_path"
17128   fi
17129 
17130     fi
17131 
17132     if test "x$new_path" = x; then
17133       # It's still not found. Now this is an unrecoverable error.
17134       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17135 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17136       has_space=`$ECHO "$complete" | $GREP " "`
17137       if test "x$has_space" != x; then
17138         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17139 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17140       fi
17141       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17142     fi
17143   fi
17144 
17145   # Now new_path has a complete unix path to the binary
17146   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17147     # Keep paths in /bin as-is, but remove trailing .exe if any
17148     new_path="${new_path/%.exe/}"
17149     # Do not save /bin paths to all_fixpath_prefixes!
17150   else
17151     # Not in mixed or Windows style, start by that.
17152     new_path=`cmd //c echo $new_path`
17153 
17154   input_path="$new_path"
17155   # Check if we need to convert this using DOS-style short mode. If the path
17156   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17157   # take no chances and rewrite it.
17158   # Note: m4 eats our [], so we need to use [ and ] instead.
17159   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17160   if test "x$has_forbidden_chars" != x; then
17161     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17162     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17163   fi
17164 
17165     # Output is in $new_path
17166 
17167   windows_path="$new_path"
17168   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17169     unix_path=`$CYGPATH -u "$windows_path"`
17170     new_path="$unix_path"
17171   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17172     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17173     new_path="$unix_path"
17174   fi
17175 
17176     # remove trailing .exe if any
17177     new_path="${new_path/%.exe/}"
17178 
17179     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17180     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17181   fi
17182 
17183   else
17184     # We're on a posix platform. Hooray! :)
17185     # First separate the path from the arguments. This will split at the first
17186     # space.
17187     complete="$FOUND_MAKE"
17188     path="${complete%% *}"
17189     tmp="$complete EOL"
17190     arguments="${tmp#* }"
17191 
17192     # Cannot rely on the command "which" here since it doesn't always work.
17193     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17194     if test -z "$is_absolute_path"; then
17195       # Path to executable is not absolute. Find it.
17196       IFS_save="$IFS"
17197       IFS=:
17198       for p in $PATH; do
17199         if test -f "$p/$path" && test -x "$p/$path"; then
17200           new_path="$p/$path"
17201           break
17202         fi
17203       done
17204       IFS="$IFS_save"
17205     else
17206       # This is an absolute path, we can use it without further modifications.
17207       new_path="$path"
17208     fi
17209 
17210     if test "x$new_path" = x; then
17211       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17212 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17213       has_space=`$ECHO "$complete" | $GREP " "`
17214       if test "x$has_space" != x; then
17215         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17216 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17217       fi
17218       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17219     fi
17220   fi
17221 
17222   # Now join together the path and the arguments once again
17223   if test "x$arguments" != xEOL; then
17224     new_complete="$new_path ${arguments% *}"
17225   else
17226     new_complete="$new_path"
17227   fi
17228 
17229   if test "x$complete" != "x$new_complete"; then
17230     FOUND_MAKE="$new_complete"
17231     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17232 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17233   fi
17234 
17235         fi
17236       fi
17237     fi
17238   fi
17239 
17240         fi
17241         PATH=$OLD_PATH
17242       fi
17243     fi
17244 
17245     if test "x$FOUND_MAKE" = x; then
17246       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
17247     fi
17248   fi
17249 
17250   MAKE=$FOUND_MAKE
17251 
17252   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17253 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17254 
17255 
17256 
17257   # Test if find supports -delete
17258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17259 $as_echo_n "checking if find supports -delete... " >&6; }
17260   FIND_DELETE="-delete"
17261 
17262   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17263 
17264   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17265 
17266   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17267   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17268     # No, it does not.
17269     rm $DELETEDIR/TestIfFindSupportsDelete
17270     FIND_DELETE="-exec rm \{\} \+"
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272 $as_echo "no" >&6; }
17273   else
17274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17275 $as_echo "yes" >&6; }
17276   fi
17277   rmdir $DELETEDIR
17278 
17279 
17280 
17281   # These tools might not be installed by default,
17282   # need hint on how to install them.
17283 
17284 
17285 
17286   # Publish this variable in the help.
17287 
17288 
17289   if test "x$UNZIP" = x; then
17290     # The variable is not set by user, try to locate tool using the code snippet
17291     for ac_prog in unzip
17292 do
17293   # Extract the first word of "$ac_prog", so it can be a program name with args.
17294 set dummy $ac_prog; ac_word=$2
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17296 $as_echo_n "checking for $ac_word... " >&6; }
17297 if ${ac_cv_path_UNZIP+:} false; then :
17298   $as_echo_n "(cached) " >&6
17299 else
17300   case $UNZIP in
17301   [\\/]* | ?:[\\/]*)
17302   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17303   ;;
17304   *)
17305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17306 for as_dir in $PATH
17307 do
17308   IFS=$as_save_IFS
17309   test -z "$as_dir" && as_dir=.
17310     for ac_exec_ext in '' $ac_executable_extensions; do
17311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17312     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17314     break 2
17315   fi
17316 done
17317   done
17318 IFS=$as_save_IFS
17319 
17320   ;;
17321 esac
17322 fi
17323 UNZIP=$ac_cv_path_UNZIP
17324 if test -n "$UNZIP"; then
17325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17326 $as_echo "$UNZIP" >&6; }
17327 else
17328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 $as_echo "no" >&6; }
17330 fi
17331 
17332 
17333   test -n "$UNZIP" && break
17334 done
17335 
17336   else
17337     # The variable is set, but is it from the command line or the environment?
17338 
17339     # Try to remove the string !UNZIP! from our list.
17340     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17341     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17342       # If it failed, the variable was not from the command line. Ignore it,
17343       # but warn the user (except for BASH, which is always set by the calling BASH).
17344       if test "xUNZIP" != xBASH; then
17345         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17346 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17347       fi
17348       # Try to locate tool using the code snippet
17349       for ac_prog in unzip
17350 do
17351   # Extract the first word of "$ac_prog", so it can be a program name with args.
17352 set dummy $ac_prog; ac_word=$2
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17354 $as_echo_n "checking for $ac_word... " >&6; }
17355 if ${ac_cv_path_UNZIP+:} false; then :
17356   $as_echo_n "(cached) " >&6
17357 else
17358   case $UNZIP in
17359   [\\/]* | ?:[\\/]*)
17360   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17361   ;;
17362   *)
17363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17364 for as_dir in $PATH
17365 do
17366   IFS=$as_save_IFS
17367   test -z "$as_dir" && as_dir=.
17368     for ac_exec_ext in '' $ac_executable_extensions; do
17369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17370     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17372     break 2
17373   fi
17374 done
17375   done
17376 IFS=$as_save_IFS
17377 
17378   ;;
17379 esac
17380 fi
17381 UNZIP=$ac_cv_path_UNZIP
17382 if test -n "$UNZIP"; then
17383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17384 $as_echo "$UNZIP" >&6; }
17385 else
17386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387 $as_echo "no" >&6; }
17388 fi
17389 
17390 
17391   test -n "$UNZIP" && break
17392 done
17393 
17394     else
17395       # If it succeeded, then it was overridden by the user. We will use it
17396       # for the tool.
17397 
17398       # First remove it from the list of overridden variables, so we can test
17399       # for unknown variables in the end.
17400       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17401 
17402       # Check if the provided tool contains a complete path.
17403       tool_specified="$UNZIP"
17404       tool_basename="${tool_specified##*/}"
17405       if test "x$tool_basename" = "x$tool_specified"; then
17406         # A command without a complete path is provided, search $PATH.
17407         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17408 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17409         # Extract the first word of "$tool_basename", so it can be a program name with args.
17410 set dummy $tool_basename; ac_word=$2
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17412 $as_echo_n "checking for $ac_word... " >&6; }
17413 if ${ac_cv_path_UNZIP+:} false; then :
17414   $as_echo_n "(cached) " >&6
17415 else
17416   case $UNZIP in
17417   [\\/]* | ?:[\\/]*)
17418   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17419   ;;
17420   *)
17421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17422 for as_dir in $PATH
17423 do
17424   IFS=$as_save_IFS
17425   test -z "$as_dir" && as_dir=.
17426     for ac_exec_ext in '' $ac_executable_extensions; do
17427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17428     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17430     break 2
17431   fi
17432 done
17433   done
17434 IFS=$as_save_IFS
17435 
17436   ;;
17437 esac
17438 fi
17439 UNZIP=$ac_cv_path_UNZIP
17440 if test -n "$UNZIP"; then
17441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17442 $as_echo "$UNZIP" >&6; }
17443 else
17444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17445 $as_echo "no" >&6; }
17446 fi
17447 
17448 
17449         if test "x$UNZIP" = x; then
17450           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17451         fi
17452       else
17453         # Otherwise we believe it is a complete path. Use it as it is.
17454         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17455 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17457 $as_echo_n "checking for UNZIP... " >&6; }
17458         if test ! -x "$tool_specified"; then
17459           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17460 $as_echo "not found" >&6; }
17461           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17462         fi
17463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17464 $as_echo "$tool_specified" >&6; }
17465       fi
17466     fi
17467   fi
17468 
17469 
17470 
17471   if test "x$UNZIP" = x; then
17472     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17473   fi
17474 
17475 
17476 
17477 
17478 
17479   # Publish this variable in the help.
17480 
17481 
17482   if test "x$ZIP" = x; then
17483     # The variable is not set by user, try to locate tool using the code snippet
17484     for ac_prog in zip
17485 do
17486   # Extract the first word of "$ac_prog", so it can be a program name with args.
17487 set dummy $ac_prog; ac_word=$2
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17489 $as_echo_n "checking for $ac_word... " >&6; }
17490 if ${ac_cv_path_ZIP+:} false; then :
17491   $as_echo_n "(cached) " >&6
17492 else
17493   case $ZIP in
17494   [\\/]* | ?:[\\/]*)
17495   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17496   ;;
17497   *)
17498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17499 for as_dir in $PATH
17500 do
17501   IFS=$as_save_IFS
17502   test -z "$as_dir" && as_dir=.
17503     for ac_exec_ext in '' $ac_executable_extensions; do
17504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17505     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17507     break 2
17508   fi
17509 done
17510   done
17511 IFS=$as_save_IFS
17512 
17513   ;;
17514 esac
17515 fi
17516 ZIP=$ac_cv_path_ZIP
17517 if test -n "$ZIP"; then
17518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17519 $as_echo "$ZIP" >&6; }
17520 else
17521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17522 $as_echo "no" >&6; }
17523 fi
17524 
17525 
17526   test -n "$ZIP" && break
17527 done
17528 
17529   else
17530     # The variable is set, but is it from the command line or the environment?
17531 
17532     # Try to remove the string !ZIP! from our list.
17533     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17534     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17535       # If it failed, the variable was not from the command line. Ignore it,
17536       # but warn the user (except for BASH, which is always set by the calling BASH).
17537       if test "xZIP" != xBASH; then
17538         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17539 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17540       fi
17541       # Try to locate tool using the code snippet
17542       for ac_prog in zip
17543 do
17544   # Extract the first word of "$ac_prog", so it can be a program name with args.
17545 set dummy $ac_prog; ac_word=$2
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17547 $as_echo_n "checking for $ac_word... " >&6; }
17548 if ${ac_cv_path_ZIP+:} false; then :
17549   $as_echo_n "(cached) " >&6
17550 else
17551   case $ZIP in
17552   [\\/]* | ?:[\\/]*)
17553   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17554   ;;
17555   *)
17556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17557 for as_dir in $PATH
17558 do
17559   IFS=$as_save_IFS
17560   test -z "$as_dir" && as_dir=.
17561     for ac_exec_ext in '' $ac_executable_extensions; do
17562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17563     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17565     break 2
17566   fi
17567 done
17568   done
17569 IFS=$as_save_IFS
17570 
17571   ;;
17572 esac
17573 fi
17574 ZIP=$ac_cv_path_ZIP
17575 if test -n "$ZIP"; then
17576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17577 $as_echo "$ZIP" >&6; }
17578 else
17579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580 $as_echo "no" >&6; }
17581 fi
17582 
17583 
17584   test -n "$ZIP" && break
17585 done
17586 
17587     else
17588       # If it succeeded, then it was overridden by the user. We will use it
17589       # for the tool.
17590 
17591       # First remove it from the list of overridden variables, so we can test
17592       # for unknown variables in the end.
17593       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17594 
17595       # Check if the provided tool contains a complete path.
17596       tool_specified="$ZIP"
17597       tool_basename="${tool_specified##*/}"
17598       if test "x$tool_basename" = "x$tool_specified"; then
17599         # A command without a complete path is provided, search $PATH.
17600         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17601 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17602         # Extract the first word of "$tool_basename", so it can be a program name with args.
17603 set dummy $tool_basename; ac_word=$2
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17605 $as_echo_n "checking for $ac_word... " >&6; }
17606 if ${ac_cv_path_ZIP+:} false; then :
17607   $as_echo_n "(cached) " >&6
17608 else
17609   case $ZIP in
17610   [\\/]* | ?:[\\/]*)
17611   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17612   ;;
17613   *)
17614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17615 for as_dir in $PATH
17616 do
17617   IFS=$as_save_IFS
17618   test -z "$as_dir" && as_dir=.
17619     for ac_exec_ext in '' $ac_executable_extensions; do
17620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17621     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17623     break 2
17624   fi
17625 done
17626   done
17627 IFS=$as_save_IFS
17628 
17629   ;;
17630 esac
17631 fi
17632 ZIP=$ac_cv_path_ZIP
17633 if test -n "$ZIP"; then
17634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17635 $as_echo "$ZIP" >&6; }
17636 else
17637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17638 $as_echo "no" >&6; }
17639 fi
17640 
17641 
17642         if test "x$ZIP" = x; then
17643           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17644         fi
17645       else
17646         # Otherwise we believe it is a complete path. Use it as it is.
17647         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17648 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17650 $as_echo_n "checking for ZIP... " >&6; }
17651         if test ! -x "$tool_specified"; then
17652           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17653 $as_echo "not found" >&6; }
17654           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17655         fi
17656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17657 $as_echo "$tool_specified" >&6; }
17658       fi
17659     fi
17660   fi
17661 
17662 
17663 
17664   if test "x$ZIP" = x; then
17665     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17666   fi
17667 
17668 
17669 
17670   # Non-required basic tools
17671 
17672 
17673 
17674   # Publish this variable in the help.
17675 
17676 
17677   if test "x$LDD" = x; then
17678     # The variable is not set by user, try to locate tool using the code snippet
17679     for ac_prog in ldd
17680 do
17681   # Extract the first word of "$ac_prog", so it can be a program name with args.
17682 set dummy $ac_prog; ac_word=$2
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17684 $as_echo_n "checking for $ac_word... " >&6; }
17685 if ${ac_cv_path_LDD+:} false; then :
17686   $as_echo_n "(cached) " >&6
17687 else
17688   case $LDD in
17689   [\\/]* | ?:[\\/]*)
17690   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17691   ;;
17692   *)
17693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17694 for as_dir in $PATH
17695 do
17696   IFS=$as_save_IFS
17697   test -z "$as_dir" && as_dir=.
17698     for ac_exec_ext in '' $ac_executable_extensions; do
17699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17700     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17702     break 2
17703   fi
17704 done
17705   done
17706 IFS=$as_save_IFS
17707 
17708   ;;
17709 esac
17710 fi
17711 LDD=$ac_cv_path_LDD
17712 if test -n "$LDD"; then
17713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17714 $as_echo "$LDD" >&6; }
17715 else
17716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17717 $as_echo "no" >&6; }
17718 fi
17719 
17720 
17721   test -n "$LDD" && break
17722 done
17723 
17724   else
17725     # The variable is set, but is it from the command line or the environment?
17726 
17727     # Try to remove the string !LDD! from our list.
17728     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17729     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17730       # If it failed, the variable was not from the command line. Ignore it,
17731       # but warn the user (except for BASH, which is always set by the calling BASH).
17732       if test "xLDD" != xBASH; then
17733         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17734 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17735       fi
17736       # Try to locate tool using the code snippet
17737       for ac_prog in ldd
17738 do
17739   # Extract the first word of "$ac_prog", so it can be a program name with args.
17740 set dummy $ac_prog; ac_word=$2
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17742 $as_echo_n "checking for $ac_word... " >&6; }
17743 if ${ac_cv_path_LDD+:} false; then :
17744   $as_echo_n "(cached) " >&6
17745 else
17746   case $LDD in
17747   [\\/]* | ?:[\\/]*)
17748   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17749   ;;
17750   *)
17751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17752 for as_dir in $PATH
17753 do
17754   IFS=$as_save_IFS
17755   test -z "$as_dir" && as_dir=.
17756     for ac_exec_ext in '' $ac_executable_extensions; do
17757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17758     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17760     break 2
17761   fi
17762 done
17763   done
17764 IFS=$as_save_IFS
17765 
17766   ;;
17767 esac
17768 fi
17769 LDD=$ac_cv_path_LDD
17770 if test -n "$LDD"; then
17771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17772 $as_echo "$LDD" >&6; }
17773 else
17774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 $as_echo "no" >&6; }
17776 fi
17777 
17778 
17779   test -n "$LDD" && break
17780 done
17781 
17782     else
17783       # If it succeeded, then it was overridden by the user. We will use it
17784       # for the tool.
17785 
17786       # First remove it from the list of overridden variables, so we can test
17787       # for unknown variables in the end.
17788       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17789 
17790       # Check if the provided tool contains a complete path.
17791       tool_specified="$LDD"
17792       tool_basename="${tool_specified##*/}"
17793       if test "x$tool_basename" = "x$tool_specified"; then
17794         # A command without a complete path is provided, search $PATH.
17795         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17796 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17797         # Extract the first word of "$tool_basename", so it can be a program name with args.
17798 set dummy $tool_basename; ac_word=$2
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17800 $as_echo_n "checking for $ac_word... " >&6; }
17801 if ${ac_cv_path_LDD+:} false; then :
17802   $as_echo_n "(cached) " >&6
17803 else
17804   case $LDD in
17805   [\\/]* | ?:[\\/]*)
17806   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17807   ;;
17808   *)
17809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17810 for as_dir in $PATH
17811 do
17812   IFS=$as_save_IFS
17813   test -z "$as_dir" && as_dir=.
17814     for ac_exec_ext in '' $ac_executable_extensions; do
17815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17816     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17818     break 2
17819   fi
17820 done
17821   done
17822 IFS=$as_save_IFS
17823 
17824   ;;
17825 esac
17826 fi
17827 LDD=$ac_cv_path_LDD
17828 if test -n "$LDD"; then
17829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17830 $as_echo "$LDD" >&6; }
17831 else
17832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17833 $as_echo "no" >&6; }
17834 fi
17835 
17836 
17837         if test "x$LDD" = x; then
17838           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17839         fi
17840       else
17841         # Otherwise we believe it is a complete path. Use it as it is.
17842         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17843 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17845 $as_echo_n "checking for LDD... " >&6; }
17846         if test ! -x "$tool_specified"; then
17847           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17848 $as_echo "not found" >&6; }
17849           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17850         fi
17851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17852 $as_echo "$tool_specified" >&6; }
17853       fi
17854     fi
17855   fi
17856 
17857 
17858   if test "x$LDD" = "x"; then
17859     # List shared lib dependencies is used for
17860     # debug output and checking for forbidden dependencies.
17861     # We can build without it.
17862     LDD="true"
17863   fi
17864 
17865 
17866   # Publish this variable in the help.
17867 
17868 
17869   if test "x$READELF" = x; then
17870     # The variable is not set by user, try to locate tool using the code snippet
17871     for ac_prog in readelf greadelf
17872 do
17873   # Extract the first word of "$ac_prog", so it can be a program name with args.
17874 set dummy $ac_prog; ac_word=$2
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17876 $as_echo_n "checking for $ac_word... " >&6; }
17877 if ${ac_cv_path_READELF+:} false; then :
17878   $as_echo_n "(cached) " >&6
17879 else
17880   case $READELF in
17881   [\\/]* | ?:[\\/]*)
17882   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17883   ;;
17884   *)
17885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17886 for as_dir in $PATH
17887 do
17888   IFS=$as_save_IFS
17889   test -z "$as_dir" && as_dir=.
17890     for ac_exec_ext in '' $ac_executable_extensions; do
17891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17892     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17894     break 2
17895   fi
17896 done
17897   done
17898 IFS=$as_save_IFS
17899 
17900   ;;
17901 esac
17902 fi
17903 READELF=$ac_cv_path_READELF
17904 if test -n "$READELF"; then
17905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17906 $as_echo "$READELF" >&6; }
17907 else
17908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17909 $as_echo "no" >&6; }
17910 fi
17911 
17912 
17913   test -n "$READELF" && break
17914 done
17915 
17916   else
17917     # The variable is set, but is it from the command line or the environment?
17918 
17919     # Try to remove the string !READELF! from our list.
17920     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17921     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17922       # If it failed, the variable was not from the command line. Ignore it,
17923       # but warn the user (except for BASH, which is always set by the calling BASH).
17924       if test "xREADELF" != xBASH; then
17925         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17926 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17927       fi
17928       # Try to locate tool using the code snippet
17929       for ac_prog in readelf greadelf
17930 do
17931   # Extract the first word of "$ac_prog", so it can be a program name with args.
17932 set dummy $ac_prog; ac_word=$2
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17934 $as_echo_n "checking for $ac_word... " >&6; }
17935 if ${ac_cv_path_READELF+:} false; then :
17936   $as_echo_n "(cached) " >&6
17937 else
17938   case $READELF in
17939   [\\/]* | ?:[\\/]*)
17940   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17941   ;;
17942   *)
17943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17944 for as_dir in $PATH
17945 do
17946   IFS=$as_save_IFS
17947   test -z "$as_dir" && as_dir=.
17948     for ac_exec_ext in '' $ac_executable_extensions; do
17949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17950     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17952     break 2
17953   fi
17954 done
17955   done
17956 IFS=$as_save_IFS
17957 
17958   ;;
17959 esac
17960 fi
17961 READELF=$ac_cv_path_READELF
17962 if test -n "$READELF"; then
17963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17964 $as_echo "$READELF" >&6; }
17965 else
17966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17967 $as_echo "no" >&6; }
17968 fi
17969 
17970 
17971   test -n "$READELF" && break
17972 done
17973 
17974     else
17975       # If it succeeded, then it was overridden by the user. We will use it
17976       # for the tool.
17977 
17978       # First remove it from the list of overridden variables, so we can test
17979       # for unknown variables in the end.
17980       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17981 
17982       # Check if the provided tool contains a complete path.
17983       tool_specified="$READELF"
17984       tool_basename="${tool_specified##*/}"
17985       if test "x$tool_basename" = "x$tool_specified"; then
17986         # A command without a complete path is provided, search $PATH.
17987         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17988 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17989         # Extract the first word of "$tool_basename", so it can be a program name with args.
17990 set dummy $tool_basename; ac_word=$2
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17992 $as_echo_n "checking for $ac_word... " >&6; }
17993 if ${ac_cv_path_READELF+:} false; then :
17994   $as_echo_n "(cached) " >&6
17995 else
17996   case $READELF in
17997   [\\/]* | ?:[\\/]*)
17998   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17999   ;;
18000   *)
18001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18002 for as_dir in $PATH
18003 do
18004   IFS=$as_save_IFS
18005   test -z "$as_dir" && as_dir=.
18006     for ac_exec_ext in '' $ac_executable_extensions; do
18007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18008     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18010     break 2
18011   fi
18012 done
18013   done
18014 IFS=$as_save_IFS
18015 
18016   ;;
18017 esac
18018 fi
18019 READELF=$ac_cv_path_READELF
18020 if test -n "$READELF"; then
18021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18022 $as_echo "$READELF" >&6; }
18023 else
18024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18025 $as_echo "no" >&6; }
18026 fi
18027 
18028 
18029         if test "x$READELF" = x; then
18030           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18031         fi
18032       else
18033         # Otherwise we believe it is a complete path. Use it as it is.
18034         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18035 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18037 $as_echo_n "checking for READELF... " >&6; }
18038         if test ! -x "$tool_specified"; then
18039           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18040 $as_echo "not found" >&6; }
18041           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18042         fi
18043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18044 $as_echo "$tool_specified" >&6; }
18045       fi
18046     fi
18047   fi
18048 
18049 
18050 
18051 
18052   # Publish this variable in the help.
18053 
18054 
18055   if test "x$HG" = x; then
18056     # The variable is not set by user, try to locate tool using the code snippet
18057     for ac_prog in hg
18058 do
18059   # Extract the first word of "$ac_prog", so it can be a program name with args.
18060 set dummy $ac_prog; ac_word=$2
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18062 $as_echo_n "checking for $ac_word... " >&6; }
18063 if ${ac_cv_path_HG+:} false; then :
18064   $as_echo_n "(cached) " >&6
18065 else
18066   case $HG in
18067   [\\/]* | ?:[\\/]*)
18068   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18069   ;;
18070   *)
18071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18072 for as_dir in $PATH
18073 do
18074   IFS=$as_save_IFS
18075   test -z "$as_dir" && as_dir=.
18076     for ac_exec_ext in '' $ac_executable_extensions; do
18077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18078     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18080     break 2
18081   fi
18082 done
18083   done
18084 IFS=$as_save_IFS
18085 
18086   ;;
18087 esac
18088 fi
18089 HG=$ac_cv_path_HG
18090 if test -n "$HG"; then
18091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18092 $as_echo "$HG" >&6; }
18093 else
18094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18095 $as_echo "no" >&6; }
18096 fi
18097 
18098 
18099   test -n "$HG" && break
18100 done
18101 
18102   else
18103     # The variable is set, but is it from the command line or the environment?
18104 
18105     # Try to remove the string !HG! from our list.
18106     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18107     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18108       # If it failed, the variable was not from the command line. Ignore it,
18109       # but warn the user (except for BASH, which is always set by the calling BASH).
18110       if test "xHG" != xBASH; then
18111         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18112 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18113       fi
18114       # Try to locate tool using the code snippet
18115       for ac_prog in hg
18116 do
18117   # Extract the first word of "$ac_prog", so it can be a program name with args.
18118 set dummy $ac_prog; ac_word=$2
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18120 $as_echo_n "checking for $ac_word... " >&6; }
18121 if ${ac_cv_path_HG+:} false; then :
18122   $as_echo_n "(cached) " >&6
18123 else
18124   case $HG in
18125   [\\/]* | ?:[\\/]*)
18126   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18127   ;;
18128   *)
18129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18130 for as_dir in $PATH
18131 do
18132   IFS=$as_save_IFS
18133   test -z "$as_dir" && as_dir=.
18134     for ac_exec_ext in '' $ac_executable_extensions; do
18135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18136     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18138     break 2
18139   fi
18140 done
18141   done
18142 IFS=$as_save_IFS
18143 
18144   ;;
18145 esac
18146 fi
18147 HG=$ac_cv_path_HG
18148 if test -n "$HG"; then
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18150 $as_echo "$HG" >&6; }
18151 else
18152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18153 $as_echo "no" >&6; }
18154 fi
18155 
18156 
18157   test -n "$HG" && break
18158 done
18159 
18160     else
18161       # If it succeeded, then it was overridden by the user. We will use it
18162       # for the tool.
18163 
18164       # First remove it from the list of overridden variables, so we can test
18165       # for unknown variables in the end.
18166       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18167 
18168       # Check if the provided tool contains a complete path.
18169       tool_specified="$HG"
18170       tool_basename="${tool_specified##*/}"
18171       if test "x$tool_basename" = "x$tool_specified"; then
18172         # A command without a complete path is provided, search $PATH.
18173         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18174 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18175         # Extract the first word of "$tool_basename", so it can be a program name with args.
18176 set dummy $tool_basename; ac_word=$2
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18178 $as_echo_n "checking for $ac_word... " >&6; }
18179 if ${ac_cv_path_HG+:} false; then :
18180   $as_echo_n "(cached) " >&6
18181 else
18182   case $HG in
18183   [\\/]* | ?:[\\/]*)
18184   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18185   ;;
18186   *)
18187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18188 for as_dir in $PATH
18189 do
18190   IFS=$as_save_IFS
18191   test -z "$as_dir" && as_dir=.
18192     for ac_exec_ext in '' $ac_executable_extensions; do
18193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18194     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18196     break 2
18197   fi
18198 done
18199   done
18200 IFS=$as_save_IFS
18201 
18202   ;;
18203 esac
18204 fi
18205 HG=$ac_cv_path_HG
18206 if test -n "$HG"; then
18207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18208 $as_echo "$HG" >&6; }
18209 else
18210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18211 $as_echo "no" >&6; }
18212 fi
18213 
18214 
18215         if test "x$HG" = x; then
18216           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18217         fi
18218       else
18219         # Otherwise we believe it is a complete path. Use it as it is.
18220         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18221 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18223 $as_echo_n "checking for HG... " >&6; }
18224         if test ! -x "$tool_specified"; then
18225           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18226 $as_echo "not found" >&6; }
18227           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18228         fi
18229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18230 $as_echo "$tool_specified" >&6; }
18231       fi
18232     fi
18233   fi
18234 
18235 
18236 
18237 
18238   # Publish this variable in the help.
18239 
18240 
18241   if test "x$STAT" = x; then
18242     # The variable is not set by user, try to locate tool using the code snippet
18243     for ac_prog in stat
18244 do
18245   # Extract the first word of "$ac_prog", so it can be a program name with args.
18246 set dummy $ac_prog; ac_word=$2
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18248 $as_echo_n "checking for $ac_word... " >&6; }
18249 if ${ac_cv_path_STAT+:} false; then :
18250   $as_echo_n "(cached) " >&6
18251 else
18252   case $STAT in
18253   [\\/]* | ?:[\\/]*)
18254   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18255   ;;
18256   *)
18257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18258 for as_dir in $PATH
18259 do
18260   IFS=$as_save_IFS
18261   test -z "$as_dir" && as_dir=.
18262     for ac_exec_ext in '' $ac_executable_extensions; do
18263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18264     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18266     break 2
18267   fi
18268 done
18269   done
18270 IFS=$as_save_IFS
18271 
18272   ;;
18273 esac
18274 fi
18275 STAT=$ac_cv_path_STAT
18276 if test -n "$STAT"; then
18277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18278 $as_echo "$STAT" >&6; }
18279 else
18280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18281 $as_echo "no" >&6; }
18282 fi
18283 
18284 
18285   test -n "$STAT" && break
18286 done
18287 
18288   else
18289     # The variable is set, but is it from the command line or the environment?
18290 
18291     # Try to remove the string !STAT! from our list.
18292     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18293     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18294       # If it failed, the variable was not from the command line. Ignore it,
18295       # but warn the user (except for BASH, which is always set by the calling BASH).
18296       if test "xSTAT" != xBASH; then
18297         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18298 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18299       fi
18300       # Try to locate tool using the code snippet
18301       for ac_prog in stat
18302 do
18303   # Extract the first word of "$ac_prog", so it can be a program name with args.
18304 set dummy $ac_prog; ac_word=$2
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18306 $as_echo_n "checking for $ac_word... " >&6; }
18307 if ${ac_cv_path_STAT+:} false; then :
18308   $as_echo_n "(cached) " >&6
18309 else
18310   case $STAT in
18311   [\\/]* | ?:[\\/]*)
18312   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18313   ;;
18314   *)
18315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18316 for as_dir in $PATH
18317 do
18318   IFS=$as_save_IFS
18319   test -z "$as_dir" && as_dir=.
18320     for ac_exec_ext in '' $ac_executable_extensions; do
18321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18322     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18324     break 2
18325   fi
18326 done
18327   done
18328 IFS=$as_save_IFS
18329 
18330   ;;
18331 esac
18332 fi
18333 STAT=$ac_cv_path_STAT
18334 if test -n "$STAT"; then
18335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18336 $as_echo "$STAT" >&6; }
18337 else
18338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18339 $as_echo "no" >&6; }
18340 fi
18341 
18342 
18343   test -n "$STAT" && break
18344 done
18345 
18346     else
18347       # If it succeeded, then it was overridden by the user. We will use it
18348       # for the tool.
18349 
18350       # First remove it from the list of overridden variables, so we can test
18351       # for unknown variables in the end.
18352       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18353 
18354       # Check if the provided tool contains a complete path.
18355       tool_specified="$STAT"
18356       tool_basename="${tool_specified##*/}"
18357       if test "x$tool_basename" = "x$tool_specified"; then
18358         # A command without a complete path is provided, search $PATH.
18359         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18360 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18361         # Extract the first word of "$tool_basename", so it can be a program name with args.
18362 set dummy $tool_basename; ac_word=$2
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18364 $as_echo_n "checking for $ac_word... " >&6; }
18365 if ${ac_cv_path_STAT+:} false; then :
18366   $as_echo_n "(cached) " >&6
18367 else
18368   case $STAT in
18369   [\\/]* | ?:[\\/]*)
18370   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18371   ;;
18372   *)
18373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18374 for as_dir in $PATH
18375 do
18376   IFS=$as_save_IFS
18377   test -z "$as_dir" && as_dir=.
18378     for ac_exec_ext in '' $ac_executable_extensions; do
18379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18380     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18382     break 2
18383   fi
18384 done
18385   done
18386 IFS=$as_save_IFS
18387 
18388   ;;
18389 esac
18390 fi
18391 STAT=$ac_cv_path_STAT
18392 if test -n "$STAT"; then
18393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18394 $as_echo "$STAT" >&6; }
18395 else
18396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18397 $as_echo "no" >&6; }
18398 fi
18399 
18400 
18401         if test "x$STAT" = x; then
18402           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18403         fi
18404       else
18405         # Otherwise we believe it is a complete path. Use it as it is.
18406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18407 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18409 $as_echo_n "checking for STAT... " >&6; }
18410         if test ! -x "$tool_specified"; then
18411           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18412 $as_echo "not found" >&6; }
18413           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18414         fi
18415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18416 $as_echo "$tool_specified" >&6; }
18417       fi
18418     fi
18419   fi
18420 
18421 
18422 
18423 
18424   # Publish this variable in the help.
18425 
18426 
18427   if test "x$TIME" = x; then
18428     # The variable is not set by user, try to locate tool using the code snippet
18429     for ac_prog in time
18430 do
18431   # Extract the first word of "$ac_prog", so it can be a program name with args.
18432 set dummy $ac_prog; ac_word=$2
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18434 $as_echo_n "checking for $ac_word... " >&6; }
18435 if ${ac_cv_path_TIME+:} false; then :
18436   $as_echo_n "(cached) " >&6
18437 else
18438   case $TIME in
18439   [\\/]* | ?:[\\/]*)
18440   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18441   ;;
18442   *)
18443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18444 for as_dir in $PATH
18445 do
18446   IFS=$as_save_IFS
18447   test -z "$as_dir" && as_dir=.
18448     for ac_exec_ext in '' $ac_executable_extensions; do
18449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18450     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18452     break 2
18453   fi
18454 done
18455   done
18456 IFS=$as_save_IFS
18457 
18458   ;;
18459 esac
18460 fi
18461 TIME=$ac_cv_path_TIME
18462 if test -n "$TIME"; then
18463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18464 $as_echo "$TIME" >&6; }
18465 else
18466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18467 $as_echo "no" >&6; }
18468 fi
18469 
18470 
18471   test -n "$TIME" && break
18472 done
18473 
18474   else
18475     # The variable is set, but is it from the command line or the environment?
18476 
18477     # Try to remove the string !TIME! from our list.
18478     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18479     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18480       # If it failed, the variable was not from the command line. Ignore it,
18481       # but warn the user (except for BASH, which is always set by the calling BASH).
18482       if test "xTIME" != xBASH; then
18483         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18484 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18485       fi
18486       # Try to locate tool using the code snippet
18487       for ac_prog in time
18488 do
18489   # Extract the first word of "$ac_prog", so it can be a program name with args.
18490 set dummy $ac_prog; ac_word=$2
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18492 $as_echo_n "checking for $ac_word... " >&6; }
18493 if ${ac_cv_path_TIME+:} false; then :
18494   $as_echo_n "(cached) " >&6
18495 else
18496   case $TIME in
18497   [\\/]* | ?:[\\/]*)
18498   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18499   ;;
18500   *)
18501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18502 for as_dir in $PATH
18503 do
18504   IFS=$as_save_IFS
18505   test -z "$as_dir" && as_dir=.
18506     for ac_exec_ext in '' $ac_executable_extensions; do
18507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18508     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18510     break 2
18511   fi
18512 done
18513   done
18514 IFS=$as_save_IFS
18515 
18516   ;;
18517 esac
18518 fi
18519 TIME=$ac_cv_path_TIME
18520 if test -n "$TIME"; then
18521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18522 $as_echo "$TIME" >&6; }
18523 else
18524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18525 $as_echo "no" >&6; }
18526 fi
18527 
18528 
18529   test -n "$TIME" && break
18530 done
18531 
18532     else
18533       # If it succeeded, then it was overridden by the user. We will use it
18534       # for the tool.
18535 
18536       # First remove it from the list of overridden variables, so we can test
18537       # for unknown variables in the end.
18538       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18539 
18540       # Check if the provided tool contains a complete path.
18541       tool_specified="$TIME"
18542       tool_basename="${tool_specified##*/}"
18543       if test "x$tool_basename" = "x$tool_specified"; then
18544         # A command without a complete path is provided, search $PATH.
18545         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18546 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18547         # Extract the first word of "$tool_basename", so it can be a program name with args.
18548 set dummy $tool_basename; ac_word=$2
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18550 $as_echo_n "checking for $ac_word... " >&6; }
18551 if ${ac_cv_path_TIME+:} false; then :
18552   $as_echo_n "(cached) " >&6
18553 else
18554   case $TIME in
18555   [\\/]* | ?:[\\/]*)
18556   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18557   ;;
18558   *)
18559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18560 for as_dir in $PATH
18561 do
18562   IFS=$as_save_IFS
18563   test -z "$as_dir" && as_dir=.
18564     for ac_exec_ext in '' $ac_executable_extensions; do
18565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18566     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18568     break 2
18569   fi
18570 done
18571   done
18572 IFS=$as_save_IFS
18573 
18574   ;;
18575 esac
18576 fi
18577 TIME=$ac_cv_path_TIME
18578 if test -n "$TIME"; then
18579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18580 $as_echo "$TIME" >&6; }
18581 else
18582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18583 $as_echo "no" >&6; }
18584 fi
18585 
18586 
18587         if test "x$TIME" = x; then
18588           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18589         fi
18590       else
18591         # Otherwise we believe it is a complete path. Use it as it is.
18592         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18593 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18595 $as_echo_n "checking for TIME... " >&6; }
18596         if test ! -x "$tool_specified"; then
18597           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18598 $as_echo "not found" >&6; }
18599           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18600         fi
18601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18602 $as_echo "$tool_specified" >&6; }
18603       fi
18604     fi
18605   fi
18606 
18607 
18608   # Check if it's GNU time
18609   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18610   if test "x$IS_GNU_TIME" != x; then
18611     IS_GNU_TIME=yes
18612   else
18613     IS_GNU_TIME=no
18614   fi
18615 
18616 
18617   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18618 
18619 
18620 
18621   # Publish this variable in the help.
18622 
18623 
18624   if test "x$COMM" = x; then
18625     # The variable is not set by user, try to locate tool using the code snippet
18626     for ac_prog in comm
18627 do
18628   # Extract the first word of "$ac_prog", so it can be a program name with args.
18629 set dummy $ac_prog; ac_word=$2
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18631 $as_echo_n "checking for $ac_word... " >&6; }
18632 if ${ac_cv_path_COMM+:} false; then :
18633   $as_echo_n "(cached) " >&6
18634 else
18635   case $COMM in
18636   [\\/]* | ?:[\\/]*)
18637   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18638   ;;
18639   *)
18640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18641 for as_dir in $PATH
18642 do
18643   IFS=$as_save_IFS
18644   test -z "$as_dir" && as_dir=.
18645     for ac_exec_ext in '' $ac_executable_extensions; do
18646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18647     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18649     break 2
18650   fi
18651 done
18652   done
18653 IFS=$as_save_IFS
18654 
18655   ;;
18656 esac
18657 fi
18658 COMM=$ac_cv_path_COMM
18659 if test -n "$COMM"; then
18660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18661 $as_echo "$COMM" >&6; }
18662 else
18663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18664 $as_echo "no" >&6; }
18665 fi
18666 
18667 
18668   test -n "$COMM" && break
18669 done
18670 
18671   else
18672     # The variable is set, but is it from the command line or the environment?
18673 
18674     # Try to remove the string !COMM! from our list.
18675     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18676     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18677       # If it failed, the variable was not from the command line. Ignore it,
18678       # but warn the user (except for BASH, which is always set by the calling BASH).
18679       if test "xCOMM" != xBASH; then
18680         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18681 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18682       fi
18683       # Try to locate tool using the code snippet
18684       for ac_prog in comm
18685 do
18686   # Extract the first word of "$ac_prog", so it can be a program name with args.
18687 set dummy $ac_prog; ac_word=$2
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18689 $as_echo_n "checking for $ac_word... " >&6; }
18690 if ${ac_cv_path_COMM+:} false; then :
18691   $as_echo_n "(cached) " >&6
18692 else
18693   case $COMM in
18694   [\\/]* | ?:[\\/]*)
18695   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18696   ;;
18697   *)
18698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18699 for as_dir in $PATH
18700 do
18701   IFS=$as_save_IFS
18702   test -z "$as_dir" && as_dir=.
18703     for ac_exec_ext in '' $ac_executable_extensions; do
18704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18705     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18707     break 2
18708   fi
18709 done
18710   done
18711 IFS=$as_save_IFS
18712 
18713   ;;
18714 esac
18715 fi
18716 COMM=$ac_cv_path_COMM
18717 if test -n "$COMM"; then
18718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18719 $as_echo "$COMM" >&6; }
18720 else
18721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18722 $as_echo "no" >&6; }
18723 fi
18724 
18725 
18726   test -n "$COMM" && break
18727 done
18728 
18729     else
18730       # If it succeeded, then it was overridden by the user. We will use it
18731       # for the tool.
18732 
18733       # First remove it from the list of overridden variables, so we can test
18734       # for unknown variables in the end.
18735       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18736 
18737       # Check if the provided tool contains a complete path.
18738       tool_specified="$COMM"
18739       tool_basename="${tool_specified##*/}"
18740       if test "x$tool_basename" = "x$tool_specified"; then
18741         # A command without a complete path is provided, search $PATH.
18742         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18743 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18744         # Extract the first word of "$tool_basename", so it can be a program name with args.
18745 set dummy $tool_basename; ac_word=$2
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18747 $as_echo_n "checking for $ac_word... " >&6; }
18748 if ${ac_cv_path_COMM+:} false; then :
18749   $as_echo_n "(cached) " >&6
18750 else
18751   case $COMM in
18752   [\\/]* | ?:[\\/]*)
18753   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18754   ;;
18755   *)
18756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757 for as_dir in $PATH
18758 do
18759   IFS=$as_save_IFS
18760   test -z "$as_dir" && as_dir=.
18761     for ac_exec_ext in '' $ac_executable_extensions; do
18762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18765     break 2
18766   fi
18767 done
18768   done
18769 IFS=$as_save_IFS
18770 
18771   ;;
18772 esac
18773 fi
18774 COMM=$ac_cv_path_COMM
18775 if test -n "$COMM"; then
18776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18777 $as_echo "$COMM" >&6; }
18778 else
18779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18780 $as_echo "no" >&6; }
18781 fi
18782 
18783 
18784         if test "x$COMM" = x; then
18785           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18786         fi
18787       else
18788         # Otherwise we believe it is a complete path. Use it as it is.
18789         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18790 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18792 $as_echo_n "checking for COMM... " >&6; }
18793         if test ! -x "$tool_specified"; then
18794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18795 $as_echo "not found" >&6; }
18796           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18797         fi
18798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18799 $as_echo "$tool_specified" >&6; }
18800       fi
18801     fi
18802   fi
18803 
18804 
18805 
18806   if test "x$COMM" = x; then
18807     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18808   fi
18809 
18810 
18811   fi
18812 
18813   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18814 
18815 
18816 
18817   # Publish this variable in the help.
18818 
18819 
18820   if test "x$DSYMUTIL" = x; then
18821     # The variable is not set by user, try to locate tool using the code snippet
18822     for ac_prog in dsymutil
18823 do
18824   # Extract the first word of "$ac_prog", so it can be a program name with args.
18825 set dummy $ac_prog; ac_word=$2
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18827 $as_echo_n "checking for $ac_word... " >&6; }
18828 if ${ac_cv_path_DSYMUTIL+:} false; then :
18829   $as_echo_n "(cached) " >&6
18830 else
18831   case $DSYMUTIL in
18832   [\\/]* | ?:[\\/]*)
18833   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18834   ;;
18835   *)
18836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18837 for as_dir in $PATH
18838 do
18839   IFS=$as_save_IFS
18840   test -z "$as_dir" && as_dir=.
18841     for ac_exec_ext in '' $ac_executable_extensions; do
18842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18843     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18845     break 2
18846   fi
18847 done
18848   done
18849 IFS=$as_save_IFS
18850 
18851   ;;
18852 esac
18853 fi
18854 DSYMUTIL=$ac_cv_path_DSYMUTIL
18855 if test -n "$DSYMUTIL"; then
18856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18857 $as_echo "$DSYMUTIL" >&6; }
18858 else
18859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860 $as_echo "no" >&6; }
18861 fi
18862 
18863 
18864   test -n "$DSYMUTIL" && break
18865 done
18866 
18867   else
18868     # The variable is set, but is it from the command line or the environment?
18869 
18870     # Try to remove the string !DSYMUTIL! from our list.
18871     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18872     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18873       # If it failed, the variable was not from the command line. Ignore it,
18874       # but warn the user (except for BASH, which is always set by the calling BASH).
18875       if test "xDSYMUTIL" != xBASH; then
18876         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18877 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18878       fi
18879       # Try to locate tool using the code snippet
18880       for ac_prog in dsymutil
18881 do
18882   # Extract the first word of "$ac_prog", so it can be a program name with args.
18883 set dummy $ac_prog; ac_word=$2
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18885 $as_echo_n "checking for $ac_word... " >&6; }
18886 if ${ac_cv_path_DSYMUTIL+:} false; then :
18887   $as_echo_n "(cached) " >&6
18888 else
18889   case $DSYMUTIL in
18890   [\\/]* | ?:[\\/]*)
18891   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18892   ;;
18893   *)
18894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18895 for as_dir in $PATH
18896 do
18897   IFS=$as_save_IFS
18898   test -z "$as_dir" && as_dir=.
18899     for ac_exec_ext in '' $ac_executable_extensions; do
18900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18901     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18903     break 2
18904   fi
18905 done
18906   done
18907 IFS=$as_save_IFS
18908 
18909   ;;
18910 esac
18911 fi
18912 DSYMUTIL=$ac_cv_path_DSYMUTIL
18913 if test -n "$DSYMUTIL"; then
18914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18915 $as_echo "$DSYMUTIL" >&6; }
18916 else
18917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18918 $as_echo "no" >&6; }
18919 fi
18920 
18921 
18922   test -n "$DSYMUTIL" && break
18923 done
18924 
18925     else
18926       # If it succeeded, then it was overridden by the user. We will use it
18927       # for the tool.
18928 
18929       # First remove it from the list of overridden variables, so we can test
18930       # for unknown variables in the end.
18931       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18932 
18933       # Check if the provided tool contains a complete path.
18934       tool_specified="$DSYMUTIL"
18935       tool_basename="${tool_specified##*/}"
18936       if test "x$tool_basename" = "x$tool_specified"; then
18937         # A command without a complete path is provided, search $PATH.
18938         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18939 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18940         # Extract the first word of "$tool_basename", so it can be a program name with args.
18941 set dummy $tool_basename; ac_word=$2
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18943 $as_echo_n "checking for $ac_word... " >&6; }
18944 if ${ac_cv_path_DSYMUTIL+:} false; then :
18945   $as_echo_n "(cached) " >&6
18946 else
18947   case $DSYMUTIL in
18948   [\\/]* | ?:[\\/]*)
18949   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18950   ;;
18951   *)
18952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18953 for as_dir in $PATH
18954 do
18955   IFS=$as_save_IFS
18956   test -z "$as_dir" && as_dir=.
18957     for ac_exec_ext in '' $ac_executable_extensions; do
18958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18959     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18961     break 2
18962   fi
18963 done
18964   done
18965 IFS=$as_save_IFS
18966 
18967   ;;
18968 esac
18969 fi
18970 DSYMUTIL=$ac_cv_path_DSYMUTIL
18971 if test -n "$DSYMUTIL"; then
18972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18973 $as_echo "$DSYMUTIL" >&6; }
18974 else
18975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18976 $as_echo "no" >&6; }
18977 fi
18978 
18979 
18980         if test "x$DSYMUTIL" = x; then
18981           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18982         fi
18983       else
18984         # Otherwise we believe it is a complete path. Use it as it is.
18985         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18986 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18988 $as_echo_n "checking for DSYMUTIL... " >&6; }
18989         if test ! -x "$tool_specified"; then
18990           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18991 $as_echo "not found" >&6; }
18992           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18993         fi
18994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18995 $as_echo "$tool_specified" >&6; }
18996       fi
18997     fi
18998   fi
18999 
19000 
19001 
19002   if test "x$DSYMUTIL" = x; then
19003     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
19004   fi
19005 
19006 
19007 
19008 
19009 
19010   # Publish this variable in the help.
19011 
19012 
19013   if test "x$XATTR" = x; then
19014     # The variable is not set by user, try to locate tool using the code snippet
19015     for ac_prog in xattr
19016 do
19017   # Extract the first word of "$ac_prog", so it can be a program name with args.
19018 set dummy $ac_prog; ac_word=$2
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19020 $as_echo_n "checking for $ac_word... " >&6; }
19021 if ${ac_cv_path_XATTR+:} false; then :
19022   $as_echo_n "(cached) " >&6
19023 else
19024   case $XATTR in
19025   [\\/]* | ?:[\\/]*)
19026   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19027   ;;
19028   *)
19029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030 for as_dir in $PATH
19031 do
19032   IFS=$as_save_IFS
19033   test -z "$as_dir" && as_dir=.
19034     for ac_exec_ext in '' $ac_executable_extensions; do
19035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19036     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19038     break 2
19039   fi
19040 done
19041   done
19042 IFS=$as_save_IFS
19043 
19044   ;;
19045 esac
19046 fi
19047 XATTR=$ac_cv_path_XATTR
19048 if test -n "$XATTR"; then
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19050 $as_echo "$XATTR" >&6; }
19051 else
19052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19053 $as_echo "no" >&6; }
19054 fi
19055 
19056 
19057   test -n "$XATTR" && break
19058 done
19059 
19060   else
19061     # The variable is set, but is it from the command line or the environment?
19062 
19063     # Try to remove the string !XATTR! from our list.
19064     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19065     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19066       # If it failed, the variable was not from the command line. Ignore it,
19067       # but warn the user (except for BASH, which is always set by the calling BASH).
19068       if test "xXATTR" != xBASH; then
19069         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19070 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19071       fi
19072       # Try to locate tool using the code snippet
19073       for ac_prog in xattr
19074 do
19075   # Extract the first word of "$ac_prog", so it can be a program name with args.
19076 set dummy $ac_prog; ac_word=$2
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19078 $as_echo_n "checking for $ac_word... " >&6; }
19079 if ${ac_cv_path_XATTR+:} false; then :
19080   $as_echo_n "(cached) " >&6
19081 else
19082   case $XATTR in
19083   [\\/]* | ?:[\\/]*)
19084   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19085   ;;
19086   *)
19087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088 for as_dir in $PATH
19089 do
19090   IFS=$as_save_IFS
19091   test -z "$as_dir" && as_dir=.
19092     for ac_exec_ext in '' $ac_executable_extensions; do
19093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19094     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19096     break 2
19097   fi
19098 done
19099   done
19100 IFS=$as_save_IFS
19101 
19102   ;;
19103 esac
19104 fi
19105 XATTR=$ac_cv_path_XATTR
19106 if test -n "$XATTR"; then
19107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19108 $as_echo "$XATTR" >&6; }
19109 else
19110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19111 $as_echo "no" >&6; }
19112 fi
19113 
19114 
19115   test -n "$XATTR" && break
19116 done
19117 
19118     else
19119       # If it succeeded, then it was overridden by the user. We will use it
19120       # for the tool.
19121 
19122       # First remove it from the list of overridden variables, so we can test
19123       # for unknown variables in the end.
19124       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19125 
19126       # Check if the provided tool contains a complete path.
19127       tool_specified="$XATTR"
19128       tool_basename="${tool_specified##*/}"
19129       if test "x$tool_basename" = "x$tool_specified"; then
19130         # A command without a complete path is provided, search $PATH.
19131         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19132 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19133         # Extract the first word of "$tool_basename", so it can be a program name with args.
19134 set dummy $tool_basename; ac_word=$2
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19136 $as_echo_n "checking for $ac_word... " >&6; }
19137 if ${ac_cv_path_XATTR+:} false; then :
19138   $as_echo_n "(cached) " >&6
19139 else
19140   case $XATTR in
19141   [\\/]* | ?:[\\/]*)
19142   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19143   ;;
19144   *)
19145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19147 do
19148   IFS=$as_save_IFS
19149   test -z "$as_dir" && as_dir=.
19150     for ac_exec_ext in '' $ac_executable_extensions; do
19151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19152     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19154     break 2
19155   fi
19156 done
19157   done
19158 IFS=$as_save_IFS
19159 
19160   ;;
19161 esac
19162 fi
19163 XATTR=$ac_cv_path_XATTR
19164 if test -n "$XATTR"; then
19165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19166 $as_echo "$XATTR" >&6; }
19167 else
19168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19169 $as_echo "no" >&6; }
19170 fi
19171 
19172 
19173         if test "x$XATTR" = x; then
19174           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19175         fi
19176       else
19177         # Otherwise we believe it is a complete path. Use it as it is.
19178         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19179 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19181 $as_echo_n "checking for XATTR... " >&6; }
19182         if test ! -x "$tool_specified"; then
19183           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19184 $as_echo "not found" >&6; }
19185           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19186         fi
19187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19188 $as_echo "$tool_specified" >&6; }
19189       fi
19190     fi
19191   fi
19192 
19193 
19194 
19195   if test "x$XATTR" = x; then
19196     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19197   fi
19198 
19199 
19200 
19201 
19202   # Publish this variable in the help.
19203 
19204 
19205   if test "x$CODESIGN" = x; then
19206     # The variable is not set by user, try to locate tool using the code snippet
19207     for ac_prog in codesign
19208 do
19209   # Extract the first word of "$ac_prog", so it can be a program name with args.
19210 set dummy $ac_prog; ac_word=$2
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19212 $as_echo_n "checking for $ac_word... " >&6; }
19213 if ${ac_cv_path_CODESIGN+:} false; then :
19214   $as_echo_n "(cached) " >&6
19215 else
19216   case $CODESIGN in
19217   [\\/]* | ?:[\\/]*)
19218   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19219   ;;
19220   *)
19221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19222 for as_dir in $PATH
19223 do
19224   IFS=$as_save_IFS
19225   test -z "$as_dir" && as_dir=.
19226     for ac_exec_ext in '' $ac_executable_extensions; do
19227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19228     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19230     break 2
19231   fi
19232 done
19233   done
19234 IFS=$as_save_IFS
19235 
19236   ;;
19237 esac
19238 fi
19239 CODESIGN=$ac_cv_path_CODESIGN
19240 if test -n "$CODESIGN"; then
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19242 $as_echo "$CODESIGN" >&6; }
19243 else
19244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246 fi
19247 
19248 
19249   test -n "$CODESIGN" && break
19250 done
19251 
19252   else
19253     # The variable is set, but is it from the command line or the environment?
19254 
19255     # Try to remove the string !CODESIGN! from our list.
19256     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19257     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19258       # If it failed, the variable was not from the command line. Ignore it,
19259       # but warn the user (except for BASH, which is always set by the calling BASH).
19260       if test "xCODESIGN" != xBASH; then
19261         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19262 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19263       fi
19264       # Try to locate tool using the code snippet
19265       for ac_prog in codesign
19266 do
19267   # Extract the first word of "$ac_prog", so it can be a program name with args.
19268 set dummy $ac_prog; ac_word=$2
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19270 $as_echo_n "checking for $ac_word... " >&6; }
19271 if ${ac_cv_path_CODESIGN+:} false; then :
19272   $as_echo_n "(cached) " >&6
19273 else
19274   case $CODESIGN in
19275   [\\/]* | ?:[\\/]*)
19276   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19277   ;;
19278   *)
19279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19280 for as_dir in $PATH
19281 do
19282   IFS=$as_save_IFS
19283   test -z "$as_dir" && as_dir=.
19284     for ac_exec_ext in '' $ac_executable_extensions; do
19285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19286     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19288     break 2
19289   fi
19290 done
19291   done
19292 IFS=$as_save_IFS
19293 
19294   ;;
19295 esac
19296 fi
19297 CODESIGN=$ac_cv_path_CODESIGN
19298 if test -n "$CODESIGN"; then
19299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19300 $as_echo "$CODESIGN" >&6; }
19301 else
19302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19303 $as_echo "no" >&6; }
19304 fi
19305 
19306 
19307   test -n "$CODESIGN" && break
19308 done
19309 
19310     else
19311       # If it succeeded, then it was overridden by the user. We will use it
19312       # for the tool.
19313 
19314       # First remove it from the list of overridden variables, so we can test
19315       # for unknown variables in the end.
19316       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19317 
19318       # Check if the provided tool contains a complete path.
19319       tool_specified="$CODESIGN"
19320       tool_basename="${tool_specified##*/}"
19321       if test "x$tool_basename" = "x$tool_specified"; then
19322         # A command without a complete path is provided, search $PATH.
19323         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19324 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19325         # Extract the first word of "$tool_basename", so it can be a program name with args.
19326 set dummy $tool_basename; ac_word=$2
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19328 $as_echo_n "checking for $ac_word... " >&6; }
19329 if ${ac_cv_path_CODESIGN+:} false; then :
19330   $as_echo_n "(cached) " >&6
19331 else
19332   case $CODESIGN in
19333   [\\/]* | ?:[\\/]*)
19334   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19335   ;;
19336   *)
19337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19338 for as_dir in $PATH
19339 do
19340   IFS=$as_save_IFS
19341   test -z "$as_dir" && as_dir=.
19342     for ac_exec_ext in '' $ac_executable_extensions; do
19343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19344     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19346     break 2
19347   fi
19348 done
19349   done
19350 IFS=$as_save_IFS
19351 
19352   ;;
19353 esac
19354 fi
19355 CODESIGN=$ac_cv_path_CODESIGN
19356 if test -n "$CODESIGN"; then
19357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19358 $as_echo "$CODESIGN" >&6; }
19359 else
19360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19361 $as_echo "no" >&6; }
19362 fi
19363 
19364 
19365         if test "x$CODESIGN" = x; then
19366           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19367         fi
19368       else
19369         # Otherwise we believe it is a complete path. Use it as it is.
19370         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19371 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19373 $as_echo_n "checking for CODESIGN... " >&6; }
19374         if test ! -x "$tool_specified"; then
19375           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19376 $as_echo "not found" >&6; }
19377           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19378         fi
19379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19380 $as_echo "$tool_specified" >&6; }
19381       fi
19382     fi
19383   fi
19384 
19385 
19386     if test "x$CODESIGN" != "x"; then
19387       # Verify that the openjdk_codesign certificate is present
19388       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19389 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19390       rm -f codesign-testfile
19391       touch codesign-testfile
19392       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19393       rm -f codesign-testfile
19394       if test "x$CODESIGN" = x; then
19395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19396 $as_echo "no" >&6; }
19397       else
19398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19399 $as_echo "yes" >&6; }
19400       fi
19401     fi
19402   fi
19403 
19404 
19405 # Check if pkg-config is available.
19406 
19407 
19408 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19409         if test -n "$ac_tool_prefix"; then
19410   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19411 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19413 $as_echo_n "checking for $ac_word... " >&6; }
19414 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19415   $as_echo_n "(cached) " >&6
19416 else
19417   case $PKG_CONFIG in
19418   [\\/]* | ?:[\\/]*)
19419   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19420   ;;
19421   *)
19422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19423 for as_dir in $PATH
19424 do
19425   IFS=$as_save_IFS
19426   test -z "$as_dir" && as_dir=.
19427     for ac_exec_ext in '' $ac_executable_extensions; do
19428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19429     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19431     break 2
19432   fi
19433 done
19434   done
19435 IFS=$as_save_IFS
19436 
19437   ;;
19438 esac
19439 fi
19440 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19441 if test -n "$PKG_CONFIG"; then
19442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19443 $as_echo "$PKG_CONFIG" >&6; }
19444 else
19445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19446 $as_echo "no" >&6; }
19447 fi
19448 
19449 
19450 fi
19451 if test -z "$ac_cv_path_PKG_CONFIG"; then
19452   ac_pt_PKG_CONFIG=$PKG_CONFIG
19453   # Extract the first word of "pkg-config", so it can be a program name with args.
19454 set dummy pkg-config; ac_word=$2
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19456 $as_echo_n "checking for $ac_word... " >&6; }
19457 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19458   $as_echo_n "(cached) " >&6
19459 else
19460   case $ac_pt_PKG_CONFIG in
19461   [\\/]* | ?:[\\/]*)
19462   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19463   ;;
19464   *)
19465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19466 for as_dir in $PATH
19467 do
19468   IFS=$as_save_IFS
19469   test -z "$as_dir" && as_dir=.
19470     for ac_exec_ext in '' $ac_executable_extensions; do
19471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19472     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19474     break 2
19475   fi
19476 done
19477   done
19478 IFS=$as_save_IFS
19479 
19480   ;;
19481 esac
19482 fi
19483 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19484 if test -n "$ac_pt_PKG_CONFIG"; then
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19486 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19487 else
19488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19489 $as_echo "no" >&6; }
19490 fi
19491 
19492   if test "x$ac_pt_PKG_CONFIG" = x; then
19493     PKG_CONFIG=""
19494   else
19495     case $cross_compiling:$ac_tool_warned in
19496 yes:)
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19499 ac_tool_warned=yes ;;
19500 esac
19501     PKG_CONFIG=$ac_pt_PKG_CONFIG
19502   fi
19503 else
19504   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19505 fi
19506 
19507 fi
19508 if test -n "$PKG_CONFIG"; then
19509         _pkg_min_version=0.9.0
19510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19511 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19512         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19513                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19514 $as_echo "yes" >&6; }
19515         else
19516                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517 $as_echo "no" >&6; }
19518                 PKG_CONFIG=""
19519         fi
19520 
19521 fi
19522 
19523 # After basic tools have been setup, we can check build os specific details.
19524 
19525   ###############################################################################
19526 
19527   # Note that this is the build platform OS version!
19528 
19529   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19530   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19531   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19532   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19533 
19534 
19535 
19536 
19537 
19538 # Setup builddeps, for automatic downloading of tools we need.
19539 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19540 # boot-jdk setup, but we need to have basic tools setup first.
19541 
19542 
19543 # Check whether --with-builddeps-conf was given.
19544 if test "${with_builddeps_conf+set}" = set; then :
19545   withval=$with_builddeps_conf;
19546 fi
19547 
19548 
19549 
19550 # Check whether --with-builddeps-server was given.
19551 if test "${with_builddeps_server+set}" = set; then :
19552   withval=$with_builddeps_server;
19553 fi
19554 
19555 
19556 
19557 # Check whether --with-builddeps-dir was given.
19558 if test "${with_builddeps_dir+set}" = set; then :
19559   withval=$with_builddeps_dir;
19560 else
19561   with_builddeps_dir=/localhome/builddeps
19562 fi
19563 
19564 
19565 
19566 # Check whether --with-builddeps-group was given.
19567 if test "${with_builddeps_group+set}" = set; then :
19568   withval=$with_builddeps_group;
19569 fi
19570 
19571 
19572 
19573 
19574   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19575     if test "x$with_builddeps_conf" != x; then
19576       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19577 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19578       builddepsfile=$with_builddeps_conf
19579       if test -s $builddepsfile; then
19580         . $builddepsfile
19581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19582 $as_echo "loaded!" >&6; }
19583       else
19584         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19585       fi
19586     else
19587       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19588 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19589       builddepsfile=`mktemp`
19590       touch $builddepsfile
19591       # Put all found confs into a single file.
19592       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19593       # Source the file to acquire the variables
19594       if test -s $builddepsfile; then
19595         . $builddepsfile
19596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19597 $as_echo "found at least one!" >&6; }
19598       else
19599         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19600       fi
19601     fi
19602     # Create build and target names that use _ instead of "-" and ".".
19603     # This is necessary to use them in variable names.
19604     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19605     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19606     # Extract rewrite information for build and target
19607     eval rewritten_build=\${REWRITE_${build_var}}
19608     if test "x$rewritten_build" = x; then
19609       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19610       echo Build stays the same $rewritten_build
19611     else
19612       echo Rewriting build for builddeps into $rewritten_build
19613     fi
19614     eval rewritten_target=\${REWRITE_${target_var}}
19615     if test "x$rewritten_target" = x; then
19616       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19617       echo Target stays the same $rewritten_target
19618     else
19619       echo Rewriting target for builddeps into $rewritten_target
19620     fi
19621     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19622     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19623   fi
19624   for ac_prog in 7z unzip
19625 do
19626   # Extract the first word of "$ac_prog", so it can be a program name with args.
19627 set dummy $ac_prog; ac_word=$2
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19629 $as_echo_n "checking for $ac_word... " >&6; }
19630 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19631   $as_echo_n "(cached) " >&6
19632 else
19633   if test -n "$BDEPS_UNZIP"; then
19634   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19635 else
19636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19637 for as_dir in $PATH
19638 do
19639   IFS=$as_save_IFS
19640   test -z "$as_dir" && as_dir=.
19641     for ac_exec_ext in '' $ac_executable_extensions; do
19642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19643     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19645     break 2
19646   fi
19647 done
19648   done
19649 IFS=$as_save_IFS
19650 
19651 fi
19652 fi
19653 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19654 if test -n "$BDEPS_UNZIP"; then
19655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19656 $as_echo "$BDEPS_UNZIP" >&6; }
19657 else
19658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19659 $as_echo "no" >&6; }
19660 fi
19661 
19662 
19663   test -n "$BDEPS_UNZIP" && break
19664 done
19665 
19666   if test "x$BDEPS_UNZIP" = x7z; then
19667     BDEPS_UNZIP="7z x"
19668   fi
19669 
19670   for ac_prog in wget lftp ftp
19671 do
19672   # Extract the first word of "$ac_prog", so it can be a program name with args.
19673 set dummy $ac_prog; ac_word=$2
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19675 $as_echo_n "checking for $ac_word... " >&6; }
19676 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19677   $as_echo_n "(cached) " >&6
19678 else
19679   if test -n "$BDEPS_FTP"; then
19680   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19681 else
19682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19683 for as_dir in $PATH
19684 do
19685   IFS=$as_save_IFS
19686   test -z "$as_dir" && as_dir=.
19687     for ac_exec_ext in '' $ac_executable_extensions; do
19688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19689     ac_cv_prog_BDEPS_FTP="$ac_prog"
19690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19691     break 2
19692   fi
19693 done
19694   done
19695 IFS=$as_save_IFS
19696 
19697 fi
19698 fi
19699 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19700 if test -n "$BDEPS_FTP"; then
19701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19702 $as_echo "$BDEPS_FTP" >&6; }
19703 else
19704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19705 $as_echo "no" >&6; }
19706 fi
19707 
19708 
19709   test -n "$BDEPS_FTP" && break
19710 done
19711 
19712 
19713 
19714 ###############################################################################
19715 #
19716 # Determine OpenJDK variants, options and version numbers.
19717 #
19718 ###############################################################################
19719 
19720 # We need build & target for this.
19721 
19722 
19723   ###############################################################################
19724   #
19725   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19726   # We always build headless support.
19727   #
19728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19729 $as_echo_n "checking headful support... " >&6; }
19730   # Check whether --enable-headful was given.
19731 if test "${enable_headful+set}" = set; then :
19732   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19733 else
19734   SUPPORT_HEADFUL=yes
19735 fi
19736 
19737 
19738   SUPPORT_HEADLESS=yes
19739   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19740 
19741   if test "x$SUPPORT_HEADFUL" = xyes; then
19742     # We are building both headful and headless.
19743     headful_msg="include support for both headful and headless"
19744   fi
19745 
19746   if test "x$SUPPORT_HEADFUL" = xno; then
19747     # Thus we are building headless only.
19748     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19749     headful_msg="headless only"
19750   fi
19751 
19752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19753 $as_echo "$headful_msg" >&6; }
19754 
19755 
19756 
19757 
19758 
19759   # Control wether Hotspot runs Queens test after build.
19760   # Check whether --enable-hotspot-test-in-build was given.
19761 if test "${enable_hotspot_test_in_build+set}" = set; then :
19762   enableval=$enable_hotspot_test_in_build;
19763 else
19764   enable_hotspot_test_in_build=no
19765 fi
19766 
19767   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19768     TEST_IN_BUILD=true
19769   else
19770     TEST_IN_BUILD=false
19771   fi
19772 
19773 
19774   ###############################################################################
19775   #
19776   # Choose cacerts source file
19777   #
19778 
19779 # Check whether --with-cacerts-file was given.
19780 if test "${with_cacerts_file+set}" = set; then :
19781   withval=$with_cacerts_file;
19782 fi
19783 
19784   if test "x$with_cacerts_file" != x; then
19785     CACERTS_FILE=$with_cacerts_file
19786   fi
19787 
19788 
19789   ###############################################################################
19790   #
19791   # Enable or disable unlimited crypto
19792   #
19793   # Check whether --enable-unlimited-crypto was given.
19794 if test "${enable_unlimited_crypto+set}" = set; then :
19795   enableval=$enable_unlimited_crypto;
19796 else
19797   enable_unlimited_crypto=no
19798 fi
19799 
19800   if test "x$enable_unlimited_crypto" = "xyes"; then
19801     UNLIMITED_CRYPTO=true
19802   else
19803     UNLIMITED_CRYPTO=false
19804   fi
19805 
19806 
19807   ###############################################################################
19808   #
19809   # Enable or disable the elliptic curve crypto implementation
19810   #
19811 
19812 
19813   ###############################################################################
19814   #
19815   # Compress jars
19816   #
19817   COMPRESS_JARS=false
19818 
19819 
19820 
19821   ###############################################################################
19822   #
19823   # Enable or disable JFR
19824   #
19825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build jfr" >&5
19826 $as_echo_n "checking whether to build jfr... " >&6; }
19827   # Check whether --enable-jfr was given.
19828 if test "${enable_jfr+set}" = set; then :
19829   enableval=$enable_jfr;
19830 else
19831   enable_jfr=auto
19832 fi
19833 
19834   if test "x$enable_jfr" = "xno" -o "x$enable_jfr" = "xauto"; then
19835     ENABLE_JFR=false
19836   elif test "x$enable_jfr" = "xyes" ; then
19837     if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then
19838       as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5
19839     elif test "x$OPENJDK_TARGET_OS" = xaix; then
19840       as_fn_error $? "AIX does not support JFR" "$LINENO" 5
19841     else
19842       ENABLE_JFR=true
19843     fi
19844   else
19845     as_fn_error $? "--enable-jfr must either be set to yes or no" "$LINENO" 5
19846   fi
19847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5
19848 $as_echo "$ENABLE_JFR" >&6; }
19849 
19850 
19851 
19852   # Source the version numbers
19853   . $AUTOCONF_DIR/version-numbers
19854 
19855   # Get the settings from parameters
19856 
19857 # Check whether --with-milestone was given.
19858 if test "${with_milestone+set}" = set; then :
19859   withval=$with_milestone;
19860 fi
19861 
19862   if test "x$with_milestone" = xyes; then
19863     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19864   elif test "x$with_milestone" != x; then
19865     MILESTONE="$with_milestone"
19866   fi
19867   if test "x$MILESTONE" = x; then
19868     MILESTONE=internal
19869   fi
19870 
19871 
19872 # Check whether --with-update-version was given.
19873 if test "${with_update_version+set}" = set; then :
19874   withval=$with_update_version;
19875 fi
19876 
19877   if test "x$with_update_version" = xyes; then
19878     as_fn_error $? "Update version must have a value" "$LINENO" 5
19879   elif test "x$with_update_version" != x; then
19880     JDK_UPDATE_VERSION="$with_update_version"
19881     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19882     # to a bug in expr (which reduces it to just X). To work around this, we
19883     # always add a 0 to one digit update versions.
19884     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19885       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19886     fi
19887   fi
19888 
19889 
19890 # Check whether --with-user-release-suffix was given.
19891 if test "${with_user_release_suffix+set}" = set; then :
19892   withval=$with_user_release_suffix;
19893 fi
19894 
19895   if test "x$with_user_release_suffix" = xyes; then
19896     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19897   elif test "x$with_user_release_suffix" != x; then
19898     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19899   fi
19900 
19901 
19902 # Check whether --with-build-number was given.
19903 if test "${with_build_number+set}" = set; then :
19904   withval=$with_build_number;
19905 fi
19906 
19907   if test "x$with_build_number" = xyes; then
19908     as_fn_error $? "Build number must have a value" "$LINENO" 5
19909   elif test "x$with_build_number" != x; then
19910     JDK_BUILD_NUMBER="$with_build_number"
19911   fi
19912   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19913   if test "x$JDK_BUILD_NUMBER" = x; then
19914     JDK_BUILD_NUMBER=b00
19915     if test "x$USER_RELEASE_SUFFIX" = x; then
19916       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19917       # Avoid [:alnum:] since it depends on the locale.
19918       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19919       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19920     fi
19921   fi
19922 
19923   # Now set the JDK version, milestone, build number etc.
19924 
19925 
19926 
19927 
19928 
19929 
19930 
19931 
19932 
19933 
19934 
19935 
19936 
19937 
19938   # The vendor name, if any
19939 
19940 # Check whether --with-vendor-name was given.
19941 if test "${with_vendor_name+set}" = set; then :
19942   withval=$with_vendor_name;
19943 fi
19944 
19945   if test "x$with_vendor_name" = xyes; then
19946     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
19947   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
19948     as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
19949   elif test "x$with_vendor_name" != x; then
19950     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
19951     # Otherwise we will use the value from "version-numbers" included above.
19952     COMPANY_NAME="$with_vendor_name"
19953   fi
19954 
19955 
19956   # The vendor URL, if any
19957 
19958 # Check whether --with-vendor-url was given.
19959 if test "${with_vendor_url+set}" = set; then :
19960   withval=$with_vendor_url;
19961 fi
19962 
19963   if test "x$with_vendor_url" = xyes; then
19964     as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5
19965   elif  ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then
19966     as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5
19967   else
19968     VENDOR_URL="$with_vendor_url"
19969   fi
19970 
19971 
19972   # The vendor bug URL, if any
19973 
19974 # Check whether --with-vendor-bug-url was given.
19975 if test "${with_vendor_bug_url+set}" = set; then :
19976   withval=$with_vendor_bug_url;
19977 fi
19978 
19979   if test "x$with_vendor_bug_url" = xyes; then
19980     as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5
19981   elif  ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then
19982     as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5
19983   else
19984     VENDOR_URL_BUG="$with_vendor_bug_url"
19985   fi
19986 
19987 
19988   # The vendor VM bug URL, if any
19989 
19990 # Check whether --with-vendor-vm-bug-url was given.
19991 if test "${with_vendor_vm_bug_url+set}" = set; then :
19992   withval=$with_vendor_vm_bug_url;
19993 fi
19994 
19995   if test "x$with_vendor_vm_bug_url" = xyes; then
19996     as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5
19997   elif  ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then
19998     as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5
19999   else
20000     VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
20001   fi
20002 
20003 
20004 
20005 # Check whether --with-copyright-year was given.
20006 if test "${with_copyright_year+set}" = set; then :
20007   withval=$with_copyright_year;
20008 fi
20009 
20010   if test "x$with_copyright_year" = xyes; then
20011     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20012   elif test "x$with_copyright_year" != x; then
20013     COPYRIGHT_YEAR="$with_copyright_year"
20014   else
20015     COPYRIGHT_YEAR=`date +'%Y'`
20016   fi
20017 
20018 
20019   if test "x$JDK_UPDATE_VERSION" != x; then
20020     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
20021   else
20022     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
20023   fi
20024 
20025 
20026   # The cooked update version used to encode trailing letters in the update
20027   # version into a trailing number. That is no longer needed, but need to
20028   # keep the format in 8u for compatibility.
20029   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
20030 
20031 
20032   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
20033 
20034 
20035 
20036 ###############################################################################
20037 #
20038 # Setup BootJDK, used to bootstrap the build.
20039 #
20040 ###############################################################################
20041 
20042 
20043   BOOT_JDK_FOUND=no
20044 
20045 # Check whether --with-boot-jdk was given.
20046 if test "${with_boot_jdk+set}" = set; then :
20047   withval=$with_boot_jdk;
20048 fi
20049 
20050 
20051   # We look for the Boot JDK through various means, going from more certain to
20052   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20053   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20054   # must check if this is indeed valid; otherwise we'll continue looking.
20055 
20056   # Test: Is bootjdk explicitely set by command line arguments?
20057 
20058   if test "x$BOOT_JDK_FOUND" = xno; then
20059     # Now execute the test
20060 
20061   if test "x$with_boot_jdk" != x; then
20062     BOOT_JDK=$with_boot_jdk
20063     BOOT_JDK_FOUND=maybe
20064     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20065 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20066   fi
20067 
20068 
20069     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20070     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20071       # Do we have a bin/java?
20072       if test ! -x "$BOOT_JDK/bin/java"; then
20073         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20074 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20075         BOOT_JDK_FOUND=no
20076       else
20077         # Do we have a bin/javac?
20078         if test ! -x "$BOOT_JDK/bin/javac"; then
20079           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20080 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20081           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20082 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20083           BOOT_JDK_FOUND=no
20084         else
20085           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20086           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20087             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20088 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20089             BOOT_JDK_FOUND=no
20090           else
20091             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20092             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20093 
20094             # Extra M4 quote needed to protect [] in grep expression.
20095             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20096             if test "x$FOUND_VERSION_78" = x; then
20097               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20098 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20099               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20100 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20101               BOOT_JDK_FOUND=no
20102             else
20103               # We're done! :-)
20104               BOOT_JDK_FOUND=yes
20105 
20106   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20107 
20108   # Input might be given as Windows format, start by converting to
20109   # unix format.
20110   path="$BOOT_JDK"
20111   new_path=`$CYGPATH -u "$path"`
20112 
20113   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20114   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20115   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20116   # "foo.exe" is OK but "foo" is an error.
20117   #
20118   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20119   # It is also a way to make sure we got the proper file name for the real test later on.
20120   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20121   if test "x$test_shortpath" = x; then
20122     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20123 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20124     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20125   fi
20126 
20127   # Call helper function which possibly converts this using DOS-style short mode.
20128   # If so, the updated path is stored in $new_path.
20129 
20130   input_path="$new_path"
20131   # Check if we need to convert this using DOS-style short mode. If the path
20132   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20133   # take no chances and rewrite it.
20134   # Note: m4 eats our [], so we need to use [ and ] instead.
20135   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20136   if test "x$has_forbidden_chars" != x; then
20137     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20138     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20139     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20140     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20141       # Going to short mode and back again did indeed matter. Since short mode is
20142       # case insensitive, let's make it lowercase to improve readability.
20143       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20144       # Now convert it back to Unix-style (cygpath)
20145       input_path=`$CYGPATH -u "$shortmode_path"`
20146       new_path="$input_path"
20147     fi
20148   fi
20149 
20150   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20151   if test "x$test_cygdrive_prefix" = x; then
20152     # As a simple fix, exclude /usr/bin since it's not a real path.
20153     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20154       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20155       # a path prefixed by /cygdrive for fixpath to work.
20156       new_path="$CYGWIN_ROOT_PATH$input_path"
20157     fi
20158   fi
20159 
20160 
20161   if test "x$path" != "x$new_path"; then
20162     BOOT_JDK="$new_path"
20163     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20164 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20165   fi
20166 
20167   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20168 
20169   path="$BOOT_JDK"
20170   has_colon=`$ECHO $path | $GREP ^.:`
20171   new_path="$path"
20172   if test "x$has_colon" = x; then
20173     # Not in mixed or Windows style, start by that.
20174     new_path=`cmd //c echo $path`
20175   fi
20176 
20177 
20178   input_path="$new_path"
20179   # Check if we need to convert this using DOS-style short mode. If the path
20180   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20181   # take no chances and rewrite it.
20182   # Note: m4 eats our [], so we need to use [ and ] instead.
20183   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20184   if test "x$has_forbidden_chars" != x; then
20185     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20186     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20187   fi
20188 
20189 
20190   windows_path="$new_path"
20191   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20192     unix_path=`$CYGPATH -u "$windows_path"`
20193     new_path="$unix_path"
20194   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20195     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20196     new_path="$unix_path"
20197   fi
20198 
20199   if test "x$path" != "x$new_path"; then
20200     BOOT_JDK="$new_path"
20201     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20202 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20203   fi
20204 
20205   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20206   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20207 
20208   else
20209     # We're on a posix platform. Hooray! :)
20210     path="$BOOT_JDK"
20211     has_space=`$ECHO "$path" | $GREP " "`
20212     if test "x$has_space" != x; then
20213       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20214 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20215       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20216     fi
20217 
20218     # Use eval to expand a potential ~
20219     eval path="$path"
20220     if test ! -f "$path" && test ! -d "$path"; then
20221       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20222     fi
20223 
20224     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20225   fi
20226 
20227               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20228 $as_echo_n "checking for Boot JDK... " >&6; }
20229               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20230 $as_echo "$BOOT_JDK" >&6; }
20231               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20232 $as_echo_n "checking Boot JDK version... " >&6; }
20233               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20234               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20235 $as_echo "$BOOT_JDK_VERSION" >&6; }
20236             fi # end check jdk version
20237           fi # end check rt.jar
20238         fi # end check javac
20239       fi # end check java
20240     fi # end check boot jdk found
20241   fi
20242 
20243   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20244     # Having specified an argument which is incorrect will produce an instant failure;
20245     # we should not go on looking
20246     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20247   fi
20248 
20249   # Test: Is bootjdk available from builddeps?
20250 
20251   if test "x$BOOT_JDK_FOUND" = xno; then
20252     # Now execute the test
20253 
20254 
20255 
20256   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20257     # Source the builddeps file again, to make sure it uses the latest variables!
20258     . $builddepsfile
20259     # Look for a target and build machine specific resource!
20260     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20261     if test "x$resource" = x; then
20262       # Ok, lets instead look for a target specific resource
20263       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20264     fi
20265     if test "x$resource" = x; then
20266       # Ok, lets instead look for a build specific resource
20267       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20268     fi
20269     if test "x$resource" = x; then
20270       # Ok, lets instead look for a generic resource
20271       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20272       resource=${builddep_bootjdk}
20273     fi
20274     if test "x$resource" != x; then
20275       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20276 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20277       # If the resource in the builddeps.conf file is an existing directory,
20278       # for example /java/linux/cups
20279       if test -d ${resource}; then
20280         depdir=${resource}
20281       else
20282 
20283   # bootjdk is for example mymodule
20284   # $resource is for example libs/general/libmymod_1_2_3.zip
20285   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20286   # $with_builddeps_dir is for example /localhome/builddeps
20287   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20288   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20289   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20290   filename=`basename $resource`
20291   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20292   filebase=${filename%%.*}
20293   extension=${filename#*.}
20294   installdir=$with_builddeps_dir/$filebase
20295   if test ! -f $installdir/$filename.unpacked; then
20296     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20297 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20298     if test ! -d $installdir; then
20299       mkdir -p $installdir
20300     fi
20301     if test ! -d $installdir; then
20302       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20303     fi
20304     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20305     touch $tmpfile
20306     if test ! -f $tmpfile; then
20307       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20308     fi
20309 
20310   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20311   # $tmpfile is the local file name for the downloaded file.
20312   VALID_TOOL=no
20313   if test "x$BDEPS_FTP" = xwget; then
20314     VALID_TOOL=yes
20315     wget -O $tmpfile $with_builddeps_server/$resource
20316   fi
20317   if test "x$BDEPS_FTP" = xlftp; then
20318     VALID_TOOL=yes
20319     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20320   fi
20321   if test "x$BDEPS_FTP" = xftp; then
20322     VALID_TOOL=yes
20323     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20324     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20325     FTPUSERPWD=${FTPSERVER%%@*}
20326     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20327       FTPUSER=${userpwd%%:*}
20328       FTPPWD=${userpwd#*@}
20329       FTPSERVER=${FTPSERVER#*@}
20330     else
20331       FTPUSER=ftp
20332       FTPPWD=ftp
20333     fi
20334     # the "pass" command does not work on some
20335     # ftp clients (read ftp.exe) but if it works,
20336     # passive mode is better!
20337     ( \
20338         echo "user $FTPUSER $FTPPWD"        ; \
20339         echo "pass"                         ; \
20340         echo "bin"                          ; \
20341         echo "get $FTPPATH $tmpfile"              ; \
20342     ) | ftp -in $FTPSERVER
20343   fi
20344   if test "x$VALID_TOOL" != xyes; then
20345     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20346   fi
20347 
20348     mv $tmpfile $installdir/$filename
20349     if test ! -s $installdir/$filename; then
20350       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20351     fi
20352     case "$extension" in
20353       zip)  echo "Unzipping $installdir/$filename..."
20354         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20355         ;;
20356       tar.gz) echo "Untaring $installdir/$filename..."
20357         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20358         ;;
20359       tgz) echo "Untaring $installdir/$filename..."
20360         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20361         ;;
20362       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20363         ;;
20364     esac
20365   fi
20366   if test -f $installdir/$filename.unpacked; then
20367     depdir=$installdir
20368   fi
20369 
20370       fi
20371       # Source the builddeps file again, because in the previous command, the depdir
20372       # was updated to point at the current build dependency install directory.
20373       . $builddepsfile
20374       # Now extract variables from the builddeps.conf files.
20375       theroot=${builddep_bootjdk_ROOT}
20376       thecflags=${builddep_bootjdk_CFLAGS}
20377       thelibs=${builddep_bootjdk_LIBS}
20378       if test "x$depdir" = x; then
20379         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20380       fi
20381       BOOT_JDK=$depdir
20382       if test "x$theroot" != x; then
20383         BOOT_JDK="$theroot"
20384       fi
20385       if test "x$thecflags" != x; then
20386         BOOT_JDK_CFLAGS="$thecflags"
20387       fi
20388       if test "x$thelibs" != x; then
20389         BOOT_JDK_LIBS="$thelibs"
20390       fi
20391       BOOT_JDK_FOUND=maybe
20392       else BOOT_JDK_FOUND=no
20393 
20394     fi
20395     else BOOT_JDK_FOUND=no
20396 
20397   fi
20398 
20399 
20400 
20401     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20402     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20403       # Do we have a bin/java?
20404       if test ! -x "$BOOT_JDK/bin/java"; then
20405         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20406 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20407         BOOT_JDK_FOUND=no
20408       else
20409         # Do we have a bin/javac?
20410         if test ! -x "$BOOT_JDK/bin/javac"; then
20411           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20412 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20413           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20414 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20415           BOOT_JDK_FOUND=no
20416         else
20417           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20418           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20419             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20421             BOOT_JDK_FOUND=no
20422           else
20423             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20424             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20425 
20426             # Extra M4 quote needed to protect [] in grep expression.
20427             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20428             if test "x$FOUND_VERSION_78" = x; then
20429               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20430 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20431               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20432 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20433               BOOT_JDK_FOUND=no
20434             else
20435               # We're done! :-)
20436               BOOT_JDK_FOUND=yes
20437 
20438   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20439 
20440   # Input might be given as Windows format, start by converting to
20441   # unix format.
20442   path="$BOOT_JDK"
20443   new_path=`$CYGPATH -u "$path"`
20444 
20445   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20446   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20447   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20448   # "foo.exe" is OK but "foo" is an error.
20449   #
20450   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20451   # It is also a way to make sure we got the proper file name for the real test later on.
20452   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20453   if test "x$test_shortpath" = x; then
20454     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20455 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20456     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20457   fi
20458 
20459   # Call helper function which possibly converts this using DOS-style short mode.
20460   # If so, the updated path is stored in $new_path.
20461 
20462   input_path="$new_path"
20463   # Check if we need to convert this using DOS-style short mode. If the path
20464   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20465   # take no chances and rewrite it.
20466   # Note: m4 eats our [], so we need to use [ and ] instead.
20467   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20468   if test "x$has_forbidden_chars" != x; then
20469     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20470     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20471     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20472     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20473       # Going to short mode and back again did indeed matter. Since short mode is
20474       # case insensitive, let's make it lowercase to improve readability.
20475       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20476       # Now convert it back to Unix-style (cygpath)
20477       input_path=`$CYGPATH -u "$shortmode_path"`
20478       new_path="$input_path"
20479     fi
20480   fi
20481 
20482   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20483   if test "x$test_cygdrive_prefix" = x; then
20484     # As a simple fix, exclude /usr/bin since it's not a real path.
20485     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20486       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20487       # a path prefixed by /cygdrive for fixpath to work.
20488       new_path="$CYGWIN_ROOT_PATH$input_path"
20489     fi
20490   fi
20491 
20492 
20493   if test "x$path" != "x$new_path"; then
20494     BOOT_JDK="$new_path"
20495     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20496 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20497   fi
20498 
20499   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20500 
20501   path="$BOOT_JDK"
20502   has_colon=`$ECHO $path | $GREP ^.:`
20503   new_path="$path"
20504   if test "x$has_colon" = x; then
20505     # Not in mixed or Windows style, start by that.
20506     new_path=`cmd //c echo $path`
20507   fi
20508 
20509 
20510   input_path="$new_path"
20511   # Check if we need to convert this using DOS-style short mode. If the path
20512   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20513   # take no chances and rewrite it.
20514   # Note: m4 eats our [], so we need to use [ and ] instead.
20515   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20516   if test "x$has_forbidden_chars" != x; then
20517     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20518     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20519   fi
20520 
20521 
20522   windows_path="$new_path"
20523   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20524     unix_path=`$CYGPATH -u "$windows_path"`
20525     new_path="$unix_path"
20526   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20527     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20528     new_path="$unix_path"
20529   fi
20530 
20531   if test "x$path" != "x$new_path"; then
20532     BOOT_JDK="$new_path"
20533     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20534 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20535   fi
20536 
20537   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20538   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20539 
20540   else
20541     # We're on a posix platform. Hooray! :)
20542     path="$BOOT_JDK"
20543     has_space=`$ECHO "$path" | $GREP " "`
20544     if test "x$has_space" != x; then
20545       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20546 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20547       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20548     fi
20549 
20550     # Use eval to expand a potential ~
20551     eval path="$path"
20552     if test ! -f "$path" && test ! -d "$path"; then
20553       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20554     fi
20555 
20556     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20557   fi
20558 
20559               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20560 $as_echo_n "checking for Boot JDK... " >&6; }
20561               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20562 $as_echo "$BOOT_JDK" >&6; }
20563               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20564 $as_echo_n "checking Boot JDK version... " >&6; }
20565               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20566               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20567 $as_echo "$BOOT_JDK_VERSION" >&6; }
20568             fi # end check jdk version
20569           fi # end check rt.jar
20570         fi # end check javac
20571       fi # end check java
20572     fi # end check boot jdk found
20573   fi
20574 
20575 
20576   # Test: Is $JAVA_HOME set?
20577 
20578   if test "x$BOOT_JDK_FOUND" = xno; then
20579     # Now execute the test
20580 
20581   if test "x$JAVA_HOME" != x; then
20582     JAVA_HOME_PROCESSED="$JAVA_HOME"
20583 
20584   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20585 
20586   # Input might be given as Windows format, start by converting to
20587   # unix format.
20588   path="$JAVA_HOME_PROCESSED"
20589   new_path=`$CYGPATH -u "$path"`
20590 
20591   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20592   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20593   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20594   # "foo.exe" is OK but "foo" is an error.
20595   #
20596   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20597   # It is also a way to make sure we got the proper file name for the real test later on.
20598   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20599   if test "x$test_shortpath" = x; then
20600     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20601 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20602     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20603   fi
20604 
20605   # Call helper function which possibly converts this using DOS-style short mode.
20606   # If so, the updated path is stored in $new_path.
20607 
20608   input_path="$new_path"
20609   # Check if we need to convert this using DOS-style short mode. If the path
20610   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20611   # take no chances and rewrite it.
20612   # Note: m4 eats our [], so we need to use [ and ] instead.
20613   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20614   if test "x$has_forbidden_chars" != x; then
20615     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20616     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20617     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20618     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20619       # Going to short mode and back again did indeed matter. Since short mode is
20620       # case insensitive, let's make it lowercase to improve readability.
20621       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20622       # Now convert it back to Unix-style (cygpath)
20623       input_path=`$CYGPATH -u "$shortmode_path"`
20624       new_path="$input_path"
20625     fi
20626   fi
20627 
20628   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20629   if test "x$test_cygdrive_prefix" = x; then
20630     # As a simple fix, exclude /usr/bin since it's not a real path.
20631     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20632       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20633       # a path prefixed by /cygdrive for fixpath to work.
20634       new_path="$CYGWIN_ROOT_PATH$input_path"
20635     fi
20636   fi
20637 
20638 
20639   if test "x$path" != "x$new_path"; then
20640     JAVA_HOME_PROCESSED="$new_path"
20641     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20642 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20643   fi
20644 
20645   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20646 
20647   path="$JAVA_HOME_PROCESSED"
20648   has_colon=`$ECHO $path | $GREP ^.:`
20649   new_path="$path"
20650   if test "x$has_colon" = x; then
20651     # Not in mixed or Windows style, start by that.
20652     new_path=`cmd //c echo $path`
20653   fi
20654 
20655 
20656   input_path="$new_path"
20657   # Check if we need to convert this using DOS-style short mode. If the path
20658   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20659   # take no chances and rewrite it.
20660   # Note: m4 eats our [], so we need to use [ and ] instead.
20661   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20662   if test "x$has_forbidden_chars" != x; then
20663     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20664     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20665   fi
20666 
20667 
20668   windows_path="$new_path"
20669   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20670     unix_path=`$CYGPATH -u "$windows_path"`
20671     new_path="$unix_path"
20672   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20673     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20674     new_path="$unix_path"
20675   fi
20676 
20677   if test "x$path" != "x$new_path"; then
20678     JAVA_HOME_PROCESSED="$new_path"
20679     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20680 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20681   fi
20682 
20683   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20684   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20685 
20686   else
20687     # We're on a posix platform. Hooray! :)
20688     path="$JAVA_HOME_PROCESSED"
20689     has_space=`$ECHO "$path" | $GREP " "`
20690     if test "x$has_space" != x; then
20691       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20692 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20693       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20694     fi
20695 
20696     # Use eval to expand a potential ~
20697     eval path="$path"
20698     if test ! -f "$path" && test ! -d "$path"; then
20699       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20700     fi
20701 
20702     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20703   fi
20704 
20705     if test ! -d "$JAVA_HOME_PROCESSED"; then
20706       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20707 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20708     else
20709       # Aha, the user has set a JAVA_HOME
20710       # let us use that as the Boot JDK.
20711       BOOT_JDK="$JAVA_HOME_PROCESSED"
20712       BOOT_JDK_FOUND=maybe
20713       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20714 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20715     fi
20716   fi
20717 
20718 
20719     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20720     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20721       # Do we have a bin/java?
20722       if test ! -x "$BOOT_JDK/bin/java"; then
20723         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20724 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20725         BOOT_JDK_FOUND=no
20726       else
20727         # Do we have a bin/javac?
20728         if test ! -x "$BOOT_JDK/bin/javac"; then
20729           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20731           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20732 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20733           BOOT_JDK_FOUND=no
20734         else
20735           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20736           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20737             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20738 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20739             BOOT_JDK_FOUND=no
20740           else
20741             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20742             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20743 
20744             # Extra M4 quote needed to protect [] in grep expression.
20745             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20746             if test "x$FOUND_VERSION_78" = x; then
20747               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20749               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20750 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20751               BOOT_JDK_FOUND=no
20752             else
20753               # We're done! :-)
20754               BOOT_JDK_FOUND=yes
20755 
20756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20757 
20758   # Input might be given as Windows format, start by converting to
20759   # unix format.
20760   path="$BOOT_JDK"
20761   new_path=`$CYGPATH -u "$path"`
20762 
20763   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20764   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20765   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20766   # "foo.exe" is OK but "foo" is an error.
20767   #
20768   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20769   # It is also a way to make sure we got the proper file name for the real test later on.
20770   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20771   if test "x$test_shortpath" = x; then
20772     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20773 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20774     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20775   fi
20776 
20777   # Call helper function which possibly converts this using DOS-style short mode.
20778   # If so, the updated path is stored in $new_path.
20779 
20780   input_path="$new_path"
20781   # Check if we need to convert this using DOS-style short mode. If the path
20782   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20783   # take no chances and rewrite it.
20784   # Note: m4 eats our [], so we need to use [ and ] instead.
20785   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20786   if test "x$has_forbidden_chars" != x; then
20787     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20788     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20789     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20790     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20791       # Going to short mode and back again did indeed matter. Since short mode is
20792       # case insensitive, let's make it lowercase to improve readability.
20793       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20794       # Now convert it back to Unix-style (cygpath)
20795       input_path=`$CYGPATH -u "$shortmode_path"`
20796       new_path="$input_path"
20797     fi
20798   fi
20799 
20800   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20801   if test "x$test_cygdrive_prefix" = x; then
20802     # As a simple fix, exclude /usr/bin since it's not a real path.
20803     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20804       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20805       # a path prefixed by /cygdrive for fixpath to work.
20806       new_path="$CYGWIN_ROOT_PATH$input_path"
20807     fi
20808   fi
20809 
20810 
20811   if test "x$path" != "x$new_path"; then
20812     BOOT_JDK="$new_path"
20813     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20814 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20815   fi
20816 
20817   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20818 
20819   path="$BOOT_JDK"
20820   has_colon=`$ECHO $path | $GREP ^.:`
20821   new_path="$path"
20822   if test "x$has_colon" = x; then
20823     # Not in mixed or Windows style, start by that.
20824     new_path=`cmd //c echo $path`
20825   fi
20826 
20827 
20828   input_path="$new_path"
20829   # Check if we need to convert this using DOS-style short mode. If the path
20830   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20831   # take no chances and rewrite it.
20832   # Note: m4 eats our [], so we need to use [ and ] instead.
20833   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20834   if test "x$has_forbidden_chars" != x; then
20835     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20836     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20837   fi
20838 
20839 
20840   windows_path="$new_path"
20841   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20842     unix_path=`$CYGPATH -u "$windows_path"`
20843     new_path="$unix_path"
20844   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20845     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20846     new_path="$unix_path"
20847   fi
20848 
20849   if test "x$path" != "x$new_path"; then
20850     BOOT_JDK="$new_path"
20851     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20852 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20853   fi
20854 
20855   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20856   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20857 
20858   else
20859     # We're on a posix platform. Hooray! :)
20860     path="$BOOT_JDK"
20861     has_space=`$ECHO "$path" | $GREP " "`
20862     if test "x$has_space" != x; then
20863       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20864 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20865       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20866     fi
20867 
20868     # Use eval to expand a potential ~
20869     eval path="$path"
20870     if test ! -f "$path" && test ! -d "$path"; then
20871       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20872     fi
20873 
20874     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20875   fi
20876 
20877               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20878 $as_echo_n "checking for Boot JDK... " >&6; }
20879               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20880 $as_echo "$BOOT_JDK" >&6; }
20881               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20882 $as_echo_n "checking Boot JDK version... " >&6; }
20883               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20884               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20885 $as_echo "$BOOT_JDK_VERSION" >&6; }
20886             fi # end check jdk version
20887           fi # end check rt.jar
20888         fi # end check javac
20889       fi # end check java
20890     fi # end check boot jdk found
20891   fi
20892 
20893 
20894   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20895 
20896   if test "x$BOOT_JDK_FOUND" = xno; then
20897     # Now execute the test
20898 
20899   if test -x /usr/libexec/java_home; then
20900     BOOT_JDK=`/usr/libexec/java_home`
20901     BOOT_JDK_FOUND=maybe
20902     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20903 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20904   fi
20905 
20906 
20907     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20908     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20909       # Do we have a bin/java?
20910       if test ! -x "$BOOT_JDK/bin/java"; then
20911         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20912 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20913         BOOT_JDK_FOUND=no
20914       else
20915         # Do we have a bin/javac?
20916         if test ! -x "$BOOT_JDK/bin/javac"; then
20917           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20918 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20919           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20920 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20921           BOOT_JDK_FOUND=no
20922         else
20923           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20924           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20925             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20926 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20927             BOOT_JDK_FOUND=no
20928           else
20929             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20930             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20931 
20932             # Extra M4 quote needed to protect [] in grep expression.
20933             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20934             if test "x$FOUND_VERSION_78" = x; then
20935               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20936 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20937               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20938 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20939               BOOT_JDK_FOUND=no
20940             else
20941               # We're done! :-)
20942               BOOT_JDK_FOUND=yes
20943 
20944   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20945 
20946   # Input might be given as Windows format, start by converting to
20947   # unix format.
20948   path="$BOOT_JDK"
20949   new_path=`$CYGPATH -u "$path"`
20950 
20951   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20952   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20953   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20954   # "foo.exe" is OK but "foo" is an error.
20955   #
20956   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20957   # It is also a way to make sure we got the proper file name for the real test later on.
20958   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20959   if test "x$test_shortpath" = x; then
20960     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20961 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20962     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20963   fi
20964 
20965   # Call helper function which possibly converts this using DOS-style short mode.
20966   # If so, the updated path is stored in $new_path.
20967 
20968   input_path="$new_path"
20969   # Check if we need to convert this using DOS-style short mode. If the path
20970   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20971   # take no chances and rewrite it.
20972   # Note: m4 eats our [], so we need to use [ and ] instead.
20973   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20974   if test "x$has_forbidden_chars" != x; then
20975     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20976     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20977     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20978     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20979       # Going to short mode and back again did indeed matter. Since short mode is
20980       # case insensitive, let's make it lowercase to improve readability.
20981       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20982       # Now convert it back to Unix-style (cygpath)
20983       input_path=`$CYGPATH -u "$shortmode_path"`
20984       new_path="$input_path"
20985     fi
20986   fi
20987 
20988   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20989   if test "x$test_cygdrive_prefix" = x; then
20990     # As a simple fix, exclude /usr/bin since it's not a real path.
20991     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20992       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20993       # a path prefixed by /cygdrive for fixpath to work.
20994       new_path="$CYGWIN_ROOT_PATH$input_path"
20995     fi
20996   fi
20997 
20998 
20999   if test "x$path" != "x$new_path"; then
21000     BOOT_JDK="$new_path"
21001     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21002 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21003   fi
21004 
21005   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21006 
21007   path="$BOOT_JDK"
21008   has_colon=`$ECHO $path | $GREP ^.:`
21009   new_path="$path"
21010   if test "x$has_colon" = x; then
21011     # Not in mixed or Windows style, start by that.
21012     new_path=`cmd //c echo $path`
21013   fi
21014 
21015 
21016   input_path="$new_path"
21017   # Check if we need to convert this using DOS-style short mode. If the path
21018   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21019   # take no chances and rewrite it.
21020   # Note: m4 eats our [], so we need to use [ and ] instead.
21021   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21022   if test "x$has_forbidden_chars" != x; then
21023     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21024     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21025   fi
21026 
21027 
21028   windows_path="$new_path"
21029   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21030     unix_path=`$CYGPATH -u "$windows_path"`
21031     new_path="$unix_path"
21032   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21033     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21034     new_path="$unix_path"
21035   fi
21036 
21037   if test "x$path" != "x$new_path"; then
21038     BOOT_JDK="$new_path"
21039     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21040 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21041   fi
21042 
21043   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21044   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21045 
21046   else
21047     # We're on a posix platform. Hooray! :)
21048     path="$BOOT_JDK"
21049     has_space=`$ECHO "$path" | $GREP " "`
21050     if test "x$has_space" != x; then
21051       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21052 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21053       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21054     fi
21055 
21056     # Use eval to expand a potential ~
21057     eval path="$path"
21058     if test ! -f "$path" && test ! -d "$path"; then
21059       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21060     fi
21061 
21062     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21063   fi
21064 
21065               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21066 $as_echo_n "checking for Boot JDK... " >&6; }
21067               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21068 $as_echo "$BOOT_JDK" >&6; }
21069               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21070 $as_echo_n "checking Boot JDK version... " >&6; }
21071               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21072               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21073 $as_echo "$BOOT_JDK_VERSION" >&6; }
21074             fi # end check jdk version
21075           fi # end check rt.jar
21076         fi # end check javac
21077       fi # end check java
21078     fi # end check boot jdk found
21079   fi
21080 
21081 
21082   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21083 
21084   if test "x$BOOT_JDK_FOUND" = xno; then
21085     # Now execute the test
21086 
21087   # Extract the first word of "javac", so it can be a program name with args.
21088 set dummy javac; ac_word=$2
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21090 $as_echo_n "checking for $ac_word... " >&6; }
21091 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21092   $as_echo_n "(cached) " >&6
21093 else
21094   case $JAVAC_CHECK in
21095   [\\/]* | ?:[\\/]*)
21096   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21097   ;;
21098   *)
21099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21100 for as_dir in $PATH
21101 do
21102   IFS=$as_save_IFS
21103   test -z "$as_dir" && as_dir=.
21104     for ac_exec_ext in '' $ac_executable_extensions; do
21105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21106     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21108     break 2
21109   fi
21110 done
21111   done
21112 IFS=$as_save_IFS
21113 
21114   ;;
21115 esac
21116 fi
21117 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21118 if test -n "$JAVAC_CHECK"; then
21119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21120 $as_echo "$JAVAC_CHECK" >&6; }
21121 else
21122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21123 $as_echo "no" >&6; }
21124 fi
21125 
21126 
21127   # Extract the first word of "java", so it can be a program name with args.
21128 set dummy java; ac_word=$2
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21130 $as_echo_n "checking for $ac_word... " >&6; }
21131 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21132   $as_echo_n "(cached) " >&6
21133 else
21134   case $JAVA_CHECK in
21135   [\\/]* | ?:[\\/]*)
21136   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21137   ;;
21138   *)
21139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21140 for as_dir in $PATH
21141 do
21142   IFS=$as_save_IFS
21143   test -z "$as_dir" && as_dir=.
21144     for ac_exec_ext in '' $ac_executable_extensions; do
21145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21146     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21148     break 2
21149   fi
21150 done
21151   done
21152 IFS=$as_save_IFS
21153 
21154   ;;
21155 esac
21156 fi
21157 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21158 if test -n "$JAVA_CHECK"; then
21159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21160 $as_echo "$JAVA_CHECK" >&6; }
21161 else
21162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21163 $as_echo "no" >&6; }
21164 fi
21165 
21166 
21167   BINARY="$JAVAC_CHECK"
21168   if test "x$JAVAC_CHECK" = x; then
21169     BINARY="$JAVA_CHECK"
21170   fi
21171   if test "x$BINARY" != x; then
21172     # So there is a java(c) binary, it might be part of a JDK.
21173     # Lets find the JDK/JRE directory by following symbolic links.
21174     # Linux/GNU systems often have links from /usr/bin/java to
21175     # /etc/alternatives/java to the real JDK binary.
21176 
21177   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21178     # Follow a chain of symbolic links. Use readlink
21179     # where it exists, else fall back to horribly
21180     # complicated shell code.
21181     if test "x$READLINK_TESTED" != yes; then
21182       # On MacOSX there is a readlink tool with a different
21183       # purpose than the GNU readlink tool. Check the found readlink.
21184       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21185       if test "x$ISGNU" = x; then
21186         # A readlink that we do not know how to use.
21187         # Are there other non-GNU readlinks out there?
21188         READLINK_TESTED=yes
21189         READLINK=
21190       fi
21191     fi
21192 
21193     if test "x$READLINK" != x; then
21194       BINARY=`$READLINK -f $BINARY`
21195     else
21196       # Save the current directory for restoring afterwards
21197       STARTDIR=$PWD
21198       COUNTER=0
21199       sym_link_dir=`$DIRNAME $BINARY`
21200       sym_link_file=`$BASENAME $BINARY`
21201       cd $sym_link_dir
21202       # Use -P flag to resolve symlinks in directories.
21203       cd `$THEPWDCMD -P`
21204       sym_link_dir=`$THEPWDCMD -P`
21205       # Resolve file symlinks
21206       while test $COUNTER -lt 20; do
21207         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21208         if test "x$ISLINK" == x; then
21209           # This is not a symbolic link! We are done!
21210           break
21211         fi
21212         # Again resolve directory symlinks since the target of the just found
21213         # link could be in a different directory
21214         cd `$DIRNAME $ISLINK`
21215         sym_link_dir=`$THEPWDCMD -P`
21216         sym_link_file=`$BASENAME $ISLINK`
21217         let COUNTER=COUNTER+1
21218       done
21219       cd $STARTDIR
21220       BINARY=$sym_link_dir/$sym_link_file
21221     fi
21222   fi
21223 
21224     BOOT_JDK=`dirname "$BINARY"`
21225     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21226     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21227       # Looks like we found ourselves an JDK
21228       BOOT_JDK_FOUND=maybe
21229       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21230 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21231     fi
21232   fi
21233 
21234 
21235     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21236     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21237       # Do we have a bin/java?
21238       if test ! -x "$BOOT_JDK/bin/java"; then
21239         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21240 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21241         BOOT_JDK_FOUND=no
21242       else
21243         # Do we have a bin/javac?
21244         if test ! -x "$BOOT_JDK/bin/javac"; then
21245           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21247           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21248 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21249           BOOT_JDK_FOUND=no
21250         else
21251           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21252           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21253             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21254 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21255             BOOT_JDK_FOUND=no
21256           else
21257             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21258             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21259 
21260             # Extra M4 quote needed to protect [] in grep expression.
21261             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21262             if test "x$FOUND_VERSION_78" = x; then
21263               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21264 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21265               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21266 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21267               BOOT_JDK_FOUND=no
21268             else
21269               # We're done! :-)
21270               BOOT_JDK_FOUND=yes
21271 
21272   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21273 
21274   # Input might be given as Windows format, start by converting to
21275   # unix format.
21276   path="$BOOT_JDK"
21277   new_path=`$CYGPATH -u "$path"`
21278 
21279   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21280   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21281   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21282   # "foo.exe" is OK but "foo" is an error.
21283   #
21284   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21285   # It is also a way to make sure we got the proper file name for the real test later on.
21286   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21287   if test "x$test_shortpath" = x; then
21288     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21289 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21290     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21291   fi
21292 
21293   # Call helper function which possibly converts this using DOS-style short mode.
21294   # If so, the updated path is stored in $new_path.
21295 
21296   input_path="$new_path"
21297   # Check if we need to convert this using DOS-style short mode. If the path
21298   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21299   # take no chances and rewrite it.
21300   # Note: m4 eats our [], so we need to use [ and ] instead.
21301   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21302   if test "x$has_forbidden_chars" != x; then
21303     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21304     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21305     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21306     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21307       # Going to short mode and back again did indeed matter. Since short mode is
21308       # case insensitive, let's make it lowercase to improve readability.
21309       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21310       # Now convert it back to Unix-style (cygpath)
21311       input_path=`$CYGPATH -u "$shortmode_path"`
21312       new_path="$input_path"
21313     fi
21314   fi
21315 
21316   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21317   if test "x$test_cygdrive_prefix" = x; then
21318     # As a simple fix, exclude /usr/bin since it's not a real path.
21319     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21320       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21321       # a path prefixed by /cygdrive for fixpath to work.
21322       new_path="$CYGWIN_ROOT_PATH$input_path"
21323     fi
21324   fi
21325 
21326 
21327   if test "x$path" != "x$new_path"; then
21328     BOOT_JDK="$new_path"
21329     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21330 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21331   fi
21332 
21333   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21334 
21335   path="$BOOT_JDK"
21336   has_colon=`$ECHO $path | $GREP ^.:`
21337   new_path="$path"
21338   if test "x$has_colon" = x; then
21339     # Not in mixed or Windows style, start by that.
21340     new_path=`cmd //c echo $path`
21341   fi
21342 
21343 
21344   input_path="$new_path"
21345   # Check if we need to convert this using DOS-style short mode. If the path
21346   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21347   # take no chances and rewrite it.
21348   # Note: m4 eats our [], so we need to use [ and ] instead.
21349   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21350   if test "x$has_forbidden_chars" != x; then
21351     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21352     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21353   fi
21354 
21355 
21356   windows_path="$new_path"
21357   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21358     unix_path=`$CYGPATH -u "$windows_path"`
21359     new_path="$unix_path"
21360   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21361     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21362     new_path="$unix_path"
21363   fi
21364 
21365   if test "x$path" != "x$new_path"; then
21366     BOOT_JDK="$new_path"
21367     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21368 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21369   fi
21370 
21371   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21372   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21373 
21374   else
21375     # We're on a posix platform. Hooray! :)
21376     path="$BOOT_JDK"
21377     has_space=`$ECHO "$path" | $GREP " "`
21378     if test "x$has_space" != x; then
21379       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21380 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21381       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21382     fi
21383 
21384     # Use eval to expand a potential ~
21385     eval path="$path"
21386     if test ! -f "$path" && test ! -d "$path"; then
21387       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21388     fi
21389 
21390     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21391   fi
21392 
21393               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21394 $as_echo_n "checking for Boot JDK... " >&6; }
21395               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21396 $as_echo "$BOOT_JDK" >&6; }
21397               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21398 $as_echo_n "checking Boot JDK version... " >&6; }
21399               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21400               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21401 $as_echo "$BOOT_JDK_VERSION" >&6; }
21402             fi # end check jdk version
21403           fi # end check rt.jar
21404         fi # end check javac
21405       fi # end check java
21406     fi # end check boot jdk found
21407   fi
21408 
21409 
21410   # Test: Is there a JDK installed in default, well-known locations?
21411 
21412   if test "x$BOOT_JDK_FOUND" = xno; then
21413     # Now execute the test
21414 
21415   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21416 
21417   if test "x$BOOT_JDK_FOUND" = xno; then
21418     # Now execute the test
21419 
21420   if test "x$ProgramW6432" != x; then
21421     VIRTUAL_DIR="$ProgramW6432/Java"
21422 
21423   windows_path="$VIRTUAL_DIR"
21424   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21425     unix_path=`$CYGPATH -u "$windows_path"`
21426     VIRTUAL_DIR="$unix_path"
21427   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21428     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21429     VIRTUAL_DIR="$unix_path"
21430   fi
21431 
21432 
21433   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21434   BOOT_JDK_SUFFIX=""
21435   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21436   if test "x$ALL_JDKS_FOUND" != x; then
21437     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21438 
21439   if test "x$BOOT_JDK_FOUND" = xno; then
21440     # Now execute the test
21441 
21442         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21443         if test -d "$BOOT_JDK"; then
21444           BOOT_JDK_FOUND=maybe
21445           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21446 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21447         fi
21448 
21449 
21450     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21451     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21452       # Do we have a bin/java?
21453       if test ! -x "$BOOT_JDK/bin/java"; then
21454         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21455 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21456         BOOT_JDK_FOUND=no
21457       else
21458         # Do we have a bin/javac?
21459         if test ! -x "$BOOT_JDK/bin/javac"; then
21460           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21461 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21462           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21463 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21464           BOOT_JDK_FOUND=no
21465         else
21466           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21467           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21468             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21469 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21470             BOOT_JDK_FOUND=no
21471           else
21472             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21473             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21474 
21475             # Extra M4 quote needed to protect [] in grep expression.
21476             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21477             if test "x$FOUND_VERSION_78" = x; then
21478               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21479 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21480               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21481 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21482               BOOT_JDK_FOUND=no
21483             else
21484               # We're done! :-)
21485               BOOT_JDK_FOUND=yes
21486 
21487   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21488 
21489   # Input might be given as Windows format, start by converting to
21490   # unix format.
21491   path="$BOOT_JDK"
21492   new_path=`$CYGPATH -u "$path"`
21493 
21494   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21495   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21496   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21497   # "foo.exe" is OK but "foo" is an error.
21498   #
21499   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21500   # It is also a way to make sure we got the proper file name for the real test later on.
21501   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21502   if test "x$test_shortpath" = x; then
21503     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21504 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21505     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21506   fi
21507 
21508   # Call helper function which possibly converts this using DOS-style short mode.
21509   # If so, the updated path is stored in $new_path.
21510 
21511   input_path="$new_path"
21512   # Check if we need to convert this using DOS-style short mode. If the path
21513   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21514   # take no chances and rewrite it.
21515   # Note: m4 eats our [], so we need to use [ and ] instead.
21516   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21517   if test "x$has_forbidden_chars" != x; then
21518     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21519     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21520     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21521     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21522       # Going to short mode and back again did indeed matter. Since short mode is
21523       # case insensitive, let's make it lowercase to improve readability.
21524       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21525       # Now convert it back to Unix-style (cygpath)
21526       input_path=`$CYGPATH -u "$shortmode_path"`
21527       new_path="$input_path"
21528     fi
21529   fi
21530 
21531   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21532   if test "x$test_cygdrive_prefix" = x; then
21533     # As a simple fix, exclude /usr/bin since it's not a real path.
21534     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21535       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21536       # a path prefixed by /cygdrive for fixpath to work.
21537       new_path="$CYGWIN_ROOT_PATH$input_path"
21538     fi
21539   fi
21540 
21541 
21542   if test "x$path" != "x$new_path"; then
21543     BOOT_JDK="$new_path"
21544     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21545 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21546   fi
21547 
21548   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21549 
21550   path="$BOOT_JDK"
21551   has_colon=`$ECHO $path | $GREP ^.:`
21552   new_path="$path"
21553   if test "x$has_colon" = x; then
21554     # Not in mixed or Windows style, start by that.
21555     new_path=`cmd //c echo $path`
21556   fi
21557 
21558 
21559   input_path="$new_path"
21560   # Check if we need to convert this using DOS-style short mode. If the path
21561   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21562   # take no chances and rewrite it.
21563   # Note: m4 eats our [], so we need to use [ and ] instead.
21564   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21565   if test "x$has_forbidden_chars" != x; then
21566     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21567     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21568   fi
21569 
21570 
21571   windows_path="$new_path"
21572   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21573     unix_path=`$CYGPATH -u "$windows_path"`
21574     new_path="$unix_path"
21575   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21576     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21577     new_path="$unix_path"
21578   fi
21579 
21580   if test "x$path" != "x$new_path"; then
21581     BOOT_JDK="$new_path"
21582     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21583 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21584   fi
21585 
21586   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21587   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21588 
21589   else
21590     # We're on a posix platform. Hooray! :)
21591     path="$BOOT_JDK"
21592     has_space=`$ECHO "$path" | $GREP " "`
21593     if test "x$has_space" != x; then
21594       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21595 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21596       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21597     fi
21598 
21599     # Use eval to expand a potential ~
21600     eval path="$path"
21601     if test ! -f "$path" && test ! -d "$path"; then
21602       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21603     fi
21604 
21605     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21606   fi
21607 
21608               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21609 $as_echo_n "checking for Boot JDK... " >&6; }
21610               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21611 $as_echo "$BOOT_JDK" >&6; }
21612               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21613 $as_echo_n "checking Boot JDK version... " >&6; }
21614               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21615               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21616 $as_echo "$BOOT_JDK_VERSION" >&6; }
21617             fi # end check jdk version
21618           fi # end check rt.jar
21619         fi # end check javac
21620       fi # end check java
21621     fi # end check boot jdk found
21622   fi
21623 
21624     done
21625   fi
21626 
21627   fi
21628 
21629 
21630     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21631     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21632       # Do we have a bin/java?
21633       if test ! -x "$BOOT_JDK/bin/java"; then
21634         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21636         BOOT_JDK_FOUND=no
21637       else
21638         # Do we have a bin/javac?
21639         if test ! -x "$BOOT_JDK/bin/javac"; then
21640           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21641 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21642           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21643 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21644           BOOT_JDK_FOUND=no
21645         else
21646           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21647           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21648             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21649 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21650             BOOT_JDK_FOUND=no
21651           else
21652             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21653             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21654 
21655             # Extra M4 quote needed to protect [] in grep expression.
21656             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21657             if test "x$FOUND_VERSION_78" = x; then
21658               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21659 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21660               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21661 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21662               BOOT_JDK_FOUND=no
21663             else
21664               # We're done! :-)
21665               BOOT_JDK_FOUND=yes
21666 
21667   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21668 
21669   # Input might be given as Windows format, start by converting to
21670   # unix format.
21671   path="$BOOT_JDK"
21672   new_path=`$CYGPATH -u "$path"`
21673 
21674   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21675   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21676   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21677   # "foo.exe" is OK but "foo" is an error.
21678   #
21679   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21680   # It is also a way to make sure we got the proper file name for the real test later on.
21681   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21682   if test "x$test_shortpath" = x; then
21683     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21684 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21685     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21686   fi
21687 
21688   # Call helper function which possibly converts this using DOS-style short mode.
21689   # If so, the updated path is stored in $new_path.
21690 
21691   input_path="$new_path"
21692   # Check if we need to convert this using DOS-style short mode. If the path
21693   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21694   # take no chances and rewrite it.
21695   # Note: m4 eats our [], so we need to use [ and ] instead.
21696   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21697   if test "x$has_forbidden_chars" != x; then
21698     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21699     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21700     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21701     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21702       # Going to short mode and back again did indeed matter. Since short mode is
21703       # case insensitive, let's make it lowercase to improve readability.
21704       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21705       # Now convert it back to Unix-style (cygpath)
21706       input_path=`$CYGPATH -u "$shortmode_path"`
21707       new_path="$input_path"
21708     fi
21709   fi
21710 
21711   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21712   if test "x$test_cygdrive_prefix" = x; then
21713     # As a simple fix, exclude /usr/bin since it's not a real path.
21714     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21715       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21716       # a path prefixed by /cygdrive for fixpath to work.
21717       new_path="$CYGWIN_ROOT_PATH$input_path"
21718     fi
21719   fi
21720 
21721 
21722   if test "x$path" != "x$new_path"; then
21723     BOOT_JDK="$new_path"
21724     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21725 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21726   fi
21727 
21728   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21729 
21730   path="$BOOT_JDK"
21731   has_colon=`$ECHO $path | $GREP ^.:`
21732   new_path="$path"
21733   if test "x$has_colon" = x; then
21734     # Not in mixed or Windows style, start by that.
21735     new_path=`cmd //c echo $path`
21736   fi
21737 
21738 
21739   input_path="$new_path"
21740   # Check if we need to convert this using DOS-style short mode. If the path
21741   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21742   # take no chances and rewrite it.
21743   # Note: m4 eats our [], so we need to use [ and ] instead.
21744   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21745   if test "x$has_forbidden_chars" != x; then
21746     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21747     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21748   fi
21749 
21750 
21751   windows_path="$new_path"
21752   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21753     unix_path=`$CYGPATH -u "$windows_path"`
21754     new_path="$unix_path"
21755   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21756     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21757     new_path="$unix_path"
21758   fi
21759 
21760   if test "x$path" != "x$new_path"; then
21761     BOOT_JDK="$new_path"
21762     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21763 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21764   fi
21765 
21766   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21767   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21768 
21769   else
21770     # We're on a posix platform. Hooray! :)
21771     path="$BOOT_JDK"
21772     has_space=`$ECHO "$path" | $GREP " "`
21773     if test "x$has_space" != x; then
21774       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21775 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21776       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21777     fi
21778 
21779     # Use eval to expand a potential ~
21780     eval path="$path"
21781     if test ! -f "$path" && test ! -d "$path"; then
21782       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21783     fi
21784 
21785     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21786   fi
21787 
21788               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21789 $as_echo_n "checking for Boot JDK... " >&6; }
21790               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21791 $as_echo "$BOOT_JDK" >&6; }
21792               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21793 $as_echo_n "checking Boot JDK version... " >&6; }
21794               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21795               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21796 $as_echo "$BOOT_JDK_VERSION" >&6; }
21797             fi # end check jdk version
21798           fi # end check rt.jar
21799         fi # end check javac
21800       fi # end check java
21801     fi # end check boot jdk found
21802   fi
21803 
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_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21865             if test "x$FOUND_VERSION_78" = 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 or 8)" >&5
21869 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&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-style (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_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22045             if test "x$FOUND_VERSION_78" = 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 or 8)" >&5
22049 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&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-style (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$PROGRAMFILES" != x; then
22197     VIRTUAL_DIR="$PROGRAMFILES/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_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22253             if test "x$FOUND_VERSION_78" = 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 or 8)" >&5
22257 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&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-style (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_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22433             if test "x$FOUND_VERSION_78" = 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 or 8)" >&5
22437 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&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-style (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_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22641             if test "x$FOUND_VERSION_78" = 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 or 8)" >&5
22645 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&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-style (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_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22821             if test "x$FOUND_VERSION_78" = 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 or 8)" >&5
22825 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&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-style (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   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22973   BOOT_JDK_SUFFIX=""
22974   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22975   if test "x$ALL_JDKS_FOUND" != x; then
22976     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22977 
22978   if test "x$BOOT_JDK_FOUND" = xno; then
22979     # Now execute the test
22980 
22981         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22982         if test -d "$BOOT_JDK"; then
22983           BOOT_JDK_FOUND=maybe
22984           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22985 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22986         fi
22987 
22988 
22989     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22990     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22991       # Do we have a bin/java?
22992       if test ! -x "$BOOT_JDK/bin/java"; then
22993         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22994 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22995         BOOT_JDK_FOUND=no
22996       else
22997         # Do we have a bin/javac?
22998         if test ! -x "$BOOT_JDK/bin/javac"; then
22999           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23000 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23001           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23002 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23003           BOOT_JDK_FOUND=no
23004         else
23005           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23006           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23007             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23009             BOOT_JDK_FOUND=no
23010           else
23011             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23012             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23013 
23014             # Extra M4 quote needed to protect [] in grep expression.
23015             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23016             if test "x$FOUND_VERSION_78" = x; then
23017               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23018 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23019               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23020 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23021               BOOT_JDK_FOUND=no
23022             else
23023               # We're done! :-)
23024               BOOT_JDK_FOUND=yes
23025 
23026   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23027 
23028   # Input might be given as Windows format, start by converting to
23029   # unix format.
23030   path="$BOOT_JDK"
23031   new_path=`$CYGPATH -u "$path"`
23032 
23033   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23034   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23035   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23036   # "foo.exe" is OK but "foo" is an error.
23037   #
23038   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23039   # It is also a way to make sure we got the proper file name for the real test later on.
23040   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23041   if test "x$test_shortpath" = x; then
23042     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23043 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23044     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23045   fi
23046 
23047   # Call helper function which possibly converts this using DOS-style short mode.
23048   # If so, the updated path is stored in $new_path.
23049 
23050   input_path="$new_path"
23051   # Check if we need to convert this using DOS-style short mode. If the path
23052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23053   # take no chances and rewrite it.
23054   # Note: m4 eats our [], so we need to use [ and ] instead.
23055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23056   if test "x$has_forbidden_chars" != x; then
23057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23058     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23059     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23060     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23061       # Going to short mode and back again did indeed matter. Since short mode is
23062       # case insensitive, let's make it lowercase to improve readability.
23063       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23064       # Now convert it back to Unix-style (cygpath)
23065       input_path=`$CYGPATH -u "$shortmode_path"`
23066       new_path="$input_path"
23067     fi
23068   fi
23069 
23070   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23071   if test "x$test_cygdrive_prefix" = x; then
23072     # As a simple fix, exclude /usr/bin since it's not a real path.
23073     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23074       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23075       # a path prefixed by /cygdrive for fixpath to work.
23076       new_path="$CYGWIN_ROOT_PATH$input_path"
23077     fi
23078   fi
23079 
23080 
23081   if test "x$path" != "x$new_path"; then
23082     BOOT_JDK="$new_path"
23083     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23084 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23085   fi
23086 
23087   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23088 
23089   path="$BOOT_JDK"
23090   has_colon=`$ECHO $path | $GREP ^.:`
23091   new_path="$path"
23092   if test "x$has_colon" = x; then
23093     # Not in mixed or Windows style, start by that.
23094     new_path=`cmd //c echo $path`
23095   fi
23096 
23097 
23098   input_path="$new_path"
23099   # Check if we need to convert this using DOS-style short mode. If the path
23100   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23101   # take no chances and rewrite it.
23102   # Note: m4 eats our [], so we need to use [ and ] instead.
23103   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23104   if test "x$has_forbidden_chars" != x; then
23105     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23106     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23107   fi
23108 
23109 
23110   windows_path="$new_path"
23111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23112     unix_path=`$CYGPATH -u "$windows_path"`
23113     new_path="$unix_path"
23114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23116     new_path="$unix_path"
23117   fi
23118 
23119   if test "x$path" != "x$new_path"; then
23120     BOOT_JDK="$new_path"
23121     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23122 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23123   fi
23124 
23125   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23126   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23127 
23128   else
23129     # We're on a posix platform. Hooray! :)
23130     path="$BOOT_JDK"
23131     has_space=`$ECHO "$path" | $GREP " "`
23132     if test "x$has_space" != x; then
23133       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23134 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23135       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23136     fi
23137 
23138     # Use eval to expand a potential ~
23139     eval path="$path"
23140     if test ! -f "$path" && test ! -d "$path"; then
23141       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23142     fi
23143 
23144     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23145   fi
23146 
23147               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23148 $as_echo_n "checking for Boot JDK... " >&6; }
23149               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23150 $as_echo "$BOOT_JDK" >&6; }
23151               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23152 $as_echo_n "checking Boot JDK version... " >&6; }
23153               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23154               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23155 $as_echo "$BOOT_JDK_VERSION" >&6; }
23156             fi # end check jdk version
23157           fi # end check rt.jar
23158         fi # end check javac
23159       fi # end check java
23160     fi # end check boot jdk found
23161   fi
23162 
23163     done
23164   fi
23165 
23166 
23167     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23168     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23169       # Do we have a bin/java?
23170       if test ! -x "$BOOT_JDK/bin/java"; then
23171         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23172 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23173         BOOT_JDK_FOUND=no
23174       else
23175         # Do we have a bin/javac?
23176         if test ! -x "$BOOT_JDK/bin/javac"; then
23177           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23178 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23179           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23180 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23181           BOOT_JDK_FOUND=no
23182         else
23183           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23184           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23185             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23186 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23187             BOOT_JDK_FOUND=no
23188           else
23189             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23190             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23191 
23192             # Extra M4 quote needed to protect [] in grep expression.
23193             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23194             if test "x$FOUND_VERSION_78" = x; then
23195               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23196 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23197               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23198 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23199               BOOT_JDK_FOUND=no
23200             else
23201               # We're done! :-)
23202               BOOT_JDK_FOUND=yes
23203 
23204   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23205 
23206   # Input might be given as Windows format, start by converting to
23207   # unix format.
23208   path="$BOOT_JDK"
23209   new_path=`$CYGPATH -u "$path"`
23210 
23211   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23212   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23213   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23214   # "foo.exe" is OK but "foo" is an error.
23215   #
23216   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23217   # It is also a way to make sure we got the proper file name for the real test later on.
23218   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23219   if test "x$test_shortpath" = x; then
23220     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23221 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23222     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23223   fi
23224 
23225   # Call helper function which possibly converts this using DOS-style short mode.
23226   # If so, the updated path is stored in $new_path.
23227 
23228   input_path="$new_path"
23229   # Check if we need to convert this using DOS-style short mode. If the path
23230   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23231   # take no chances and rewrite it.
23232   # Note: m4 eats our [], so we need to use [ and ] instead.
23233   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23234   if test "x$has_forbidden_chars" != x; then
23235     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23236     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23237     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23238     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23239       # Going to short mode and back again did indeed matter. Since short mode is
23240       # case insensitive, let's make it lowercase to improve readability.
23241       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23242       # Now convert it back to Unix-style (cygpath)
23243       input_path=`$CYGPATH -u "$shortmode_path"`
23244       new_path="$input_path"
23245     fi
23246   fi
23247 
23248   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23249   if test "x$test_cygdrive_prefix" = x; then
23250     # As a simple fix, exclude /usr/bin since it's not a real path.
23251     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23252       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23253       # a path prefixed by /cygdrive for fixpath to work.
23254       new_path="$CYGWIN_ROOT_PATH$input_path"
23255     fi
23256   fi
23257 
23258 
23259   if test "x$path" != "x$new_path"; then
23260     BOOT_JDK="$new_path"
23261     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23262 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23263   fi
23264 
23265   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23266 
23267   path="$BOOT_JDK"
23268   has_colon=`$ECHO $path | $GREP ^.:`
23269   new_path="$path"
23270   if test "x$has_colon" = x; then
23271     # Not in mixed or Windows style, start by that.
23272     new_path=`cmd //c echo $path`
23273   fi
23274 
23275 
23276   input_path="$new_path"
23277   # Check if we need to convert this using DOS-style short mode. If the path
23278   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23279   # take no chances and rewrite it.
23280   # Note: m4 eats our [], so we need to use [ and ] instead.
23281   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23282   if test "x$has_forbidden_chars" != x; then
23283     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23284     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23285   fi
23286 
23287 
23288   windows_path="$new_path"
23289   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23290     unix_path=`$CYGPATH -u "$windows_path"`
23291     new_path="$unix_path"
23292   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23293     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23294     new_path="$unix_path"
23295   fi
23296 
23297   if test "x$path" != "x$new_path"; then
23298     BOOT_JDK="$new_path"
23299     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23300 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23301   fi
23302 
23303   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23304   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23305 
23306   else
23307     # We're on a posix platform. Hooray! :)
23308     path="$BOOT_JDK"
23309     has_space=`$ECHO "$path" | $GREP " "`
23310     if test "x$has_space" != x; then
23311       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23312 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23313       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23314     fi
23315 
23316     # Use eval to expand a potential ~
23317     eval path="$path"
23318     if test ! -f "$path" && test ! -d "$path"; then
23319       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23320     fi
23321 
23322     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23323   fi
23324 
23325               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23326 $as_echo_n "checking for Boot JDK... " >&6; }
23327               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23328 $as_echo "$BOOT_JDK" >&6; }
23329               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23330 $as_echo_n "checking Boot JDK version... " >&6; }
23331               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23332               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23333 $as_echo "$BOOT_JDK_VERSION" >&6; }
23334             fi # end check jdk version
23335           fi # end check rt.jar
23336         fi # end check javac
23337       fi # end check java
23338     fi # end check boot jdk found
23339   fi
23340 
23341   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23342 
23343   if test "x$BOOT_JDK_FOUND" = xno; then
23344     # Now execute the test
23345 
23346   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23347   BOOT_JDK_SUFFIX="/Contents/Home"
23348   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23349   if test "x$ALL_JDKS_FOUND" != x; then
23350     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23351 
23352   if test "x$BOOT_JDK_FOUND" = xno; then
23353     # Now execute the test
23354 
23355         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23356         if test -d "$BOOT_JDK"; then
23357           BOOT_JDK_FOUND=maybe
23358           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23359 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23360         fi
23361 
23362 
23363     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23364     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23365       # Do we have a bin/java?
23366       if test ! -x "$BOOT_JDK/bin/java"; then
23367         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23368 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23369         BOOT_JDK_FOUND=no
23370       else
23371         # Do we have a bin/javac?
23372         if test ! -x "$BOOT_JDK/bin/javac"; then
23373           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23374 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23375           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23376 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23377           BOOT_JDK_FOUND=no
23378         else
23379           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23380           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23381             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23382 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23383             BOOT_JDK_FOUND=no
23384           else
23385             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23386             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23387 
23388             # Extra M4 quote needed to protect [] in grep expression.
23389             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23390             if test "x$FOUND_VERSION_78" = x; then
23391               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23392 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23393               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23394 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23395               BOOT_JDK_FOUND=no
23396             else
23397               # We're done! :-)
23398               BOOT_JDK_FOUND=yes
23399 
23400   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23401 
23402   # Input might be given as Windows format, start by converting to
23403   # unix format.
23404   path="$BOOT_JDK"
23405   new_path=`$CYGPATH -u "$path"`
23406 
23407   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23408   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23409   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23410   # "foo.exe" is OK but "foo" is an error.
23411   #
23412   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23413   # It is also a way to make sure we got the proper file name for the real test later on.
23414   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23415   if test "x$test_shortpath" = x; then
23416     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23417 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23418     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23419   fi
23420 
23421   # Call helper function which possibly converts this using DOS-style short mode.
23422   # If so, the updated path is stored in $new_path.
23423 
23424   input_path="$new_path"
23425   # Check if we need to convert this using DOS-style short mode. If the path
23426   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23427   # take no chances and rewrite it.
23428   # Note: m4 eats our [], so we need to use [ and ] instead.
23429   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23430   if test "x$has_forbidden_chars" != x; then
23431     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23432     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23433     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23434     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23435       # Going to short mode and back again did indeed matter. Since short mode is
23436       # case insensitive, let's make it lowercase to improve readability.
23437       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23438       # Now convert it back to Unix-style (cygpath)
23439       input_path=`$CYGPATH -u "$shortmode_path"`
23440       new_path="$input_path"
23441     fi
23442   fi
23443 
23444   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23445   if test "x$test_cygdrive_prefix" = x; then
23446     # As a simple fix, exclude /usr/bin since it's not a real path.
23447     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23448       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23449       # a path prefixed by /cygdrive for fixpath to work.
23450       new_path="$CYGWIN_ROOT_PATH$input_path"
23451     fi
23452   fi
23453 
23454 
23455   if test "x$path" != "x$new_path"; then
23456     BOOT_JDK="$new_path"
23457     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23458 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23459   fi
23460 
23461   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23462 
23463   path="$BOOT_JDK"
23464   has_colon=`$ECHO $path | $GREP ^.:`
23465   new_path="$path"
23466   if test "x$has_colon" = x; then
23467     # Not in mixed or Windows style, start by that.
23468     new_path=`cmd //c echo $path`
23469   fi
23470 
23471 
23472   input_path="$new_path"
23473   # Check if we need to convert this using DOS-style short mode. If the path
23474   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23475   # take no chances and rewrite it.
23476   # Note: m4 eats our [], so we need to use [ and ] instead.
23477   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23478   if test "x$has_forbidden_chars" != x; then
23479     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23480     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23481   fi
23482 
23483 
23484   windows_path="$new_path"
23485   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23486     unix_path=`$CYGPATH -u "$windows_path"`
23487     new_path="$unix_path"
23488   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23489     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23490     new_path="$unix_path"
23491   fi
23492 
23493   if test "x$path" != "x$new_path"; then
23494     BOOT_JDK="$new_path"
23495     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23496 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23497   fi
23498 
23499   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23500   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23501 
23502   else
23503     # We're on a posix platform. Hooray! :)
23504     path="$BOOT_JDK"
23505     has_space=`$ECHO "$path" | $GREP " "`
23506     if test "x$has_space" != x; then
23507       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23508 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23509       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23510     fi
23511 
23512     # Use eval to expand a potential ~
23513     eval path="$path"
23514     if test ! -f "$path" && test ! -d "$path"; then
23515       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23516     fi
23517 
23518     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23519   fi
23520 
23521               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23522 $as_echo_n "checking for Boot JDK... " >&6; }
23523               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23524 $as_echo "$BOOT_JDK" >&6; }
23525               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23526 $as_echo_n "checking Boot JDK version... " >&6; }
23527               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23528               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23529 $as_echo "$BOOT_JDK_VERSION" >&6; }
23530             fi # end check jdk version
23531           fi # end check rt.jar
23532         fi # end check javac
23533       fi # end check java
23534     fi # end check boot jdk found
23535   fi
23536 
23537     done
23538   fi
23539 
23540 
23541     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23542     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23543       # Do we have a bin/java?
23544       if test ! -x "$BOOT_JDK/bin/java"; then
23545         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23546 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23547         BOOT_JDK_FOUND=no
23548       else
23549         # Do we have a bin/javac?
23550         if test ! -x "$BOOT_JDK/bin/javac"; then
23551           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23552 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23553           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23554 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23555           BOOT_JDK_FOUND=no
23556         else
23557           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23558           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23559             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23560 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23561             BOOT_JDK_FOUND=no
23562           else
23563             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23564             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23565 
23566             # Extra M4 quote needed to protect [] in grep expression.
23567             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23568             if test "x$FOUND_VERSION_78" = x; then
23569               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23570 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23571               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23572 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23573               BOOT_JDK_FOUND=no
23574             else
23575               # We're done! :-)
23576               BOOT_JDK_FOUND=yes
23577 
23578   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23579 
23580   # Input might be given as Windows format, start by converting to
23581   # unix format.
23582   path="$BOOT_JDK"
23583   new_path=`$CYGPATH -u "$path"`
23584 
23585   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23586   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23587   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23588   # "foo.exe" is OK but "foo" is an error.
23589   #
23590   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23591   # It is also a way to make sure we got the proper file name for the real test later on.
23592   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23593   if test "x$test_shortpath" = x; then
23594     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23595 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23596     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23597   fi
23598 
23599   # Call helper function which possibly converts this using DOS-style short mode.
23600   # If so, the updated path is stored in $new_path.
23601 
23602   input_path="$new_path"
23603   # Check if we need to convert this using DOS-style short mode. If the path
23604   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23605   # take no chances and rewrite it.
23606   # Note: m4 eats our [], so we need to use [ and ] instead.
23607   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23608   if test "x$has_forbidden_chars" != x; then
23609     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23610     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23611     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23612     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23613       # Going to short mode and back again did indeed matter. Since short mode is
23614       # case insensitive, let's make it lowercase to improve readability.
23615       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23616       # Now convert it back to Unix-style (cygpath)
23617       input_path=`$CYGPATH -u "$shortmode_path"`
23618       new_path="$input_path"
23619     fi
23620   fi
23621 
23622   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23623   if test "x$test_cygdrive_prefix" = x; then
23624     # As a simple fix, exclude /usr/bin since it's not a real path.
23625     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23626       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23627       # a path prefixed by /cygdrive for fixpath to work.
23628       new_path="$CYGWIN_ROOT_PATH$input_path"
23629     fi
23630   fi
23631 
23632 
23633   if test "x$path" != "x$new_path"; then
23634     BOOT_JDK="$new_path"
23635     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23636 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23637   fi
23638 
23639   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23640 
23641   path="$BOOT_JDK"
23642   has_colon=`$ECHO $path | $GREP ^.:`
23643   new_path="$path"
23644   if test "x$has_colon" = x; then
23645     # Not in mixed or Windows style, start by that.
23646     new_path=`cmd //c echo $path`
23647   fi
23648 
23649 
23650   input_path="$new_path"
23651   # Check if we need to convert this using DOS-style short mode. If the path
23652   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23653   # take no chances and rewrite it.
23654   # Note: m4 eats our [], so we need to use [ and ] instead.
23655   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23656   if test "x$has_forbidden_chars" != x; then
23657     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23658     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23659   fi
23660 
23661 
23662   windows_path="$new_path"
23663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23664     unix_path=`$CYGPATH -u "$windows_path"`
23665     new_path="$unix_path"
23666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23667     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23668     new_path="$unix_path"
23669   fi
23670 
23671   if test "x$path" != "x$new_path"; then
23672     BOOT_JDK="$new_path"
23673     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23674 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23675   fi
23676 
23677   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23678   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23679 
23680   else
23681     # We're on a posix platform. Hooray! :)
23682     path="$BOOT_JDK"
23683     has_space=`$ECHO "$path" | $GREP " "`
23684     if test "x$has_space" != x; then
23685       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23686 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23687       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23688     fi
23689 
23690     # Use eval to expand a potential ~
23691     eval path="$path"
23692     if test ! -f "$path" && test ! -d "$path"; then
23693       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23694     fi
23695 
23696     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23697   fi
23698 
23699               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23700 $as_echo_n "checking for Boot JDK... " >&6; }
23701               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23702 $as_echo "$BOOT_JDK" >&6; }
23703               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23704 $as_echo_n "checking Boot JDK version... " >&6; }
23705               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23706               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23707 $as_echo "$BOOT_JDK_VERSION" >&6; }
23708             fi # end check jdk version
23709           fi # end check rt.jar
23710         fi # end check javac
23711       fi # end check java
23712     fi # end check boot jdk found
23713   fi
23714 
23715 
23716   if test "x$BOOT_JDK_FOUND" = xno; then
23717     # Now execute the test
23718 
23719   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23720   BOOT_JDK_SUFFIX="/Contents/Home"
23721   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23722   if test "x$ALL_JDKS_FOUND" != x; then
23723     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23724 
23725   if test "x$BOOT_JDK_FOUND" = xno; then
23726     # Now execute the test
23727 
23728         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23729         if test -d "$BOOT_JDK"; then
23730           BOOT_JDK_FOUND=maybe
23731           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23732 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23733         fi
23734 
23735 
23736     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23737     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23738       # Do we have a bin/java?
23739       if test ! -x "$BOOT_JDK/bin/java"; then
23740         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23741 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23742         BOOT_JDK_FOUND=no
23743       else
23744         # Do we have a bin/javac?
23745         if test ! -x "$BOOT_JDK/bin/javac"; then
23746           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23747 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23748           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23749 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23750           BOOT_JDK_FOUND=no
23751         else
23752           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23753           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23754             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23755 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23756             BOOT_JDK_FOUND=no
23757           else
23758             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23759             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23760 
23761             # Extra M4 quote needed to protect [] in grep expression.
23762             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23763             if test "x$FOUND_VERSION_78" = x; then
23764               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23765 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23766               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23767 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23768               BOOT_JDK_FOUND=no
23769             else
23770               # We're done! :-)
23771               BOOT_JDK_FOUND=yes
23772 
23773   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23774 
23775   # Input might be given as Windows format, start by converting to
23776   # unix format.
23777   path="$BOOT_JDK"
23778   new_path=`$CYGPATH -u "$path"`
23779 
23780   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23781   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23782   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23783   # "foo.exe" is OK but "foo" is an error.
23784   #
23785   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23786   # It is also a way to make sure we got the proper file name for the real test later on.
23787   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23788   if test "x$test_shortpath" = x; then
23789     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23790 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23791     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23792   fi
23793 
23794   # Call helper function which possibly converts this using DOS-style short mode.
23795   # If so, the updated path is stored in $new_path.
23796 
23797   input_path="$new_path"
23798   # Check if we need to convert this using DOS-style short mode. If the path
23799   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23800   # take no chances and rewrite it.
23801   # Note: m4 eats our [], so we need to use [ and ] instead.
23802   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23803   if test "x$has_forbidden_chars" != x; then
23804     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23805     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23806     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23807     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23808       # Going to short mode and back again did indeed matter. Since short mode is
23809       # case insensitive, let's make it lowercase to improve readability.
23810       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23811       # Now convert it back to Unix-style (cygpath)
23812       input_path=`$CYGPATH -u "$shortmode_path"`
23813       new_path="$input_path"
23814     fi
23815   fi
23816 
23817   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23818   if test "x$test_cygdrive_prefix" = x; then
23819     # As a simple fix, exclude /usr/bin since it's not a real path.
23820     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23821       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23822       # a path prefixed by /cygdrive for fixpath to work.
23823       new_path="$CYGWIN_ROOT_PATH$input_path"
23824     fi
23825   fi
23826 
23827 
23828   if test "x$path" != "x$new_path"; then
23829     BOOT_JDK="$new_path"
23830     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23831 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23832   fi
23833 
23834   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23835 
23836   path="$BOOT_JDK"
23837   has_colon=`$ECHO $path | $GREP ^.:`
23838   new_path="$path"
23839   if test "x$has_colon" = x; then
23840     # Not in mixed or Windows style, start by that.
23841     new_path=`cmd //c echo $path`
23842   fi
23843 
23844 
23845   input_path="$new_path"
23846   # Check if we need to convert this using DOS-style short mode. If the path
23847   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23848   # take no chances and rewrite it.
23849   # Note: m4 eats our [], so we need to use [ and ] instead.
23850   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23851   if test "x$has_forbidden_chars" != x; then
23852     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23853     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23854   fi
23855 
23856 
23857   windows_path="$new_path"
23858   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23859     unix_path=`$CYGPATH -u "$windows_path"`
23860     new_path="$unix_path"
23861   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23862     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23863     new_path="$unix_path"
23864   fi
23865 
23866   if test "x$path" != "x$new_path"; then
23867     BOOT_JDK="$new_path"
23868     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23869 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23870   fi
23871 
23872   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23873   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23874 
23875   else
23876     # We're on a posix platform. Hooray! :)
23877     path="$BOOT_JDK"
23878     has_space=`$ECHO "$path" | $GREP " "`
23879     if test "x$has_space" != x; then
23880       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23881 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23882       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23883     fi
23884 
23885     # Use eval to expand a potential ~
23886     eval path="$path"
23887     if test ! -f "$path" && test ! -d "$path"; then
23888       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23889     fi
23890 
23891     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23892   fi
23893 
23894               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23895 $as_echo_n "checking for Boot JDK... " >&6; }
23896               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23897 $as_echo "$BOOT_JDK" >&6; }
23898               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23899 $as_echo_n "checking Boot JDK version... " >&6; }
23900               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23901               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23902 $as_echo "$BOOT_JDK_VERSION" >&6; }
23903             fi # end check jdk version
23904           fi # end check rt.jar
23905         fi # end check javac
23906       fi # end check java
23907     fi # end check boot jdk found
23908   fi
23909 
23910     done
23911   fi
23912 
23913 
23914     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23915     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23916       # Do we have a bin/java?
23917       if test ! -x "$BOOT_JDK/bin/java"; then
23918         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23919 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23920         BOOT_JDK_FOUND=no
23921       else
23922         # Do we have a bin/javac?
23923         if test ! -x "$BOOT_JDK/bin/javac"; then
23924           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23925 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23926           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23927 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23928           BOOT_JDK_FOUND=no
23929         else
23930           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23931           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23932             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23933 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23934             BOOT_JDK_FOUND=no
23935           else
23936             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23937             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23938 
23939             # Extra M4 quote needed to protect [] in grep expression.
23940             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23941             if test "x$FOUND_VERSION_78" = x; then
23942               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23944               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23945 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23946               BOOT_JDK_FOUND=no
23947             else
23948               # We're done! :-)
23949               BOOT_JDK_FOUND=yes
23950 
23951   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23952 
23953   # Input might be given as Windows format, start by converting to
23954   # unix format.
23955   path="$BOOT_JDK"
23956   new_path=`$CYGPATH -u "$path"`
23957 
23958   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23959   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23960   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23961   # "foo.exe" is OK but "foo" is an error.
23962   #
23963   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23964   # It is also a way to make sure we got the proper file name for the real test later on.
23965   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23966   if test "x$test_shortpath" = x; then
23967     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23968 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23969     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23970   fi
23971 
23972   # Call helper function which possibly converts this using DOS-style short mode.
23973   # If so, the updated path is stored in $new_path.
23974 
23975   input_path="$new_path"
23976   # Check if we need to convert this using DOS-style short mode. If the path
23977   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23978   # take no chances and rewrite it.
23979   # Note: m4 eats our [], so we need to use [ and ] instead.
23980   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23981   if test "x$has_forbidden_chars" != x; then
23982     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23983     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23984     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23985     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23986       # Going to short mode and back again did indeed matter. Since short mode is
23987       # case insensitive, let's make it lowercase to improve readability.
23988       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23989       # Now convert it back to Unix-style (cygpath)
23990       input_path=`$CYGPATH -u "$shortmode_path"`
23991       new_path="$input_path"
23992     fi
23993   fi
23994 
23995   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23996   if test "x$test_cygdrive_prefix" = x; then
23997     # As a simple fix, exclude /usr/bin since it's not a real path.
23998     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23999       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24000       # a path prefixed by /cygdrive for fixpath to work.
24001       new_path="$CYGWIN_ROOT_PATH$input_path"
24002     fi
24003   fi
24004 
24005 
24006   if test "x$path" != "x$new_path"; then
24007     BOOT_JDK="$new_path"
24008     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24009 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24010   fi
24011 
24012   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24013 
24014   path="$BOOT_JDK"
24015   has_colon=`$ECHO $path | $GREP ^.:`
24016   new_path="$path"
24017   if test "x$has_colon" = x; then
24018     # Not in mixed or Windows style, start by that.
24019     new_path=`cmd //c echo $path`
24020   fi
24021 
24022 
24023   input_path="$new_path"
24024   # Check if we need to convert this using DOS-style short mode. If the path
24025   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24026   # take no chances and rewrite it.
24027   # Note: m4 eats our [], so we need to use [ and ] instead.
24028   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24029   if test "x$has_forbidden_chars" != x; then
24030     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24031     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24032   fi
24033 
24034 
24035   windows_path="$new_path"
24036   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24037     unix_path=`$CYGPATH -u "$windows_path"`
24038     new_path="$unix_path"
24039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24040     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24041     new_path="$unix_path"
24042   fi
24043 
24044   if test "x$path" != "x$new_path"; then
24045     BOOT_JDK="$new_path"
24046     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24047 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24048   fi
24049 
24050   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24051   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24052 
24053   else
24054     # We're on a posix platform. Hooray! :)
24055     path="$BOOT_JDK"
24056     has_space=`$ECHO "$path" | $GREP " "`
24057     if test "x$has_space" != x; then
24058       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24059 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24060       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24061     fi
24062 
24063     # Use eval to expand a potential ~
24064     eval path="$path"
24065     if test ! -f "$path" && test ! -d "$path"; then
24066       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24067     fi
24068 
24069     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24070   fi
24071 
24072               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24073 $as_echo_n "checking for Boot JDK... " >&6; }
24074               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24075 $as_echo "$BOOT_JDK" >&6; }
24076               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24077 $as_echo_n "checking Boot JDK version... " >&6; }
24078               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24079               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24080 $as_echo "$BOOT_JDK_VERSION" >&6; }
24081             fi # end check jdk version
24082           fi # end check rt.jar
24083         fi # end check javac
24084       fi # end check java
24085     fi # end check boot jdk found
24086   fi
24087 
24088   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24089 
24090   if test "x$BOOT_JDK_FOUND" = xno; then
24091     # Now execute the test
24092 
24093   BOOT_JDK_PREFIX="/usr/lib/jvm"
24094   BOOT_JDK_SUFFIX=""
24095   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24096   if test "x$ALL_JDKS_FOUND" != x; then
24097     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24098 
24099   if test "x$BOOT_JDK_FOUND" = xno; then
24100     # Now execute the test
24101 
24102         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24103         if test -d "$BOOT_JDK"; then
24104           BOOT_JDK_FOUND=maybe
24105           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24106 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24107         fi
24108 
24109 
24110     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24111     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24112       # Do we have a bin/java?
24113       if test ! -x "$BOOT_JDK/bin/java"; then
24114         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24115 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24116         BOOT_JDK_FOUND=no
24117       else
24118         # Do we have a bin/javac?
24119         if test ! -x "$BOOT_JDK/bin/javac"; then
24120           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24121 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24122           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24123 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24124           BOOT_JDK_FOUND=no
24125         else
24126           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24127           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24128             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24129 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24130             BOOT_JDK_FOUND=no
24131           else
24132             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24133             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24134 
24135             # Extra M4 quote needed to protect [] in grep expression.
24136             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24137             if test "x$FOUND_VERSION_78" = x; then
24138               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24140               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24141 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24142               BOOT_JDK_FOUND=no
24143             else
24144               # We're done! :-)
24145               BOOT_JDK_FOUND=yes
24146 
24147   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24148 
24149   # Input might be given as Windows format, start by converting to
24150   # unix format.
24151   path="$BOOT_JDK"
24152   new_path=`$CYGPATH -u "$path"`
24153 
24154   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24155   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24156   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24157   # "foo.exe" is OK but "foo" is an error.
24158   #
24159   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24160   # It is also a way to make sure we got the proper file name for the real test later on.
24161   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24162   if test "x$test_shortpath" = x; then
24163     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24164 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24165     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24166   fi
24167 
24168   # Call helper function which possibly converts this using DOS-style short mode.
24169   # If so, the updated path is stored in $new_path.
24170 
24171   input_path="$new_path"
24172   # Check if we need to convert this using DOS-style short mode. If the path
24173   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24174   # take no chances and rewrite it.
24175   # Note: m4 eats our [], so we need to use [ and ] instead.
24176   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24177   if test "x$has_forbidden_chars" != x; then
24178     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24179     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24180     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24181     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24182       # Going to short mode and back again did indeed matter. Since short mode is
24183       # case insensitive, let's make it lowercase to improve readability.
24184       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24185       # Now convert it back to Unix-style (cygpath)
24186       input_path=`$CYGPATH -u "$shortmode_path"`
24187       new_path="$input_path"
24188     fi
24189   fi
24190 
24191   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24192   if test "x$test_cygdrive_prefix" = x; then
24193     # As a simple fix, exclude /usr/bin since it's not a real path.
24194     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24195       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24196       # a path prefixed by /cygdrive for fixpath to work.
24197       new_path="$CYGWIN_ROOT_PATH$input_path"
24198     fi
24199   fi
24200 
24201 
24202   if test "x$path" != "x$new_path"; then
24203     BOOT_JDK="$new_path"
24204     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24205 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24206   fi
24207 
24208   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24209 
24210   path="$BOOT_JDK"
24211   has_colon=`$ECHO $path | $GREP ^.:`
24212   new_path="$path"
24213   if test "x$has_colon" = x; then
24214     # Not in mixed or Windows style, start by that.
24215     new_path=`cmd //c echo $path`
24216   fi
24217 
24218 
24219   input_path="$new_path"
24220   # Check if we need to convert this using DOS-style short mode. If the path
24221   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24222   # take no chances and rewrite it.
24223   # Note: m4 eats our [], so we need to use [ and ] instead.
24224   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24225   if test "x$has_forbidden_chars" != x; then
24226     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24227     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24228   fi
24229 
24230 
24231   windows_path="$new_path"
24232   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24233     unix_path=`$CYGPATH -u "$windows_path"`
24234     new_path="$unix_path"
24235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24236     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24237     new_path="$unix_path"
24238   fi
24239 
24240   if test "x$path" != "x$new_path"; then
24241     BOOT_JDK="$new_path"
24242     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24243 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24244   fi
24245 
24246   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24247   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24248 
24249   else
24250     # We're on a posix platform. Hooray! :)
24251     path="$BOOT_JDK"
24252     has_space=`$ECHO "$path" | $GREP " "`
24253     if test "x$has_space" != x; then
24254       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24255 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24256       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24257     fi
24258 
24259     # Use eval to expand a potential ~
24260     eval path="$path"
24261     if test ! -f "$path" && test ! -d "$path"; then
24262       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24263     fi
24264 
24265     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24266   fi
24267 
24268               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24269 $as_echo_n "checking for Boot JDK... " >&6; }
24270               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24271 $as_echo "$BOOT_JDK" >&6; }
24272               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24273 $as_echo_n "checking Boot JDK version... " >&6; }
24274               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24275               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24276 $as_echo "$BOOT_JDK_VERSION" >&6; }
24277             fi # end check jdk version
24278           fi # end check rt.jar
24279         fi # end check javac
24280       fi # end check java
24281     fi # end check boot jdk found
24282   fi
24283 
24284     done
24285   fi
24286 
24287 
24288     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24289     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24290       # Do we have a bin/java?
24291       if test ! -x "$BOOT_JDK/bin/java"; then
24292         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24293 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24294         BOOT_JDK_FOUND=no
24295       else
24296         # Do we have a bin/javac?
24297         if test ! -x "$BOOT_JDK/bin/javac"; then
24298           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24299 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24300           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24301 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24302           BOOT_JDK_FOUND=no
24303         else
24304           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24305           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24306             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24307 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24308             BOOT_JDK_FOUND=no
24309           else
24310             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24311             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24312 
24313             # Extra M4 quote needed to protect [] in grep expression.
24314             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24315             if test "x$FOUND_VERSION_78" = x; then
24316               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24317 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24318               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24319 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24320               BOOT_JDK_FOUND=no
24321             else
24322               # We're done! :-)
24323               BOOT_JDK_FOUND=yes
24324 
24325   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24326 
24327   # Input might be given as Windows format, start by converting to
24328   # unix format.
24329   path="$BOOT_JDK"
24330   new_path=`$CYGPATH -u "$path"`
24331 
24332   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24333   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24334   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24335   # "foo.exe" is OK but "foo" is an error.
24336   #
24337   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24338   # It is also a way to make sure we got the proper file name for the real test later on.
24339   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24340   if test "x$test_shortpath" = x; then
24341     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24342 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24343     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24344   fi
24345 
24346   # Call helper function which possibly converts this using DOS-style short mode.
24347   # If so, the updated path is stored in $new_path.
24348 
24349   input_path="$new_path"
24350   # Check if we need to convert this using DOS-style short mode. If the path
24351   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24352   # take no chances and rewrite it.
24353   # Note: m4 eats our [], so we need to use [ and ] instead.
24354   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24355   if test "x$has_forbidden_chars" != x; then
24356     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24357     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24358     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24359     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24360       # Going to short mode and back again did indeed matter. Since short mode is
24361       # case insensitive, let's make it lowercase to improve readability.
24362       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24363       # Now convert it back to Unix-style (cygpath)
24364       input_path=`$CYGPATH -u "$shortmode_path"`
24365       new_path="$input_path"
24366     fi
24367   fi
24368 
24369   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24370   if test "x$test_cygdrive_prefix" = x; then
24371     # As a simple fix, exclude /usr/bin since it's not a real path.
24372     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24373       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24374       # a path prefixed by /cygdrive for fixpath to work.
24375       new_path="$CYGWIN_ROOT_PATH$input_path"
24376     fi
24377   fi
24378 
24379 
24380   if test "x$path" != "x$new_path"; then
24381     BOOT_JDK="$new_path"
24382     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24383 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24384   fi
24385 
24386   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24387 
24388   path="$BOOT_JDK"
24389   has_colon=`$ECHO $path | $GREP ^.:`
24390   new_path="$path"
24391   if test "x$has_colon" = x; then
24392     # Not in mixed or Windows style, start by that.
24393     new_path=`cmd //c echo $path`
24394   fi
24395 
24396 
24397   input_path="$new_path"
24398   # Check if we need to convert this using DOS-style short mode. If the path
24399   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24400   # take no chances and rewrite it.
24401   # Note: m4 eats our [], so we need to use [ and ] instead.
24402   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24403   if test "x$has_forbidden_chars" != x; then
24404     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24405     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24406   fi
24407 
24408 
24409   windows_path="$new_path"
24410   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24411     unix_path=`$CYGPATH -u "$windows_path"`
24412     new_path="$unix_path"
24413   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24414     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24415     new_path="$unix_path"
24416   fi
24417 
24418   if test "x$path" != "x$new_path"; then
24419     BOOT_JDK="$new_path"
24420     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24421 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24422   fi
24423 
24424   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24425   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24426 
24427   else
24428     # We're on a posix platform. Hooray! :)
24429     path="$BOOT_JDK"
24430     has_space=`$ECHO "$path" | $GREP " "`
24431     if test "x$has_space" != x; then
24432       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24433 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24434       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24435     fi
24436 
24437     # Use eval to expand a potential ~
24438     eval path="$path"
24439     if test ! -f "$path" && test ! -d "$path"; then
24440       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24441     fi
24442 
24443     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24444   fi
24445 
24446               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24447 $as_echo_n "checking for Boot JDK... " >&6; }
24448               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24449 $as_echo "$BOOT_JDK" >&6; }
24450               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24451 $as_echo_n "checking Boot JDK version... " >&6; }
24452               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24453               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24454 $as_echo "$BOOT_JDK_VERSION" >&6; }
24455             fi # end check jdk version
24456           fi # end check rt.jar
24457         fi # end check javac
24458       fi # end check java
24459     fi # end check boot jdk found
24460   fi
24461 
24462   fi
24463 
24464 
24465     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24466     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24467       # Do we have a bin/java?
24468       if test ! -x "$BOOT_JDK/bin/java"; then
24469         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24470 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24471         BOOT_JDK_FOUND=no
24472       else
24473         # Do we have a bin/javac?
24474         if test ! -x "$BOOT_JDK/bin/javac"; then
24475           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24476 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24477           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24478 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24479           BOOT_JDK_FOUND=no
24480         else
24481           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24482           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24483             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24484 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24485             BOOT_JDK_FOUND=no
24486           else
24487             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24488             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24489 
24490             # Extra M4 quote needed to protect [] in grep expression.
24491             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24492             if test "x$FOUND_VERSION_78" = x; then
24493               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24494 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24495               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24496 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24497               BOOT_JDK_FOUND=no
24498             else
24499               # We're done! :-)
24500               BOOT_JDK_FOUND=yes
24501 
24502   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24503 
24504   # Input might be given as Windows format, start by converting to
24505   # unix format.
24506   path="$BOOT_JDK"
24507   new_path=`$CYGPATH -u "$path"`
24508 
24509   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24510   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24511   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24512   # "foo.exe" is OK but "foo" is an error.
24513   #
24514   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24515   # It is also a way to make sure we got the proper file name for the real test later on.
24516   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24517   if test "x$test_shortpath" = x; then
24518     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24519 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24520     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24521   fi
24522 
24523   # Call helper function which possibly converts this using DOS-style short mode.
24524   # If so, the updated path is stored in $new_path.
24525 
24526   input_path="$new_path"
24527   # Check if we need to convert this using DOS-style short mode. If the path
24528   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24529   # take no chances and rewrite it.
24530   # Note: m4 eats our [], so we need to use [ and ] instead.
24531   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24532   if test "x$has_forbidden_chars" != x; then
24533     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24534     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24535     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24536     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24537       # Going to short mode and back again did indeed matter. Since short mode is
24538       # case insensitive, let's make it lowercase to improve readability.
24539       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24540       # Now convert it back to Unix-style (cygpath)
24541       input_path=`$CYGPATH -u "$shortmode_path"`
24542       new_path="$input_path"
24543     fi
24544   fi
24545 
24546   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24547   if test "x$test_cygdrive_prefix" = x; then
24548     # As a simple fix, exclude /usr/bin since it's not a real path.
24549     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24550       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24551       # a path prefixed by /cygdrive for fixpath to work.
24552       new_path="$CYGWIN_ROOT_PATH$input_path"
24553     fi
24554   fi
24555 
24556 
24557   if test "x$path" != "x$new_path"; then
24558     BOOT_JDK="$new_path"
24559     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24560 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24561   fi
24562 
24563   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24564 
24565   path="$BOOT_JDK"
24566   has_colon=`$ECHO $path | $GREP ^.:`
24567   new_path="$path"
24568   if test "x$has_colon" = x; then
24569     # Not in mixed or Windows style, start by that.
24570     new_path=`cmd //c echo $path`
24571   fi
24572 
24573 
24574   input_path="$new_path"
24575   # Check if we need to convert this using DOS-style short mode. If the path
24576   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24577   # take no chances and rewrite it.
24578   # Note: m4 eats our [], so we need to use [ and ] instead.
24579   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24580   if test "x$has_forbidden_chars" != x; then
24581     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24582     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24583   fi
24584 
24585 
24586   windows_path="$new_path"
24587   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24588     unix_path=`$CYGPATH -u "$windows_path"`
24589     new_path="$unix_path"
24590   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24591     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24592     new_path="$unix_path"
24593   fi
24594 
24595   if test "x$path" != "x$new_path"; then
24596     BOOT_JDK="$new_path"
24597     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24598 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24599   fi
24600 
24601   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24602   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24603 
24604   else
24605     # We're on a posix platform. Hooray! :)
24606     path="$BOOT_JDK"
24607     has_space=`$ECHO "$path" | $GREP " "`
24608     if test "x$has_space" != x; then
24609       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24610 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24611       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24612     fi
24613 
24614     # Use eval to expand a potential ~
24615     eval path="$path"
24616     if test ! -f "$path" && test ! -d "$path"; then
24617       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24618     fi
24619 
24620     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24621   fi
24622 
24623               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24624 $as_echo_n "checking for Boot JDK... " >&6; }
24625               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24626 $as_echo "$BOOT_JDK" >&6; }
24627               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24628 $as_echo_n "checking Boot JDK version... " >&6; }
24629               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24630               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24631 $as_echo "$BOOT_JDK_VERSION" >&6; }
24632             fi # end check jdk version
24633           fi # end check rt.jar
24634         fi # end check javac
24635       fi # end check java
24636     fi # end check boot jdk found
24637   fi
24638 
24639 
24640   # If we haven't found anything yet, we've truly lost. Give up.
24641   if test "x$BOOT_JDK_FOUND" = xno; then
24642 
24643   # Print a helpful message on how to acquire the necessary build dependency.
24644   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24645   MISSING_DEPENDENCY=openjdk
24646 
24647   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24648     cygwin_help $MISSING_DEPENDENCY
24649   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24650     msys_help $MISSING_DEPENDENCY
24651   else
24652     PKGHANDLER_COMMAND=
24653 
24654     case $PKGHANDLER in
24655       apt-get)
24656         apt_help     $MISSING_DEPENDENCY ;;
24657       yum)
24658         yum_help     $MISSING_DEPENDENCY ;;
24659       port)
24660         port_help    $MISSING_DEPENDENCY ;;
24661       pkgutil)
24662         pkgutil_help $MISSING_DEPENDENCY ;;
24663       pkgadd)
24664         pkgadd_help  $MISSING_DEPENDENCY ;;
24665     esac
24666 
24667     if test "x$PKGHANDLER_COMMAND" != x; then
24668       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24669     fi
24670   fi
24671 
24672     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24673 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24674     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24675 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24676     as_fn_error $? "Cannot continue" "$LINENO" 5
24677   fi
24678 
24679   # Setup proper paths for what we found
24680   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24681   if test ! -f "$BOOT_RTJAR"; then
24682     # On MacOSX it is called classes.jar
24683     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24684     if test -f "$BOOT_RTJAR"; then
24685       # Remove the ..
24686       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24687     fi
24688   fi
24689   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24690   BOOT_JDK="$BOOT_JDK"
24691 
24692 
24693 
24694 
24695   # Setup tools from the Boot JDK.
24696 
24697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24698 $as_echo_n "checking for java in Boot JDK... " >&6; }
24699   JAVA=$BOOT_JDK/bin/java
24700   if test ! -x $JAVA; then
24701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24702 $as_echo "not found" >&6; }
24703     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24704 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24705     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24706   fi
24707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24708 $as_echo "ok" >&6; }
24709 
24710 
24711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24712 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24713   JAVAC=$BOOT_JDK/bin/javac
24714   if test ! -x $JAVAC; then
24715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24716 $as_echo "not found" >&6; }
24717     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24718 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24719     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24720   fi
24721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24722 $as_echo "ok" >&6; }
24723 
24724 
24725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24726 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24727   JAVAH=$BOOT_JDK/bin/javah
24728   if test ! -x $JAVAH; then
24729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24730 $as_echo "not found" >&6; }
24731     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24732 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24733     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24734   fi
24735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24736 $as_echo "ok" >&6; }
24737 
24738 
24739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24740 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24741   JAVAP=$BOOT_JDK/bin/javap
24742   if test ! -x $JAVAP; then
24743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24744 $as_echo "not found" >&6; }
24745     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24746 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24747     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24748   fi
24749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24750 $as_echo "ok" >&6; }
24751 
24752 
24753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24754 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24755   JAR=$BOOT_JDK/bin/jar
24756   if test ! -x $JAR; then
24757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24758 $as_echo "not found" >&6; }
24759     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24760 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24761     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24762   fi
24763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24764 $as_echo "ok" >&6; }
24765 
24766 
24767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24768 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24769   RMIC=$BOOT_JDK/bin/rmic
24770   if test ! -x $RMIC; then
24771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24772 $as_echo "not found" >&6; }
24773     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24774 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24775     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24776   fi
24777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24778 $as_echo "ok" >&6; }
24779 
24780 
24781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24782 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24783   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24784   if test ! -x $NATIVE2ASCII; then
24785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24786 $as_echo "not found" >&6; }
24787     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24788 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24789     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24790   fi
24791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24792 $as_echo "ok" >&6; }
24793 
24794 
24795   # Finally, set some other options...
24796 
24797   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24798   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24799 
24800 
24801 
24802   # Check if the boot jdk is 32 or 64 bit
24803   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24804     BOOT_JDK_BITS="64"
24805   else
24806     BOOT_JDK_BITS="32"
24807   fi
24808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24809 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24811 $as_echo "$BOOT_JDK_BITS" >&6; }
24812 
24813 
24814 
24815   ##############################################################################
24816   #
24817   # Specify options for anything that is run with the Boot JDK.
24818   #
24819 
24820 # Check whether --with-boot-jdk-jvmargs was given.
24821 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24822   withval=$with_boot_jdk_jvmargs;
24823 fi
24824 
24825 
24826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24827 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24828 
24829   # Disable special log output when a debug build is used as Boot JDK...
24830 
24831   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24832   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24833   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24834   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24835   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24836   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24837     boot_jdk_jvmargs="$boot_jdk_jvm