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 NO_LIFETIME_DSE_CFLAG
 690 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 691 LEGACY_EXTRA_LDFLAGS
 692 LEGACY_EXTRA_CXXFLAGS
 693 LEGACY_EXTRA_CFLAGS
 694 CXXSTD_CXXFLAG
 695 CXX_O_FLAG_NONE
 696 CXX_O_FLAG_NORM
 697 CXX_O_FLAG_HI
 698 CXX_O_FLAG_HIGHEST
 699 C_O_FLAG_NONE
 700 C_O_FLAG_NORM
 701 C_O_FLAG_HI
 702 C_O_FLAG_HIGHEST
 703 CXXFLAGS_DEBUG_SYMBOLS
 704 CFLAGS_DEBUG_SYMBOLS
 705 ASFLAGS_DEBUG_SYMBOLS
 706 CXX_FLAG_DEPS
 707 C_FLAG_DEPS
 708 SET_SHARED_LIBRARY_MAPFILE
 709 SET_SHARED_LIBRARY_NAME
 710 SET_SHARED_LIBRARY_ORIGIN
 711 SET_EXECUTABLE_ORIGIN
 712 SHARED_LIBRARY_FLAGS
 713 CXX_FLAG_REORDER
 714 C_FLAG_REORDER
 715 SYSROOT_LDFLAGS
 716 SYSROOT_CFLAGS
 717 RC_FLAGS
 718 AR_OUT_OPTION
 719 LD_OUT_OPTION
 720 EXE_OUT_OPTION
 721 CC_OUT_OPTION
 722 POST_MCS_CMD
 723 POST_STRIP_CMD
 724 ARFLAGS
 725 COMPILER_TARGET_BITS_FLAG
 726 JT_HOME
 727 JTREGEXE
 728 USING_BROKEN_SUSE_LD
 729 PACKAGE_PATH
 730 LDEXECXX
 731 LDEXE
 732 USE_CLANG
 733 HOTSPOT_LD
 734 HOTSPOT_CXX
 735 HOTSPOT_RC
 736 HOTSPOT_MT
 737 BUILD_LD
 738 BUILD_CXX
 739 BUILD_CC
 740 ac_ct_OBJDUMP
 741 OBJDUMP
 742 ac_ct_OBJCOPY
 743 OBJCOPY
 744 ac_ct_NM
 745 OTOOL
 746 ac_ct_STRIP
 747 MCS
 748 GNM
 749 NM
 750 STRIP
 751 MSBUILD
 752 DUMPBIN
 753 RC
 754 MT
 755 LIPO
 756 ac_ct_OBJC
 757 OBJCFLAGS
 758 OBJC
 759 ac_ct_AR
 760 AR
 761 AS
 762 LDCXX
 763 LD
 764 CXXCPP
 765 CPP
 766 CXX_VERSION_NUMBER
 767 CC_VERSION_NUMBER
 768 ac_ct_CXX
 769 CXXFLAGS
 770 CXX
 771 ac_ct_PROPER_COMPILER_CXX
 772 PROPER_COMPILER_CXX
 773 TOOLCHAIN_PATH_CXX
 774 POTENTIAL_CXX
 775 OBJEXT
 776 EXEEXT
 777 ac_ct_CC
 778 CPPFLAGS
 779 LDFLAGS
 780 CFLAGS
 781 CC
 782 ac_ct_PROPER_COMPILER_CC
 783 PROPER_COMPILER_CC
 784 TOOLCHAIN_PATH_CC
 785 POTENTIAL_CC
 786 SDKPATH
 787 XCODEBUILD
 788 SET_DEVELOPER_DIR
 789 VS_LIB
 790 VS_INCLUDE
 791 VS_PATH
 792 CYGWIN_LINK
 793 EXE_SUFFIX
 794 OBJ_SUFFIX
 795 STATIC_LIBRARY
 796 SHARED_LIBRARY
 797 STATIC_LIBRARY_SUFFIX
 798 SHARED_LIBRARY_SUFFIX
 799 LIBRARY_PREFIX
 800 TOOLCHAIN_TYPE
 801 BUILD_HOTSPOT
 802 HOTSPOT_DIST
 803 BUILD_OUTPUT
 804 OVERRIDE_SRC_ROOT
 805 ADD_SRC_ROOT
 806 JDK_TOPDIR
 807 NASHORN_TOPDIR
 808 HOTSPOT_TOPDIR
 809 JAXWS_TOPDIR
 810 JAXP_TOPDIR
 811 CORBA_TOPDIR
 812 LANGTOOLS_TOPDIR
 813 JAVA_FLAGS_SMALL
 814 JAVA_FLAGS_BIG
 815 JAVA_FLAGS
 816 BOOT_JDK_BITS
 817 JAVAC_FLAGS
 818 BOOT_JDK_SOURCETARGET
 819 BOOT_JDK
 820 BOOT_TOOLSJAR
 821 BOOT_RTJAR
 822 JAVA_CHECK
 823 JAVAC_CHECK
 824 COOKED_BUILD_NUMBER
 825 COOKED_JDK_UPDATE_VERSION
 826 JDK_VERSION
 827 COPYRIGHT_YEAR
 828 COMPANY_NAME
 829 MACOSX_BUNDLE_ID_BASE
 830 MACOSX_BUNDLE_NAME_BASE
 831 JDK_RC_PLATFORM_NAME
 832 PRODUCT_SUFFIX
 833 PRODUCT_NAME
 834 LAUNCHER_NAME
 835 MILESTONE
 836 JDK_BUILD_NUMBER
 837 JDK_UPDATE_VERSION
 838 JDK_MICRO_VERSION
 839 JDK_MINOR_VERSION
 840 JDK_MAJOR_VERSION
 841 USER_RELEASE_SUFFIX
 842 COMPRESS_JARS
 843 UNLIMITED_CRYPTO
 844 CACERTS_FILE
 845 TEST_IN_BUILD
 846 BUILD_HEADLESS
 847 SUPPORT_HEADFUL
 848 SUPPORT_HEADLESS
 849 BDEPS_FTP
 850 BDEPS_UNZIP
 851 OS_VERSION_MICRO
 852 OS_VERSION_MINOR
 853 OS_VERSION_MAJOR
 854 PKG_CONFIG
 855 CODESIGN
 856 XATTR
 857 DSYMUTIL
 858 IS_GNU_TIME
 859 TIME
 860 STAT
 861 HG
 862 READELF
 863 LDD
 864 ZIP
 865 UNZIP
 866 FIND_DELETE
 867 MAKE
 868 CHECK_TOOLSDIR_MAKE
 869 CHECK_TOOLSDIR_GMAKE
 870 CHECK_MAKE
 871 CHECK_GMAKE
 872 PKGHANDLER
 873 OUTPUT_ROOT
 874 CONF_NAME
 875 SPEC
 876 DEVKIT_LIB_DIR
 877 BUILD_VARIANT_RELEASE
 878 DEBUG_CLASSFILES
 879 FASTDEBUG
 880 VARIANT
 881 DEBUG_LEVEL
 882 MACOSX_UNIVERSAL
 883 INCLUDE_SA
 884 JVM_VARIANT_CORE
 885 JVM_VARIANT_ZEROSHARK
 886 JVM_VARIANT_ZERO
 887 JVM_VARIANT_KERNEL
 888 JVM_VARIANT_MINIMAL1
 889 JVM_VARIANT_CLIENT
 890 JVM_VARIANT_SERVER
 891 JVM_VARIANTS
 892 JVM_INTERPRETER
 893 JDK_VARIANT
 894 SET_OPENJDK
 895 BUILD_LOG_WRAPPER
 896 BUILD_LOG_PREVIOUS
 897 BUILD_LOG
 898 TOPDIR
 899 PATH_SEP
 900 ZERO_ARCHDEF
 901 DEFINE_CROSS_COMPILE_ARCH
 902 LP64
 903 OPENJDK_TARGET_OS_EXPORT_DIR
 904 OPENJDK_TARGET_OS_API_DIR
 905 OPENJDK_TARGET_CPU_JLI_CFLAGS
 906 OPENJDK_TARGET_CPU_OSARCH
 907 OPENJDK_TARGET_CPU_ISADIR
 908 OPENJDK_TARGET_CPU_LIBDIR
 909 OPENJDK_TARGET_CPU_LEGACY_LIB
 910 OPENJDK_TARGET_CPU_LEGACY
 911 REQUIRED_OS_VERSION
 912 REQUIRED_OS_NAME
 913 COMPILE_TYPE
 914 OPENJDK_TARGET_CPU_ENDIAN
 915 OPENJDK_TARGET_CPU_BITS
 916 OPENJDK_TARGET_CPU_ARCH
 917 OPENJDK_TARGET_CPU
 918 OPENJDK_TARGET_OS_ENV
 919 OPENJDK_TARGET_OS_API
 920 OPENJDK_TARGET_OS
 921 OPENJDK_BUILD_CPU_ENDIAN
 922 OPENJDK_BUILD_CPU_BITS
 923 OPENJDK_BUILD_CPU_ARCH
 924 OPENJDK_BUILD_CPU
 925 OPENJDK_BUILD_OS_ENV
 926 OPENJDK_BUILD_OS_API
 927 OPENJDK_BUILD_OS
 928 OPENJDK_BUILD_AUTOCONF_NAME
 929 OPENJDK_TARGET_AUTOCONF_NAME
 930 target_os
 931 target_vendor
 932 target_cpu
 933 target
 934 host_os
 935 host_vendor
 936 host_cpu
 937 host
 938 build_os
 939 build_vendor
 940 build_cpu
 941 build
 942 CPIO
 943 SETFILE
 944 DF
 945 READLINK
 946 CYGPATH
 947 SED
 948 FGREP
 949 EGREP
 950 GREP
 951 AWK
 952 XARGS
 953 WHICH
 954 WC
 955 UNIQ
 956 UNAME
 957 TR
 958 TOUCH
 959 TEE
 960 TAR
 961 TAIL
 962 SORT
 963 SH
 964 RM
 965 PRINTF
 966 NAWK
 967 MV
 968 MKTEMP
 969 MKDIR
 970 LS
 971 LN
 972 HEAD
 973 FIND
 974 FILE
 975 EXPR
 976 ECHO
 977 DIRNAME
 978 DIFF
 979 DATE
 980 CUT
 981 CP
 982 COMM
 983 CMP
 984 CHMOD
 985 CAT
 986 BASH
 987 BASENAME
 988 DATE_WHEN_CONFIGURED
 989 CONFIGURE_COMMAND_LINE
 990 CUSTOM_MAKE_DIR
 991 target_alias
 992 host_alias
 993 build_alias
 994 LIBS
 995 ECHO_T
 996 ECHO_N
 997 ECHO_C
 998 DEFS
 999 mandir
1000 localedir
1001 libdir
1002 psdir
1003 pdfdir
1004 dvidir
1005 htmldir
1006 infodir
1007 docdir
1008 oldincludedir
1009 includedir
1010 localstatedir
1011 sharedstatedir
1012 sysconfdir
1013 datadir
1014 datarootdir
1015 libexecdir
1016 sbindir
1017 bindir
1018 program_transform_name
1019 prefix
1020 exec_prefix
1021 PACKAGE_URL
1022 PACKAGE_BUGREPORT
1023 PACKAGE_STRING
1024 PACKAGE_VERSION
1025 PACKAGE_TARNAME
1026 PACKAGE_NAME
1027 PATH_SEPARATOR
1028 SHELL'
1029 ac_subst_files=''
1030 ac_user_opts='
1031 enable_option_checking
1032 with_custom_make_dir
1033 with_target_bits
1034 enable_openjdk_only
1035 with_jdk_variant
1036 with_jvm_interpreter
1037 with_jvm_variants
1038 enable_debug
1039 with_debug_level
1040 with_devkit
1041 with_sys_root
1042 with_sysroot
1043 with_tools_dir
1044 with_toolchain_path
1045 with_extra_path
1046 with_xcode_path
1047 with_conf_name
1048 with_builddeps_conf
1049 with_builddeps_server
1050 with_builddeps_dir
1051 with_builddeps_group
1052 enable_headful
1053 enable_hotspot_test_in_build
1054 with_cacerts_file
1055 enable_unlimited_crypto
1056 with_milestone
1057 with_update_version
1058 with_user_release_suffix
1059 with_build_number
1060 with_vendor_name
1061 with_copyright_year
1062 with_boot_jdk
1063 with_boot_jdk_jvmargs
1064 with_add_source_root
1065 with_override_source_root
1066 with_adds_and_overrides
1067 with_override_langtools
1068 with_override_corba
1069 with_override_jaxp
1070 with_override_jaxws
1071 with_override_hotspot
1072 with_override_nashorn
1073 with_override_jdk
1074 with_import_hotspot
1075 with_toolchain_type
1076 with_toolchain_version
1077 with_jtreg
1078 with_extra_cflags
1079 with_extra_cxxflags
1080 with_extra_ldflags
1081 enable_debug_symbols
1082 enable_zip_debug_info
1083 with_native_debug_symbols
1084 enable_macosx_runtime_support
1085 with_x
1086 with_cups
1087 with_cups_include
1088 with_freetype
1089 with_freetype_include
1090 with_freetype_lib
1091 with_freetype_src
1092 enable_freetype_bundling
1093 with_alsa
1094 with_alsa_include
1095 with_alsa_lib
1096 with_fontconfig
1097 with_fontconfig_include
1098 with_giflib
1099 with_zlib
1100 with_stdc__lib
1101 with_msvcr_dll
1102 with_msvcp_dll
1103 with_ucrt_dll_dir
1104 with_dxsdk
1105 with_dxsdk_lib
1106 with_dxsdk_include
1107 with_num_cores
1108 with_memory_size
1109 with_jobs
1110 with_sjavac_server_java
1111 enable_sjavac
1112 enable_precompiled_headers
1113 enable_ccache
1114 with_ccache_dir
1115 '
1116       ac_precious_vars='build_alias
1117 host_alias
1118 target_alias
1119 BASENAME
1120 BASH
1121 CAT
1122 CHMOD
1123 CMP
1124 COMM
1125 CP
1126 CUT
1127 DATE
1128 DIFF
1129 DIRNAME
1130 ECHO
1131 EXPR
1132 FILE
1133 FIND
1134 HEAD
1135 LN
1136 LS
1137 MKDIR
1138 MKTEMP
1139 MV
1140 NAWK
1141 PRINTF
1142 RM
1143 SH
1144 SORT
1145 TAIL
1146 TAR
1147 TEE
1148 TOUCH
1149 TR
1150 UNAME
1151 UNIQ
1152 WC
1153 WHICH
1154 XARGS
1155 AWK
1156 GREP
1157 EGREP
1158 FGREP
1159 SED
1160 CYGPATH
1161 READLINK
1162 DF
1163 SETFILE
1164 CPIO
1165 UNZIP
1166 ZIP
1167 LDD
1168 READELF
1169 HG
1170 STAT
1171 TIME
1172 DSYMUTIL
1173 XATTR
1174 CODESIGN
1175 PKG_CONFIG
1176 CC
1177 CFLAGS
1178 LDFLAGS
1179 LIBS
1180 CPPFLAGS
1181 CXX
1182 CXXFLAGS
1183 CCC
1184 CPP
1185 CXXCPP
1186 AS
1187 AR
1188 OBJC
1189 OBJCFLAGS
1190 LIPO
1191 STRIP
1192 NM
1193 GNM
1194 MCS
1195 OBJCOPY
1196 OBJDUMP
1197 BUILD_CC
1198 BUILD_CXX
1199 BUILD_LD
1200 JTREGEXE
1201 XMKMF
1202 FREETYPE_CFLAGS
1203 FREETYPE_LIBS
1204 ALSA_CFLAGS
1205 ALSA_LIBS
1206 LIBFFI_CFLAGS
1207 LIBFFI_LIBS
1208 CCACHE'
1209 
1210 
1211 # Initialize some variables set by options.
1212 ac_init_help=
1213 ac_init_version=false
1214 ac_unrecognized_opts=
1215 ac_unrecognized_sep=
1216 # The variables have the same names as the options, with
1217 # dashes changed to underlines.
1218 cache_file=/dev/null
1219 exec_prefix=NONE
1220 no_create=
1221 no_recursion=
1222 prefix=NONE
1223 program_prefix=NONE
1224 program_suffix=NONE
1225 program_transform_name=s,x,x,
1226 silent=
1227 site=
1228 srcdir=
1229 verbose=
1230 x_includes=NONE
1231 x_libraries=NONE
1232 
1233 # Installation directory options.
1234 # These are left unexpanded so users can "make install exec_prefix=/foo"
1235 # and all the variables that are supposed to be based on exec_prefix
1236 # by default will actually change.
1237 # Use braces instead of parens because sh, perl, etc. also accept them.
1238 # (The list follows the same order as the GNU Coding Standards.)
1239 bindir='${exec_prefix}/bin'
1240 sbindir='${exec_prefix}/sbin'
1241 libexecdir='${exec_prefix}/libexec'
1242 datarootdir='${prefix}/share'
1243 datadir='${datarootdir}'
1244 sysconfdir='${prefix}/etc'
1245 sharedstatedir='${prefix}/com'
1246 localstatedir='${prefix}/var'
1247 includedir='${prefix}/include'
1248 oldincludedir='/usr/include'
1249 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1250 infodir='${datarootdir}/info'
1251 htmldir='${docdir}'
1252 dvidir='${docdir}'
1253 pdfdir='${docdir}'
1254 psdir='${docdir}'
1255 libdir='${exec_prefix}/lib'
1256 localedir='${datarootdir}/locale'
1257 mandir='${datarootdir}/man'
1258 
1259 ac_prev=
1260 ac_dashdash=
1261 for ac_option
1262 do
1263   # If the previous option needs an argument, assign it.
1264   if test -n "$ac_prev"; then
1265     eval $ac_prev=\$ac_option
1266     ac_prev=
1267     continue
1268   fi
1269 
1270   case $ac_option in
1271   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1272   *=)   ac_optarg= ;;
1273   *)    ac_optarg=yes ;;
1274   esac
1275 
1276   # Accept the important Cygnus configure options, so we can diagnose typos.
1277 
1278   case $ac_dashdash$ac_option in
1279   --)
1280     ac_dashdash=yes ;;
1281 
1282   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1283     ac_prev=bindir ;;
1284   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1285     bindir=$ac_optarg ;;
1286 
1287   -build | --build | --buil | --bui | --bu)
1288     ac_prev=build_alias ;;
1289   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1290     build_alias=$ac_optarg ;;
1291 
1292   -cache-file | --cache-file | --cache-fil | --cache-fi \
1293   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1294     ac_prev=cache_file ;;
1295   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1296   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1297     cache_file=$ac_optarg ;;
1298 
1299   --config-cache | -C)
1300     cache_file=config.cache ;;
1301 
1302   -datadir | --datadir | --datadi | --datad)
1303     ac_prev=datadir ;;
1304   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1305     datadir=$ac_optarg ;;
1306 
1307   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1308   | --dataroo | --dataro | --datar)
1309     ac_prev=datarootdir ;;
1310   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1311   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1312     datarootdir=$ac_optarg ;;
1313 
1314   -disable-* | --disable-*)
1315     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1316     # Reject names that are not valid shell variable names.
1317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318       as_fn_error $? "invalid feature name: $ac_useropt"
1319     ac_useropt_orig=$ac_useropt
1320     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321     case $ac_user_opts in
1322       *"
1323 "enable_$ac_useropt"
1324 "*) ;;
1325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1326          ac_unrecognized_sep=', ';;
1327     esac
1328     eval enable_$ac_useropt=no ;;
1329 
1330   -docdir | --docdir | --docdi | --doc | --do)
1331     ac_prev=docdir ;;
1332   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1333     docdir=$ac_optarg ;;
1334 
1335   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1336     ac_prev=dvidir ;;
1337   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1338     dvidir=$ac_optarg ;;
1339 
1340   -enable-* | --enable-*)
1341     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1342     # Reject names that are not valid shell variable names.
1343     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344       as_fn_error $? "invalid feature name: $ac_useropt"
1345     ac_useropt_orig=$ac_useropt
1346     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347     case $ac_user_opts in
1348       *"
1349 "enable_$ac_useropt"
1350 "*) ;;
1351       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1352          ac_unrecognized_sep=', ';;
1353     esac
1354     eval enable_$ac_useropt=\$ac_optarg ;;
1355 
1356   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1357   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1358   | --exec | --exe | --ex)
1359     ac_prev=exec_prefix ;;
1360   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1361   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1362   | --exec=* | --exe=* | --ex=*)
1363     exec_prefix=$ac_optarg ;;
1364 
1365   -gas | --gas | --ga | --g)
1366     # Obsolete; use --with-gas.
1367     with_gas=yes ;;
1368 
1369   -help | --help | --hel | --he | -h)
1370     ac_init_help=long ;;
1371   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1372     ac_init_help=recursive ;;
1373   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1374     ac_init_help=short ;;
1375 
1376   -host | --host | --hos | --ho)
1377     ac_prev=host_alias ;;
1378   -host=* | --host=* | --hos=* | --ho=*)
1379     host_alias=$ac_optarg ;;
1380 
1381   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1382     ac_prev=htmldir ;;
1383   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1384   | --ht=*)
1385     htmldir=$ac_optarg ;;
1386 
1387   -includedir | --includedir | --includedi | --included | --include \
1388   | --includ | --inclu | --incl | --inc)
1389     ac_prev=includedir ;;
1390   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1391   | --includ=* | --inclu=* | --incl=* | --inc=*)
1392     includedir=$ac_optarg ;;
1393 
1394   -infodir | --infodir | --infodi | --infod | --info | --inf)
1395     ac_prev=infodir ;;
1396   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1397     infodir=$ac_optarg ;;
1398 
1399   -libdir | --libdir | --libdi | --libd)
1400     ac_prev=libdir ;;
1401   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1402     libdir=$ac_optarg ;;
1403 
1404   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1405   | --libexe | --libex | --libe)
1406     ac_prev=libexecdir ;;
1407   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1408   | --libexe=* | --libex=* | --libe=*)
1409     libexecdir=$ac_optarg ;;
1410 
1411   -localedir | --localedir | --localedi | --localed | --locale)
1412     ac_prev=localedir ;;
1413   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1414     localedir=$ac_optarg ;;
1415 
1416   -localstatedir | --localstatedir | --localstatedi | --localstated \
1417   | --localstate | --localstat | --localsta | --localst | --locals)
1418     ac_prev=localstatedir ;;
1419   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1420   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1421     localstatedir=$ac_optarg ;;
1422 
1423   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1424     ac_prev=mandir ;;
1425   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1426     mandir=$ac_optarg ;;
1427 
1428   -nfp | --nfp | --nf)
1429     # Obsolete; use --without-fp.
1430     with_fp=no ;;
1431 
1432   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1433   | --no-cr | --no-c | -n)
1434     no_create=yes ;;
1435 
1436   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1437   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1438     no_recursion=yes ;;
1439 
1440   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1441   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1442   | --oldin | --oldi | --old | --ol | --o)
1443     ac_prev=oldincludedir ;;
1444   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1445   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1446   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1447     oldincludedir=$ac_optarg ;;
1448 
1449   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1450     ac_prev=prefix ;;
1451   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1452     prefix=$ac_optarg ;;
1453 
1454   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1455   | --program-pre | --program-pr | --program-p)
1456     ac_prev=program_prefix ;;
1457   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1458   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1459     program_prefix=$ac_optarg ;;
1460 
1461   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1462   | --program-suf | --program-su | --program-s)
1463     ac_prev=program_suffix ;;
1464   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1465   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1466     program_suffix=$ac_optarg ;;
1467 
1468   -program-transform-name | --program-transform-name \
1469   | --program-transform-nam | --program-transform-na \
1470   | --program-transform-n | --program-transform- \
1471   | --program-transform | --program-transfor \
1472   | --program-transfo | --program-transf \
1473   | --program-trans | --program-tran \
1474   | --progr-tra | --program-tr | --program-t)
1475     ac_prev=program_transform_name ;;
1476   -program-transform-name=* | --program-transform-name=* \
1477   | --program-transform-nam=* | --program-transform-na=* \
1478   | --program-transform-n=* | --program-transform-=* \
1479   | --program-transform=* | --program-transfor=* \
1480   | --program-transfo=* | --program-transf=* \
1481   | --program-trans=* | --program-tran=* \
1482   | --progr-tra=* | --program-tr=* | --program-t=*)
1483     program_transform_name=$ac_optarg ;;
1484 
1485   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1486     ac_prev=pdfdir ;;
1487   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1488     pdfdir=$ac_optarg ;;
1489 
1490   -psdir | --psdir | --psdi | --psd | --ps)
1491     ac_prev=psdir ;;
1492   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1493     psdir=$ac_optarg ;;
1494 
1495   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1496   | -silent | --silent | --silen | --sile | --sil)
1497     silent=yes ;;
1498 
1499   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1500     ac_prev=sbindir ;;
1501   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1502   | --sbi=* | --sb=*)
1503     sbindir=$ac_optarg ;;
1504 
1505   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1506   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1507   | --sharedst | --shareds | --shared | --share | --shar \
1508   | --sha | --sh)
1509     ac_prev=sharedstatedir ;;
1510   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1511   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1512   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1513   | --sha=* | --sh=*)
1514     sharedstatedir=$ac_optarg ;;
1515 
1516   -site | --site | --sit)
1517     ac_prev=site ;;
1518   -site=* | --site=* | --sit=*)
1519     site=$ac_optarg ;;
1520 
1521   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1522     ac_prev=srcdir ;;
1523   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1524     srcdir=$ac_optarg ;;
1525 
1526   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1527   | --syscon | --sysco | --sysc | --sys | --sy)
1528     ac_prev=sysconfdir ;;
1529   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1530   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1531     sysconfdir=$ac_optarg ;;
1532 
1533   -target | --target | --targe | --targ | --tar | --ta | --t)
1534     ac_prev=target_alias ;;
1535   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1536     target_alias=$ac_optarg ;;
1537 
1538   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1539     verbose=yes ;;
1540 
1541   -version | --version | --versio | --versi | --vers | -V)
1542     ac_init_version=: ;;
1543 
1544   -with-* | --with-*)
1545     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1546     # Reject names that are not valid shell variable names.
1547     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1548       as_fn_error $? "invalid package name: $ac_useropt"
1549     ac_useropt_orig=$ac_useropt
1550     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1551     case $ac_user_opts in
1552       *"
1553 "with_$ac_useropt"
1554 "*) ;;
1555       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1556          ac_unrecognized_sep=', ';;
1557     esac
1558     eval with_$ac_useropt=\$ac_optarg ;;
1559 
1560   -without-* | --without-*)
1561     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1562     # Reject names that are not valid shell variable names.
1563     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1564       as_fn_error $? "invalid package name: $ac_useropt"
1565     ac_useropt_orig=$ac_useropt
1566     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567     case $ac_user_opts in
1568       *"
1569 "with_$ac_useropt"
1570 "*) ;;
1571       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1572          ac_unrecognized_sep=', ';;
1573     esac
1574     eval with_$ac_useropt=no ;;
1575 
1576   --x)
1577     # Obsolete; use --with-x.
1578     with_x=yes ;;
1579 
1580   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1581   | --x-incl | --x-inc | --x-in | --x-i)
1582     ac_prev=x_includes ;;
1583   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1584   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1585     x_includes=$ac_optarg ;;
1586 
1587   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1588   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1589     ac_prev=x_libraries ;;
1590   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1591   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1592     x_libraries=$ac_optarg ;;
1593 
1594   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1595 Try \`$0 --help' for more information"
1596     ;;
1597 
1598   *=*)
1599     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1600     # Reject names that are not valid shell variable names.
1601     case $ac_envvar in #(
1602       '' | [0-9]* | *[!_$as_cr_alnum]* )
1603       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1604     esac
1605     eval $ac_envvar=\$ac_optarg
1606     export $ac_envvar ;;
1607 
1608   *)
1609     # FIXME: should be removed in autoconf 3.0.
1610     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1611     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1612       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1613     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1614     ;;
1615 
1616   esac
1617 done
1618 
1619 if test -n "$ac_prev"; then
1620   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1621   as_fn_error $? "missing argument to $ac_option"
1622 fi
1623 
1624 if test -n "$ac_unrecognized_opts"; then
1625   case $enable_option_checking in
1626     no) ;;
1627     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1628     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1629   esac
1630 fi
1631 
1632 # Check all directory arguments for consistency.
1633 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1634                 datadir sysconfdir sharedstatedir localstatedir includedir \
1635                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1636                 libdir localedir mandir
1637 do
1638   eval ac_val=\$$ac_var
1639   # Remove trailing slashes.
1640   case $ac_val in
1641     */ )
1642       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1643       eval $ac_var=\$ac_val;;
1644   esac
1645   # Be sure to have absolute directory names.
1646   case $ac_val in
1647     [\\/$]* | ?:[\\/]* )  continue;;
1648     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1649   esac
1650   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1651 done
1652 
1653 # There might be people who depend on the old broken behavior: `$host'
1654 # used to hold the argument of --host etc.
1655 # FIXME: To remove some day.
1656 build=$build_alias
1657 host=$host_alias
1658 target=$target_alias
1659 
1660 # FIXME: To remove some day.
1661 if test "x$host_alias" != x; then
1662   if test "x$build_alias" = x; then
1663     cross_compiling=maybe
1664   elif test "x$build_alias" != "x$host_alias"; then
1665     cross_compiling=yes
1666   fi
1667 fi
1668 
1669 ac_tool_prefix=
1670 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1671 
1672 test "$silent" = yes && exec 6>/dev/null
1673 
1674 
1675 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1676 ac_ls_di=`ls -di .` &&
1677 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1678   as_fn_error $? "working directory cannot be determined"
1679 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1680   as_fn_error $? "pwd does not report name of working directory"
1681 
1682 
1683 # Find the source files, if location was not specified.
1684 if test -z "$srcdir"; then
1685   ac_srcdir_defaulted=yes
1686   # Try the directory containing this script, then the parent directory.
1687   ac_confdir=`$as_dirname -- "$as_myself" ||
1688 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1689          X"$as_myself" : 'X\(//\)[^/]' \| \
1690          X"$as_myself" : 'X\(//\)$' \| \
1691          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1692 $as_echo X"$as_myself" |
1693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1694             s//\1/
1695             q
1696           }
1697           /^X\(\/\/\)[^/].*/{
1698             s//\1/
1699             q
1700           }
1701           /^X\(\/\/\)$/{
1702             s//\1/
1703             q
1704           }
1705           /^X\(\/\).*/{
1706             s//\1/
1707             q
1708           }
1709           s/.*/./; q'`
1710   srcdir=$ac_confdir
1711   if test ! -r "$srcdir/$ac_unique_file"; then
1712     srcdir=..
1713   fi
1714 else
1715   ac_srcdir_defaulted=no
1716 fi
1717 if test ! -r "$srcdir/$ac_unique_file"; then
1718   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1719   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1720 fi
1721 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1722 ac_abs_confdir=`(
1723         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1724         pwd)`
1725 # When building in place, set srcdir=.
1726 if test "$ac_abs_confdir" = "$ac_pwd"; then
1727   srcdir=.
1728 fi
1729 # Remove unnecessary trailing slashes from srcdir.
1730 # Double slashes in file names in object file debugging info
1731 # mess up M-x gdb in Emacs.
1732 case $srcdir in
1733 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1734 esac
1735 for ac_var in $ac_precious_vars; do
1736   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1737   eval ac_env_${ac_var}_value=\$${ac_var}
1738   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1739   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1740 done
1741 
1742 #
1743 # Report the --help message.
1744 #
1745 if test "$ac_init_help" = "long"; then
1746   # Omit some internal or obsolete options to make the list less imposing.
1747   # This message is too long to be a string in the A/UX 3.1 sh.
1748   cat <<_ACEOF
1749 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1750 
1751 Usage: $0 [OPTION]... [VAR=VALUE]...
1752 
1753 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1754 VAR=VALUE.  See below for descriptions of some of the useful variables.
1755 
1756 Defaults for the options are specified in brackets.
1757 
1758 Configuration:
1759   -h, --help              display this help and exit
1760       --help=short        display options specific to this package
1761       --help=recursive    display the short help of all the included packages
1762   -V, --version           display version information and exit
1763   -q, --quiet, --silent   do not print \`checking ...' messages
1764       --cache-file=FILE   cache test results in FILE [disabled]
1765   -C, --config-cache      alias for \`--cache-file=config.cache'
1766   -n, --no-create         do not create output files
1767       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1768 
1769 Installation directories:
1770   --prefix=PREFIX         install architecture-independent files in PREFIX
1771                           [$ac_default_prefix]
1772   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1773                           [PREFIX]
1774 
1775 By default, \`make install' will install all the files in
1776 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1777 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1778 for instance \`--prefix=\$HOME'.
1779 
1780 For better control, use the options below.
1781 
1782 Fine tuning of the installation directories:
1783   --bindir=DIR            user executables [EPREFIX/bin]
1784   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1785   --libexecdir=DIR        program executables [EPREFIX/libexec]
1786   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1787   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1788   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1789   --libdir=DIR            object code libraries [EPREFIX/lib]
1790   --includedir=DIR        C header files [PREFIX/include]
1791   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1792   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1793   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1794   --infodir=DIR           info documentation [DATAROOTDIR/info]
1795   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1796   --mandir=DIR            man documentation [DATAROOTDIR/man]
1797   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1798   --htmldir=DIR           html documentation [DOCDIR]
1799   --dvidir=DIR            dvi documentation [DOCDIR]
1800   --pdfdir=DIR            pdf documentation [DOCDIR]
1801   --psdir=DIR             ps documentation [DOCDIR]
1802 _ACEOF
1803 
1804   cat <<\_ACEOF
1805 
1806 X features:
1807   --x-includes=DIR    X include files are in DIR
1808   --x-libraries=DIR   X library files are in DIR
1809 
1810 System types:
1811   --build=BUILD     configure for building on BUILD [guessed]
1812   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1813   --target=TARGET   configure for building compilers for TARGET [HOST]
1814 _ACEOF
1815 fi
1816 
1817 if test -n "$ac_init_help"; then
1818   case $ac_init_help in
1819      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1820    esac
1821   cat <<\_ACEOF
1822 
1823 Optional Features:
1824   --disable-option-checking  ignore unrecognized --enable/--with options
1825   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1826   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1827   --enable-openjdk-only   suppress building custom source even if present
1828                           [disabled]
1829   --enable-debug          set the debug level to fastdebug (shorthand for
1830                           --with-debug-level=fastdebug) [disabled]
1831   --disable-headful       disable building headful support (graphical UI
1832                           support) [enabled]
1833   --enable-hotspot-test-in-build
1834                           run the Queens test after Hotspot build [disabled]
1835   --enable-unlimited-crypto
1836                           Enable unlimited crypto policy [disabled]
1837   --disable-debug-symbols disable generation of debug symbols [enabled]
1838   --disable-zip-debug-info
1839                           disable zipping of debug-info files [enabled]
1840   --enable-macosx-runtime-support
1841                           Deprecated. Option is kept for backwards
1842                           compatibility and is ignored
1843   --disable-freetype-bundling
1844                           disable bundling of the freetype library with the
1845                           build result [enabled on Windows or when using
1846                           --with-freetype, disabled otherwise]
1847   --enable-sjavac         use sjavac to do fast incremental compiles
1848                           [disabled]
1849   --disable-precompiled-headers
1850                           disable using precompiled headers when compiling C++
1851                           [enabled]
1852   --enable-ccache         enable using ccache to speed up recompilations
1853                           [disabled]
1854 
1855 Optional Packages:
1856   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1857   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1858   --with-custom-make-dir  use this directory for custom build/make files
1859   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1860                           support it), e.g. --with-target-bits=32 [guessed]
1861   --with-jdk-variant      JDK variant to build (normal) [normal]
1862   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1863   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1864                           client, minimal1, kernel, zero, zeroshark, core)
1865                           [server]
1866   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1867                           [release]
1868   --with-devkit           use this devkit for compilers, tools and resources
1869   --with-sys-root         alias for --with-sysroot for backwards compatability
1870   --with-sysroot          use this directory as sysroot)
1871   --with-tools-dir        alias for --with-toolchain-path for backwards
1872                           compatibility
1873   --with-toolchain-path   prepend these directories when searching for
1874                           toolchain binaries (compilers etc)
1875   --with-extra-path       prepend these directories to the default path
1876   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1877                           10.9 and later)
1878   --with-conf-name        use this as the name of the configuration [generated
1879                           from important configuration options]
1880   --with-builddeps-conf   use this configuration file for the builddeps
1881   --with-builddeps-server download and use build dependencies from this server
1882                           url
1883   --with-builddeps-dir    store downloaded build dependencies here
1884                           [/localhome/builddeps]
1885   --with-builddeps-group  chgrp the downloaded build dependencies to this
1886                           group
1887   --with-cacerts-file     specify alternative cacerts file
1888   --with-milestone        Set milestone value for build [internal]
1889   --with-update-version   Set update version value for build [b00]
1890   --with-user-release-suffix
1891                           Add a custom string to the version string if build
1892                           number isn't set.[username_builddateb00]
1893   --with-build-number     Set build number value for build [b00]
1894   --with-vendor-name      Set vendor name [not specified]
1895   --with-copyright-year   Set copyright year value for build [current year]
1896   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1897   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1898                           invocations of the Boot JDK, overriding the default
1899                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1900                           -enableassertions"
1901   --with-add-source-root  for each and every source directory, look in this
1902                           additional source root for the same directory; if it
1903                           exists and have files in it, include it in the build
1904   --with-override-source-root
1905                           for each and every source directory, look in this
1906                           override source root for the same directory; if it
1907                           exists, use that directory instead and ignore the
1908                           directory in the original source root
1909   --with-adds-and-overrides
1910                           use the subdirs 'adds' and 'overrides' in the
1911                           specified directory as add-source-root and
1912                           override-source-root
1913   --with-override-langtools
1914                           use this langtools dir for the build
1915   --with-override-corba   use this corba dir for the build
1916   --with-override-jaxp    use this jaxp dir for the build
1917   --with-override-jaxws   use this jaxws dir for the build
1918   --with-override-hotspot use this hotspot dir for the build
1919   --with-override-nashorn use this nashorn dir for the build
1920   --with-override-jdk     use this jdk dir for the build
1921   --with-import-hotspot   import hotspot binaries from this jdk image or
1922                           hotspot build dist dir instead of building from
1923                           source
1924   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1925                           to show possible values [platform dependent]
1926   --with-toolchain-version
1927                           the version of the toolchain to look for, use
1928                           '--help' to show possible values [platform
1929                           dependent]
1930   --with-jtreg            Regression Test Harness [probed]
1931   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1932   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1933   --with-extra-ldflags    extra flags to be used when linking jdk
1934   --with-native-debug-symbols
1935                           set the native debug symbol configuration (none,
1936                           internal, external, zipped) [varying]
1937   --with-x                use the X Window System
1938   --with-cups             specify prefix directory for the cups package
1939                           (expecting the headers under PATH/include)
1940   --with-cups-include     specify directory for the cups include files
1941   --with-freetype         specify prefix directory for the freetype package
1942                           (expecting the libraries under PATH/lib and the
1943                           headers under PATH/include)
1944   --with-freetype-include specify directory for the freetype include files
1945   --with-freetype-lib     specify directory for the freetype library
1946   --with-freetype-src     specify directory with freetype sources to
1947                           automatically build the library (experimental,
1948                           Windows-only)
1949   --with-alsa             specify prefix directory for the alsa package
1950                           (expecting the libraries under PATH/lib and the
1951                           headers under PATH/include)
1952   --with-alsa-include     specify directory for the alsa include files
1953   --with-alsa-lib         specify directory for the alsa library
1954   --with-fontconfig       specify prefix directory for the fontconfig package
1955                           (expecting the headers under PATH/include)
1956   --with-fontconfig-include
1957                           specify directory for the fontconfig include files
1958   --with-giflib           use giflib from build system or OpenJDK source
1959                           (system, bundled) [bundled]
1960   --with-zlib             use zlib from build system or OpenJDK source
1961                           (system, bundled) [bundled]
1962   --with-stdc++lib=<static>,<dynamic>,<default>
1963                           force linking of the C++ runtime on Linux to either
1964                           static or dynamic, default is static with dynamic as
1965                           fallback
1966   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1967                           (Windows only) [probed]
1968   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1969                           (Windows only) [probed]
1970   --with-ucrt-dll-dir     path to Microsoft Windows Kit UCRT DLL dir (Windows
1971                           only) [probed]
1972   --with-dxsdk            Deprecated. Option is kept for backwards
1973                           compatibility and is ignored
1974   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1975                           compatibility and is ignored
1976   --with-dxsdk-include    Deprecated. Option is kept for backwards
1977                           compatibility and is ignored
1978   --with-num-cores        number of cores in the build system, e.g.
1979                           --with-num-cores=8 [probed]
1980   --with-memory-size      memory (in MB) available in the build system, e.g.
1981                           --with-memory-size=1024 [probed]
1982   --with-jobs             number of parallel jobs to let make run [calculated
1983                           based on cores and memory]
1984   --with-sjavac-server-java
1985                           use this java binary for running the sjavac
1986                           background server [Boot JDK java]
1987   --with-ccache-dir       where to store ccache files [~/.ccache]
1988 
1989 Some influential environment variables:
1990   BASENAME    Override default value for BASENAME
1991   BASH        Override default value for BASH
1992   CAT         Override default value for CAT
1993   CHMOD       Override default value for CHMOD
1994   CMP         Override default value for CMP
1995   COMM        Override default value for COMM
1996   CP          Override default value for CP
1997   CUT         Override default value for CUT
1998   DATE        Override default value for DATE
1999   DIFF        Override default value for DIFF
2000   DIRNAME     Override default value for DIRNAME
2001   ECHO        Override default value for ECHO
2002   EXPR        Override default value for EXPR
2003   FILE        Override default value for FILE
2004   FIND        Override default value for FIND
2005   HEAD        Override default value for HEAD
2006   LN          Override default value for LN
2007   LS          Override default value for LS
2008   MKDIR       Override default value for MKDIR
2009   MKTEMP      Override default value for MKTEMP
2010   MV          Override default value for MV
2011   NAWK        Override default value for NAWK
2012   PRINTF      Override default value for PRINTF
2013   RM          Override default value for RM
2014   SH          Override default value for SH
2015   SORT        Override default value for SORT
2016   TAIL        Override default value for TAIL
2017   TAR         Override default value for TAR
2018   TEE         Override default value for TEE
2019   TOUCH       Override default value for TOUCH
2020   TR          Override default value for TR
2021   UNAME       Override default value for UNAME
2022   UNIQ        Override default value for UNIQ
2023   WC          Override default value for WC
2024   WHICH       Override default value for WHICH
2025   XARGS       Override default value for XARGS
2026   AWK         Override default value for AWK
2027   GREP        Override default value for GREP
2028   EGREP       Override default value for EGREP
2029   FGREP       Override default value for FGREP
2030   SED         Override default value for SED
2031   CYGPATH     Override default value for CYGPATH
2032   READLINK    Override default value for READLINK
2033   DF          Override default value for DF
2034   SETFILE     Override default value for SETFILE
2035   CPIO        Override default value for CPIO
2036   UNZIP       Override default value for UNZIP
2037   ZIP         Override default value for ZIP
2038   LDD         Override default value for LDD
2039   READELF     Override default value for READELF
2040   HG          Override default value for HG
2041   STAT        Override default value for STAT
2042   TIME        Override default value for TIME
2043   DSYMUTIL    Override default value for DSYMUTIL
2044   XATTR       Override default value for XATTR
2045   CODESIGN    Override default value for CODESIGN
2046   PKG_CONFIG  path to pkg-config utility
2047   CC          C compiler command
2048   CFLAGS      C compiler flags
2049   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2050               nonstandard directory <lib dir>
2051   LIBS        libraries to pass to the linker, e.g. -l<library>
2052   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2053               you have headers in a nonstandard directory <include dir>
2054   CXX         C++ compiler command
2055   CXXFLAGS    C++ compiler flags
2056   CPP         C preprocessor
2057   CXXCPP      C++ preprocessor
2058   AS          Override default value for AS
2059   AR          Override default value for AR
2060   OBJC        Objective C compiler command
2061   OBJCFLAGS   Objective C compiler flags
2062   LIPO        Override default value for LIPO
2063   STRIP       Override default value for STRIP
2064   NM          Override default value for NM
2065   GNM         Override default value for GNM
2066   MCS         Override default value for MCS
2067   OBJCOPY     Override default value for OBJCOPY
2068   OBJDUMP     Override default value for OBJDUMP
2069   BUILD_CC    Override default value for BUILD_CC
2070   BUILD_CXX   Override default value for BUILD_CXX
2071   BUILD_LD    Override default value for BUILD_LD
2072   JTREGEXE    Override default value for JTREGEXE
2073   XMKMF       Path to xmkmf, Makefile generator for X Window System
2074   FREETYPE_CFLAGS
2075               C compiler flags for FREETYPE, overriding pkg-config
2076   FREETYPE_LIBS
2077               linker flags for FREETYPE, overriding pkg-config
2078   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2079   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2080   LIBFFI_CFLAGS
2081               C compiler flags for LIBFFI, overriding pkg-config
2082   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2083   CCACHE      Override default value for CCACHE
2084 
2085 Use these variables to override the choices made by `configure' or to help
2086 it to find libraries and programs with nonstandard names/locations.
2087 
2088 Report bugs to <build-dev@openjdk.java.net>.
2089 OpenJDK home page: <http://openjdk.java.net>.
2090 _ACEOF
2091 ac_status=$?
2092 fi
2093 
2094 if test "$ac_init_help" = "recursive"; then
2095   # If there are subdirs, report their specific --help.
2096   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2097     test -d "$ac_dir" ||
2098       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2099       continue
2100     ac_builddir=.
2101 
2102 case "$ac_dir" in
2103 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2104 *)
2105   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2106   # A ".." for each directory in $ac_dir_suffix.
2107   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2108   case $ac_top_builddir_sub in
2109   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2110   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2111   esac ;;
2112 esac
2113 ac_abs_top_builddir=$ac_pwd
2114 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2115 # for backward compatibility:
2116 ac_top_builddir=$ac_top_build_prefix
2117 
2118 case $srcdir in
2119   .)  # We are building in place.
2120     ac_srcdir=.
2121     ac_top_srcdir=$ac_top_builddir_sub
2122     ac_abs_top_srcdir=$ac_pwd ;;
2123   [\\/]* | ?:[\\/]* )  # Absolute name.
2124     ac_srcdir=$srcdir$ac_dir_suffix;
2125     ac_top_srcdir=$srcdir
2126     ac_abs_top_srcdir=$srcdir ;;
2127   *) # Relative name.
2128     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2129     ac_top_srcdir=$ac_top_build_prefix$srcdir
2130     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2131 esac
2132 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2133 
2134     cd "$ac_dir" || { ac_status=$?; continue; }
2135     # Check for guested configure.
2136     if test -f "$ac_srcdir/configure.gnu"; then
2137       echo &&
2138       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2139     elif test -f "$ac_srcdir/configure"; then
2140       echo &&
2141       $SHELL "$ac_srcdir/configure" --help=recursive
2142     else
2143       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2144     fi || ac_status=$?
2145     cd "$ac_pwd" || { ac_status=$?; break; }
2146   done
2147 fi
2148 
2149 test -n "$ac_init_help" && exit $ac_status
2150 if $ac_init_version; then
2151   cat <<\_ACEOF
2152 OpenJDK configure jdk8
2153 generated by GNU Autoconf 2.69
2154 
2155 Copyright (C) 2012 Free Software Foundation, Inc.
2156 This configure script is free software; the Free Software Foundation
2157 gives unlimited permission to copy, distribute and modify it.
2158 _ACEOF
2159   exit
2160 fi
2161 
2162 ## ------------------------ ##
2163 ## Autoconf initialization. ##
2164 ## ------------------------ ##
2165 
2166 # ac_fn_c_try_compile LINENO
2167 # --------------------------
2168 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2169 ac_fn_c_try_compile ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   rm -f conftest.$ac_objext
2173   if { { ac_try="$ac_compile"
2174 case "(($ac_try" in
2175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176   *) ac_try_echo=$ac_try;;
2177 esac
2178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179 $as_echo "$ac_try_echo"; } >&5
2180   (eval "$ac_compile") 2>conftest.err
2181   ac_status=$?
2182   if test -s conftest.err; then
2183     grep -v '^ *+' conftest.err >conftest.er1
2184     cat conftest.er1 >&5
2185     mv -f conftest.er1 conftest.err
2186   fi
2187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188   test $ac_status = 0; } && {
2189          test -z "$ac_c_werror_flag" ||
2190          test ! -s conftest.err
2191        } && test -s conftest.$ac_objext; then :
2192   ac_retval=0
2193 else
2194   $as_echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196 
2197         ac_retval=1
2198 fi
2199   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200   as_fn_set_status $ac_retval
2201 
2202 } # ac_fn_c_try_compile
2203 
2204 # ac_fn_cxx_try_compile LINENO
2205 # ----------------------------
2206 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2207 ac_fn_cxx_try_compile ()
2208 {
2209   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210   rm -f conftest.$ac_objext
2211   if { { ac_try="$ac_compile"
2212 case "(($ac_try" in
2213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214   *) ac_try_echo=$ac_try;;
2215 esac
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218   (eval "$ac_compile") 2>conftest.err
2219   ac_status=$?
2220   if test -s conftest.err; then
2221     grep -v '^ *+' conftest.err >conftest.er1
2222     cat conftest.er1 >&5
2223     mv -f conftest.er1 conftest.err
2224   fi
2225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226   test $ac_status = 0; } && {
2227          test -z "$ac_cxx_werror_flag" ||
2228          test ! -s conftest.err
2229        } && test -s conftest.$ac_objext; then :
2230   ac_retval=0
2231 else
2232   $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234 
2235         ac_retval=1
2236 fi
2237   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238   as_fn_set_status $ac_retval
2239 
2240 } # ac_fn_cxx_try_compile
2241 
2242 # ac_fn_c_try_cpp LINENO
2243 # ----------------------
2244 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2245 ac_fn_c_try_cpp ()
2246 {
2247   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248   if { { ac_try="$ac_cpp conftest.$ac_ext"
2249 case "(($ac_try" in
2250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251   *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2256   ac_status=$?
2257   if test -s conftest.err; then
2258     grep -v '^ *+' conftest.err >conftest.er1
2259     cat conftest.er1 >&5
2260     mv -f conftest.er1 conftest.err
2261   fi
2262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263   test $ac_status = 0; } > conftest.i && {
2264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2265          test ! -s conftest.err
2266        }; then :
2267   ac_retval=0
2268 else
2269   $as_echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271 
2272     ac_retval=1
2273 fi
2274   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275   as_fn_set_status $ac_retval
2276 
2277 } # ac_fn_c_try_cpp
2278 
2279 # ac_fn_cxx_try_cpp LINENO
2280 # ------------------------
2281 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2282 ac_fn_cxx_try_cpp ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   if { { ac_try="$ac_cpp conftest.$ac_ext"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2293   ac_status=$?
2294   if test -s conftest.err; then
2295     grep -v '^ *+' conftest.err >conftest.er1
2296     cat conftest.er1 >&5
2297     mv -f conftest.er1 conftest.err
2298   fi
2299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300   test $ac_status = 0; } > conftest.i && {
2301          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2302          test ! -s conftest.err
2303        }; then :
2304   ac_retval=0
2305 else
2306   $as_echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308 
2309     ac_retval=1
2310 fi
2311   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312   as_fn_set_status $ac_retval
2313 
2314 } # ac_fn_cxx_try_cpp
2315 
2316 # ac_fn_objc_try_compile LINENO
2317 # -----------------------------
2318 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2319 ac_fn_objc_try_compile ()
2320 {
2321   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322   rm -f conftest.$ac_objext
2323   if { { ac_try="$ac_compile"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2329 $as_echo "$ac_try_echo"; } >&5
2330   (eval "$ac_compile") 2>conftest.err
2331   ac_status=$?
2332   if test -s conftest.err; then
2333     grep -v '^ *+' conftest.err >conftest.er1
2334     cat conftest.er1 >&5
2335     mv -f conftest.er1 conftest.err
2336   fi
2337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338   test $ac_status = 0; } && {
2339          test -z "$ac_objc_werror_flag" ||
2340          test ! -s conftest.err
2341        } && test -s conftest.$ac_objext; then :
2342   ac_retval=0
2343 else
2344   $as_echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346 
2347         ac_retval=1
2348 fi
2349   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350   as_fn_set_status $ac_retval
2351 
2352 } # ac_fn_objc_try_compile
2353 
2354 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2355 # ---------------------------------------------------------
2356 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2357 # the include files in INCLUDES and setting the cache variable VAR
2358 # accordingly.
2359 ac_fn_cxx_check_header_mongrel ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   if eval \${$3+:} false; then :
2363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2364 $as_echo_n "checking for $2... " >&6; }
2365 if eval \${$3+:} false; then :
2366   $as_echo_n "(cached) " >&6
2367 fi
2368 eval ac_res=\$$3
2369                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 else
2372   # Is the header compilable?
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2374 $as_echo_n "checking $2 usability... " >&6; }
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h.  */
2377 $4
2378 #include <$2>
2379 _ACEOF
2380 if ac_fn_cxx_try_compile "$LINENO"; then :
2381   ac_header_compiler=yes
2382 else
2383   ac_header_compiler=no
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2387 $as_echo "$ac_header_compiler" >&6; }
2388 
2389 # Is the header present?
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2391 $as_echo_n "checking $2 presence... " >&6; }
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h.  */
2394 #include <$2>
2395 _ACEOF
2396 if ac_fn_cxx_try_cpp "$LINENO"; then :
2397   ac_header_preproc=yes
2398 else
2399   ac_header_preproc=no
2400 fi
2401 rm -f conftest.err conftest.i conftest.$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2403 $as_echo "$ac_header_preproc" >&6; }
2404 
2405 # So?  What about this header?
2406 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2407   yes:no: )
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2409 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2410     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2411 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2412     ;;
2413   no:yes:* )
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2415 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2416     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2417 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2419 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2420     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2421 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2422     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2423 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2424 ( $as_echo "## ----------------------------------------- ##
2425 ## Report this to build-dev@openjdk.java.net ##
2426 ## ----------------------------------------- ##"
2427      ) | sed "s/^/$as_me: WARNING:     /" >&2
2428     ;;
2429 esac
2430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2431 $as_echo_n "checking for $2... " >&6; }
2432 if eval \${$3+:} false; then :
2433   $as_echo_n "(cached) " >&6
2434 else
2435   eval "$3=\$ac_header_compiler"
2436 fi
2437 eval ac_res=\$$3
2438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 fi
2441   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442 
2443 } # ac_fn_cxx_check_header_mongrel
2444 
2445 # ac_fn_cxx_try_run LINENO
2446 # ------------------------
2447 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2448 # that executables *can* be run.
2449 ac_fn_cxx_try_run ()
2450 {
2451   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452   if { { ac_try="$ac_link"
2453 case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459   (eval "$ac_link") 2>&5
2460   ac_status=$?
2461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2462   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2463   { { case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2468 $as_echo "$ac_try_echo"; } >&5
2469   (eval "$ac_try") 2>&5
2470   ac_status=$?
2471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2472   test $ac_status = 0; }; }; then :
2473   ac_retval=0
2474 else
2475   $as_echo "$as_me: program exited with status $ac_status" >&5
2476        $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478 
2479        ac_retval=$ac_status
2480 fi
2481   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2482   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483   as_fn_set_status $ac_retval
2484 
2485 } # ac_fn_cxx_try_run
2486 
2487 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2488 # ---------------------------------------------------------
2489 # Tests whether HEADER exists and can be compiled using the include files in
2490 # INCLUDES, setting the cache variable VAR accordingly.
2491 ac_fn_cxx_check_header_compile ()
2492 {
2493   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2495 $as_echo_n "checking for $2... " >&6; }
2496 if eval \${$3+:} false; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h.  */
2501 $4
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_cxx_try_compile "$LINENO"; then :
2505   eval "$3=yes"
2506 else
2507   eval "$3=no"
2508 fi
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 fi
2511 eval ac_res=\$$3
2512                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2515 
2516 } # ac_fn_cxx_check_header_compile
2517 
2518 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2519 # ----------------------------------------------
2520 # Tries to find the compile-time value of EXPR in a program that includes
2521 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2522 # computed
2523 ac_fn_cxx_compute_int ()
2524 {
2525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526   if test "$cross_compiling" = yes; then
2527     # Depending upon the size, compute the lo and hi bounds.
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $4
2531 int
2532 main ()
2533 {
2534 static int test_array [1 - 2 * !(($2) >= 0)];
2535 test_array [0] = 0;
2536 return test_array [0];
2537 
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 if ac_fn_cxx_try_compile "$LINENO"; then :
2543   ac_lo=0 ac_mid=0
2544   while :; do
2545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h.  */
2547 $4
2548 int
2549 main ()
2550 {
2551 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2552 test_array [0] = 0;
2553 return test_array [0];
2554 
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 if ac_fn_cxx_try_compile "$LINENO"; then :
2560   ac_hi=$ac_mid; break
2561 else
2562   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2563                         if test $ac_lo -le $ac_mid; then
2564                           ac_lo= ac_hi=
2565                           break
2566                         fi
2567                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2568 fi
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570   done
2571 else
2572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h.  */
2574 $4
2575 int
2576 main ()
2577 {
2578 static int test_array [1 - 2 * !(($2) < 0)];
2579 test_array [0] = 0;
2580 return test_array [0];
2581 
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_cxx_try_compile "$LINENO"; then :
2587   ac_hi=-1 ac_mid=-1
2588   while :; do
2589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h.  */
2591 $4
2592 int
2593 main ()
2594 {
2595 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2596 test_array [0] = 0;
2597 return test_array [0];
2598 
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 if ac_fn_cxx_try_compile "$LINENO"; then :
2604   ac_lo=$ac_mid; break
2605 else
2606   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2607                         if test $ac_mid -le $ac_hi; then
2608                           ac_lo= ac_hi=
2609                           break
2610                         fi
2611                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614   done
2615 else
2616   ac_lo= ac_hi=
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 # Binary search between lo and hi bounds.
2622 while test "x$ac_lo" != "x$ac_hi"; do
2623   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h.  */
2626 $4
2627 int
2628 main ()
2629 {
2630 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2631 test_array [0] = 0;
2632 return test_array [0];
2633 
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 if ac_fn_cxx_try_compile "$LINENO"; then :
2639   ac_hi=$ac_mid
2640 else
2641   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2642 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 done
2645 case $ac_lo in #((
2646 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2647 '') ac_retval=1 ;;
2648 esac
2649   else
2650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h.  */
2652 $4
2653 static long int longval () { return $2; }
2654 static unsigned long int ulongval () { return $2; }
2655 #include <stdio.h>
2656 #include <stdlib.h>
2657 int
2658 main ()
2659 {
2660 
2661   FILE *f = fopen ("conftest.val", "w");
2662   if (! f)
2663     return 1;
2664   if (($2) < 0)
2665     {
2666       long int i = longval ();
2667       if (i != ($2))
2668         return 1;
2669       fprintf (f, "%ld", i);
2670     }
2671   else
2672     {
2673       unsigned long int i = ulongval ();
2674       if (i != ($2))
2675         return 1;
2676       fprintf (f, "%lu", i);
2677     }
2678   /* Do not output a trailing newline, as this causes \r\n confusion
2679      on some platforms.  */
2680   return ferror (f) || fclose (f) != 0;
2681 
2682   ;
2683   return 0;
2684 }
2685 _ACEOF
2686 if ac_fn_cxx_try_run "$LINENO"; then :
2687   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2688 else
2689   ac_retval=1
2690 fi
2691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2692   conftest.$ac_objext conftest.beam conftest.$ac_ext
2693 rm -f conftest.val
2694 
2695   fi
2696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697   as_fn_set_status $ac_retval
2698 
2699 } # ac_fn_cxx_compute_int
2700 
2701 # ac_fn_cxx_try_link LINENO
2702 # -------------------------
2703 # Try to link conftest.$ac_ext, and return whether this succeeded.
2704 ac_fn_cxx_try_link ()
2705 {
2706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707   rm -f conftest.$ac_objext conftest$ac_exeext
2708   if { { ac_try="$ac_link"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714 $as_echo "$ac_try_echo"; } >&5
2715   (eval "$ac_link") 2>conftest.err
2716   ac_status=$?
2717   if test -s conftest.err; then
2718     grep -v '^ *+' conftest.err >conftest.er1
2719     cat conftest.er1 >&5
2720     mv -f conftest.er1 conftest.err
2721   fi
2722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723   test $ac_status = 0; } && {
2724          test -z "$ac_cxx_werror_flag" ||
2725          test ! -s conftest.err
2726        } && test -s conftest$ac_exeext && {
2727          test "$cross_compiling" = yes ||
2728          test -x conftest$ac_exeext
2729        }; then :
2730   ac_retval=0
2731 else
2732   $as_echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734 
2735         ac_retval=1
2736 fi
2737   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2738   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2739   # interfere with the next link command; also delete a directory that is
2740   # left behind by Apple's compiler.  We do this before executing the actions.
2741   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2743   as_fn_set_status $ac_retval
2744 
2745 } # ac_fn_cxx_try_link
2746 
2747 # ac_fn_cxx_check_func LINENO FUNC VAR
2748 # ------------------------------------
2749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2750 ac_fn_cxx_check_func ()
2751 {
2752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2754 $as_echo_n "checking for $2... " >&6; }
2755 if eval \${$3+:} false; then :
2756   $as_echo_n "(cached) " >&6
2757 else
2758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h.  */
2760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2762 #define $2 innocuous_$2
2763 
2764 /* System header to define __stub macros and hopefully few prototypes,
2765     which can conflict with char $2 (); below.
2766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2767     <limits.h> exists even on freestanding compilers.  */
2768 
2769 #ifdef __STDC__
2770 # include <limits.h>
2771 #else
2772 # include <assert.h>
2773 #endif
2774 
2775 #undef $2
2776 
2777 /* Override any GCC internal prototype to avoid an error.
2778    Use char because int might match the return type of a GCC
2779    builtin and then its argument prototype would still apply.  */
2780 #ifdef __cplusplus
2781 extern "C"
2782 #endif
2783 char $2 ();
2784 /* The GNU C library defines this for functions which it implements
2785     to always fail with ENOSYS.  Some functions are actually named
2786     something starting with __ and the normal name is an alias.  */
2787 #if defined __stub_$2 || defined __stub___$2
2788 choke me
2789 #endif
2790 
2791 int
2792 main ()
2793 {
2794 return $2 ();
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 if ac_fn_cxx_try_link "$LINENO"; then :
2800   eval "$3=yes"
2801 else
2802   eval "$3=no"
2803 fi
2804 rm -f core conftest.err conftest.$ac_objext \
2805     conftest$ac_exeext conftest.$ac_ext
2806 fi
2807 eval ac_res=\$$3
2808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2809 $as_echo "$ac_res" >&6; }
2810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2811 
2812 } # ac_fn_cxx_check_func
2813 
2814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2815 # -------------------------------------------------------
2816 # Tests whether HEADER exists and can be compiled using the include files in
2817 # INCLUDES, setting the cache variable VAR accordingly.
2818 ac_fn_c_check_header_compile ()
2819 {
2820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2822 $as_echo_n "checking for $2... " >&6; }
2823 if eval \${$3+:} false; then :
2824   $as_echo_n "(cached) " >&6
2825 else
2826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h.  */
2828 $4
2829 #include <$2>
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832   eval "$3=yes"
2833 else
2834   eval "$3=no"
2835 fi
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 fi
2838 eval ac_res=\$$3
2839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2840 $as_echo "$ac_res" >&6; }
2841   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842 
2843 } # ac_fn_c_check_header_compile
2844 cat >config.log <<_ACEOF
2845 This file contains any messages produced by compilers while
2846 running configure, to aid debugging if configure makes a mistake.
2847 
2848 It was created by OpenJDK $as_me jdk8, which was
2849 generated by GNU Autoconf 2.69.  Invocation command line was
2850 
2851   $ $0 $@
2852 
2853 _ACEOF
2854 exec 5>>config.log
2855 {
2856 cat <<_ASUNAME
2857 ## --------- ##
2858 ## Platform. ##
2859 ## --------- ##
2860 
2861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2866 
2867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2868 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2869 
2870 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2871 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2873 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2874 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2875 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2876 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2877 
2878 _ASUNAME
2879 
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883   IFS=$as_save_IFS
2884   test -z "$as_dir" && as_dir=.
2885     $as_echo "PATH: $as_dir"
2886   done
2887 IFS=$as_save_IFS
2888 
2889 } >&5
2890 
2891 cat >&5 <<_ACEOF
2892 
2893 
2894 ## ----------- ##
2895 ## Core tests. ##
2896 ## ----------- ##
2897 
2898 _ACEOF
2899 
2900 
2901 # Keep a trace of the command line.
2902 # Strip out --no-create and --no-recursion so they do not pile up.
2903 # Strip out --silent because we don't want to record it for future runs.
2904 # Also quote any args containing shell meta-characters.
2905 # Make two passes to allow for proper duplicate-argument suppression.
2906 ac_configure_args=
2907 ac_configure_args0=
2908 ac_configure_args1=
2909 ac_must_keep_next=false
2910 for ac_pass in 1 2
2911 do
2912   for ac_arg
2913   do
2914     case $ac_arg in
2915     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2916     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2917     | -silent | --silent | --silen | --sile | --sil)
2918       continue ;;
2919     *\'*)
2920       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2921     esac
2922     case $ac_pass in
2923     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2924     2)
2925       as_fn_append ac_configure_args1 " '$ac_arg'"
2926       if test $ac_must_keep_next = true; then
2927         ac_must_keep_next=false # Got value, back to normal.
2928       else
2929         case $ac_arg in
2930           *=* | --config-cache | -C | -disable-* | --disable-* \
2931           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2932           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2933           | -with-* | --with-* | -without-* | --without-* | --x)
2934             case "$ac_configure_args0 " in
2935               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2936             esac
2937             ;;
2938           -* ) ac_must_keep_next=true ;;
2939         esac
2940       fi
2941       as_fn_append ac_configure_args " '$ac_arg'"
2942       ;;
2943     esac
2944   done
2945 done
2946 { ac_configure_args0=; unset ac_configure_args0;}
2947 { ac_configure_args1=; unset ac_configure_args1;}
2948 
2949 # When interrupted or exit'd, cleanup temporary files, and complete
2950 # config.log.  We remove comments because anyway the quotes in there
2951 # would cause problems or look ugly.
2952 # WARNING: Use '\'' to represent an apostrophe within the trap.
2953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2954 trap 'exit_status=$?
2955   # Save into config.log some information that might help in debugging.
2956   {
2957     echo
2958 
2959     $as_echo "## ---------------- ##
2960 ## Cache variables. ##
2961 ## ---------------- ##"
2962     echo
2963     # The following way of writing the cache mishandles newlines in values,
2964 (
2965   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2966     eval ac_val=\$$ac_var
2967     case $ac_val in #(
2968     *${as_nl}*)
2969       case $ac_var in #(
2970       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2972       esac
2973       case $ac_var in #(
2974       _ | IFS | as_nl) ;; #(
2975       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2976       *) { eval $ac_var=; unset $ac_var;} ;;
2977       esac ;;
2978     esac
2979   done
2980   (set) 2>&1 |
2981     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2982     *${as_nl}ac_space=\ *)
2983       sed -n \
2984         "s/'\''/'\''\\\\'\'''\''/g;
2985           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2986       ;; #(
2987     *)
2988       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2989       ;;
2990     esac |
2991     sort
2992 )
2993     echo
2994 
2995     $as_echo "## ----------------- ##
2996 ## Output variables. ##
2997 ## ----------------- ##"
2998     echo
2999     for ac_var in $ac_subst_vars
3000     do
3001       eval ac_val=\$$ac_var
3002       case $ac_val in
3003       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3004       esac
3005       $as_echo "$ac_var='\''$ac_val'\''"
3006     done | sort
3007     echo
3008 
3009     if test -n "$ac_subst_files"; then
3010       $as_echo "## ------------------- ##
3011 ## File substitutions. ##
3012 ## ------------------- ##"
3013       echo
3014       for ac_var in $ac_subst_files
3015       do
3016         eval ac_val=\$$ac_var
3017         case $ac_val in
3018         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3019         esac
3020         $as_echo "$ac_var='\''$ac_val'\''"
3021       done | sort
3022       echo
3023     fi
3024 
3025     if test -s confdefs.h; then
3026       $as_echo "## ----------- ##
3027 ## confdefs.h. ##
3028 ## ----------- ##"
3029       echo
3030       cat confdefs.h
3031       echo
3032     fi
3033     test "$ac_signal" != 0 &&
3034       $as_echo "$as_me: caught signal $ac_signal"
3035     $as_echo "$as_me: exit $exit_status"
3036   } >&5
3037   rm -f core *.core core.conftest.* &&
3038     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3039     exit $exit_status
3040 ' 0
3041 for ac_signal in 1 2 13 15; do
3042   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3043 done
3044 ac_signal=0
3045 
3046 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3047 rm -f -r conftest* confdefs.h
3048 
3049 $as_echo "/* confdefs.h */" > confdefs.h
3050 
3051 # Predefined preprocessor variables.
3052 
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_NAME "$PACKAGE_NAME"
3055 _ACEOF
3056 
3057 cat >>confdefs.h <<_ACEOF
3058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3059 _ACEOF
3060 
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3063 _ACEOF
3064 
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_STRING "$PACKAGE_STRING"
3067 _ACEOF
3068 
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3071 _ACEOF
3072 
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_URL "$PACKAGE_URL"
3075 _ACEOF
3076 
3077 
3078 # Let the site file select an alternate cache file if it wants to.
3079 # Prefer an explicitly selected file to automatically selected ones.
3080 ac_site_file1=NONE
3081 ac_site_file2=NONE
3082 if test -n "$CONFIG_SITE"; then
3083   # We do not want a PATH search for config.site.
3084   case $CONFIG_SITE in #((
3085     -*)  ac_site_file1=./$CONFIG_SITE;;
3086     */*) ac_site_file1=$CONFIG_SITE;;
3087     *)   ac_site_file1=./$CONFIG_SITE;;
3088   esac
3089 elif test "x$prefix" != xNONE; then
3090   ac_site_file1=$prefix/share/config.site
3091   ac_site_file2=$prefix/etc/config.site
3092 else
3093   ac_site_file1=$ac_default_prefix/share/config.site
3094   ac_site_file2=$ac_default_prefix/etc/config.site
3095 fi
3096 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3097 do
3098   test "x$ac_site_file" = xNONE && continue
3099   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3100     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3101 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3102     sed 's/^/| /' "$ac_site_file" >&5
3103     . "$ac_site_file" \
3104       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $? "failed to load site script $ac_site_file
3107 See \`config.log' for more details" "$LINENO" 5; }
3108   fi
3109 done
3110 
3111 if test -r "$cache_file"; then
3112   # Some versions of bash will fail to source /dev/null (special files
3113   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3114   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3115     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3116 $as_echo "$as_me: loading cache $cache_file" >&6;}
3117     case $cache_file in
3118       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3119       *)                      . "./$cache_file";;
3120     esac
3121   fi
3122 else
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3124 $as_echo "$as_me: creating cache $cache_file" >&6;}
3125   >$cache_file
3126 fi
3127 
3128 # Check that the precious variables saved in the cache have kept the same
3129 # value.
3130 ac_cache_corrupted=false
3131 for ac_var in $ac_precious_vars; do
3132   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3133   eval ac_new_set=\$ac_env_${ac_var}_set
3134   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3135   eval ac_new_val=\$ac_env_${ac_var}_value
3136   case $ac_old_set,$ac_new_set in
3137     set,)
3138       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3139 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3140       ac_cache_corrupted=: ;;
3141     ,set)
3142       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3143 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3144       ac_cache_corrupted=: ;;
3145     ,);;
3146     *)
3147       if test "x$ac_old_val" != "x$ac_new_val"; then
3148         # differences in whitespace do not lead to failure.
3149         ac_old_val_w=`echo x $ac_old_val`
3150         ac_new_val_w=`echo x $ac_new_val`
3151         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3152           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3153 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3154           ac_cache_corrupted=:
3155         else
3156           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3157 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3158           eval $ac_var=\$ac_old_val
3159         fi
3160         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3161 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3162         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3163 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3164       fi;;
3165   esac
3166   # Pass precious variables to config.status.
3167   if test "$ac_new_set" = set; then
3168     case $ac_new_val in
3169     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3170     *) ac_arg=$ac_var=$ac_new_val ;;
3171     esac
3172     case " $ac_configure_args " in
3173       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3174       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3175     esac
3176   fi
3177 done
3178 if $ac_cache_corrupted; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3182 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3183   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3184 fi
3185 ## -------------------- ##
3186 ## Main body of script. ##
3187 ## -------------------- ##
3188 
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 
3195 
3196 
3197 ac_aux_dir=
3198 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3199   if test -f "$ac_dir/install-sh"; then
3200     ac_aux_dir=$ac_dir
3201     ac_install_sh="$ac_aux_dir/install-sh -c"
3202     break
3203   elif test -f "$ac_dir/install.sh"; then
3204     ac_aux_dir=$ac_dir
3205     ac_install_sh="$ac_aux_dir/install.sh -c"
3206     break
3207   elif test -f "$ac_dir/shtool"; then
3208     ac_aux_dir=$ac_dir
3209     ac_install_sh="$ac_aux_dir/shtool install -c"
3210     break
3211   fi
3212 done
3213 if test -z "$ac_aux_dir"; then
3214   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
3215 fi
3216 
3217 # These three variables are undocumented and unsupported,
3218 # and are intended to be withdrawn in a future Autoconf release.
3219 # They can cause serious problems if a builder's source tree is in a directory
3220 # whose full name contains unusual characters.
3221 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3222 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3223 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3224 
3225 
3226 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3227 
3228 #
3229 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3230 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3231 #
3232 # This code is free software; you can redistribute it and/or modify it
3233 # under the terms of the GNU General Public License version 2 only, as
3234 # published by the Free Software Foundation.  Oracle designates this
3235 # particular file as subject to the "Classpath" exception as provided
3236 # by Oracle in the LICENSE file that accompanied this code.
3237 #
3238 # This code is distributed in the hope that it will be useful, but WITHOUT
3239 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3240 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3241 # version 2 for more details (a copy is included in the LICENSE file that
3242 # accompanied this code).
3243 #
3244 # You should have received a copy of the GNU General Public License version
3245 # 2 along with this work; if not, write to the Free Software Foundation,
3246 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3247 #
3248 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3249 # or visit www.oracle.com if you need additional information or have any
3250 # questions.
3251 #
3252 
3253 #
3254 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3255 #
3256 # This program is free software; you can redistribute it and/or modify
3257 # it under the terms of the GNU General Public License as published by
3258 # the Free Software Foundation; either version 2 of the License, or
3259 # (at your option) any later version.
3260 #
3261 # This program is distributed in the hope that it will be useful, but
3262 # WITHOUT ANY WARRANTY; without even the implied warranty of
3263 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3264 # General Public License for more details.
3265 #
3266 # You should have received a copy of the GNU General Public License
3267 # along with this program; if not, write to the Free Software
3268 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3269 #
3270 # As a special exception to the GNU General Public License, if you
3271 # distribute this file as part of a program that contains a
3272 # configuration script generated by Autoconf, you may include it under
3273 # the same distribution terms that you use for the rest of that program.
3274 
3275 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3276 # ----------------------------------
3277 # PKG_PROG_PKG_CONFIG
3278 
3279 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3280 #
3281 # Check to see whether a particular set of modules exists.  Similar
3282 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3283 #
3284 #
3285 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3286 # this or PKG_CHECK_MODULES is called, or make sure to call
3287 # PKG_CHECK_EXISTS manually
3288 # --------------------------------------------------------------
3289 
3290 
3291 
3292 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3293 # ---------------------------------------------
3294 # _PKG_CONFIG
3295 
3296 # _PKG_SHORT_ERRORS_SUPPORTED
3297 # -----------------------------
3298 # _PKG_SHORT_ERRORS_SUPPORTED
3299 
3300 
3301 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3302 # [ACTION-IF-NOT-FOUND])
3303 #
3304 #
3305 # Note that if there is a possibility the first call to
3306 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3307 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3308 #
3309 #
3310 # --------------------------------------------------------------
3311 # PKG_CHECK_MODULES
3312 
3313 
3314 # Include these first...
3315 #
3316 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3317 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3318 #
3319 # This code is free software; you can redistribute it and/or modify it
3320 # under the terms of the GNU General Public License version 2 only, as
3321 # published by the Free Software Foundation.  Oracle designates this
3322 # particular file as subject to the "Classpath" exception as provided
3323 # by Oracle in the LICENSE file that accompanied this code.
3324 #
3325 # This code is distributed in the hope that it will be useful, but WITHOUT
3326 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3327 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3328 # version 2 for more details (a copy is included in the LICENSE file that
3329 # accompanied this code).
3330 #
3331 # You should have received a copy of the GNU General Public License version
3332 # 2 along with this work; if not, write to the Free Software Foundation,
3333 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3334 #
3335 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3336 # or visit www.oracle.com if you need additional information or have any
3337 # questions.
3338 #
3339 
3340 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3341 # If so, then append $1 to $2 \
3342 # Also set JVM_ARG_OK to true/false depending on outcome.
3343 
3344 
3345 # Appends a string to a path variable, only adding the : when needed.
3346 
3347 
3348 # Prepends a string to a path variable, only adding the : when needed.
3349 
3350 
3351 # This will make sure the given variable points to a full and proper
3352 # path. This means:
3353 # 1) There will be no spaces in the path. On posix platforms,
3354 #    spaces in the path will result in an error. On Windows,
3355 #    the path will be rewritten using short-style to be space-free.
3356 # 2) The path will be absolute, and it will be in unix-style (on
3357 #     cygwin).
3358 # $1: The name of the variable to fix
3359 
3360 
3361 # This will make sure the given variable points to a executable
3362 # with a full and proper path. This means:
3363 # 1) There will be no spaces in the path. On posix platforms,
3364 #    spaces in the path will result in an error. On Windows,
3365 #    the path will be rewritten using short-style to be space-free.
3366 # 2) The path will be absolute, and it will be in unix-style (on
3367 #     cygwin).
3368 # Any arguments given to the executable is preserved.
3369 # If the input variable does not have a directory specification, then
3370 # it need to be in the PATH.
3371 # $1: The name of the variable to fix
3372 
3373 
3374 
3375 
3376 # Register a --with argument but mark it as deprecated
3377 # $1: The name of the with argument to deprecate, not including --with-
3378 
3379 
3380 # Register a --enable argument but mark it as deprecated
3381 # $1: The name of the with argument to deprecate, not including --enable-
3382 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3383 
3384 
3385 
3386 
3387 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3388 # $1: variable to check
3389 
3390 
3391 # Check that there are no unprocessed overridden variables left.
3392 # If so, they are an incorrect argument and we will exit with an error.
3393 
3394 
3395 # Setup a tool for the given variable. If correctly specified by the user,
3396 # use that value, otherwise search for the tool using the supplied code snippet.
3397 # $1: variable to set
3398 # $2: code snippet to call to look for the tool
3399 
3400 
3401 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3402 # $1: variable to set
3403 # $2: executable name (or list of names) to look for
3404 
3405 
3406 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3407 # $1: variable to set
3408 # $2: executable name (or list of names) to look for
3409 
3410 
3411 # Like BASIC_PATH_PROGS but fails if no tool was found.
3412 # $1: variable to set
3413 # $2: executable name (or list of names) to look for
3414 
3415 
3416 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3417 # $1: variable to set
3418 # $2: autoconf macro to call to look for the special tool
3419 
3420 
3421 # Setup the most fundamental tools that relies on not much else to set up,
3422 # but is used by much of the early bootstrap code.
3423 
3424 
3425 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3426 
3427 
3428 # Evaluates platform specific overrides for devkit variables.
3429 # $1: Name of variable
3430 
3431 
3432 
3433 
3434 
3435 
3436 
3437 
3438 
3439 #%%% Simple tools %%%
3440 
3441 # Check if we have found a usable version of make
3442 # $1: the path to a potential make binary (or empty)
3443 # $2: the description on how we found this
3444 
3445 
3446 # Goes looking for a usable version of GNU make.
3447 
3448 
3449 
3450 
3451 
3452 
3453 # Check if build directory is on local disk. If not possible to determine,
3454 # we prefer to claim it's local.
3455 # Argument 1: directory to test
3456 # Argument 2: what to do if it is on local disk
3457 # Argument 3: what to do otherwise (remote disk or failure)
3458 
3459 
3460 # Check that source files have basic read permissions set. This might
3461 # not be the case in cygwin in certain conditions.
3462 
3463 
3464 
3465 
3466 #
3467 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3468 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3469 #
3470 # This code is free software; you can redistribute it and/or modify it
3471 # under the terms of the GNU General Public License version 2 only, as
3472 # published by the Free Software Foundation.  Oracle designates this
3473 # particular file as subject to the "Classpath" exception as provided
3474 # by Oracle in the LICENSE file that accompanied this code.
3475 #
3476 # This code is distributed in the hope that it will be useful, but WITHOUT
3477 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3478 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3479 # version 2 for more details (a copy is included in the LICENSE file that
3480 # accompanied this code).
3481 #
3482 # You should have received a copy of the GNU General Public License version
3483 # 2 along with this work; if not, write to the Free Software Foundation,
3484 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3485 #
3486 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3487 # or visit www.oracle.com if you need additional information or have any
3488 # questions.
3489 #
3490 
3491 
3492 
3493 
3494 
3495 # Helper function which possibly converts a path using DOS-style short mode.
3496 # If so, the updated path is stored in $new_path.
3497 # $1: The path to check
3498 
3499 
3500 # Helper function which possibly converts a path using DOS-style short mode.
3501 # If so, the updated path is stored in $new_path.
3502 # $1: The path to check
3503 
3504 
3505 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3506 # and could probably be heavily simplified. However, all changes in this
3507 # area tend to need lot of testing in different scenarios, and in lack of
3508 # proper unit testing, cleaning this up has not been deemed worth the effort
3509 # at the moment.
3510 
3511 
3512 
3513 
3514 
3515 
3516 
3517 
3518 
3519 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3520 
3521 
3522 
3523 
3524 #
3525 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3526 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3527 #
3528 # This code is free software; you can redistribute it and/or modify it
3529 # under the terms of the GNU General Public License version 2 only, as
3530 # published by the Free Software Foundation.  Oracle designates this
3531 # particular file as subject to the "Classpath" exception as provided
3532 # by Oracle in the LICENSE file that accompanied this code.
3533 #
3534 # This code is distributed in the hope that it will be useful, but WITHOUT
3535 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3536 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3537 # version 2 for more details (a copy is included in the LICENSE file that
3538 # accompanied this code).
3539 #
3540 # You should have received a copy of the GNU General Public License version
3541 # 2 along with this work; if not, write to the Free Software Foundation,
3542 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3543 #
3544 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3545 # or visit www.oracle.com if you need additional information or have any
3546 # questions.
3547 #
3548 
3549 
3550 
3551 
3552 
3553 
3554 
3555 
3556 
3557 
3558 
3559 # ... then the rest
3560 #
3561 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3562 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3563 #
3564 # This code is free software; you can redistribute it and/or modify it
3565 # under the terms of the GNU General Public License version 2 only, as
3566 # published by the Free Software Foundation.  Oracle designates this
3567 # particular file as subject to the "Classpath" exception as provided
3568 # by Oracle in the LICENSE file that accompanied this code.
3569 #
3570 # This code is distributed in the hope that it will be useful, but WITHOUT
3571 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3572 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3573 # version 2 for more details (a copy is included in the LICENSE file that
3574 # accompanied this code).
3575 #
3576 # You should have received a copy of the GNU General Public License version
3577 # 2 along with this work; if not, write to the Free Software Foundation,
3578 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3579 #
3580 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3581 # or visit www.oracle.com if you need additional information or have any
3582 # questions.
3583 #
3584 
3585 # Execute the check given as argument, and verify the result
3586 # If the Boot JDK was previously found, do nothing
3587 # $1 A command line (typically autoconf macro) to execute
3588 
3589 
3590 # Test: Is bootjdk explicitely set by command line arguments?
3591 
3592 
3593 # Test: Is bootjdk available from builddeps?
3594 
3595 
3596 # Test: Is $JAVA_HOME set?
3597 
3598 
3599 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3600 
3601 
3602 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3603 
3604 
3605 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3606 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3607 # $1 = Path to directory containing jdk installations.
3608 # $2 = String to append to the found JDK directory to get the proper JDK home
3609 
3610 
3611 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3612 # environmental variable as base for where to look.
3613 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3614 
3615 
3616 # Test: Is there a JDK installed in default, well-known locations?
3617 
3618 
3619 # Check that a command-line tool in the Boot JDK is correct
3620 # $1 = name of variable to assign
3621 # $2 = name of binary
3622 
3623 
3624 ###############################################################################
3625 #
3626 # We need a Boot JDK to bootstrap the build.
3627 #
3628 
3629 
3630 
3631 
3632 
3633 #
3634 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3635 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3636 #
3637 # This code is free software; you can redistribute it and/or modify it
3638 # under the terms of the GNU General Public License version 2 only, as
3639 # published by the Free Software Foundation.  Oracle designates this
3640 # particular file as subject to the "Classpath" exception as provided
3641 # by Oracle in the LICENSE file that accompanied this code.
3642 #
3643 # This code is distributed in the hope that it will be useful, but WITHOUT
3644 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3645 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3646 # version 2 for more details (a copy is included in the LICENSE file that
3647 # accompanied this code).
3648 #
3649 # You should have received a copy of the GNU General Public License version
3650 # 2 along with this work; if not, write to the Free Software Foundation,
3651 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3652 #
3653 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3654 # or visit www.oracle.com if you need additional information or have any
3655 # questions.
3656 #
3657 
3658 
3659 
3660 
3661 
3662 
3663 
3664 
3665 
3666 
3667 
3668 
3669 
3670 
3671 
3672 
3673 
3674 
3675 
3676 
3677 #
3678 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3679 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3680 #
3681 # This code is free software; you can redistribute it and/or modify it
3682 # under the terms of the GNU General Public License version 2 only, as
3683 # published by the Free Software Foundation.  Oracle designates this
3684 # particular file as subject to the "Classpath" exception as provided
3685 # by Oracle in the LICENSE file that accompanied this code.
3686 #
3687 # This code is distributed in the hope that it will be useful, but WITHOUT
3688 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3689 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3690 # version 2 for more details (a copy is included in the LICENSE file that
3691 # accompanied this code).
3692 #
3693 # You should have received a copy of the GNU General Public License version
3694 # 2 along with this work; if not, write to the Free Software Foundation,
3695 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3696 #
3697 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3698 # or visit www.oracle.com if you need additional information or have any
3699 # questions.
3700 #
3701 
3702 
3703 
3704 
3705 
3706 # Documentation on common flags used for solstudio in HIGHEST.
3707 #
3708 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3709 #          done with care, there are some assumptions below that need to
3710 #          be understood about the use of pointers, and IEEE behavior.
3711 #
3712 # -fns: Use non-standard floating point mode (not IEEE 754)
3713 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3714 # -fsingle: Use single precision floating point with 'float'
3715 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3716 #   (Source with excessing pointer casting and data access with mixed
3717 #    pointer types are not recommended)
3718 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3719 #   (If you expect perfect errno behavior, do not use this)
3720 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3721 # -xrestrict: Pointer parameters to functions do not overlap
3722 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3723 #    If you pass in multiple pointers to the same data, do not use this)
3724 # -xlibmil: Inline some library routines
3725 #   (If you expect perfect errno behavior, do not use this)
3726 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3727 #   (If you expect perfect errno behavior, do not use this)
3728 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3729 
3730     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3731     # Bug?
3732     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3733     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3734     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3735     #fi
3736 
3737 
3738 
3739 
3740 
3741 
3742 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3743 #                                  [RUN-IF-FALSE])
3744 # ------------------------------------------------------------
3745 # Check that the C compiler supports an argument
3746 
3747 
3748 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3749 #                                    [RUN-IF-FALSE])
3750 # ------------------------------------------------------------
3751 # Check that the C++ compiler supports an argument
3752 
3753 
3754 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3755 #                                [RUN-IF-FALSE])
3756 # ------------------------------------------------------------
3757 # Check that the C and C++ compilers support an argument
3758 
3759 
3760 
3761 
3762 
3763 
3764 
3765 #
3766 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3767 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3768 #
3769 # This code is free software; you can redistribute it and/or modify it
3770 # under the terms of the GNU General Public License version 2 only, as
3771 # published by the Free Software Foundation.  Oracle designates this
3772 # particular file as subject to the "Classpath" exception as provided
3773 # by Oracle in the LICENSE file that accompanied this code.
3774 #
3775 # This code is distributed in the hope that it will be useful, but WITHOUT
3776 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3777 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3778 # version 2 for more details (a copy is included in the LICENSE file that
3779 # accompanied this code).
3780 #
3781 # You should have received a copy of the GNU General Public License version
3782 # 2 along with this work; if not, write to the Free Software Foundation,
3783 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3784 #
3785 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3786 # or visit www.oracle.com if you need additional information or have any
3787 # questions.
3788 #
3789 
3790 
3791 
3792 
3793 
3794 cygwin_help() {
3795   case $1 in
3796     unzip)
3797       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3798       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3799       ;;
3800     zip)
3801       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3802       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3803       ;;
3804     make)
3805       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3806       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3807       ;;
3808     freetype)
3809       HELP_MSG="
3810 The freetype library can now be build during the configure process.
3811 Download the freetype sources and unpack them into an arbitrary directory:
3812 
3813 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3814 tar -xzf freetype-2.5.3.tar.gz
3815 
3816 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3817 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3818 builds or into '<freetype_src>/lib32' for 32-bit builds.
3819 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3820 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3821       ;;
3822   esac
3823 }
3824 
3825 msys_help() {
3826   PKGHANDLER_COMMAND=""
3827 }
3828 
3829 apt_help() {
3830   case $1 in
3831     devkit)
3832       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3833     openjdk)
3834       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3835     alsa)
3836       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3837     cups)
3838       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3839     fontconfig)
3840       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
3841     freetype)
3842       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3843     pulse)
3844       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3845     x11)
3846       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3847     ccache)
3848       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3849   esac
3850 }
3851 
3852 yum_help() {
3853   case $1 in
3854     devkit)
3855       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3856     openjdk)
3857       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3858     alsa)
3859       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3860     cups)
3861       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3862     fontconfig)
3863       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
3864     freetype)
3865       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3866     pulse)
3867       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3868     x11)
3869       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3870     ccache)
3871       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3872   esac
3873 }
3874 
3875 port_help() {
3876   PKGHANDLER_COMMAND=""
3877 }
3878 
3879 pkgutil_help() {
3880   PKGHANDLER_COMMAND=""
3881 }
3882 
3883 pkgadd_help() {
3884   PKGHANDLER_COMMAND=""
3885 }
3886 
3887 # This function will check if we're called from the "configure" wrapper while
3888 # printing --help. If so, we will print out additional information that can
3889 # only be extracted within the autoconf script, and then exit. This must be
3890 # called at the very beginning in configure.ac.
3891 
3892 
3893 
3894 
3895 #
3896 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3897 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3898 #
3899 # This code is free software; you can redistribute it and/or modify it
3900 # under the terms of the GNU General Public License version 2 only, as
3901 # published by the Free Software Foundation.  Oracle designates this
3902 # particular file as subject to the "Classpath" exception as provided
3903 # by Oracle in the LICENSE file that accompanied this code.
3904 #
3905 # This code is distributed in the hope that it will be useful, but WITHOUT
3906 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3907 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3908 # version 2 for more details (a copy is included in the LICENSE file that
3909 # accompanied this code).
3910 #
3911 # You should have received a copy of the GNU General Public License version
3912 # 2 along with this work; if not, write to the Free Software Foundation,
3913 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3914 #
3915 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3916 # or visit www.oracle.com if you need additional information or have any
3917 # questions.
3918 #
3919 
3920 
3921 
3922 
3923 
3924 
3925 
3926 
3927 
3928 
3929 ###############################################################################
3930 #
3931 # Should we build only OpenJDK even if closed sources are present?
3932 #
3933 
3934 
3935 
3936 
3937 ###############################################################################
3938 #
3939 # Setup version numbers
3940 #
3941 
3942 
3943 
3944 
3945 
3946 
3947 # Support for customization of the build process. Some build files
3948 # will include counterparts from this location, if they exist. This allows
3949 # for a degree of customization of the build targets and the rules/recipes
3950 # to create them
3951 
3952 # Check whether --with-custom-make-dir was given.
3953 if test "${with_custom_make_dir+set}" = set; then :
3954   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3955 fi
3956 
3957 
3958 
3959 #
3960 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3961 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3962 #
3963 # This code is free software; you can redistribute it and/or modify it
3964 # under the terms of the GNU General Public License version 2 only, as
3965 # published by the Free Software Foundation.  Oracle designates this
3966 # particular file as subject to the "Classpath" exception as provided
3967 # by Oracle in the LICENSE file that accompanied this code.
3968 #
3969 # This code is distributed in the hope that it will be useful, but WITHOUT
3970 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3971 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3972 # version 2 for more details (a copy is included in the LICENSE file that
3973 # accompanied this code).
3974 #
3975 # You should have received a copy of the GNU General Public License version
3976 # 2 along with this work; if not, write to the Free Software Foundation,
3977 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3978 #
3979 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3980 # or visit www.oracle.com if you need additional information or have any
3981 # questions.
3982 #
3983 
3984 
3985 
3986 
3987 
3988 
3989 
3990 
3991 
3992 
3993 
3994 
3995 
3996 
3997 
3998 ################################################################################
3999 # Setup fontconfig
4000 ################################################################################
4001 
4002 
4003 
4004 
4005 
4006 
4007 
4008 
4009 #
4010 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4011 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4012 #
4013 # This code is free software; you can redistribute it and/or modify it
4014 # under the terms of the GNU General Public License version 2 only, as
4015 # published by the Free Software Foundation.  Oracle designates this
4016 # particular file as subject to the "Classpath" exception as provided
4017 # by Oracle in the LICENSE file that accompanied this code.
4018 #
4019 # This code is distributed in the hope that it will be useful, but WITHOUT
4020 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4021 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4022 # version 2 for more details (a copy is included in the LICENSE file that
4023 # accompanied this code).
4024 #
4025 # You should have received a copy of the GNU General Public License version
4026 # 2 along with this work; if not, write to the Free Software Foundation,
4027 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4028 #
4029 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4030 # or visit www.oracle.com if you need additional information or have any
4031 # questions.
4032 #
4033 
4034 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4035 # Converts autoconf style CPU name to OpenJDK style, into
4036 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4037 
4038 
4039 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4040 # Converts autoconf style OS name to OpenJDK style, into
4041 # VAR_OS and VAR_OS_API.
4042 
4043 
4044 # Expects $host_os $host_cpu $build_os and $build_cpu
4045 # and $with_target_bits to have been setup!
4046 #
4047 # Translate the standard triplet(quadruplet) definition
4048 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4049 # OPENJDK_BUILD_OS, etc.
4050 
4051 
4052 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4053 # accordingly. Must be done after setting up build and target system, but before
4054 # doing anything else with these values.
4055 
4056 
4057 # Setup the legacy variables, for controlling the old makefiles.
4058 #
4059 
4060 
4061 
4062 
4063 #%%% Build and target systems %%%
4064 
4065 
4066 
4067 
4068 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4069 # Add -mX to various FLAGS variables.
4070 
4071 
4072 
4073 
4074 
4075 
4076 #
4077 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4078 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4079 #
4080 # This code is free software; you can redistribute it and/or modify it
4081 # under the terms of the GNU General Public License version 2 only, as
4082 # published by the Free Software Foundation.  Oracle designates this
4083 # particular file as subject to the "Classpath" exception as provided
4084 # by Oracle in the LICENSE file that accompanied this code.
4085 #
4086 # This code is distributed in the hope that it will be useful, but WITHOUT
4087 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4088 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4089 # version 2 for more details (a copy is included in the LICENSE file that
4090 # accompanied this code).
4091 #
4092 # You should have received a copy of the GNU General Public License version
4093 # 2 along with this work; if not, write to the Free Software Foundation,
4094 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4095 #
4096 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4097 # or visit www.oracle.com if you need additional information or have any
4098 # questions.
4099 #
4100 
4101 
4102 
4103 
4104 
4105 
4106 
4107 
4108 #
4109 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4110 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4111 #
4112 # This code is free software; you can redistribute it and/or modify it
4113 # under the terms of the GNU General Public License version 2 only, as
4114 # published by the Free Software Foundation.  Oracle designates this
4115 # particular file as subject to the "Classpath" exception as provided
4116 # by Oracle in the LICENSE file that accompanied this code.
4117 #
4118 # This code is distributed in the hope that it will be useful, but WITHOUT
4119 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4120 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4121 # version 2 for more details (a copy is included in the LICENSE file that
4122 # accompanied this code).
4123 #
4124 # You should have received a copy of the GNU General Public License version
4125 # 2 along with this work; if not, write to the Free Software Foundation,
4126 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4127 #
4128 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4129 # or visit www.oracle.com if you need additional information or have any
4130 # questions.
4131 #
4132 
4133 ########################################################################
4134 # This file is responsible for detecting, verifying and setting up the
4135 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4136 # proper paths to the binaries, but it will not setup any flags.
4137 #
4138 # The binaries used is determined by the toolchain type, which is the family of
4139 # compilers and related tools that are used.
4140 ########################################################################
4141 
4142 
4143 # All valid toolchains, regardless of platform (used by help.m4)
4144 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4145 
4146 # These toolchains are valid on different platforms
4147 VALID_TOOLCHAINS_linux="gcc clang"
4148 VALID_TOOLCHAINS_solaris="solstudio"
4149 VALID_TOOLCHAINS_macosx="gcc clang"
4150 VALID_TOOLCHAINS_aix="xlc"
4151 VALID_TOOLCHAINS_windows="microsoft"
4152 
4153 # Toolchain descriptions
4154 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4155 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4156 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4157 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4158 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4159 
4160 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4161 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4162 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4163 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4164 
4165 
4166 # Check if the configured compiler (C and C++) is of a specific version or
4167 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4168 #
4169 # Arguments:
4170 #   $1:   The version string to check against the found version
4171 #   $2:   block to run if the compiler is at least this version (>=)
4172 #   $3:   block to run if the compiler is older than this version (<)
4173 
4174 
4175 
4176 # Setup a number of variables describing how native output files are
4177 # named on this platform/toolchain.
4178 
4179 
4180 # Determine which toolchain type to use, and make sure it is valid for this
4181 # platform. Setup various information about the selected toolchain.
4182 
4183 
4184 # Before we start detecting the toolchain executables, we might need some
4185 # special setup, e.g. additional paths etc.
4186 
4187 
4188 # Restore path, etc
4189 
4190 
4191 # Check if a compiler is of the toolchain type we expect, and save the version
4192 # information from it. If the compiler does not match the expected type,
4193 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4194 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4195 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4196 #
4197 # $1 = compiler to test (CC or CXX)
4198 # $2 = human readable name of compiler (C or C++)
4199 
4200 
4201 
4202 # Try to locate the given C or C++ compiler in the path, or otherwise.
4203 #
4204 # $1 = compiler to test (CC or CXX)
4205 # $2 = human readable name of compiler (C or C++)
4206 # $3 = list of compiler names to search for
4207 
4208 
4209 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4210 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4211 # archiver (AR). Verify that the compilers are correct according to the
4212 # toolchain type.
4213 
4214 
4215 # Setup additional tools that is considered a part of the toolchain, but not the
4216 # core part. Many of these are highly platform-specific and do not exist,
4217 # and/or are not needed on all platforms.
4218 
4219 
4220 # Setup the build tools (i.e, the compiler and linker used to build programs
4221 # that should be run on the build platform, not the target platform, as a build
4222 # helper). Since the non-cross-compile case uses the normal, target compilers
4223 # for this, we can only do this after these have been setup.
4224 
4225 
4226 # Setup legacy variables that are still needed as alternative ways to refer to
4227 # parts of the toolchain.
4228 
4229 
4230 # Do some additional checks on the detected tools.
4231 
4232 
4233 # Setup the JTReg Regression Test Harness.
4234 
4235 
4236 
4237 #
4238 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4239 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4240 #
4241 # This code is free software; you can redistribute it and/or modify it
4242 # under the terms of the GNU General Public License version 2 only, as
4243 # published by the Free Software Foundation.  Oracle designates this
4244 # particular file as subject to the "Classpath" exception as provided
4245 # by Oracle in the LICENSE file that accompanied this code.
4246 #
4247 # This code is distributed in the hope that it will be useful, but WITHOUT
4248 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4249 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4250 # version 2 for more details (a copy is included in the LICENSE file that
4251 # accompanied this code).
4252 #
4253 # You should have received a copy of the GNU General Public License version
4254 # 2 along with this work; if not, write to the Free Software Foundation,
4255 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4256 #
4257 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4258 # or visit www.oracle.com if you need additional information or have any
4259 # questions.
4260 #
4261 
4262 ################################################################################
4263 # The order of these defines the priority by which we try to find them.
4264 VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4265 
4266 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4267 VS_VERSION_INTERNAL_2010=100
4268 VS_MSVCR_2010=msvcr100.dll
4269 # We don't use msvcp on Visual Studio 2010
4270 #VS_MSVCP_2010=msvcp100.dll
4271 VS_ENVVAR_2010="VS100COMNTOOLS"
4272 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4273 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4274 VS_VS_PLATFORM_NAME_2010="v100"
4275 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4276 
4277 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4278 VS_VERSION_INTERNAL_2012=110
4279 VS_MSVCR_2012=msvcr110.dll
4280 VS_MSVCP_2012=msvcp110.dll
4281 VS_ENVVAR_2012="VS110COMNTOOLS"
4282 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4283 VS_SDK_INSTALLDIR_2012=
4284 VS_VS_PLATFORM_NAME_2012="v110"
4285 VS_SDK_PLATFORM_NAME_2012=
4286 
4287 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4288 VS_VERSION_INTERNAL_2013=120
4289 VS_MSVCR_2013=msvcr120.dll
4290 VS_MSVCP_2013=msvcp120.dll
4291 VS_ENVVAR_2013="VS120COMNTOOLS"
4292 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4293 VS_SDK_INSTALLDIR_2013=
4294 VS_VS_PLATFORM_NAME_2013="v120"
4295 VS_SDK_PLATFORM_NAME_2013=
4296 
4297 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING"
4298 VS_VERSION_INTERNAL_2015=140
4299 VS_MSVCR_2015=vcruntime140.dll
4300 VS_MSVCP_2015=msvcp140.dll
4301 VS_ENVVAR_2015="VS140COMNTOOLS"
4302 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4303 VS_SDK_INSTALLDIR_2015=
4304 VS_VS_PLATFORM_NAME_2015="v140"
4305 VS_SDK_PLATFORM_NAME_2015=
4306 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by
4307 # explicitly specifying Windows Kit 8.1 to be used.
4308 VS_ENV_ARGS_2015="8.1"
4309 
4310 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING"
4311 VS_VERSION_INTERNAL_2017=141
4312 VS_MSVCR_2017=vcruntime140.dll
4313 VS_MSVCP_2017=msvcp140.dll
4314 VS_ENVVAR_2017="VS150COMNTOOLS"
4315 VS_USE_UCRT_2017="true"
4316 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
4317 VS_EDITIONS_2017="Community Professional Enterprise"
4318 VS_SDK_INSTALLDIR_2017=
4319 VS_VS_PLATFORM_NAME_2017="v141"
4320 VS_SDK_PLATFORM_NAME_2017=
4321 
4322 ################################################################################
4323 
4324 
4325 
4326 ################################################################################
4327 
4328 
4329 
4330 ################################################################################
4331 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4332 # build environment and assigns it to VS_ENV_CMD
4333 
4334 
4335 ################################################################################
4336 
4337 
4338 
4339 ################################################################################
4340 # Check if the VS env variables were setup prior to running configure.
4341 # If not, then find vcvarsall.bat and run it automatically, and integrate
4342 # the set env variables into the spec file.
4343 
4344 
4345 
4346 
4347 
4348 
4349 
4350 
4351 
4352 
4353 
4354 
4355 
4356 
4357 # This line needs to be here, verbatim, after all includes and the dummy hook
4358 # definitions. It is replaced with custom functionality when building
4359 # custom sources.
4360 #CUSTOM_AUTOCONF_INCLUDE
4361 
4362 # Do not change or remove the following line, it is needed for consistency checks:
4363 DATE_WHEN_GENERATED=1552671404
4364 
4365 ###############################################################################
4366 #
4367 # Initialization / Boot-strapping
4368 #
4369 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4370 # thus it jumps back and forth, each time gaining something needed later on.
4371 #
4372 ###############################################################################
4373 
4374 # If we are requested to print additional help, do that and then exit.
4375 # This must be the very first call.
4376 
4377   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4378     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4379     $PRINTF "Which are valid to use depends on the build platform.\n"
4380     for toolchain in $VALID_TOOLCHAINS_all; do
4381       # Use indirect variable referencing
4382       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4383       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4384       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4385     done
4386 
4387     # And now exit directly
4388     exit 0
4389   fi
4390 
4391 
4392 # Basic initialization that must happen first of all in the normal process.
4393 
4394   # Save the original command line. This is passed to us by the wrapper configure script.
4395 
4396   DATE_WHEN_CONFIGURED=`LANG=C date`
4397 
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4399 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4400   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4401 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4402 
4403 
4404   # Start with tools that do not need have cross compilation support
4405   # and can be expected to be found in the default PATH. These tools are
4406   # used by configure. Nor are these tools expected to be found in the
4407   # devkit from the builddeps server either, since they are
4408   # needed to download the devkit.
4409 
4410   # First are all the simple required tools.
4411 
4412 
4413 
4414   # Publish this variable in the help.
4415 
4416 
4417   if test "x$BASENAME" = x; then
4418     # The variable is not set by user, try to locate tool using the code snippet
4419     for ac_prog in basename
4420 do
4421   # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_path_BASENAME+:} false; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   case $BASENAME in
4429   [\\/]* | ?:[\\/]*)
4430   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4431   ;;
4432   *)
4433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438     for ac_exec_ext in '' $ac_executable_extensions; do
4439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445   done
4446 IFS=$as_save_IFS
4447 
4448   ;;
4449 esac
4450 fi
4451 BASENAME=$ac_cv_path_BASENAME
4452 if test -n "$BASENAME"; then
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4454 $as_echo "$BASENAME" >&6; }
4455 else
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459 
4460 
4461   test -n "$BASENAME" && break
4462 done
4463 
4464   else
4465     # The variable is set, but is it from the command line or the environment?
4466 
4467     # Try to remove the string !BASENAME! from our list.
4468     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4469     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4470       # If it failed, the variable was not from the command line. Ignore it,
4471       # but warn the user (except for BASH, which is always set by the calling BASH).
4472       if test "xBASENAME" != xBASH; then
4473         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4474 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4475       fi
4476       # Try to locate tool using the code snippet
4477       for ac_prog in basename
4478 do
4479   # Extract the first word of "$ac_prog", so it can be a program name with args.
4480 set dummy $ac_prog; ac_word=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if ${ac_cv_path_BASENAME+:} false; then :
4484   $as_echo_n "(cached) " >&6
4485 else
4486   case $BASENAME in
4487   [\\/]* | ?:[\\/]*)
4488   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4489   ;;
4490   *)
4491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496     for ac_exec_ext in '' $ac_executable_extensions; do
4497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500     break 2
4501   fi
4502 done
4503   done
4504 IFS=$as_save_IFS
4505 
4506   ;;
4507 esac
4508 fi
4509 BASENAME=$ac_cv_path_BASENAME
4510 if test -n "$BASENAME"; then
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4512 $as_echo "$BASENAME" >&6; }
4513 else
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517 
4518 
4519   test -n "$BASENAME" && break
4520 done
4521 
4522     else
4523       # If it succeeded, then it was overridden by the user. We will use it
4524       # for the tool.
4525 
4526       # First remove it from the list of overridden variables, so we can test
4527       # for unknown variables in the end.
4528       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4529 
4530       # Check if the provided tool contains a complete path.
4531       tool_specified="$BASENAME"
4532       tool_basename="${tool_specified##*/}"
4533       if test "x$tool_basename" = "x$tool_specified"; then
4534         # A command without a complete path is provided, search $PATH.
4535         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4536 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4537         # Extract the first word of "$tool_basename", so it can be a program name with args.
4538 set dummy $tool_basename; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if ${ac_cv_path_BASENAME+:} false; then :
4542   $as_echo_n "(cached) " >&6
4543 else
4544   case $BASENAME in
4545   [\\/]* | ?:[\\/]*)
4546   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4547   ;;
4548   *)
4549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561   done
4562 IFS=$as_save_IFS
4563 
4564   ;;
4565 esac
4566 fi
4567 BASENAME=$ac_cv_path_BASENAME
4568 if test -n "$BASENAME"; then
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4570 $as_echo "$BASENAME" >&6; }
4571 else
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575 
4576 
4577         if test "x$BASENAME" = x; then
4578           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4579         fi
4580       else
4581         # Otherwise we believe it is a complete path. Use it as it is.
4582         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4583 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4585 $as_echo_n "checking for BASENAME... " >&6; }
4586         if test ! -x "$tool_specified"; then
4587           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4588 $as_echo "not found" >&6; }
4589           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4590         fi
4591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4592 $as_echo "$tool_specified" >&6; }
4593       fi
4594     fi
4595   fi
4596 
4597 
4598 
4599   if test "x$BASENAME" = x; then
4600     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4601   fi
4602 
4603 
4604 
4605 
4606 
4607   # Publish this variable in the help.
4608 
4609 
4610   if test "x$BASH" = x; then
4611     # The variable is not set by user, try to locate tool using the code snippet
4612     for ac_prog in bash
4613 do
4614   # Extract the first word of "$ac_prog", so it can be a program name with args.
4615 set dummy $ac_prog; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if ${ac_cv_path_BASH+:} false; then :
4619   $as_echo_n "(cached) " >&6
4620 else
4621   case $BASH in
4622   [\\/]* | ?:[\\/]*)
4623   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4624   ;;
4625   *)
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631     for ac_exec_ext in '' $ac_executable_extensions; do
4632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638   done
4639 IFS=$as_save_IFS
4640 
4641   ;;
4642 esac
4643 fi
4644 BASH=$ac_cv_path_BASH
4645 if test -n "$BASH"; then
4646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4647 $as_echo "$BASH" >&6; }
4648 else
4649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4651 fi
4652 
4653 
4654   test -n "$BASH" && break
4655 done
4656 
4657   else
4658     # The variable is set, but is it from the command line or the environment?
4659 
4660     # Try to remove the string !BASH! from our list.
4661     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4662     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4663       # If it failed, the variable was not from the command line. Ignore it,
4664       # but warn the user (except for BASH, which is always set by the calling BASH).
4665       if test "xBASH" != xBASH; then
4666         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4667 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4668       fi
4669       # Try to locate tool using the code snippet
4670       for ac_prog in bash
4671 do
4672   # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_path_BASH+:} false; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   case $BASH in
4680   [\\/]* | ?:[\\/]*)
4681   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4682   ;;
4683   *)
4684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689     for ac_exec_ext in '' $ac_executable_extensions; do
4690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696   done
4697 IFS=$as_save_IFS
4698 
4699   ;;
4700 esac
4701 fi
4702 BASH=$ac_cv_path_BASH
4703 if test -n "$BASH"; then
4704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4705 $as_echo "$BASH" >&6; }
4706 else
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710 
4711 
4712   test -n "$BASH" && break
4713 done
4714 
4715     else
4716       # If it succeeded, then it was overridden by the user. We will use it
4717       # for the tool.
4718 
4719       # First remove it from the list of overridden variables, so we can test
4720       # for unknown variables in the end.
4721       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4722 
4723       # Check if the provided tool contains a complete path.
4724       tool_specified="$BASH"
4725       tool_basename="${tool_specified##*/}"
4726       if test "x$tool_basename" = "x$tool_specified"; then
4727         # A command without a complete path is provided, search $PATH.
4728         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4729 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4730         # Extract the first word of "$tool_basename", so it can be a program name with args.
4731 set dummy $tool_basename; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_path_BASH+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   case $BASH in
4738   [\\/]* | ?:[\\/]*)
4739   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4740   ;;
4741   *)
4742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747     for ac_exec_ext in '' $ac_executable_extensions; do
4748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752   fi
4753 done
4754   done
4755 IFS=$as_save_IFS
4756 
4757   ;;
4758 esac
4759 fi
4760 BASH=$ac_cv_path_BASH
4761 if test -n "$BASH"; then
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4763 $as_echo "$BASH" >&6; }
4764 else
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768 
4769 
4770         if test "x$BASH" = x; then
4771           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4772         fi
4773       else
4774         # Otherwise we believe it is a complete path. Use it as it is.
4775         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4776 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4778 $as_echo_n "checking for BASH... " >&6; }
4779         if test ! -x "$tool_specified"; then
4780           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4781 $as_echo "not found" >&6; }
4782           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4783         fi
4784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4785 $as_echo "$tool_specified" >&6; }
4786       fi
4787     fi
4788   fi
4789 
4790 
4791 
4792   if test "x$BASH" = x; then
4793     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4794   fi
4795 
4796 
4797 
4798 
4799 
4800   # Publish this variable in the help.
4801 
4802 
4803   if test "x$CAT" = x; then
4804     # The variable is not set by user, try to locate tool using the code snippet
4805     for ac_prog in cat
4806 do
4807   # Extract the first word of "$ac_prog", so it can be a program name with args.
4808 set dummy $ac_prog; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_path_CAT+:} false; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   case $CAT in
4815   [\\/]* | ?:[\\/]*)
4816   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4817   ;;
4818   *)
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824     for ac_exec_ext in '' $ac_executable_extensions; do
4825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831   done
4832 IFS=$as_save_IFS
4833 
4834   ;;
4835 esac
4836 fi
4837 CAT=$ac_cv_path_CAT
4838 if test -n "$CAT"; then
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4840 $as_echo "$CAT" >&6; }
4841 else
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845 
4846 
4847   test -n "$CAT" && break
4848 done
4849 
4850   else
4851     # The variable is set, but is it from the command line or the environment?
4852 
4853     # Try to remove the string !CAT! from our list.
4854     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4855     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4856       # If it failed, the variable was not from the command line. Ignore it,
4857       # but warn the user (except for BASH, which is always set by the calling BASH).
4858       if test "xCAT" != xBASH; then
4859         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4860 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4861       fi
4862       # Try to locate tool using the code snippet
4863       for ac_prog in cat
4864 do
4865   # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_path_CAT+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   case $CAT in
4873   [\\/]* | ?:[\\/]*)
4874   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4875   ;;
4876   *)
4877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     for ac_exec_ext in '' $ac_executable_extensions; do
4883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889   done
4890 IFS=$as_save_IFS
4891 
4892   ;;
4893 esac
4894 fi
4895 CAT=$ac_cv_path_CAT
4896 if test -n "$CAT"; then
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4898 $as_echo "$CAT" >&6; }
4899 else
4900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903 
4904 
4905   test -n "$CAT" && break
4906 done
4907 
4908     else
4909       # If it succeeded, then it was overridden by the user. We will use it
4910       # for the tool.
4911 
4912       # First remove it from the list of overridden variables, so we can test
4913       # for unknown variables in the end.
4914       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4915 
4916       # Check if the provided tool contains a complete path.
4917       tool_specified="$CAT"
4918       tool_basename="${tool_specified##*/}"
4919       if test "x$tool_basename" = "x$tool_specified"; then
4920         # A command without a complete path is provided, search $PATH.
4921         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4922 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4923         # Extract the first word of "$tool_basename", so it can be a program name with args.
4924 set dummy $tool_basename; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if ${ac_cv_path_CAT+:} false; then :
4928   $as_echo_n "(cached) " >&6
4929 else
4930   case $CAT in
4931   [\\/]* | ?:[\\/]*)
4932   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4933   ;;
4934   *)
4935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940     for ac_exec_ext in '' $ac_executable_extensions; do
4941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947   done
4948 IFS=$as_save_IFS
4949 
4950   ;;
4951 esac
4952 fi
4953 CAT=$ac_cv_path_CAT
4954 if test -n "$CAT"; then
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4956 $as_echo "$CAT" >&6; }
4957 else
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961 
4962 
4963         if test "x$CAT" = x; then
4964           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4965         fi
4966       else
4967         # Otherwise we believe it is a complete path. Use it as it is.
4968         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4969 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4970         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4971 $as_echo_n "checking for CAT... " >&6; }
4972         if test ! -x "$tool_specified"; then
4973           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4974 $as_echo "not found" >&6; }
4975           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4976         fi
4977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4978 $as_echo "$tool_specified" >&6; }
4979       fi
4980     fi
4981   fi
4982 
4983 
4984 
4985   if test "x$CAT" = x; then
4986     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4987   fi
4988 
4989 
4990 
4991 
4992 
4993   # Publish this variable in the help.
4994 
4995 
4996   if test "x$CHMOD" = x; then
4997     # The variable is not set by user, try to locate tool using the code snippet
4998     for ac_prog in chmod
4999 do
5000   # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_path_CHMOD+:} false; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007   case $CHMOD in
5008   [\\/]* | ?:[\\/]*)
5009   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5010   ;;
5011   *)
5012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024   done
5025 IFS=$as_save_IFS
5026 
5027   ;;
5028 esac
5029 fi
5030 CHMOD=$ac_cv_path_CHMOD
5031 if test -n "$CHMOD"; then
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5033 $as_echo "$CHMOD" >&6; }
5034 else
5035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038 
5039 
5040   test -n "$CHMOD" && break
5041 done
5042 
5043   else
5044     # The variable is set, but is it from the command line or the environment?
5045 
5046     # Try to remove the string !CHMOD! from our list.
5047     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5048     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5049       # If it failed, the variable was not from the command line. Ignore it,
5050       # but warn the user (except for BASH, which is always set by the calling BASH).
5051       if test "xCHMOD" != xBASH; then
5052         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5053 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5054       fi
5055       # Try to locate tool using the code snippet
5056       for ac_prog in chmod
5057 do
5058   # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_path_CHMOD+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   case $CHMOD in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075     for ac_exec_ext in '' $ac_executable_extensions; do
5076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082   done
5083 IFS=$as_save_IFS
5084 
5085   ;;
5086 esac
5087 fi
5088 CHMOD=$ac_cv_path_CHMOD
5089 if test -n "$CHMOD"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5091 $as_echo "$CHMOD" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096 
5097 
5098   test -n "$CHMOD" && break
5099 done
5100 
5101     else
5102       # If it succeeded, then it was overridden by the user. We will use it
5103       # for the tool.
5104 
5105       # First remove it from the list of overridden variables, so we can test
5106       # for unknown variables in the end.
5107       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5108 
5109       # Check if the provided tool contains a complete path.
5110       tool_specified="$CHMOD"
5111       tool_basename="${tool_specified##*/}"
5112       if test "x$tool_basename" = "x$tool_specified"; then
5113         # A command without a complete path is provided, search $PATH.
5114         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5115 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5116         # Extract the first word of "$tool_basename", so it can be a program name with args.
5117 set dummy $tool_basename; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_path_CHMOD+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   case $CHMOD in
5124   [\\/]* | ?:[\\/]*)
5125   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5126   ;;
5127   *)
5128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131   IFS=$as_save_IFS
5132   test -z "$as_dir" && as_dir=.
5133     for ac_exec_ext in '' $ac_executable_extensions; do
5134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137     break 2
5138   fi
5139 done
5140   done
5141 IFS=$as_save_IFS
5142 
5143   ;;
5144 esac
5145 fi
5146 CHMOD=$ac_cv_path_CHMOD
5147 if test -n "$CHMOD"; then
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5149 $as_echo "$CHMOD" >&6; }
5150 else
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154 
5155 
5156         if test "x$CHMOD" = x; then
5157           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5158         fi
5159       else
5160         # Otherwise we believe it is a complete path. Use it as it is.
5161         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5162 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5164 $as_echo_n "checking for CHMOD... " >&6; }
5165         if test ! -x "$tool_specified"; then
5166           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5167 $as_echo "not found" >&6; }
5168           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5169         fi
5170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5171 $as_echo "$tool_specified" >&6; }
5172       fi
5173     fi
5174   fi
5175 
5176 
5177 
5178   if test "x$CHMOD" = x; then
5179     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5180   fi
5181 
5182 
5183 
5184 
5185 
5186   # Publish this variable in the help.
5187 
5188 
5189   if test "x$CMP" = x; then
5190     # The variable is not set by user, try to locate tool using the code snippet
5191     for ac_prog in cmp
5192 do
5193   # Extract the first word of "$ac_prog", so it can be a program name with args.
5194 set dummy $ac_prog; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_path_CMP+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   case $CMP in
5201   [\\/]* | ?:[\\/]*)
5202   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5203   ;;
5204   *)
5205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210     for ac_exec_ext in '' $ac_executable_extensions; do
5211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217   done
5218 IFS=$as_save_IFS
5219 
5220   ;;
5221 esac
5222 fi
5223 CMP=$ac_cv_path_CMP
5224 if test -n "$CMP"; then
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5226 $as_echo "$CMP" >&6; }
5227 else
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231 
5232 
5233   test -n "$CMP" && break
5234 done
5235 
5236   else
5237     # The variable is set, but is it from the command line or the environment?
5238 
5239     # Try to remove the string !CMP! from our list.
5240     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5241     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5242       # If it failed, the variable was not from the command line. Ignore it,
5243       # but warn the user (except for BASH, which is always set by the calling BASH).
5244       if test "xCMP" != xBASH; then
5245         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5246 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5247       fi
5248       # Try to locate tool using the code snippet
5249       for ac_prog in cmp
5250 do
5251   # Extract the first word of "$ac_prog", so it can be a program name with args.
5252 set dummy $ac_prog; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_path_CMP+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   case $CMP in
5259   [\\/]* | ?:[\\/]*)
5260   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5261   ;;
5262   *)
5263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268     for ac_exec_ext in '' $ac_executable_extensions; do
5269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275   done
5276 IFS=$as_save_IFS
5277 
5278   ;;
5279 esac
5280 fi
5281 CMP=$ac_cv_path_CMP
5282 if test -n "$CMP"; then
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5284 $as_echo "$CMP" >&6; }
5285 else
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289 
5290 
5291   test -n "$CMP" && break
5292 done
5293 
5294     else
5295       # If it succeeded, then it was overridden by the user. We will use it
5296       # for the tool.
5297 
5298       # First remove it from the list of overridden variables, so we can test
5299       # for unknown variables in the end.
5300       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5301 
5302       # Check if the provided tool contains a complete path.
5303       tool_specified="$CMP"
5304       tool_basename="${tool_specified##*/}"
5305       if test "x$tool_basename" = "x$tool_specified"; then
5306         # A command without a complete path is provided, search $PATH.
5307         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5308 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5309         # Extract the first word of "$tool_basename", so it can be a program name with args.
5310 set dummy $tool_basename; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_path_CMP+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   case $CMP in
5317   [\\/]* | ?:[\\/]*)
5318   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5319   ;;
5320   *)
5321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324   IFS=$as_save_IFS
5325   test -z "$as_dir" && as_dir=.
5326     for ac_exec_ext in '' $ac_executable_extensions; do
5327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330     break 2
5331   fi
5332 done
5333   done
5334 IFS=$as_save_IFS
5335 
5336   ;;
5337 esac
5338 fi
5339 CMP=$ac_cv_path_CMP
5340 if test -n "$CMP"; then
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5342 $as_echo "$CMP" >&6; }
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347 
5348 
5349         if test "x$CMP" = x; then
5350           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5351         fi
5352       else
5353         # Otherwise we believe it is a complete path. Use it as it is.
5354         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5355 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5357 $as_echo_n "checking for CMP... " >&6; }
5358         if test ! -x "$tool_specified"; then
5359           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5360 $as_echo "not found" >&6; }
5361           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5362         fi
5363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5364 $as_echo "$tool_specified" >&6; }
5365       fi
5366     fi
5367   fi
5368 
5369 
5370 
5371   if test "x$CMP" = x; then
5372     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5373   fi
5374 
5375 
5376 
5377 
5378 
5379   # Publish this variable in the help.
5380 
5381 
5382   if test "x$COMM" = x; then
5383     # The variable is not set by user, try to locate tool using the code snippet
5384     for ac_prog in comm
5385 do
5386   # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_path_COMM+:} false; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   case $COMM in
5394   [\\/]* | ?:[\\/]*)
5395   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5396   ;;
5397   *)
5398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403     for ac_exec_ext in '' $ac_executable_extensions; do
5404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410   done
5411 IFS=$as_save_IFS
5412 
5413   ;;
5414 esac
5415 fi
5416 COMM=$ac_cv_path_COMM
5417 if test -n "$COMM"; then
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5419 $as_echo "$COMM" >&6; }
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424 
5425 
5426   test -n "$COMM" && break
5427 done
5428 
5429   else
5430     # The variable is set, but is it from the command line or the environment?
5431 
5432     # Try to remove the string !COMM! from our list.
5433     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5434     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5435       # If it failed, the variable was not from the command line. Ignore it,
5436       # but warn the user (except for BASH, which is always set by the calling BASH).
5437       if test "xCOMM" != xBASH; then
5438         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5439 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5440       fi
5441       # Try to locate tool using the code snippet
5442       for ac_prog in comm
5443 do
5444   # Extract the first word of "$ac_prog", so it can be a program name with args.
5445 set dummy $ac_prog; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_path_COMM+:} false; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   case $COMM in
5452   [\\/]* | ?:[\\/]*)
5453   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5454   ;;
5455   *)
5456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461     for ac_exec_ext in '' $ac_executable_extensions; do
5462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468   done
5469 IFS=$as_save_IFS
5470 
5471   ;;
5472 esac
5473 fi
5474 COMM=$ac_cv_path_COMM
5475 if test -n "$COMM"; then
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5477 $as_echo "$COMM" >&6; }
5478 else
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482 
5483 
5484   test -n "$COMM" && break
5485 done
5486 
5487     else
5488       # If it succeeded, then it was overridden by the user. We will use it
5489       # for the tool.
5490 
5491       # First remove it from the list of overridden variables, so we can test
5492       # for unknown variables in the end.
5493       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5494 
5495       # Check if the provided tool contains a complete path.
5496       tool_specified="$COMM"
5497       tool_basename="${tool_specified##*/}"
5498       if test "x$tool_basename" = "x$tool_specified"; then
5499         # A command without a complete path is provided, search $PATH.
5500         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5501 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5502         # Extract the first word of "$tool_basename", so it can be a program name with args.
5503 set dummy $tool_basename; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_path_COMM+:} false; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   case $COMM in
5510   [\\/]* | ?:[\\/]*)
5511   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5512   ;;
5513   *)
5514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519     for ac_exec_ext in '' $ac_executable_extensions; do
5520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526   done
5527 IFS=$as_save_IFS
5528 
5529   ;;
5530 esac
5531 fi
5532 COMM=$ac_cv_path_COMM
5533 if test -n "$COMM"; then
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5535 $as_echo "$COMM" >&6; }
5536 else
5537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540 
5541 
5542         if test "x$COMM" = x; then
5543           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5544         fi
5545       else
5546         # Otherwise we believe it is a complete path. Use it as it is.
5547         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5548 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5549         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5550 $as_echo_n "checking for COMM... " >&6; }
5551         if test ! -x "$tool_specified"; then
5552           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5553 $as_echo "not found" >&6; }
5554           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5555         fi
5556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5557 $as_echo "$tool_specified" >&6; }
5558       fi
5559     fi
5560   fi
5561 
5562 
5563 
5564   if test "x$COMM" = x; then
5565     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5566   fi
5567 
5568 
5569 
5570 
5571 
5572   # Publish this variable in the help.
5573 
5574 
5575   if test "x$CP" = x; then
5576     # The variable is not set by user, try to locate tool using the code snippet
5577     for ac_prog in cp
5578 do
5579   # Extract the first word of "$ac_prog", so it can be a program name with args.
5580 set dummy $ac_prog; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_path_CP+:} false; then :
5584   $as_echo_n "(cached) " >&6
5585 else
5586   case $CP in
5587   [\\/]* | ?:[\\/]*)
5588   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5589   ;;
5590   *)
5591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605 
5606   ;;
5607 esac
5608 fi
5609 CP=$ac_cv_path_CP
5610 if test -n "$CP"; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5612 $as_echo "$CP" >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617 
5618 
5619   test -n "$CP" && break
5620 done
5621 
5622   else
5623     # The variable is set, but is it from the command line or the environment?
5624 
5625     # Try to remove the string !CP! from our list.
5626     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5627     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5628       # If it failed, the variable was not from the command line. Ignore it,
5629       # but warn the user (except for BASH, which is always set by the calling BASH).
5630       if test "xCP" != xBASH; then
5631         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5632 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5633       fi
5634       # Try to locate tool using the code snippet
5635       for ac_prog in cp
5636 do
5637   # Extract the first word of "$ac_prog", so it can be a program name with args.
5638 set dummy $ac_prog; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_path_CP+:} false; then :
5642   $as_echo_n "(cached) " >&6
5643 else
5644   case $CP in
5645   [\\/]* | ?:[\\/]*)
5646   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5647   ;;
5648   *)
5649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652   IFS=$as_save_IFS
5653   test -z "$as_dir" && as_dir=.
5654     for ac_exec_ext in '' $ac_executable_extensions; do
5655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658     break 2
5659   fi
5660 done
5661   done
5662 IFS=$as_save_IFS
5663 
5664   ;;
5665 esac
5666 fi
5667 CP=$ac_cv_path_CP
5668 if test -n "$CP"; then
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5670 $as_echo "$CP" >&6; }
5671 else
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675 
5676 
5677   test -n "$CP" && break
5678 done
5679 
5680     else
5681       # If it succeeded, then it was overridden by the user. We will use it
5682       # for the tool.
5683 
5684       # First remove it from the list of overridden variables, so we can test
5685       # for unknown variables in the end.
5686       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5687 
5688       # Check if the provided tool contains a complete path.
5689       tool_specified="$CP"
5690       tool_basename="${tool_specified##*/}"
5691       if test "x$tool_basename" = "x$tool_specified"; then
5692         # A command without a complete path is provided, search $PATH.
5693         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5694 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5695         # Extract the first word of "$tool_basename", so it can be a program name with args.
5696 set dummy $tool_basename; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_path_CP+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   case $CP in
5703   [\\/]* | ?:[\\/]*)
5704   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5705   ;;
5706   *)
5707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719   done
5720 IFS=$as_save_IFS
5721 
5722   ;;
5723 esac
5724 fi
5725 CP=$ac_cv_path_CP
5726 if test -n "$CP"; then
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5728 $as_echo "$CP" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733 
5734 
5735         if test "x$CP" = x; then
5736           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5737         fi
5738       else
5739         # Otherwise we believe it is a complete path. Use it as it is.
5740         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5741 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5742         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5743 $as_echo_n "checking for CP... " >&6; }
5744         if test ! -x "$tool_specified"; then
5745           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5746 $as_echo "not found" >&6; }
5747           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5748         fi
5749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5750 $as_echo "$tool_specified" >&6; }
5751       fi
5752     fi
5753   fi
5754 
5755 
5756 
5757   if test "x$CP" = x; then
5758     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5759   fi
5760 
5761 
5762 
5763 
5764 
5765   # Publish this variable in the help.
5766 
5767 
5768   if test "x$CUT" = x; then
5769     # The variable is not set by user, try to locate tool using the code snippet
5770     for ac_prog in cut
5771 do
5772   # Extract the first word of "$ac_prog", so it can be a program name with args.
5773 set dummy $ac_prog; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_path_CUT+:} false; then :
5777   $as_echo_n "(cached) " >&6
5778 else
5779   case $CUT in
5780   [\\/]* | ?:[\\/]*)
5781   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5782   ;;
5783   *)
5784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796   done
5797 IFS=$as_save_IFS
5798 
5799   ;;
5800 esac
5801 fi
5802 CUT=$ac_cv_path_CUT
5803 if test -n "$CUT"; then
5804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5805 $as_echo "$CUT" >&6; }
5806 else
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5809 fi
5810 
5811 
5812   test -n "$CUT" && break
5813 done
5814 
5815   else
5816     # The variable is set, but is it from the command line or the environment?
5817 
5818     # Try to remove the string !CUT! from our list.
5819     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5820     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5821       # If it failed, the variable was not from the command line. Ignore it,
5822       # but warn the user (except for BASH, which is always set by the calling BASH).
5823       if test "xCUT" != xBASH; then
5824         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5825 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5826       fi
5827       # Try to locate tool using the code snippet
5828       for ac_prog in cut
5829 do
5830   # Extract the first word of "$ac_prog", so it can be a program name with args.
5831 set dummy $ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_path_CUT+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   case $CUT in
5838   [\\/]* | ?:[\\/]*)
5839   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5840   ;;
5841   *)
5842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847     for ac_exec_ext in '' $ac_executable_extensions; do
5848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854   done
5855 IFS=$as_save_IFS
5856 
5857   ;;
5858 esac
5859 fi
5860 CUT=$ac_cv_path_CUT
5861 if test -n "$CUT"; then
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5863 $as_echo "$CUT" >&6; }
5864 else
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868 
5869 
5870   test -n "$CUT" && break
5871 done
5872 
5873     else
5874       # If it succeeded, then it was overridden by the user. We will use it
5875       # for the tool.
5876 
5877       # First remove it from the list of overridden variables, so we can test
5878       # for unknown variables in the end.
5879       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5880 
5881       # Check if the provided tool contains a complete path.
5882       tool_specified="$CUT"
5883       tool_basename="${tool_specified##*/}"
5884       if test "x$tool_basename" = "x$tool_specified"; then
5885         # A command without a complete path is provided, search $PATH.
5886         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5887 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5888         # Extract the first word of "$tool_basename", so it can be a program name with args.
5889 set dummy $tool_basename; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if ${ac_cv_path_CUT+:} false; then :
5893   $as_echo_n "(cached) " >&6
5894 else
5895   case $CUT in
5896   [\\/]* | ?:[\\/]*)
5897   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5898   ;;
5899   *)
5900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905     for ac_exec_ext in '' $ac_executable_extensions; do
5906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912   done
5913 IFS=$as_save_IFS
5914 
5915   ;;
5916 esac
5917 fi
5918 CUT=$ac_cv_path_CUT
5919 if test -n "$CUT"; then
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5921 $as_echo "$CUT" >&6; }
5922 else
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926 
5927 
5928         if test "x$CUT" = x; then
5929           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5930         fi
5931       else
5932         # Otherwise we believe it is a complete path. Use it as it is.
5933         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5934 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5935         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5936 $as_echo_n "checking for CUT... " >&6; }
5937         if test ! -x "$tool_specified"; then
5938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5939 $as_echo "not found" >&6; }
5940           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5941         fi
5942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5943 $as_echo "$tool_specified" >&6; }
5944       fi
5945     fi
5946   fi
5947 
5948 
5949 
5950   if test "x$CUT" = x; then
5951     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5952   fi
5953 
5954 
5955 
5956 
5957 
5958   # Publish this variable in the help.
5959 
5960 
5961   if test "x$DATE" = x; then
5962     # The variable is not set by user, try to locate tool using the code snippet
5963     for ac_prog in date
5964 do
5965   # Extract the first word of "$ac_prog", so it can be a program name with args.
5966 set dummy $ac_prog; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_path_DATE+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   case $DATE in
5973   [\\/]* | ?:[\\/]*)
5974   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5975   ;;
5976   *)
5977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982     for ac_exec_ext in '' $ac_executable_extensions; do
5983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989   done
5990 IFS=$as_save_IFS
5991 
5992   ;;
5993 esac
5994 fi
5995 DATE=$ac_cv_path_DATE
5996 if test -n "$DATE"; then
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5998 $as_echo "$DATE" >&6; }
5999 else
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003 
6004 
6005   test -n "$DATE" && break
6006 done
6007 
6008   else
6009     # The variable is set, but is it from the command line or the environment?
6010 
6011     # Try to remove the string !DATE! from our list.
6012     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6013     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6014       # If it failed, the variable was not from the command line. Ignore it,
6015       # but warn the user (except for BASH, which is always set by the calling BASH).
6016       if test "xDATE" != xBASH; then
6017         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6018 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6019       fi
6020       # Try to locate tool using the code snippet
6021       for ac_prog in date
6022 do
6023   # Extract the first word of "$ac_prog", so it can be a program name with args.
6024 set dummy $ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_path_DATE+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   case $DATE in
6031   [\\/]* | ?:[\\/]*)
6032   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6033   ;;
6034   *)
6035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040     for ac_exec_ext in '' $ac_executable_extensions; do
6041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047   done
6048 IFS=$as_save_IFS
6049 
6050   ;;
6051 esac
6052 fi
6053 DATE=$ac_cv_path_DATE
6054 if test -n "$DATE"; then
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6056 $as_echo "$DATE" >&6; }
6057 else
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6060 fi
6061 
6062 
6063   test -n "$DATE" && break
6064 done
6065 
6066     else
6067       # If it succeeded, then it was overridden by the user. We will use it
6068       # for the tool.
6069 
6070       # First remove it from the list of overridden variables, so we can test
6071       # for unknown variables in the end.
6072       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6073 
6074       # Check if the provided tool contains a complete path.
6075       tool_specified="$DATE"
6076       tool_basename="${tool_specified##*/}"
6077       if test "x$tool_basename" = "x$tool_specified"; then
6078         # A command without a complete path is provided, search $PATH.
6079         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6080 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6081         # Extract the first word of "$tool_basename", so it can be a program name with args.
6082 set dummy $tool_basename; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_path_DATE+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   case $DATE in
6089   [\\/]* | ?:[\\/]*)
6090   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6091   ;;
6092   *)
6093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098     for ac_exec_ext in '' $ac_executable_extensions; do
6099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105   done
6106 IFS=$as_save_IFS
6107 
6108   ;;
6109 esac
6110 fi
6111 DATE=$ac_cv_path_DATE
6112 if test -n "$DATE"; then
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6114 $as_echo "$DATE" >&6; }
6115 else
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6118 fi
6119 
6120 
6121         if test "x$DATE" = x; then
6122           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6123         fi
6124       else
6125         # Otherwise we believe it is a complete path. Use it as it is.
6126         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6127 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6129 $as_echo_n "checking for DATE... " >&6; }
6130         if test ! -x "$tool_specified"; then
6131           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6132 $as_echo "not found" >&6; }
6133           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6134         fi
6135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6136 $as_echo "$tool_specified" >&6; }
6137       fi
6138     fi
6139   fi
6140 
6141 
6142 
6143   if test "x$DATE" = x; then
6144     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6145   fi
6146 
6147 
6148 
6149 
6150 
6151   # Publish this variable in the help.
6152 
6153 
6154   if test "x$DIFF" = x; then
6155     # The variable is not set by user, try to locate tool using the code snippet
6156     for ac_prog in gdiff diff
6157 do
6158   # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy $ac_prog; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_path_DIFF+:} false; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   case $DIFF in
6166   [\\/]* | ?:[\\/]*)
6167   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6168   ;;
6169   *)
6170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173   IFS=$as_save_IFS
6174   test -z "$as_dir" && as_dir=.
6175     for ac_exec_ext in '' $ac_executable_extensions; do
6176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179     break 2
6180   fi
6181 done
6182   done
6183 IFS=$as_save_IFS
6184 
6185   ;;
6186 esac
6187 fi
6188 DIFF=$ac_cv_path_DIFF
6189 if test -n "$DIFF"; then
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6191 $as_echo "$DIFF" >&6; }
6192 else
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196 
6197 
6198   test -n "$DIFF" && break
6199 done
6200 
6201   else
6202     # The variable is set, but is it from the command line or the environment?
6203 
6204     # Try to remove the string !DIFF! from our list.
6205     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6206     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6207       # If it failed, the variable was not from the command line. Ignore it,
6208       # but warn the user (except for BASH, which is always set by the calling BASH).
6209       if test "xDIFF" != xBASH; then
6210         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6211 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6212       fi
6213       # Try to locate tool using the code snippet
6214       for ac_prog in gdiff diff
6215 do
6216   # Extract the first word of "$ac_prog", so it can be a program name with args.
6217 set dummy $ac_prog; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_path_DIFF+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   case $DIFF in
6224   [\\/]* | ?:[\\/]*)
6225   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6226   ;;
6227   *)
6228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231   IFS=$as_save_IFS
6232   test -z "$as_dir" && as_dir=.
6233     for ac_exec_ext in '' $ac_executable_extensions; do
6234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237     break 2
6238   fi
6239 done
6240   done
6241 IFS=$as_save_IFS
6242 
6243   ;;
6244 esac
6245 fi
6246 DIFF=$ac_cv_path_DIFF
6247 if test -n "$DIFF"; then
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6249 $as_echo "$DIFF" >&6; }
6250 else
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254 
6255 
6256   test -n "$DIFF" && break
6257 done
6258 
6259     else
6260       # If it succeeded, then it was overridden by the user. We will use it
6261       # for the tool.
6262 
6263       # First remove it from the list of overridden variables, so we can test
6264       # for unknown variables in the end.
6265       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6266 
6267       # Check if the provided tool contains a complete path.
6268       tool_specified="$DIFF"
6269       tool_basename="${tool_specified##*/}"
6270       if test "x$tool_basename" = "x$tool_specified"; then
6271         # A command without a complete path is provided, search $PATH.
6272         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6273 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6274         # Extract the first word of "$tool_basename", so it can be a program name with args.
6275 set dummy $tool_basename; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_path_DIFF+:} false; then :
6279   $as_echo_n "(cached) " >&6
6280 else
6281   case $DIFF in
6282   [\\/]* | ?:[\\/]*)
6283   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6284   ;;
6285   *)
6286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289   IFS=$as_save_IFS
6290   test -z "$as_dir" && as_dir=.
6291     for ac_exec_ext in '' $ac_executable_extensions; do
6292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295     break 2
6296   fi
6297 done
6298   done
6299 IFS=$as_save_IFS
6300 
6301   ;;
6302 esac
6303 fi
6304 DIFF=$ac_cv_path_DIFF
6305 if test -n "$DIFF"; then
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6307 $as_echo "$DIFF" >&6; }
6308 else
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312 
6313 
6314         if test "x$DIFF" = x; then
6315           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6316         fi
6317       else
6318         # Otherwise we believe it is a complete path. Use it as it is.
6319         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6320 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6322 $as_echo_n "checking for DIFF... " >&6; }
6323         if test ! -x "$tool_specified"; then
6324           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6325 $as_echo "not found" >&6; }
6326           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6327         fi
6328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6329 $as_echo "$tool_specified" >&6; }
6330       fi
6331     fi
6332   fi
6333 
6334 
6335 
6336   if test "x$DIFF" = x; then
6337     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6338   fi
6339 
6340 
6341 
6342 
6343 
6344   # Publish this variable in the help.
6345 
6346 
6347   if test "x$DIRNAME" = x; then
6348     # The variable is not set by user, try to locate tool using the code snippet
6349     for ac_prog in dirname
6350 do
6351   # Extract the first word of "$ac_prog", so it can be a program name with args.
6352 set dummy $ac_prog; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_path_DIRNAME+:} false; then :
6356   $as_echo_n "(cached) " >&6
6357 else
6358   case $DIRNAME in
6359   [\\/]* | ?:[\\/]*)
6360   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6361   ;;
6362   *)
6363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377 
6378   ;;
6379 esac
6380 fi
6381 DIRNAME=$ac_cv_path_DIRNAME
6382 if test -n "$DIRNAME"; then
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6384 $as_echo "$DIRNAME" >&6; }
6385 else
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389 
6390 
6391   test -n "$DIRNAME" && break
6392 done
6393 
6394   else
6395     # The variable is set, but is it from the command line or the environment?
6396 
6397     # Try to remove the string !DIRNAME! from our list.
6398     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6399     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6400       # If it failed, the variable was not from the command line. Ignore it,
6401       # but warn the user (except for BASH, which is always set by the calling BASH).
6402       if test "xDIRNAME" != xBASH; then
6403         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6404 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6405       fi
6406       # Try to locate tool using the code snippet
6407       for ac_prog in dirname
6408 do
6409   # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy $ac_prog; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_path_DIRNAME+:} false; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   case $DIRNAME in
6417   [\\/]* | ?:[\\/]*)
6418   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6419   ;;
6420   *)
6421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426     for ac_exec_ext in '' $ac_executable_extensions; do
6427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433   done
6434 IFS=$as_save_IFS
6435 
6436   ;;
6437 esac
6438 fi
6439 DIRNAME=$ac_cv_path_DIRNAME
6440 if test -n "$DIRNAME"; then
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6442 $as_echo "$DIRNAME" >&6; }
6443 else
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447 
6448 
6449   test -n "$DIRNAME" && break
6450 done
6451 
6452     else
6453       # If it succeeded, then it was overridden by the user. We will use it
6454       # for the tool.
6455 
6456       # First remove it from the list of overridden variables, so we can test
6457       # for unknown variables in the end.
6458       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6459 
6460       # Check if the provided tool contains a complete path.
6461       tool_specified="$DIRNAME"
6462       tool_basename="${tool_specified##*/}"
6463       if test "x$tool_basename" = "x$tool_specified"; then
6464         # A command without a complete path is provided, search $PATH.
6465         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6466 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6467         # Extract the first word of "$tool_basename", so it can be a program name with args.
6468 set dummy $tool_basename; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_path_DIRNAME+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   case $DIRNAME in
6475   [\\/]* | ?:[\\/]*)
6476   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6477   ;;
6478   *)
6479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482   IFS=$as_save_IFS
6483   test -z "$as_dir" && as_dir=.
6484     for ac_exec_ext in '' $ac_executable_extensions; do
6485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488     break 2
6489   fi
6490 done
6491   done
6492 IFS=$as_save_IFS
6493 
6494   ;;
6495 esac
6496 fi
6497 DIRNAME=$ac_cv_path_DIRNAME
6498 if test -n "$DIRNAME"; then
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6500 $as_echo "$DIRNAME" >&6; }
6501 else
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505 
6506 
6507         if test "x$DIRNAME" = x; then
6508           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6509         fi
6510       else
6511         # Otherwise we believe it is a complete path. Use it as it is.
6512         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6513 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6514         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6515 $as_echo_n "checking for DIRNAME... " >&6; }
6516         if test ! -x "$tool_specified"; then
6517           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6518 $as_echo "not found" >&6; }
6519           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6520         fi
6521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6522 $as_echo "$tool_specified" >&6; }
6523       fi
6524     fi
6525   fi
6526 
6527 
6528 
6529   if test "x$DIRNAME" = x; then
6530     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6531   fi
6532 
6533 
6534 
6535 
6536 
6537   # Publish this variable in the help.
6538 
6539 
6540   if test "x$ECHO" = x; then
6541     # The variable is not set by user, try to locate tool using the code snippet
6542     for ac_prog in echo
6543 do
6544   # Extract the first word of "$ac_prog", so it can be a program name with args.
6545 set dummy $ac_prog; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_path_ECHO+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   case $ECHO in
6552   [\\/]* | ?:[\\/]*)
6553   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6554   ;;
6555   *)
6556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561     for ac_exec_ext in '' $ac_executable_extensions; do
6562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568   done
6569 IFS=$as_save_IFS
6570 
6571   ;;
6572 esac
6573 fi
6574 ECHO=$ac_cv_path_ECHO
6575 if test -n "$ECHO"; then
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6577 $as_echo "$ECHO" >&6; }
6578 else
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582 
6583 
6584   test -n "$ECHO" && break
6585 done
6586 
6587   else
6588     # The variable is set, but is it from the command line or the environment?
6589 
6590     # Try to remove the string !ECHO! from our list.
6591     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6592     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6593       # If it failed, the variable was not from the command line. Ignore it,
6594       # but warn the user (except for BASH, which is always set by the calling BASH).
6595       if test "xECHO" != xBASH; then
6596         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6597 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6598       fi
6599       # Try to locate tool using the code snippet
6600       for ac_prog in echo
6601 do
6602   # Extract the first word of "$ac_prog", so it can be a program name with args.
6603 set dummy $ac_prog; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_path_ECHO+:} false; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609   case $ECHO in
6610   [\\/]* | ?:[\\/]*)
6611   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6612   ;;
6613   *)
6614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619     for ac_exec_ext in '' $ac_executable_extensions; do
6620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626   done
6627 IFS=$as_save_IFS
6628 
6629   ;;
6630 esac
6631 fi
6632 ECHO=$ac_cv_path_ECHO
6633 if test -n "$ECHO"; then
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6635 $as_echo "$ECHO" >&6; }
6636 else
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6639 fi
6640 
6641 
6642   test -n "$ECHO" && break
6643 done
6644 
6645     else
6646       # If it succeeded, then it was overridden by the user. We will use it
6647       # for the tool.
6648 
6649       # First remove it from the list of overridden variables, so we can test
6650       # for unknown variables in the end.
6651       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6652 
6653       # Check if the provided tool contains a complete path.
6654       tool_specified="$ECHO"
6655       tool_basename="${tool_specified##*/}"
6656       if test "x$tool_basename" = "x$tool_specified"; then
6657         # A command without a complete path is provided, search $PATH.
6658         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6659 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6660         # Extract the first word of "$tool_basename", so it can be a program name with args.
6661 set dummy $tool_basename; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_path_ECHO+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   case $ECHO in
6668   [\\/]* | ?:[\\/]*)
6669   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6670   ;;
6671   *)
6672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_exec_ext in '' $ac_executable_extensions; do
6678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684   done
6685 IFS=$as_save_IFS
6686 
6687   ;;
6688 esac
6689 fi
6690 ECHO=$ac_cv_path_ECHO
6691 if test -n "$ECHO"; then
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6693 $as_echo "$ECHO" >&6; }
6694 else
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698 
6699 
6700         if test "x$ECHO" = x; then
6701           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6702         fi
6703       else
6704         # Otherwise we believe it is a complete path. Use it as it is.
6705         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6706 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6708 $as_echo_n "checking for ECHO... " >&6; }
6709         if test ! -x "$tool_specified"; then
6710           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6711 $as_echo "not found" >&6; }
6712           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6713         fi
6714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6715 $as_echo "$tool_specified" >&6; }
6716       fi
6717     fi
6718   fi
6719 
6720 
6721 
6722   if test "x$ECHO" = x; then
6723     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6724   fi
6725 
6726 
6727 
6728 
6729 
6730   # Publish this variable in the help.
6731 
6732 
6733   if test "x$EXPR" = x; then
6734     # The variable is not set by user, try to locate tool using the code snippet
6735     for ac_prog in expr
6736 do
6737   # Extract the first word of "$ac_prog", so it can be a program name with args.
6738 set dummy $ac_prog; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_path_EXPR+:} false; then :
6742   $as_echo_n "(cached) " >&6
6743 else
6744   case $EXPR in
6745   [\\/]* | ?:[\\/]*)
6746   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6747   ;;
6748   *)
6749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754     for ac_exec_ext in '' $ac_executable_extensions; do
6755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761   done
6762 IFS=$as_save_IFS
6763 
6764   ;;
6765 esac
6766 fi
6767 EXPR=$ac_cv_path_EXPR
6768 if test -n "$EXPR"; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6770 $as_echo "$EXPR" >&6; }
6771 else
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775 
6776 
6777   test -n "$EXPR" && break
6778 done
6779 
6780   else
6781     # The variable is set, but is it from the command line or the environment?
6782 
6783     # Try to remove the string !EXPR! from our list.
6784     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6785     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6786       # If it failed, the variable was not from the command line. Ignore it,
6787       # but warn the user (except for BASH, which is always set by the calling BASH).
6788       if test "xEXPR" != xBASH; then
6789         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6790 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6791       fi
6792       # Try to locate tool using the code snippet
6793       for ac_prog in expr
6794 do
6795   # Extract the first word of "$ac_prog", so it can be a program name with args.
6796 set dummy $ac_prog; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_path_EXPR+:} false; then :
6800   $as_echo_n "(cached) " >&6
6801 else
6802   case $EXPR in
6803   [\\/]* | ?:[\\/]*)
6804   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6805   ;;
6806   *)
6807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810   IFS=$as_save_IFS
6811   test -z "$as_dir" && as_dir=.
6812     for ac_exec_ext in '' $ac_executable_extensions; do
6813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816     break 2
6817   fi
6818 done
6819   done
6820 IFS=$as_save_IFS
6821 
6822   ;;
6823 esac
6824 fi
6825 EXPR=$ac_cv_path_EXPR
6826 if test -n "$EXPR"; then
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6828 $as_echo "$EXPR" >&6; }
6829 else
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833 
6834 
6835   test -n "$EXPR" && break
6836 done
6837 
6838     else
6839       # If it succeeded, then it was overridden by the user. We will use it
6840       # for the tool.
6841 
6842       # First remove it from the list of overridden variables, so we can test
6843       # for unknown variables in the end.
6844       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6845 
6846       # Check if the provided tool contains a complete path.
6847       tool_specified="$EXPR"
6848       tool_basename="${tool_specified##*/}"
6849       if test "x$tool_basename" = "x$tool_specified"; then
6850         # A command without a complete path is provided, search $PATH.
6851         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6852 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6853         # Extract the first word of "$tool_basename", so it can be a program name with args.
6854 set dummy $tool_basename; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if ${ac_cv_path_EXPR+:} false; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   case $EXPR in
6861   [\\/]* | ?:[\\/]*)
6862   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6863   ;;
6864   *)
6865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870     for ac_exec_ext in '' $ac_executable_extensions; do
6871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877   done
6878 IFS=$as_save_IFS
6879 
6880   ;;
6881 esac
6882 fi
6883 EXPR=$ac_cv_path_EXPR
6884 if test -n "$EXPR"; then
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6886 $as_echo "$EXPR" >&6; }
6887 else
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891 
6892 
6893         if test "x$EXPR" = x; then
6894           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6895         fi
6896       else
6897         # Otherwise we believe it is a complete path. Use it as it is.
6898         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6899 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6901 $as_echo_n "checking for EXPR... " >&6; }
6902         if test ! -x "$tool_specified"; then
6903           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6904 $as_echo "not found" >&6; }
6905           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6906         fi
6907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6908 $as_echo "$tool_specified" >&6; }
6909       fi
6910     fi
6911   fi
6912 
6913 
6914 
6915   if test "x$EXPR" = x; then
6916     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6917   fi
6918 
6919 
6920 
6921 
6922 
6923   # Publish this variable in the help.
6924 
6925 
6926   if test "x$FILE" = x; then
6927     # The variable is not set by user, try to locate tool using the code snippet
6928     for ac_prog in file
6929 do
6930   # Extract the first word of "$ac_prog", so it can be a program name with args.
6931 set dummy $ac_prog; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_path_FILE+:} false; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   case $FILE in
6938   [\\/]* | ?:[\\/]*)
6939   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6940   ;;
6941   *)
6942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947     for ac_exec_ext in '' $ac_executable_extensions; do
6948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954   done
6955 IFS=$as_save_IFS
6956 
6957   ;;
6958 esac
6959 fi
6960 FILE=$ac_cv_path_FILE
6961 if test -n "$FILE"; then
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6963 $as_echo "$FILE" >&6; }
6964 else
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968 
6969 
6970   test -n "$FILE" && break
6971 done
6972 
6973   else
6974     # The variable is set, but is it from the command line or the environment?
6975 
6976     # Try to remove the string !FILE! from our list.
6977     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6978     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6979       # If it failed, the variable was not from the command line. Ignore it,
6980       # but warn the user (except for BASH, which is always set by the calling BASH).
6981       if test "xFILE" != xBASH; then
6982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6983 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6984       fi
6985       # Try to locate tool using the code snippet
6986       for ac_prog in file
6987 do
6988   # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_path_FILE+:} false; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   case $FILE in
6996   [\\/]* | ?:[\\/]*)
6997   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6998   ;;
6999   *)
7000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014 
7015   ;;
7016 esac
7017 fi
7018 FILE=$ac_cv_path_FILE
7019 if test -n "$FILE"; then
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7021 $as_echo "$FILE" >&6; }
7022 else
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026 
7027 
7028   test -n "$FILE" && break
7029 done
7030 
7031     else
7032       # If it succeeded, then it was overridden by the user. We will use it
7033       # for the tool.
7034 
7035       # First remove it from the list of overridden variables, so we can test
7036       # for unknown variables in the end.
7037       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7038 
7039       # Check if the provided tool contains a complete path.
7040       tool_specified="$FILE"
7041       tool_basename="${tool_specified##*/}"
7042       if test "x$tool_basename" = "x$tool_specified"; then
7043         # A command without a complete path is provided, search $PATH.
7044         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7045 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7046         # Extract the first word of "$tool_basename", so it can be a program name with args.
7047 set dummy $tool_basename; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_path_FILE+:} false; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   case $FILE in
7054   [\\/]* | ?:[\\/]*)
7055   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7056   ;;
7057   *)
7058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063     for ac_exec_ext in '' $ac_executable_extensions; do
7064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070   done
7071 IFS=$as_save_IFS
7072 
7073   ;;
7074 esac
7075 fi
7076 FILE=$ac_cv_path_FILE
7077 if test -n "$FILE"; then
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7079 $as_echo "$FILE" >&6; }
7080 else
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7083 fi
7084 
7085 
7086         if test "x$FILE" = x; then
7087           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7088         fi
7089       else
7090         # Otherwise we believe it is a complete path. Use it as it is.
7091         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7092 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7094 $as_echo_n "checking for FILE... " >&6; }
7095         if test ! -x "$tool_specified"; then
7096           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7097 $as_echo "not found" >&6; }
7098           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7099         fi
7100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7101 $as_echo "$tool_specified" >&6; }
7102       fi
7103     fi
7104   fi
7105 
7106 
7107 
7108   if test "x$FILE" = x; then
7109     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7110   fi
7111 
7112 
7113 
7114 
7115 
7116   # Publish this variable in the help.
7117 
7118 
7119   if test "x$FIND" = x; then
7120     # The variable is not set by user, try to locate tool using the code snippet
7121     for ac_prog in find
7122 do
7123   # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_path_FIND+:} false; then :
7128   $as_echo_n "(cached) " >&6
7129 else
7130   case $FIND in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149 
7150   ;;
7151 esac
7152 fi
7153 FIND=$ac_cv_path_FIND
7154 if test -n "$FIND"; then
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7156 $as_echo "$FIND" >&6; }
7157 else
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161 
7162 
7163   test -n "$FIND" && break
7164 done
7165 
7166   else
7167     # The variable is set, but is it from the command line or the environment?
7168 
7169     # Try to remove the string !FIND! from our list.
7170     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7171     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7172       # If it failed, the variable was not from the command line. Ignore it,
7173       # but warn the user (except for BASH, which is always set by the calling BASH).
7174       if test "xFIND" != xBASH; then
7175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7176 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7177       fi
7178       # Try to locate tool using the code snippet
7179       for ac_prog in find
7180 do
7181   # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy $ac_prog; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_path_FIND+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   case $FIND in
7189   [\\/]* | ?:[\\/]*)
7190   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7191   ;;
7192   *)
7193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198     for ac_exec_ext in '' $ac_executable_extensions; do
7199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205   done
7206 IFS=$as_save_IFS
7207 
7208   ;;
7209 esac
7210 fi
7211 FIND=$ac_cv_path_FIND
7212 if test -n "$FIND"; then
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7214 $as_echo "$FIND" >&6; }
7215 else
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219 
7220 
7221   test -n "$FIND" && break
7222 done
7223 
7224     else
7225       # If it succeeded, then it was overridden by the user. We will use it
7226       # for the tool.
7227 
7228       # First remove it from the list of overridden variables, so we can test
7229       # for unknown variables in the end.
7230       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7231 
7232       # Check if the provided tool contains a complete path.
7233       tool_specified="$FIND"
7234       tool_basename="${tool_specified##*/}"
7235       if test "x$tool_basename" = "x$tool_specified"; then
7236         # A command without a complete path is provided, search $PATH.
7237         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7238 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7239         # Extract the first word of "$tool_basename", so it can be a program name with args.
7240 set dummy $tool_basename; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_path_FIND+:} false; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   case $FIND in
7247   [\\/]* | ?:[\\/]*)
7248   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7249   ;;
7250   *)
7251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265 
7266   ;;
7267 esac
7268 fi
7269 FIND=$ac_cv_path_FIND
7270 if test -n "$FIND"; then
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7272 $as_echo "$FIND" >&6; }
7273 else
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277 
7278 
7279         if test "x$FIND" = x; then
7280           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7281         fi
7282       else
7283         # Otherwise we believe it is a complete path. Use it as it is.
7284         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7285 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7287 $as_echo_n "checking for FIND... " >&6; }
7288         if test ! -x "$tool_specified"; then
7289           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7290 $as_echo "not found" >&6; }
7291           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7292         fi
7293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7294 $as_echo "$tool_specified" >&6; }
7295       fi
7296     fi
7297   fi
7298 
7299 
7300 
7301   if test "x$FIND" = x; then
7302     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7303   fi
7304 
7305 
7306 
7307 
7308 
7309   # Publish this variable in the help.
7310 
7311 
7312   if test "x$HEAD" = x; then
7313     # The variable is not set by user, try to locate tool using the code snippet
7314     for ac_prog in head
7315 do
7316   # Extract the first word of "$ac_prog", so it can be a program name with args.
7317 set dummy $ac_prog; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_path_HEAD+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   case $HEAD in
7324   [\\/]* | ?:[\\/]*)
7325   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7326   ;;
7327   *)
7328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333     for ac_exec_ext in '' $ac_executable_extensions; do
7334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340   done
7341 IFS=$as_save_IFS
7342 
7343   ;;
7344 esac
7345 fi
7346 HEAD=$ac_cv_path_HEAD
7347 if test -n "$HEAD"; then
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7349 $as_echo "$HEAD" >&6; }
7350 else
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354 
7355 
7356   test -n "$HEAD" && break
7357 done
7358 
7359   else
7360     # The variable is set, but is it from the command line or the environment?
7361 
7362     # Try to remove the string !HEAD! from our list.
7363     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7364     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7365       # If it failed, the variable was not from the command line. Ignore it,
7366       # but warn the user (except for BASH, which is always set by the calling BASH).
7367       if test "xHEAD" != xBASH; then
7368         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7369 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7370       fi
7371       # Try to locate tool using the code snippet
7372       for ac_prog in head
7373 do
7374   # Extract the first word of "$ac_prog", so it can be a program name with args.
7375 set dummy $ac_prog; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_path_HEAD+:} false; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   case $HEAD in
7382   [\\/]* | ?:[\\/]*)
7383   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7384   ;;
7385   *)
7386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391     for ac_exec_ext in '' $ac_executable_extensions; do
7392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398   done
7399 IFS=$as_save_IFS
7400 
7401   ;;
7402 esac
7403 fi
7404 HEAD=$ac_cv_path_HEAD
7405 if test -n "$HEAD"; then
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7407 $as_echo "$HEAD" >&6; }
7408 else
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412 
7413 
7414   test -n "$HEAD" && break
7415 done
7416 
7417     else
7418       # If it succeeded, then it was overridden by the user. We will use it
7419       # for the tool.
7420 
7421       # First remove it from the list of overridden variables, so we can test
7422       # for unknown variables in the end.
7423       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7424 
7425       # Check if the provided tool contains a complete path.
7426       tool_specified="$HEAD"
7427       tool_basename="${tool_specified##*/}"
7428       if test "x$tool_basename" = "x$tool_specified"; then
7429         # A command without a complete path is provided, search $PATH.
7430         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7431 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7432         # Extract the first word of "$tool_basename", so it can be a program name with args.
7433 set dummy $tool_basename; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_path_HEAD+:} false; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   case $HEAD in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458 
7459   ;;
7460 esac
7461 fi
7462 HEAD=$ac_cv_path_HEAD
7463 if test -n "$HEAD"; then
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7465 $as_echo "$HEAD" >&6; }
7466 else
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470 
7471 
7472         if test "x$HEAD" = x; then
7473           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7474         fi
7475       else
7476         # Otherwise we believe it is a complete path. Use it as it is.
7477         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7478 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7479         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7480 $as_echo_n "checking for HEAD... " >&6; }
7481         if test ! -x "$tool_specified"; then
7482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7483 $as_echo "not found" >&6; }
7484           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7485         fi
7486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7487 $as_echo "$tool_specified" >&6; }
7488       fi
7489     fi
7490   fi
7491 
7492 
7493 
7494   if test "x$HEAD" = x; then
7495     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7496   fi
7497 
7498 
7499 
7500 
7501 
7502   # Publish this variable in the help.
7503 
7504 
7505   if test "x$LN" = x; then
7506     # The variable is not set by user, try to locate tool using the code snippet
7507     for ac_prog in ln
7508 do
7509   # Extract the first word of "$ac_prog", so it can be a program name with args.
7510 set dummy $ac_prog; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_path_LN+:} false; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   case $LN in
7517   [\\/]* | ?:[\\/]*)
7518   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7519   ;;
7520   *)
7521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526     for ac_exec_ext in '' $ac_executable_extensions; do
7527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533   done
7534 IFS=$as_save_IFS
7535 
7536   ;;
7537 esac
7538 fi
7539 LN=$ac_cv_path_LN
7540 if test -n "$LN"; then
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7542 $as_echo "$LN" >&6; }
7543 else
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547 
7548 
7549   test -n "$LN" && break
7550 done
7551 
7552   else
7553     # The variable is set, but is it from the command line or the environment?
7554 
7555     # Try to remove the string !LN! from our list.
7556     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7557     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7558       # If it failed, the variable was not from the command line. Ignore it,
7559       # but warn the user (except for BASH, which is always set by the calling BASH).
7560       if test "xLN" != xBASH; then
7561         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7562 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7563       fi
7564       # Try to locate tool using the code snippet
7565       for ac_prog in ln
7566 do
7567   # Extract the first word of "$ac_prog", so it can be a program name with args.
7568 set dummy $ac_prog; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_path_LN+:} false; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   case $LN in
7575   [\\/]* | ?:[\\/]*)
7576   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7577   ;;
7578   *)
7579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593 
7594   ;;
7595 esac
7596 fi
7597 LN=$ac_cv_path_LN
7598 if test -n "$LN"; then
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7600 $as_echo "$LN" >&6; }
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605 
7606 
7607   test -n "$LN" && break
7608 done
7609 
7610     else
7611       # If it succeeded, then it was overridden by the user. We will use it
7612       # for the tool.
7613 
7614       # First remove it from the list of overridden variables, so we can test
7615       # for unknown variables in the end.
7616       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7617 
7618       # Check if the provided tool contains a complete path.
7619       tool_specified="$LN"
7620       tool_basename="${tool_specified##*/}"
7621       if test "x$tool_basename" = "x$tool_specified"; then
7622         # A command without a complete path is provided, search $PATH.
7623         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7624 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7625         # Extract the first word of "$tool_basename", so it can be a program name with args.
7626 set dummy $tool_basename; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_path_LN+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   case $LN in
7633   [\\/]* | ?:[\\/]*)
7634   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7635   ;;
7636   *)
7637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642     for ac_exec_ext in '' $ac_executable_extensions; do
7643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649   done
7650 IFS=$as_save_IFS
7651 
7652   ;;
7653 esac
7654 fi
7655 LN=$ac_cv_path_LN
7656 if test -n "$LN"; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7658 $as_echo "$LN" >&6; }
7659 else
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663 
7664 
7665         if test "x$LN" = x; then
7666           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7667         fi
7668       else
7669         # Otherwise we believe it is a complete path. Use it as it is.
7670         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7671 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7673 $as_echo_n "checking for LN... " >&6; }
7674         if test ! -x "$tool_specified"; then
7675           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7676 $as_echo "not found" >&6; }
7677           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7678         fi
7679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7680 $as_echo "$tool_specified" >&6; }
7681       fi
7682     fi
7683   fi
7684 
7685 
7686 
7687   if test "x$LN" = x; then
7688     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7689   fi
7690 
7691 
7692 
7693 
7694 
7695   # Publish this variable in the help.
7696 
7697 
7698   if test "x$LS" = x; then
7699     # The variable is not set by user, try to locate tool using the code snippet
7700     for ac_prog in ls
7701 do
7702   # Extract the first word of "$ac_prog", so it can be a program name with args.
7703 set dummy $ac_prog; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_path_LS+:} false; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   case $LS in
7710   [\\/]* | ?:[\\/]*)
7711   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7712   ;;
7713   *)
7714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719     for ac_exec_ext in '' $ac_executable_extensions; do
7720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726   done
7727 IFS=$as_save_IFS
7728 
7729   ;;
7730 esac
7731 fi
7732 LS=$ac_cv_path_LS
7733 if test -n "$LS"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7735 $as_echo "$LS" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740 
7741 
7742   test -n "$LS" && break
7743 done
7744 
7745   else
7746     # The variable is set, but is it from the command line or the environment?
7747 
7748     # Try to remove the string !LS! from our list.
7749     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7750     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7751       # If it failed, the variable was not from the command line. Ignore it,
7752       # but warn the user (except for BASH, which is always set by the calling BASH).
7753       if test "xLS" != xBASH; then
7754         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7755 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7756       fi
7757       # Try to locate tool using the code snippet
7758       for ac_prog in ls
7759 do
7760   # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_path_LS+:} false; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   case $LS in
7768   [\\/]* | ?:[\\/]*)
7769   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7770   ;;
7771   *)
7772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786 
7787   ;;
7788 esac
7789 fi
7790 LS=$ac_cv_path_LS
7791 if test -n "$LS"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7793 $as_echo "$LS" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798 
7799 
7800   test -n "$LS" && break
7801 done
7802 
7803     else
7804       # If it succeeded, then it was overridden by the user. We will use it
7805       # for the tool.
7806 
7807       # First remove it from the list of overridden variables, so we can test
7808       # for unknown variables in the end.
7809       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7810 
7811       # Check if the provided tool contains a complete path.
7812       tool_specified="$LS"
7813       tool_basename="${tool_specified##*/}"
7814       if test "x$tool_basename" = "x$tool_specified"; then
7815         # A command without a complete path is provided, search $PATH.
7816         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7817 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7818         # Extract the first word of "$tool_basename", so it can be a program name with args.
7819 set dummy $tool_basename; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_path_LS+:} false; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   case $LS in
7826   [\\/]* | ?:[\\/]*)
7827   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7828   ;;
7829   *)
7830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835     for ac_exec_ext in '' $ac_executable_extensions; do
7836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842   done
7843 IFS=$as_save_IFS
7844 
7845   ;;
7846 esac
7847 fi
7848 LS=$ac_cv_path_LS
7849 if test -n "$LS"; then
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7851 $as_echo "$LS" >&6; }
7852 else
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855 fi
7856 
7857 
7858         if test "x$LS" = x; then
7859           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7860         fi
7861       else
7862         # Otherwise we believe it is a complete path. Use it as it is.
7863         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7864 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7866 $as_echo_n "checking for LS... " >&6; }
7867         if test ! -x "$tool_specified"; then
7868           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7869 $as_echo "not found" >&6; }
7870           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7871         fi
7872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7873 $as_echo "$tool_specified" >&6; }
7874       fi
7875     fi
7876   fi
7877 
7878 
7879 
7880   if test "x$LS" = x; then
7881     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7882   fi
7883 
7884 
7885 
7886 
7887 
7888   # Publish this variable in the help.
7889 
7890 
7891   if test "x$MKDIR" = x; then
7892     # The variable is not set by user, try to locate tool using the code snippet
7893     for ac_prog in mkdir
7894 do
7895   # Extract the first word of "$ac_prog", so it can be a program name with args.
7896 set dummy $ac_prog; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_path_MKDIR+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   case $MKDIR in
7903   [\\/]* | ?:[\\/]*)
7904   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7905   ;;
7906   *)
7907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912     for ac_exec_ext in '' $ac_executable_extensions; do
7913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919   done
7920 IFS=$as_save_IFS
7921 
7922   ;;
7923 esac
7924 fi
7925 MKDIR=$ac_cv_path_MKDIR
7926 if test -n "$MKDIR"; then
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7928 $as_echo "$MKDIR" >&6; }
7929 else
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933 
7934 
7935   test -n "$MKDIR" && break
7936 done
7937 
7938   else
7939     # The variable is set, but is it from the command line or the environment?
7940 
7941     # Try to remove the string !MKDIR! from our list.
7942     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7943     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7944       # If it failed, the variable was not from the command line. Ignore it,
7945       # but warn the user (except for BASH, which is always set by the calling BASH).
7946       if test "xMKDIR" != xBASH; then
7947         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7948 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7949       fi
7950       # Try to locate tool using the code snippet
7951       for ac_prog in mkdir
7952 do
7953   # Extract the first word of "$ac_prog", so it can be a program name with args.
7954 set dummy $ac_prog; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if ${ac_cv_path_MKDIR+:} false; then :
7958   $as_echo_n "(cached) " >&6
7959 else
7960   case $MKDIR in
7961   [\\/]* | ?:[\\/]*)
7962   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7963   ;;
7964   *)
7965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968   IFS=$as_save_IFS
7969   test -z "$as_dir" && as_dir=.
7970     for ac_exec_ext in '' $ac_executable_extensions; do
7971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974     break 2
7975   fi
7976 done
7977   done
7978 IFS=$as_save_IFS
7979 
7980   ;;
7981 esac
7982 fi
7983 MKDIR=$ac_cv_path_MKDIR
7984 if test -n "$MKDIR"; then
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7986 $as_echo "$MKDIR" >&6; }
7987 else
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7990 fi
7991 
7992 
7993   test -n "$MKDIR" && break
7994 done
7995 
7996     else
7997       # If it succeeded, then it was overridden by the user. We will use it
7998       # for the tool.
7999 
8000       # First remove it from the list of overridden variables, so we can test
8001       # for unknown variables in the end.
8002       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8003 
8004       # Check if the provided tool contains a complete path.
8005       tool_specified="$MKDIR"
8006       tool_basename="${tool_specified##*/}"
8007       if test "x$tool_basename" = "x$tool_specified"; then
8008         # A command without a complete path is provided, search $PATH.
8009         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8010 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8011         # Extract the first word of "$tool_basename", so it can be a program name with args.
8012 set dummy $tool_basename; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_path_MKDIR+:} false; then :
8016   $as_echo_n "(cached) " >&6
8017 else
8018   case $MKDIR in
8019   [\\/]* | ?:[\\/]*)
8020   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8021   ;;
8022   *)
8023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026   IFS=$as_save_IFS
8027   test -z "$as_dir" && as_dir=.
8028     for ac_exec_ext in '' $ac_executable_extensions; do
8029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032     break 2
8033   fi
8034 done
8035   done
8036 IFS=$as_save_IFS
8037 
8038   ;;
8039 esac
8040 fi
8041 MKDIR=$ac_cv_path_MKDIR
8042 if test -n "$MKDIR"; then
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8044 $as_echo "$MKDIR" >&6; }
8045 else
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049 
8050 
8051         if test "x$MKDIR" = x; then
8052           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8053         fi
8054       else
8055         # Otherwise we believe it is a complete path. Use it as it is.
8056         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8057 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8058         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8059 $as_echo_n "checking for MKDIR... " >&6; }
8060         if test ! -x "$tool_specified"; then
8061           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8062 $as_echo "not found" >&6; }
8063           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8064         fi
8065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8066 $as_echo "$tool_specified" >&6; }
8067       fi
8068     fi
8069   fi
8070 
8071 
8072 
8073   if test "x$MKDIR" = x; then
8074     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8075   fi
8076 
8077 
8078 
8079 
8080 
8081   # Publish this variable in the help.
8082 
8083 
8084   if test "x$MKTEMP" = x; then
8085     # The variable is not set by user, try to locate tool using the code snippet
8086     for ac_prog in mktemp
8087 do
8088   # Extract the first word of "$ac_prog", so it can be a program name with args.
8089 set dummy $ac_prog; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if ${ac_cv_path_MKTEMP+:} false; then :
8093   $as_echo_n "(cached) " >&6
8094 else
8095   case $MKTEMP in
8096   [\\/]* | ?:[\\/]*)
8097   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8098   ;;
8099   *)
8100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103   IFS=$as_save_IFS
8104   test -z "$as_dir" && as_dir=.
8105     for ac_exec_ext in '' $ac_executable_extensions; do
8106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109     break 2
8110   fi
8111 done
8112   done
8113 IFS=$as_save_IFS
8114 
8115   ;;
8116 esac
8117 fi
8118 MKTEMP=$ac_cv_path_MKTEMP
8119 if test -n "$MKTEMP"; then
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8121 $as_echo "$MKTEMP" >&6; }
8122 else
8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126 
8127 
8128   test -n "$MKTEMP" && break
8129 done
8130 
8131   else
8132     # The variable is set, but is it from the command line or the environment?
8133 
8134     # Try to remove the string !MKTEMP! from our list.
8135     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8136     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8137       # If it failed, the variable was not from the command line. Ignore it,
8138       # but warn the user (except for BASH, which is always set by the calling BASH).
8139       if test "xMKTEMP" != xBASH; then
8140         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8141 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8142       fi
8143       # Try to locate tool using the code snippet
8144       for ac_prog in mktemp
8145 do
8146   # Extract the first word of "$ac_prog", so it can be a program name with args.
8147 set dummy $ac_prog; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if ${ac_cv_path_MKTEMP+:} false; then :
8151   $as_echo_n "(cached) " >&6
8152 else
8153   case $MKTEMP in
8154   [\\/]* | ?:[\\/]*)
8155   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8156   ;;
8157   *)
8158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161   IFS=$as_save_IFS
8162   test -z "$as_dir" && as_dir=.
8163     for ac_exec_ext in '' $ac_executable_extensions; do
8164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167     break 2
8168   fi
8169 done
8170   done
8171 IFS=$as_save_IFS
8172 
8173   ;;
8174 esac
8175 fi
8176 MKTEMP=$ac_cv_path_MKTEMP
8177 if test -n "$MKTEMP"; then
8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8179 $as_echo "$MKTEMP" >&6; }
8180 else
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184 
8185 
8186   test -n "$MKTEMP" && break
8187 done
8188 
8189     else
8190       # If it succeeded, then it was overridden by the user. We will use it
8191       # for the tool.
8192 
8193       # First remove it from the list of overridden variables, so we can test
8194       # for unknown variables in the end.
8195       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8196 
8197       # Check if the provided tool contains a complete path.
8198       tool_specified="$MKTEMP"
8199       tool_basename="${tool_specified##*/}"
8200       if test "x$tool_basename" = "x$tool_specified"; then
8201         # A command without a complete path is provided, search $PATH.
8202         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8203 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8204         # Extract the first word of "$tool_basename", so it can be a program name with args.
8205 set dummy $tool_basename; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_path_MKTEMP+:} false; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   case $MKTEMP in
8212   [\\/]* | ?:[\\/]*)
8213   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8214   ;;
8215   *)
8216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8218 do
8219   IFS=$as_save_IFS
8220   test -z "$as_dir" && as_dir=.
8221     for ac_exec_ext in '' $ac_executable_extensions; do
8222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225     break 2
8226   fi
8227 done
8228   done
8229 IFS=$as_save_IFS
8230 
8231   ;;
8232 esac
8233 fi
8234 MKTEMP=$ac_cv_path_MKTEMP
8235 if test -n "$MKTEMP"; then
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8237 $as_echo "$MKTEMP" >&6; }
8238 else
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242 
8243 
8244         if test "x$MKTEMP" = x; then
8245           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8246         fi
8247       else
8248         # Otherwise we believe it is a complete path. Use it as it is.
8249         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8250 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8252 $as_echo_n "checking for MKTEMP... " >&6; }
8253         if test ! -x "$tool_specified"; then
8254           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8255 $as_echo "not found" >&6; }
8256           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8257         fi
8258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8259 $as_echo "$tool_specified" >&6; }
8260       fi
8261     fi
8262   fi
8263 
8264 
8265 
8266   if test "x$MKTEMP" = x; then
8267     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8268   fi
8269 
8270 
8271 
8272 
8273 
8274   # Publish this variable in the help.
8275 
8276 
8277   if test "x$MV" = x; then
8278     # The variable is not set by user, try to locate tool using the code snippet
8279     for ac_prog in mv
8280 do
8281   # Extract the first word of "$ac_prog", so it can be a program name with args.
8282 set dummy $ac_prog; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_path_MV+:} false; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288   case $MV in
8289   [\\/]* | ?:[\\/]*)
8290   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8291   ;;
8292   *)
8293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8295 do
8296   IFS=$as_save_IFS
8297   test -z "$as_dir" && as_dir=.
8298     for ac_exec_ext in '' $ac_executable_extensions; do
8299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302     break 2
8303   fi
8304 done
8305   done
8306 IFS=$as_save_IFS
8307 
8308   ;;
8309 esac
8310 fi
8311 MV=$ac_cv_path_MV
8312 if test -n "$MV"; then
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8314 $as_echo "$MV" >&6; }
8315 else
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 $as_echo "no" >&6; }
8318 fi
8319 
8320 
8321   test -n "$MV" && break
8322 done
8323 
8324   else
8325     # The variable is set, but is it from the command line or the environment?
8326 
8327     # Try to remove the string !MV! from our list.
8328     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8329     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8330       # If it failed, the variable was not from the command line. Ignore it,
8331       # but warn the user (except for BASH, which is always set by the calling BASH).
8332       if test "xMV" != xBASH; then
8333         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8334 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8335       fi
8336       # Try to locate tool using the code snippet
8337       for ac_prog in mv
8338 do
8339   # Extract the first word of "$ac_prog", so it can be a program name with args.
8340 set dummy $ac_prog; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_path_MV+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   case $MV in
8347   [\\/]* | ?:[\\/]*)
8348   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8349   ;;
8350   *)
8351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354   IFS=$as_save_IFS
8355   test -z "$as_dir" && as_dir=.
8356     for ac_exec_ext in '' $ac_executable_extensions; do
8357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360     break 2
8361   fi
8362 done
8363   done
8364 IFS=$as_save_IFS
8365 
8366   ;;
8367 esac
8368 fi
8369 MV=$ac_cv_path_MV
8370 if test -n "$MV"; then
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8372 $as_echo "$MV" >&6; }
8373 else
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377 
8378 
8379   test -n "$MV" && break
8380 done
8381 
8382     else
8383       # If it succeeded, then it was overridden by the user. We will use it
8384       # for the tool.
8385 
8386       # First remove it from the list of overridden variables, so we can test
8387       # for unknown variables in the end.
8388       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8389 
8390       # Check if the provided tool contains a complete path.
8391       tool_specified="$MV"
8392       tool_basename="${tool_specified##*/}"
8393       if test "x$tool_basename" = "x$tool_specified"; then
8394         # A command without a complete path is provided, search $PATH.
8395         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8396 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8397         # Extract the first word of "$tool_basename", so it can be a program name with args.
8398 set dummy $tool_basename; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_path_MV+:} false; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   case $MV in
8405   [\\/]* | ?:[\\/]*)
8406   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8407   ;;
8408   *)
8409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8411 do
8412   IFS=$as_save_IFS
8413   test -z "$as_dir" && as_dir=.
8414     for ac_exec_ext in '' $ac_executable_extensions; do
8415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418     break 2
8419   fi
8420 done
8421   done
8422 IFS=$as_save_IFS
8423 
8424   ;;
8425 esac
8426 fi
8427 MV=$ac_cv_path_MV
8428 if test -n "$MV"; then
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8430 $as_echo "$MV" >&6; }
8431 else
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435 
8436 
8437         if test "x$MV" = x; then
8438           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8439         fi
8440       else
8441         # Otherwise we believe it is a complete path. Use it as it is.
8442         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8443 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8445 $as_echo_n "checking for MV... " >&6; }
8446         if test ! -x "$tool_specified"; then
8447           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8448 $as_echo "not found" >&6; }
8449           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8450         fi
8451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8452 $as_echo "$tool_specified" >&6; }
8453       fi
8454     fi
8455   fi
8456 
8457 
8458 
8459   if test "x$MV" = x; then
8460     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8461   fi
8462 
8463 
8464 
8465 
8466 
8467   # Publish this variable in the help.
8468 
8469 
8470   if test "x$NAWK" = x; then
8471     # The variable is not set by user, try to locate tool using the code snippet
8472     for ac_prog in nawk gawk awk
8473 do
8474   # Extract the first word of "$ac_prog", so it can be a program name with args.
8475 set dummy $ac_prog; ac_word=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if ${ac_cv_path_NAWK+:} false; then :
8479   $as_echo_n "(cached) " >&6
8480 else
8481   case $NAWK in
8482   [\\/]* | ?:[\\/]*)
8483   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8484   ;;
8485   *)
8486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489   IFS=$as_save_IFS
8490   test -z "$as_dir" && as_dir=.
8491     for ac_exec_ext in '' $ac_executable_extensions; do
8492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495     break 2
8496   fi
8497 done
8498   done
8499 IFS=$as_save_IFS
8500 
8501   ;;
8502 esac
8503 fi
8504 NAWK=$ac_cv_path_NAWK
8505 if test -n "$NAWK"; then
8506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8507 $as_echo "$NAWK" >&6; }
8508 else
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512 
8513 
8514   test -n "$NAWK" && break
8515 done
8516 
8517   else
8518     # The variable is set, but is it from the command line or the environment?
8519 
8520     # Try to remove the string !NAWK! from our list.
8521     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8522     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8523       # If it failed, the variable was not from the command line. Ignore it,
8524       # but warn the user (except for BASH, which is always set by the calling BASH).
8525       if test "xNAWK" != xBASH; then
8526         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8527 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8528       fi
8529       # Try to locate tool using the code snippet
8530       for ac_prog in nawk gawk awk
8531 do
8532   # Extract the first word of "$ac_prog", so it can be a program name with args.
8533 set dummy $ac_prog; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if ${ac_cv_path_NAWK+:} false; then :
8537   $as_echo_n "(cached) " >&6
8538 else
8539   case $NAWK in
8540   [\\/]* | ?:[\\/]*)
8541   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8542   ;;
8543   *)
8544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547   IFS=$as_save_IFS
8548   test -z "$as_dir" && as_dir=.
8549     for ac_exec_ext in '' $ac_executable_extensions; do
8550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553     break 2
8554   fi
8555 done
8556   done
8557 IFS=$as_save_IFS
8558 
8559   ;;
8560 esac
8561 fi
8562 NAWK=$ac_cv_path_NAWK
8563 if test -n "$NAWK"; then
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8565 $as_echo "$NAWK" >&6; }
8566 else
8567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8569 fi
8570 
8571 
8572   test -n "$NAWK" && break
8573 done
8574 
8575     else
8576       # If it succeeded, then it was overridden by the user. We will use it
8577       # for the tool.
8578 
8579       # First remove it from the list of overridden variables, so we can test
8580       # for unknown variables in the end.
8581       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8582 
8583       # Check if the provided tool contains a complete path.
8584       tool_specified="$NAWK"
8585       tool_basename="${tool_specified##*/}"
8586       if test "x$tool_basename" = "x$tool_specified"; then
8587         # A command without a complete path is provided, search $PATH.
8588         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8589 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8590         # Extract the first word of "$tool_basename", so it can be a program name with args.
8591 set dummy $tool_basename; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if ${ac_cv_path_NAWK+:} false; then :
8595   $as_echo_n "(cached) " >&6
8596 else
8597   case $NAWK in
8598   [\\/]* | ?:[\\/]*)
8599   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8600   ;;
8601   *)
8602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605   IFS=$as_save_IFS
8606   test -z "$as_dir" && as_dir=.
8607     for ac_exec_ext in '' $ac_executable_extensions; do
8608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611     break 2
8612   fi
8613 done
8614   done
8615 IFS=$as_save_IFS
8616 
8617   ;;
8618 esac
8619 fi
8620 NAWK=$ac_cv_path_NAWK
8621 if test -n "$NAWK"; then
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8623 $as_echo "$NAWK" >&6; }
8624 else
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628 
8629 
8630         if test "x$NAWK" = x; then
8631           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8632         fi
8633       else
8634         # Otherwise we believe it is a complete path. Use it as it is.
8635         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8636 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8637         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8638 $as_echo_n "checking for NAWK... " >&6; }
8639         if test ! -x "$tool_specified"; then
8640           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8641 $as_echo "not found" >&6; }
8642           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8643         fi
8644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8645 $as_echo "$tool_specified" >&6; }
8646       fi
8647     fi
8648   fi
8649 
8650 
8651 
8652   if test "x$NAWK" = x; then
8653     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8654   fi
8655 
8656 
8657 
8658 
8659 
8660   # Publish this variable in the help.
8661 
8662 
8663   if test "x$PRINTF" = x; then
8664     # The variable is not set by user, try to locate tool using the code snippet
8665     for ac_prog in printf
8666 do
8667   # Extract the first word of "$ac_prog", so it can be a program name with args.
8668 set dummy $ac_prog; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if ${ac_cv_path_PRINTF+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   case $PRINTF in
8675   [\\/]* | ?:[\\/]*)
8676   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8677   ;;
8678   *)
8679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8681 do
8682   IFS=$as_save_IFS
8683   test -z "$as_dir" && as_dir=.
8684     for ac_exec_ext in '' $ac_executable_extensions; do
8685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688     break 2
8689   fi
8690 done
8691   done
8692 IFS=$as_save_IFS
8693 
8694   ;;
8695 esac
8696 fi
8697 PRINTF=$ac_cv_path_PRINTF
8698 if test -n "$PRINTF"; then
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8700 $as_echo "$PRINTF" >&6; }
8701 else
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8704 fi
8705 
8706 
8707   test -n "$PRINTF" && break
8708 done
8709 
8710   else
8711     # The variable is set, but is it from the command line or the environment?
8712 
8713     # Try to remove the string !PRINTF! from our list.
8714     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8715     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8716       # If it failed, the variable was not from the command line. Ignore it,
8717       # but warn the user (except for BASH, which is always set by the calling BASH).
8718       if test "xPRINTF" != xBASH; then
8719         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8720 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8721       fi
8722       # Try to locate tool using the code snippet
8723       for ac_prog in printf
8724 do
8725   # Extract the first word of "$ac_prog", so it can be a program name with args.
8726 set dummy $ac_prog; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_path_PRINTF+:} false; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   case $PRINTF in
8733   [\\/]* | ?:[\\/]*)
8734   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8735   ;;
8736   *)
8737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740   IFS=$as_save_IFS
8741   test -z "$as_dir" && as_dir=.
8742     for ac_exec_ext in '' $ac_executable_extensions; do
8743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8744     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746     break 2
8747   fi
8748 done
8749   done
8750 IFS=$as_save_IFS
8751 
8752   ;;
8753 esac
8754 fi
8755 PRINTF=$ac_cv_path_PRINTF
8756 if test -n "$PRINTF"; then
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8758 $as_echo "$PRINTF" >&6; }
8759 else
8760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8762 fi
8763 
8764 
8765   test -n "$PRINTF" && break
8766 done
8767 
8768     else
8769       # If it succeeded, then it was overridden by the user. We will use it
8770       # for the tool.
8771 
8772       # First remove it from the list of overridden variables, so we can test
8773       # for unknown variables in the end.
8774       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8775 
8776       # Check if the provided tool contains a complete path.
8777       tool_specified="$PRINTF"
8778       tool_basename="${tool_specified##*/}"
8779       if test "x$tool_basename" = "x$tool_specified"; then
8780         # A command without a complete path is provided, search $PATH.
8781         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8782 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8783         # Extract the first word of "$tool_basename", so it can be a program name with args.
8784 set dummy $tool_basename; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if ${ac_cv_path_PRINTF+:} false; then :
8788   $as_echo_n "(cached) " >&6
8789 else
8790   case $PRINTF in
8791   [\\/]* | ?:[\\/]*)
8792   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8793   ;;
8794   *)
8795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8797 do
8798   IFS=$as_save_IFS
8799   test -z "$as_dir" && as_dir=.
8800     for ac_exec_ext in '' $ac_executable_extensions; do
8801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8802     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804     break 2
8805   fi
8806 done
8807   done
8808 IFS=$as_save_IFS
8809 
8810   ;;
8811 esac
8812 fi
8813 PRINTF=$ac_cv_path_PRINTF
8814 if test -n "$PRINTF"; then
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8816 $as_echo "$PRINTF" >&6; }
8817 else
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8820 fi
8821 
8822 
8823         if test "x$PRINTF" = x; then
8824           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8825         fi
8826       else
8827         # Otherwise we believe it is a complete path. Use it as it is.
8828         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8829 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8830         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8831 $as_echo_n "checking for PRINTF... " >&6; }
8832         if test ! -x "$tool_specified"; then
8833           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8834 $as_echo "not found" >&6; }
8835           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8836         fi
8837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8838 $as_echo "$tool_specified" >&6; }
8839       fi
8840     fi
8841   fi
8842 
8843 
8844 
8845   if test "x$PRINTF" = x; then
8846     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8847   fi
8848 
8849 
8850 
8851 
8852 
8853   # Publish this variable in the help.
8854 
8855 
8856   if test "x$RM" = x; then
8857     # The variable is not set by user, try to locate tool using the code snippet
8858     for ac_prog in rm
8859 do
8860   # Extract the first word of "$ac_prog", so it can be a program name with args.
8861 set dummy $ac_prog; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_path_RM+:} false; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   case $RM in
8868   [\\/]* | ?:[\\/]*)
8869   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8870   ;;
8871   *)
8872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8874 do
8875   IFS=$as_save_IFS
8876   test -z "$as_dir" && as_dir=.
8877     for ac_exec_ext in '' $ac_executable_extensions; do
8878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881     break 2
8882   fi
8883 done
8884   done
8885 IFS=$as_save_IFS
8886 
8887   ;;
8888 esac
8889 fi
8890 RM=$ac_cv_path_RM
8891 if test -n "$RM"; then
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8893 $as_echo "$RM" >&6; }
8894 else
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8897 fi
8898 
8899 
8900   test -n "$RM" && break
8901 done
8902 
8903   else
8904     # The variable is set, but is it from the command line or the environment?
8905 
8906     # Try to remove the string !RM! from our list.
8907     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8908     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8909       # If it failed, the variable was not from the command line. Ignore it,
8910       # but warn the user (except for BASH, which is always set by the calling BASH).
8911       if test "xRM" != xBASH; then
8912         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8913 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8914       fi
8915       # Try to locate tool using the code snippet
8916       for ac_prog in rm
8917 do
8918   # Extract the first word of "$ac_prog", so it can be a program name with args.
8919 set dummy $ac_prog; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_path_RM+:} false; then :
8923   $as_echo_n "(cached) " >&6
8924 else
8925   case $RM in
8926   [\\/]* | ?:[\\/]*)
8927   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8928   ;;
8929   *)
8930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8932 do
8933   IFS=$as_save_IFS
8934   test -z "$as_dir" && as_dir=.
8935     for ac_exec_ext in '' $ac_executable_extensions; do
8936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939     break 2
8940   fi
8941 done
8942   done
8943 IFS=$as_save_IFS
8944 
8945   ;;
8946 esac
8947 fi
8948 RM=$ac_cv_path_RM
8949 if test -n "$RM"; then
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8951 $as_echo "$RM" >&6; }
8952 else
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8955 fi
8956 
8957 
8958   test -n "$RM" && break
8959 done
8960 
8961     else
8962       # If it succeeded, then it was overridden by the user. We will use it
8963       # for the tool.
8964 
8965       # First remove it from the list of overridden variables, so we can test
8966       # for unknown variables in the end.
8967       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8968 
8969       # Check if the provided tool contains a complete path.
8970       tool_specified="$RM"
8971       tool_basename="${tool_specified##*/}"
8972       if test "x$tool_basename" = "x$tool_specified"; then
8973         # A command without a complete path is provided, search $PATH.
8974         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8975 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8976         # Extract the first word of "$tool_basename", so it can be a program name with args.
8977 set dummy $tool_basename; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_path_RM+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   case $RM in
8984   [\\/]* | ?:[\\/]*)
8985   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8986   ;;
8987   *)
8988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8990 do
8991   IFS=$as_save_IFS
8992   test -z "$as_dir" && as_dir=.
8993     for ac_exec_ext in '' $ac_executable_extensions; do
8994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8995     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997     break 2
8998   fi
8999 done
9000   done
9001 IFS=$as_save_IFS
9002 
9003   ;;
9004 esac
9005 fi
9006 RM=$ac_cv_path_RM
9007 if test -n "$RM"; then
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9009 $as_echo "$RM" >&6; }
9010 else
9011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9013 fi
9014 
9015 
9016         if test "x$RM" = x; then
9017           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9018         fi
9019       else
9020         # Otherwise we believe it is a complete path. Use it as it is.
9021         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9022 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9024 $as_echo_n "checking for RM... " >&6; }
9025         if test ! -x "$tool_specified"; then
9026           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9027 $as_echo "not found" >&6; }
9028           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9029         fi
9030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9031 $as_echo "$tool_specified" >&6; }
9032       fi
9033     fi
9034   fi
9035 
9036 
9037 
9038   if test "x$RM" = x; then
9039     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9040   fi
9041 
9042 
9043 
9044 
9045 
9046   # Publish this variable in the help.
9047 
9048 
9049   if test "x$SH" = x; then
9050     # The variable is not set by user, try to locate tool using the code snippet
9051     for ac_prog in sh
9052 do
9053   # Extract the first word of "$ac_prog", so it can be a program name with args.
9054 set dummy $ac_prog; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if ${ac_cv_path_SH+:} false; then :
9058   $as_echo_n "(cached) " >&6
9059 else
9060   case $SH in
9061   [\\/]* | ?:[\\/]*)
9062   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9063   ;;
9064   *)
9065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068   IFS=$as_save_IFS
9069   test -z "$as_dir" && as_dir=.
9070     for ac_exec_ext in '' $ac_executable_extensions; do
9071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074     break 2
9075   fi
9076 done
9077   done
9078 IFS=$as_save_IFS
9079 
9080   ;;
9081 esac
9082 fi
9083 SH=$ac_cv_path_SH
9084 if test -n "$SH"; then
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9086 $as_echo "$SH" >&6; }
9087 else
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9090 fi
9091 
9092 
9093   test -n "$SH" && break
9094 done
9095 
9096   else
9097     # The variable is set, but is it from the command line or the environment?
9098 
9099     # Try to remove the string !SH! from our list.
9100     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9101     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9102       # If it failed, the variable was not from the command line. Ignore it,
9103       # but warn the user (except for BASH, which is always set by the calling BASH).
9104       if test "xSH" != xBASH; then
9105         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9106 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9107       fi
9108       # Try to locate tool using the code snippet
9109       for ac_prog in sh
9110 do
9111   # Extract the first word of "$ac_prog", so it can be a program name with args.
9112 set dummy $ac_prog; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_path_SH+:} false; then :
9116   $as_echo_n "(cached) " >&6
9117 else
9118   case $SH in
9119   [\\/]* | ?:[\\/]*)
9120   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9121   ;;
9122   *)
9123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9125 do
9126   IFS=$as_save_IFS
9127   test -z "$as_dir" && as_dir=.
9128     for ac_exec_ext in '' $ac_executable_extensions; do
9129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9130     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132     break 2
9133   fi
9134 done
9135   done
9136 IFS=$as_save_IFS
9137 
9138   ;;
9139 esac
9140 fi
9141 SH=$ac_cv_path_SH
9142 if test -n "$SH"; then
9143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9144 $as_echo "$SH" >&6; }
9145 else
9146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9148 fi
9149 
9150 
9151   test -n "$SH" && break
9152 done
9153 
9154     else
9155       # If it succeeded, then it was overridden by the user. We will use it
9156       # for the tool.
9157 
9158       # First remove it from the list of overridden variables, so we can test
9159       # for unknown variables in the end.
9160       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9161 
9162       # Check if the provided tool contains a complete path.
9163       tool_specified="$SH"
9164       tool_basename="${tool_specified##*/}"
9165       if test "x$tool_basename" = "x$tool_specified"; then
9166         # A command without a complete path is provided, search $PATH.
9167         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9168 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9169         # Extract the first word of "$tool_basename", so it can be a program name with args.
9170 set dummy $tool_basename; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if ${ac_cv_path_SH+:} false; then :
9174   $as_echo_n "(cached) " >&6
9175 else
9176   case $SH in
9177   [\\/]* | ?:[\\/]*)
9178   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9179   ;;
9180   *)
9181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182 for as_dir in $PATH
9183 do
9184   IFS=$as_save_IFS
9185   test -z "$as_dir" && as_dir=.
9186     for ac_exec_ext in '' $ac_executable_extensions; do
9187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9188     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190     break 2
9191   fi
9192 done
9193   done
9194 IFS=$as_save_IFS
9195 
9196   ;;
9197 esac
9198 fi
9199 SH=$ac_cv_path_SH
9200 if test -n "$SH"; then
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9202 $as_echo "$SH" >&6; }
9203 else
9204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9206 fi
9207 
9208 
9209         if test "x$SH" = x; then
9210           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9211         fi
9212       else
9213         # Otherwise we believe it is a complete path. Use it as it is.
9214         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9215 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9217 $as_echo_n "checking for SH... " >&6; }
9218         if test ! -x "$tool_specified"; then
9219           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9220 $as_echo "not found" >&6; }
9221           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9222         fi
9223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9224 $as_echo "$tool_specified" >&6; }
9225       fi
9226     fi
9227   fi
9228 
9229 
9230 
9231   if test "x$SH" = x; then
9232     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9233   fi
9234 
9235 
9236 
9237 
9238 
9239   # Publish this variable in the help.
9240 
9241 
9242   if test "x$SORT" = x; then
9243     # The variable is not set by user, try to locate tool using the code snippet
9244     for ac_prog in sort
9245 do
9246   # Extract the first word of "$ac_prog", so it can be a program name with args.
9247 set dummy $ac_prog; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_path_SORT+:} false; then :
9251   $as_echo_n "(cached) " >&6
9252 else
9253   case $SORT in
9254   [\\/]* | ?:[\\/]*)
9255   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9256   ;;
9257   *)
9258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9260 do
9261   IFS=$as_save_IFS
9262   test -z "$as_dir" && as_dir=.
9263     for ac_exec_ext in '' $ac_executable_extensions; do
9264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267     break 2
9268   fi
9269 done
9270   done
9271 IFS=$as_save_IFS
9272 
9273   ;;
9274 esac
9275 fi
9276 SORT=$ac_cv_path_SORT
9277 if test -n "$SORT"; then
9278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9279 $as_echo "$SORT" >&6; }
9280 else
9281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9283 fi
9284 
9285 
9286   test -n "$SORT" && break
9287 done
9288 
9289   else
9290     # The variable is set, but is it from the command line or the environment?
9291 
9292     # Try to remove the string !SORT! from our list.
9293     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9294     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9295       # If it failed, the variable was not from the command line. Ignore it,
9296       # but warn the user (except for BASH, which is always set by the calling BASH).
9297       if test "xSORT" != xBASH; then
9298         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9299 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9300       fi
9301       # Try to locate tool using the code snippet
9302       for ac_prog in sort
9303 do
9304   # Extract the first word of "$ac_prog", so it can be a program name with args.
9305 set dummy $ac_prog; ac_word=$2
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307 $as_echo_n "checking for $ac_word... " >&6; }
9308 if ${ac_cv_path_SORT+:} false; then :
9309   $as_echo_n "(cached) " >&6
9310 else
9311   case $SORT in
9312   [\\/]* | ?:[\\/]*)
9313   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9314   ;;
9315   *)
9316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9318 do
9319   IFS=$as_save_IFS
9320   test -z "$as_dir" && as_dir=.
9321     for ac_exec_ext in '' $ac_executable_extensions; do
9322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325     break 2
9326   fi
9327 done
9328   done
9329 IFS=$as_save_IFS
9330 
9331   ;;
9332 esac
9333 fi
9334 SORT=$ac_cv_path_SORT
9335 if test -n "$SORT"; then
9336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9337 $as_echo "$SORT" >&6; }
9338 else
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340 $as_echo "no" >&6; }
9341 fi
9342 
9343 
9344   test -n "$SORT" && break
9345 done
9346 
9347     else
9348       # If it succeeded, then it was overridden by the user. We will use it
9349       # for the tool.
9350 
9351       # First remove it from the list of overridden variables, so we can test
9352       # for unknown variables in the end.
9353       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9354 
9355       # Check if the provided tool contains a complete path.
9356       tool_specified="$SORT"
9357       tool_basename="${tool_specified##*/}"
9358       if test "x$tool_basename" = "x$tool_specified"; then
9359         # A command without a complete path is provided, search $PATH.
9360         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9361 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9362         # Extract the first word of "$tool_basename", so it can be a program name with args.
9363 set dummy $tool_basename; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if ${ac_cv_path_SORT+:} false; then :
9367   $as_echo_n "(cached) " >&6
9368 else
9369   case $SORT in
9370   [\\/]* | ?:[\\/]*)
9371   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9372   ;;
9373   *)
9374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9376 do
9377   IFS=$as_save_IFS
9378   test -z "$as_dir" && as_dir=.
9379     for ac_exec_ext in '' $ac_executable_extensions; do
9380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9381     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383     break 2
9384   fi
9385 done
9386   done
9387 IFS=$as_save_IFS
9388 
9389   ;;
9390 esac
9391 fi
9392 SORT=$ac_cv_path_SORT
9393 if test -n "$SORT"; then
9394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9395 $as_echo "$SORT" >&6; }
9396 else
9397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398 $as_echo "no" >&6; }
9399 fi
9400 
9401 
9402         if test "x$SORT" = x; then
9403           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9404         fi
9405       else
9406         # Otherwise we believe it is a complete path. Use it as it is.
9407         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9408 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9409         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9410 $as_echo_n "checking for SORT... " >&6; }
9411         if test ! -x "$tool_specified"; then
9412           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9413 $as_echo "not found" >&6; }
9414           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9415         fi
9416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9417 $as_echo "$tool_specified" >&6; }
9418       fi
9419     fi
9420   fi
9421 
9422 
9423 
9424   if test "x$SORT" = x; then
9425     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9426   fi
9427 
9428 
9429 
9430 
9431 
9432   # Publish this variable in the help.
9433 
9434 
9435   if test "x$TAIL" = x; then
9436     # The variable is not set by user, try to locate tool using the code snippet
9437     for ac_prog in tail
9438 do
9439   # Extract the first word of "$ac_prog", so it can be a program name with args.
9440 set dummy $ac_prog; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if ${ac_cv_path_TAIL+:} false; then :
9444   $as_echo_n "(cached) " >&6
9445 else
9446   case $TAIL in
9447   [\\/]* | ?:[\\/]*)
9448   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9449   ;;
9450   *)
9451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in $PATH
9453 do
9454   IFS=$as_save_IFS
9455   test -z "$as_dir" && as_dir=.
9456     for ac_exec_ext in '' $ac_executable_extensions; do
9457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9458     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460     break 2
9461   fi
9462 done
9463   done
9464 IFS=$as_save_IFS
9465 
9466   ;;
9467 esac
9468 fi
9469 TAIL=$ac_cv_path_TAIL
9470 if test -n "$TAIL"; then
9471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9472 $as_echo "$TAIL" >&6; }
9473 else
9474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9476 fi
9477 
9478 
9479   test -n "$TAIL" && break
9480 done
9481 
9482   else
9483     # The variable is set, but is it from the command line or the environment?
9484 
9485     # Try to remove the string !TAIL! from our list.
9486     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9487     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9488       # If it failed, the variable was not from the command line. Ignore it,
9489       # but warn the user (except for BASH, which is always set by the calling BASH).
9490       if test "xTAIL" != xBASH; then
9491         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9492 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9493       fi
9494       # Try to locate tool using the code snippet
9495       for ac_prog in tail
9496 do
9497   # Extract the first word of "$ac_prog", so it can be a program name with args.
9498 set dummy $ac_prog; ac_word=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if ${ac_cv_path_TAIL+:} false; then :
9502   $as_echo_n "(cached) " >&6
9503 else
9504   case $TAIL in
9505   [\\/]* | ?:[\\/]*)
9506   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9507   ;;
9508   *)
9509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510 for as_dir in $PATH
9511 do
9512   IFS=$as_save_IFS
9513   test -z "$as_dir" && as_dir=.
9514     for ac_exec_ext in '' $ac_executable_extensions; do
9515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9516     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518     break 2
9519   fi
9520 done
9521   done
9522 IFS=$as_save_IFS
9523 
9524   ;;
9525 esac
9526 fi
9527 TAIL=$ac_cv_path_TAIL
9528 if test -n "$TAIL"; then
9529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9530 $as_echo "$TAIL" >&6; }
9531 else
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9534 fi
9535 
9536 
9537   test -n "$TAIL" && break
9538 done
9539 
9540     else
9541       # If it succeeded, then it was overridden by the user. We will use it
9542       # for the tool.
9543 
9544       # First remove it from the list of overridden variables, so we can test
9545       # for unknown variables in the end.
9546       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9547 
9548       # Check if the provided tool contains a complete path.
9549       tool_specified="$TAIL"
9550       tool_basename="${tool_specified##*/}"
9551       if test "x$tool_basename" = "x$tool_specified"; then
9552         # A command without a complete path is provided, search $PATH.
9553         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9554 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9555         # Extract the first word of "$tool_basename", so it can be a program name with args.
9556 set dummy $tool_basename; ac_word=$2
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558 $as_echo_n "checking for $ac_word... " >&6; }
9559 if ${ac_cv_path_TAIL+:} false; then :
9560   $as_echo_n "(cached) " >&6
9561 else
9562   case $TAIL in
9563   [\\/]* | ?:[\\/]*)
9564   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9565   ;;
9566   *)
9567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in $PATH
9569 do
9570   IFS=$as_save_IFS
9571   test -z "$as_dir" && as_dir=.
9572     for ac_exec_ext in '' $ac_executable_extensions; do
9573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576     break 2
9577   fi
9578 done
9579   done
9580 IFS=$as_save_IFS
9581 
9582   ;;
9583 esac
9584 fi
9585 TAIL=$ac_cv_path_TAIL
9586 if test -n "$TAIL"; then
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9588 $as_echo "$TAIL" >&6; }
9589 else
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593 
9594 
9595         if test "x$TAIL" = x; then
9596           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9597         fi
9598       else
9599         # Otherwise we believe it is a complete path. Use it as it is.
9600         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9601 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9603 $as_echo_n "checking for TAIL... " >&6; }
9604         if test ! -x "$tool_specified"; then
9605           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9606 $as_echo "not found" >&6; }
9607           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9608         fi
9609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9610 $as_echo "$tool_specified" >&6; }
9611       fi
9612     fi
9613   fi
9614 
9615 
9616 
9617   if test "x$TAIL" = x; then
9618     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9619   fi
9620 
9621 
9622 
9623 
9624 
9625   # Publish this variable in the help.
9626 
9627 
9628   if test "x$TAR" = x; then
9629     # The variable is not set by user, try to locate tool using the code snippet
9630     for ac_prog in tar
9631 do
9632   # Extract the first word of "$ac_prog", so it can be a program name with args.
9633 set dummy $ac_prog; ac_word=$2
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635 $as_echo_n "checking for $ac_word... " >&6; }
9636 if ${ac_cv_path_TAR+:} false; then :
9637   $as_echo_n "(cached) " >&6
9638 else
9639   case $TAR in
9640   [\\/]* | ?:[\\/]*)
9641   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9642   ;;
9643   *)
9644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9646 do
9647   IFS=$as_save_IFS
9648   test -z "$as_dir" && as_dir=.
9649     for ac_exec_ext in '' $ac_executable_extensions; do
9650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653     break 2
9654   fi
9655 done
9656   done
9657 IFS=$as_save_IFS
9658 
9659   ;;
9660 esac
9661 fi
9662 TAR=$ac_cv_path_TAR
9663 if test -n "$TAR"; then
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9665 $as_echo "$TAR" >&6; }
9666 else
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 $as_echo "no" >&6; }
9669 fi
9670 
9671 
9672   test -n "$TAR" && break
9673 done
9674 
9675   else
9676     # The variable is set, but is it from the command line or the environment?
9677 
9678     # Try to remove the string !TAR! from our list.
9679     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9680     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9681       # If it failed, the variable was not from the command line. Ignore it,
9682       # but warn the user (except for BASH, which is always set by the calling BASH).
9683       if test "xTAR" != xBASH; then
9684         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9685 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9686       fi
9687       # Try to locate tool using the code snippet
9688       for ac_prog in tar
9689 do
9690   # Extract the first word of "$ac_prog", so it can be a program name with args.
9691 set dummy $ac_prog; ac_word=$2
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693 $as_echo_n "checking for $ac_word... " >&6; }
9694 if ${ac_cv_path_TAR+:} false; then :
9695   $as_echo_n "(cached) " >&6
9696 else
9697   case $TAR in
9698   [\\/]* | ?:[\\/]*)
9699   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9700   ;;
9701   *)
9702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 for as_dir in $PATH
9704 do
9705   IFS=$as_save_IFS
9706   test -z "$as_dir" && as_dir=.
9707     for ac_exec_ext in '' $ac_executable_extensions; do
9708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9709     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9711     break 2
9712   fi
9713 done
9714   done
9715 IFS=$as_save_IFS
9716 
9717   ;;
9718 esac
9719 fi
9720 TAR=$ac_cv_path_TAR
9721 if test -n "$TAR"; then
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9723 $as_echo "$TAR" >&6; }
9724 else
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726 $as_echo "no" >&6; }
9727 fi
9728 
9729 
9730   test -n "$TAR" && break
9731 done
9732 
9733     else
9734       # If it succeeded, then it was overridden by the user. We will use it
9735       # for the tool.
9736 
9737       # First remove it from the list of overridden variables, so we can test
9738       # for unknown variables in the end.
9739       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9740 
9741       # Check if the provided tool contains a complete path.
9742       tool_specified="$TAR"
9743       tool_basename="${tool_specified##*/}"
9744       if test "x$tool_basename" = "x$tool_specified"; then
9745         # A command without a complete path is provided, search $PATH.
9746         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9747 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9748         # Extract the first word of "$tool_basename", so it can be a program name with args.
9749 set dummy $tool_basename; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_path_TAR+:} false; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   case $TAR in
9756   [\\/]* | ?:[\\/]*)
9757   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9758   ;;
9759   *)
9760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9762 do
9763   IFS=$as_save_IFS
9764   test -z "$as_dir" && as_dir=.
9765     for ac_exec_ext in '' $ac_executable_extensions; do
9766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9767     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769     break 2
9770   fi
9771 done
9772   done
9773 IFS=$as_save_IFS
9774 
9775   ;;
9776 esac
9777 fi
9778 TAR=$ac_cv_path_TAR
9779 if test -n "$TAR"; then
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9781 $as_echo "$TAR" >&6; }
9782 else
9783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9785 fi
9786 
9787 
9788         if test "x$TAR" = x; then
9789           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9790         fi
9791       else
9792         # Otherwise we believe it is a complete path. Use it as it is.
9793         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9794 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9796 $as_echo_n "checking for TAR... " >&6; }
9797         if test ! -x "$tool_specified"; then
9798           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9799 $as_echo "not found" >&6; }
9800           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9801         fi
9802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9803 $as_echo "$tool_specified" >&6; }
9804       fi
9805     fi
9806   fi
9807 
9808 
9809 
9810   if test "x$TAR" = x; then
9811     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9812   fi
9813 
9814 
9815 
9816 
9817 
9818   # Publish this variable in the help.
9819 
9820 
9821   if test "x$TEE" = x; then
9822     # The variable is not set by user, try to locate tool using the code snippet
9823     for ac_prog in tee
9824 do
9825   # Extract the first word of "$ac_prog", so it can be a program name with args.
9826 set dummy $ac_prog; ac_word=$2
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9828 $as_echo_n "checking for $ac_word... " >&6; }
9829 if ${ac_cv_path_TEE+:} false; then :
9830   $as_echo_n "(cached) " >&6
9831 else
9832   case $TEE in
9833   [\\/]* | ?:[\\/]*)
9834   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9835   ;;
9836   *)
9837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9839 do
9840   IFS=$as_save_IFS
9841   test -z "$as_dir" && as_dir=.
9842     for ac_exec_ext in '' $ac_executable_extensions; do
9843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846     break 2
9847   fi
9848 done
9849   done
9850 IFS=$as_save_IFS
9851 
9852   ;;
9853 esac
9854 fi
9855 TEE=$ac_cv_path_TEE
9856 if test -n "$TEE"; then
9857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9858 $as_echo "$TEE" >&6; }
9859 else
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; }
9862 fi
9863 
9864 
9865   test -n "$TEE" && break
9866 done
9867 
9868   else
9869     # The variable is set, but is it from the command line or the environment?
9870 
9871     # Try to remove the string !TEE! from our list.
9872     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9873     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9874       # If it failed, the variable was not from the command line. Ignore it,
9875       # but warn the user (except for BASH, which is always set by the calling BASH).
9876       if test "xTEE" != xBASH; then
9877         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9878 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9879       fi
9880       # Try to locate tool using the code snippet
9881       for ac_prog in tee
9882 do
9883   # Extract the first word of "$ac_prog", so it can be a program name with args.
9884 set dummy $ac_prog; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if ${ac_cv_path_TEE+:} false; then :
9888   $as_echo_n "(cached) " >&6
9889 else
9890   case $TEE in
9891   [\\/]* | ?:[\\/]*)
9892   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9893   ;;
9894   *)
9895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH
9897 do
9898   IFS=$as_save_IFS
9899   test -z "$as_dir" && as_dir=.
9900     for ac_exec_ext in '' $ac_executable_extensions; do
9901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9902     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904     break 2
9905   fi
9906 done
9907   done
9908 IFS=$as_save_IFS
9909 
9910   ;;
9911 esac
9912 fi
9913 TEE=$ac_cv_path_TEE
9914 if test -n "$TEE"; then
9915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9916 $as_echo "$TEE" >&6; }
9917 else
9918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9920 fi
9921 
9922 
9923   test -n "$TEE" && break
9924 done
9925 
9926     else
9927       # If it succeeded, then it was overridden by the user. We will use it
9928       # for the tool.
9929 
9930       # First remove it from the list of overridden variables, so we can test
9931       # for unknown variables in the end.
9932       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9933 
9934       # Check if the provided tool contains a complete path.
9935       tool_specified="$TEE"
9936       tool_basename="${tool_specified##*/}"
9937       if test "x$tool_basename" = "x$tool_specified"; then
9938         # A command without a complete path is provided, search $PATH.
9939         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9940 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9941         # Extract the first word of "$tool_basename", so it can be a program name with args.
9942 set dummy $tool_basename; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if ${ac_cv_path_TEE+:} false; then :
9946   $as_echo_n "(cached) " >&6
9947 else
9948   case $TEE in
9949   [\\/]* | ?:[\\/]*)
9950   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9951   ;;
9952   *)
9953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 for as_dir in $PATH
9955 do
9956   IFS=$as_save_IFS
9957   test -z "$as_dir" && as_dir=.
9958     for ac_exec_ext in '' $ac_executable_extensions; do
9959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9962     break 2
9963   fi
9964 done
9965   done
9966 IFS=$as_save_IFS
9967 
9968   ;;
9969 esac
9970 fi
9971 TEE=$ac_cv_path_TEE
9972 if test -n "$TEE"; then
9973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9974 $as_echo "$TEE" >&6; }
9975 else
9976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9978 fi
9979 
9980 
9981         if test "x$TEE" = x; then
9982           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9983         fi
9984       else
9985         # Otherwise we believe it is a complete path. Use it as it is.
9986         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9987 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9988         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9989 $as_echo_n "checking for TEE... " >&6; }
9990         if test ! -x "$tool_specified"; then
9991           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9992 $as_echo "not found" >&6; }
9993           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9994         fi
9995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9996 $as_echo "$tool_specified" >&6; }
9997       fi
9998     fi
9999   fi
10000 
10001 
10002 
10003   if test "x$TEE" = x; then
10004     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10005   fi
10006 
10007 
10008 
10009 
10010 
10011   # Publish this variable in the help.
10012 
10013 
10014   if test "x$TOUCH" = x; then
10015     # The variable is not set by user, try to locate tool using the code snippet
10016     for ac_prog in touch
10017 do
10018   # Extract the first word of "$ac_prog", so it can be a program name with args.
10019 set dummy $ac_prog; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_path_TOUCH+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   case $TOUCH in
10026   [\\/]* | ?:[\\/]*)
10027   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10028   ;;
10029   *)
10030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033   IFS=$as_save_IFS
10034   test -z "$as_dir" && as_dir=.
10035     for ac_exec_ext in '' $ac_executable_extensions; do
10036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10037     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039     break 2
10040   fi
10041 done
10042   done
10043 IFS=$as_save_IFS
10044 
10045   ;;
10046 esac
10047 fi
10048 TOUCH=$ac_cv_path_TOUCH
10049 if test -n "$TOUCH"; then
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10051 $as_echo "$TOUCH" >&6; }
10052 else
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10055 fi
10056 
10057 
10058   test -n "$TOUCH" && break
10059 done
10060 
10061   else
10062     # The variable is set, but is it from the command line or the environment?
10063 
10064     # Try to remove the string !TOUCH! from our list.
10065     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10066     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10067       # If it failed, the variable was not from the command line. Ignore it,
10068       # but warn the user (except for BASH, which is always set by the calling BASH).
10069       if test "xTOUCH" != xBASH; then
10070         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10071 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10072       fi
10073       # Try to locate tool using the code snippet
10074       for ac_prog in touch
10075 do
10076   # Extract the first word of "$ac_prog", so it can be a program name with args.
10077 set dummy $ac_prog; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_path_TOUCH+:} false; then :
10081   $as_echo_n "(cached) " >&6
10082 else
10083   case $TOUCH in
10084   [\\/]* | ?:[\\/]*)
10085   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10086   ;;
10087   *)
10088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10090 do
10091   IFS=$as_save_IFS
10092   test -z "$as_dir" && as_dir=.
10093     for ac_exec_ext in '' $ac_executable_extensions; do
10094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097     break 2
10098   fi
10099 done
10100   done
10101 IFS=$as_save_IFS
10102 
10103   ;;
10104 esac
10105 fi
10106 TOUCH=$ac_cv_path_TOUCH
10107 if test -n "$TOUCH"; then
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10109 $as_echo "$TOUCH" >&6; }
10110 else
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10113 fi
10114 
10115 
10116   test -n "$TOUCH" && break
10117 done
10118 
10119     else
10120       # If it succeeded, then it was overridden by the user. We will use it
10121       # for the tool.
10122 
10123       # First remove it from the list of overridden variables, so we can test
10124       # for unknown variables in the end.
10125       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10126 
10127       # Check if the provided tool contains a complete path.
10128       tool_specified="$TOUCH"
10129       tool_basename="${tool_specified##*/}"
10130       if test "x$tool_basename" = "x$tool_specified"; then
10131         # A command without a complete path is provided, search $PATH.
10132         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10133 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10134         # Extract the first word of "$tool_basename", so it can be a program name with args.
10135 set dummy $tool_basename; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if ${ac_cv_path_TOUCH+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   case $TOUCH in
10142   [\\/]* | ?:[\\/]*)
10143   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10144   ;;
10145   *)
10146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10148 do
10149   IFS=$as_save_IFS
10150   test -z "$as_dir" && as_dir=.
10151     for ac_exec_ext in '' $ac_executable_extensions; do
10152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155     break 2
10156   fi
10157 done
10158   done
10159 IFS=$as_save_IFS
10160 
10161   ;;
10162 esac
10163 fi
10164 TOUCH=$ac_cv_path_TOUCH
10165 if test -n "$TOUCH"; then
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10167 $as_echo "$TOUCH" >&6; }
10168 else
10169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10171 fi
10172 
10173 
10174         if test "x$TOUCH" = x; then
10175           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10176         fi
10177       else
10178         # Otherwise we believe it is a complete path. Use it as it is.
10179         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10180 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10182 $as_echo_n "checking for TOUCH... " >&6; }
10183         if test ! -x "$tool_specified"; then
10184           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10185 $as_echo "not found" >&6; }
10186           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10187         fi
10188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10189 $as_echo "$tool_specified" >&6; }
10190       fi
10191     fi
10192   fi
10193 
10194 
10195 
10196   if test "x$TOUCH" = x; then
10197     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10198   fi
10199 
10200 
10201 
10202 
10203 
10204   # Publish this variable in the help.
10205 
10206 
10207   if test "x$TR" = x; then
10208     # The variable is not set by user, try to locate tool using the code snippet
10209     for ac_prog in tr
10210 do
10211   # Extract the first word of "$ac_prog", so it can be a program name with args.
10212 set dummy $ac_prog; ac_word=$2
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214 $as_echo_n "checking for $ac_word... " >&6; }
10215 if ${ac_cv_path_TR+:} false; then :
10216   $as_echo_n "(cached) " >&6
10217 else
10218   case $TR in
10219   [\\/]* | ?:[\\/]*)
10220   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10221   ;;
10222   *)
10223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10225 do
10226   IFS=$as_save_IFS
10227   test -z "$as_dir" && as_dir=.
10228     for ac_exec_ext in '' $ac_executable_extensions; do
10229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10232     break 2
10233   fi
10234 done
10235   done
10236 IFS=$as_save_IFS
10237 
10238   ;;
10239 esac
10240 fi
10241 TR=$ac_cv_path_TR
10242 if test -n "$TR"; then
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10244 $as_echo "$TR" >&6; }
10245 else
10246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10248 fi
10249 
10250 
10251   test -n "$TR" && break
10252 done
10253 
10254   else
10255     # The variable is set, but is it from the command line or the environment?
10256 
10257     # Try to remove the string !TR! from our list.
10258     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10259     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10260       # If it failed, the variable was not from the command line. Ignore it,
10261       # but warn the user (except for BASH, which is always set by the calling BASH).
10262       if test "xTR" != xBASH; then
10263         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10264 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10265       fi
10266       # Try to locate tool using the code snippet
10267       for ac_prog in tr
10268 do
10269   # Extract the first word of "$ac_prog", so it can be a program name with args.
10270 set dummy $ac_prog; ac_word=$2
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272 $as_echo_n "checking for $ac_word... " >&6; }
10273 if ${ac_cv_path_TR+:} false; then :
10274   $as_echo_n "(cached) " >&6
10275 else
10276   case $TR in
10277   [\\/]* | ?:[\\/]*)
10278   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10279   ;;
10280   *)
10281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10283 do
10284   IFS=$as_save_IFS
10285   test -z "$as_dir" && as_dir=.
10286     for ac_exec_ext in '' $ac_executable_extensions; do
10287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10288     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290     break 2
10291   fi
10292 done
10293   done
10294 IFS=$as_save_IFS
10295 
10296   ;;
10297 esac
10298 fi
10299 TR=$ac_cv_path_TR
10300 if test -n "$TR"; then
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10302 $as_echo "$TR" >&6; }
10303 else
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10306 fi
10307 
10308 
10309   test -n "$TR" && break
10310 done
10311 
10312     else
10313       # If it succeeded, then it was overridden by the user. We will use it
10314       # for the tool.
10315 
10316       # First remove it from the list of overridden variables, so we can test
10317       # for unknown variables in the end.
10318       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10319 
10320       # Check if the provided tool contains a complete path.
10321       tool_specified="$TR"
10322       tool_basename="${tool_specified##*/}"
10323       if test "x$tool_basename" = "x$tool_specified"; then
10324         # A command without a complete path is provided, search $PATH.
10325         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10326 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10327         # Extract the first word of "$tool_basename", so it can be a program name with args.
10328 set dummy $tool_basename; ac_word=$2
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 $as_echo_n "checking for $ac_word... " >&6; }
10331 if ${ac_cv_path_TR+:} false; then :
10332   $as_echo_n "(cached) " >&6
10333 else
10334   case $TR in
10335   [\\/]* | ?:[\\/]*)
10336   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10337   ;;
10338   *)
10339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10341 do
10342   IFS=$as_save_IFS
10343   test -z "$as_dir" && as_dir=.
10344     for ac_exec_ext in '' $ac_executable_extensions; do
10345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348     break 2
10349   fi
10350 done
10351   done
10352 IFS=$as_save_IFS
10353 
10354   ;;
10355 esac
10356 fi
10357 TR=$ac_cv_path_TR
10358 if test -n "$TR"; then
10359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10360 $as_echo "$TR" >&6; }
10361 else
10362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10364 fi
10365 
10366 
10367         if test "x$TR" = x; then
10368           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10369         fi
10370       else
10371         # Otherwise we believe it is a complete path. Use it as it is.
10372         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10373 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10374         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10375 $as_echo_n "checking for TR... " >&6; }
10376         if test ! -x "$tool_specified"; then
10377           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10378 $as_echo "not found" >&6; }
10379           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10380         fi
10381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10382 $as_echo "$tool_specified" >&6; }
10383       fi
10384     fi
10385   fi
10386 
10387 
10388 
10389   if test "x$TR" = x; then
10390     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10391   fi
10392 
10393 
10394 
10395 
10396 
10397   # Publish this variable in the help.
10398 
10399 
10400   if test "x$UNAME" = x; then
10401     # The variable is not set by user, try to locate tool using the code snippet
10402     for ac_prog in uname
10403 do
10404   # Extract the first word of "$ac_prog", so it can be a program name with args.
10405 set dummy $ac_prog; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if ${ac_cv_path_UNAME+:} false; then :
10409   $as_echo_n "(cached) " >&6
10410 else
10411   case $UNAME in
10412   [\\/]* | ?:[\\/]*)
10413   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10414   ;;
10415   *)
10416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417 for as_dir in $PATH
10418 do
10419   IFS=$as_save_IFS
10420   test -z "$as_dir" && as_dir=.
10421     for ac_exec_ext in '' $ac_executable_extensions; do
10422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10423     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425     break 2
10426   fi
10427 done
10428   done
10429 IFS=$as_save_IFS
10430 
10431   ;;
10432 esac
10433 fi
10434 UNAME=$ac_cv_path_UNAME
10435 if test -n "$UNAME"; then
10436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10437 $as_echo "$UNAME" >&6; }
10438 else
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10441 fi
10442 
10443 
10444   test -n "$UNAME" && break
10445 done
10446 
10447   else
10448     # The variable is set, but is it from the command line or the environment?
10449 
10450     # Try to remove the string !UNAME! from our list.
10451     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10452     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10453       # If it failed, the variable was not from the command line. Ignore it,
10454       # but warn the user (except for BASH, which is always set by the calling BASH).
10455       if test "xUNAME" != xBASH; then
10456         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10457 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10458       fi
10459       # Try to locate tool using the code snippet
10460       for ac_prog in uname
10461 do
10462   # Extract the first word of "$ac_prog", so it can be a program name with args.
10463 set dummy $ac_prog; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if ${ac_cv_path_UNAME+:} false; then :
10467   $as_echo_n "(cached) " >&6
10468 else
10469   case $UNAME in
10470   [\\/]* | ?:[\\/]*)
10471   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10472   ;;
10473   *)
10474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $PATH
10476 do
10477   IFS=$as_save_IFS
10478   test -z "$as_dir" && as_dir=.
10479     for ac_exec_ext in '' $ac_executable_extensions; do
10480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10481     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483     break 2
10484   fi
10485 done
10486   done
10487 IFS=$as_save_IFS
10488 
10489   ;;
10490 esac
10491 fi
10492 UNAME=$ac_cv_path_UNAME
10493 if test -n "$UNAME"; then
10494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10495 $as_echo "$UNAME" >&6; }
10496 else
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10499 fi
10500 
10501 
10502   test -n "$UNAME" && break
10503 done
10504 
10505     else
10506       # If it succeeded, then it was overridden by the user. We will use it
10507       # for the tool.
10508 
10509       # First remove it from the list of overridden variables, so we can test
10510       # for unknown variables in the end.
10511       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10512 
10513       # Check if the provided tool contains a complete path.
10514       tool_specified="$UNAME"
10515       tool_basename="${tool_specified##*/}"
10516       if test "x$tool_basename" = "x$tool_specified"; then
10517         # A command without a complete path is provided, search $PATH.
10518         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10519 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10520         # Extract the first word of "$tool_basename", so it can be a program name with args.
10521 set dummy $tool_basename; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if ${ac_cv_path_UNAME+:} false; then :
10525   $as_echo_n "(cached) " >&6
10526 else
10527   case $UNAME in
10528   [\\/]* | ?:[\\/]*)
10529   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10530   ;;
10531   *)
10532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10534 do
10535   IFS=$as_save_IFS
10536   test -z "$as_dir" && as_dir=.
10537     for ac_exec_ext in '' $ac_executable_extensions; do
10538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541     break 2
10542   fi
10543 done
10544   done
10545 IFS=$as_save_IFS
10546 
10547   ;;
10548 esac
10549 fi
10550 UNAME=$ac_cv_path_UNAME
10551 if test -n "$UNAME"; then
10552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10553 $as_echo "$UNAME" >&6; }
10554 else
10555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 fi
10558 
10559 
10560         if test "x$UNAME" = x; then
10561           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10562         fi
10563       else
10564         # Otherwise we believe it is a complete path. Use it as it is.
10565         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10566 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10568 $as_echo_n "checking for UNAME... " >&6; }
10569         if test ! -x "$tool_specified"; then
10570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10571 $as_echo "not found" >&6; }
10572           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10573         fi
10574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10575 $as_echo "$tool_specified" >&6; }
10576       fi
10577     fi
10578   fi
10579 
10580 
10581 
10582   if test "x$UNAME" = x; then
10583     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10584   fi
10585 
10586 
10587 
10588 
10589 
10590   # Publish this variable in the help.
10591 
10592 
10593   if test "x$UNIQ" = x; then
10594     # The variable is not set by user, try to locate tool using the code snippet
10595     for ac_prog in uniq
10596 do
10597   # Extract the first word of "$ac_prog", so it can be a program name with args.
10598 set dummy $ac_prog; ac_word=$2
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 $as_echo_n "checking for $ac_word... " >&6; }
10601 if ${ac_cv_path_UNIQ+:} false; then :
10602   $as_echo_n "(cached) " >&6
10603 else
10604   case $UNIQ in
10605   [\\/]* | ?:[\\/]*)
10606   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10607   ;;
10608   *)
10609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10611 do
10612   IFS=$as_save_IFS
10613   test -z "$as_dir" && as_dir=.
10614     for ac_exec_ext in '' $ac_executable_extensions; do
10615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10616     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618     break 2
10619   fi
10620 done
10621   done
10622 IFS=$as_save_IFS
10623 
10624   ;;
10625 esac
10626 fi
10627 UNIQ=$ac_cv_path_UNIQ
10628 if test -n "$UNIQ"; then
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10630 $as_echo "$UNIQ" >&6; }
10631 else
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 fi
10635 
10636 
10637   test -n "$UNIQ" && break
10638 done
10639 
10640   else
10641     # The variable is set, but is it from the command line or the environment?
10642 
10643     # Try to remove the string !UNIQ! from our list.
10644     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10645     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10646       # If it failed, the variable was not from the command line. Ignore it,
10647       # but warn the user (except for BASH, which is always set by the calling BASH).
10648       if test "xUNIQ" != xBASH; then
10649         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10650 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10651       fi
10652       # Try to locate tool using the code snippet
10653       for ac_prog in uniq
10654 do
10655   # Extract the first word of "$ac_prog", so it can be a program name with args.
10656 set dummy $ac_prog; ac_word=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if ${ac_cv_path_UNIQ+:} false; then :
10660   $as_echo_n "(cached) " >&6
10661 else
10662   case $UNIQ in
10663   [\\/]* | ?:[\\/]*)
10664   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10665   ;;
10666   *)
10667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10669 do
10670   IFS=$as_save_IFS
10671   test -z "$as_dir" && as_dir=.
10672     for ac_exec_ext in '' $ac_executable_extensions; do
10673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676     break 2
10677   fi
10678 done
10679   done
10680 IFS=$as_save_IFS
10681 
10682   ;;
10683 esac
10684 fi
10685 UNIQ=$ac_cv_path_UNIQ
10686 if test -n "$UNIQ"; then
10687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10688 $as_echo "$UNIQ" >&6; }
10689 else
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10692 fi
10693 
10694 
10695   test -n "$UNIQ" && break
10696 done
10697 
10698     else
10699       # If it succeeded, then it was overridden by the user. We will use it
10700       # for the tool.
10701 
10702       # First remove it from the list of overridden variables, so we can test
10703       # for unknown variables in the end.
10704       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10705 
10706       # Check if the provided tool contains a complete path.
10707       tool_specified="$UNIQ"
10708       tool_basename="${tool_specified##*/}"
10709       if test "x$tool_basename" = "x$tool_specified"; then
10710         # A command without a complete path is provided, search $PATH.
10711         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10712 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10713         # Extract the first word of "$tool_basename", so it can be a program name with args.
10714 set dummy $tool_basename; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if ${ac_cv_path_UNIQ+:} false; then :
10718   $as_echo_n "(cached) " >&6
10719 else
10720   case $UNIQ in
10721   [\\/]* | ?:[\\/]*)
10722   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10723   ;;
10724   *)
10725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in $PATH
10727 do
10728   IFS=$as_save_IFS
10729   test -z "$as_dir" && as_dir=.
10730     for ac_exec_ext in '' $ac_executable_extensions; do
10731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10732     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734     break 2
10735   fi
10736 done
10737   done
10738 IFS=$as_save_IFS
10739 
10740   ;;
10741 esac
10742 fi
10743 UNIQ=$ac_cv_path_UNIQ
10744 if test -n "$UNIQ"; then
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10746 $as_echo "$UNIQ" >&6; }
10747 else
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10750 fi
10751 
10752 
10753         if test "x$UNIQ" = x; then
10754           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10755         fi
10756       else
10757         # Otherwise we believe it is a complete path. Use it as it is.
10758         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10759 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10760         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10761 $as_echo_n "checking for UNIQ... " >&6; }
10762         if test ! -x "$tool_specified"; then
10763           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10764 $as_echo "not found" >&6; }
10765           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10766         fi
10767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10768 $as_echo "$tool_specified" >&6; }
10769       fi
10770     fi
10771   fi
10772 
10773 
10774 
10775   if test "x$UNIQ" = x; then
10776     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10777   fi
10778 
10779 
10780 
10781 
10782 
10783   # Publish this variable in the help.
10784 
10785 
10786   if test "x$WC" = x; then
10787     # The variable is not set by user, try to locate tool using the code snippet
10788     for ac_prog in wc
10789 do
10790   # Extract the first word of "$ac_prog", so it can be a program name with args.
10791 set dummy $ac_prog; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if ${ac_cv_path_WC+:} false; then :
10795   $as_echo_n "(cached) " >&6
10796 else
10797   case $WC in
10798   [\\/]* | ?:[\\/]*)
10799   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10800   ;;
10801   *)
10802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10804 do
10805   IFS=$as_save_IFS
10806   test -z "$as_dir" && as_dir=.
10807     for ac_exec_ext in '' $ac_executable_extensions; do
10808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811     break 2
10812   fi
10813 done
10814   done
10815 IFS=$as_save_IFS
10816 
10817   ;;
10818 esac
10819 fi
10820 WC=$ac_cv_path_WC
10821 if test -n "$WC"; then
10822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10823 $as_echo "$WC" >&6; }
10824 else
10825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10827 fi
10828 
10829 
10830   test -n "$WC" && break
10831 done
10832 
10833   else
10834     # The variable is set, but is it from the command line or the environment?
10835 
10836     # Try to remove the string !WC! from our list.
10837     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10838     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10839       # If it failed, the variable was not from the command line. Ignore it,
10840       # but warn the user (except for BASH, which is always set by the calling BASH).
10841       if test "xWC" != xBASH; then
10842         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10843 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10844       fi
10845       # Try to locate tool using the code snippet
10846       for ac_prog in wc
10847 do
10848   # Extract the first word of "$ac_prog", so it can be a program name with args.
10849 set dummy $ac_prog; ac_word=$2
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851 $as_echo_n "checking for $ac_word... " >&6; }
10852 if ${ac_cv_path_WC+:} false; then :
10853   $as_echo_n "(cached) " >&6
10854 else
10855   case $WC in
10856   [\\/]* | ?:[\\/]*)
10857   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10858   ;;
10859   *)
10860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10862 do
10863   IFS=$as_save_IFS
10864   test -z "$as_dir" && as_dir=.
10865     for ac_exec_ext in '' $ac_executable_extensions; do
10866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10867     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869     break 2
10870   fi
10871 done
10872   done
10873 IFS=$as_save_IFS
10874 
10875   ;;
10876 esac
10877 fi
10878 WC=$ac_cv_path_WC
10879 if test -n "$WC"; then
10880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10881 $as_echo "$WC" >&6; }
10882 else
10883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; }
10885 fi
10886 
10887 
10888   test -n "$WC" && break
10889 done
10890 
10891     else
10892       # If it succeeded, then it was overridden by the user. We will use it
10893       # for the tool.
10894 
10895       # First remove it from the list of overridden variables, so we can test
10896       # for unknown variables in the end.
10897       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10898 
10899       # Check if the provided tool contains a complete path.
10900       tool_specified="$WC"
10901       tool_basename="${tool_specified##*/}"
10902       if test "x$tool_basename" = "x$tool_specified"; then
10903         # A command without a complete path is provided, search $PATH.
10904         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10905 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10906         # Extract the first word of "$tool_basename", so it can be a program name with args.
10907 set dummy $tool_basename; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if ${ac_cv_path_WC+:} false; then :
10911   $as_echo_n "(cached) " >&6
10912 else
10913   case $WC in
10914   [\\/]* | ?:[\\/]*)
10915   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10916   ;;
10917   *)
10918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10920 do
10921   IFS=$as_save_IFS
10922   test -z "$as_dir" && as_dir=.
10923     for ac_exec_ext in '' $ac_executable_extensions; do
10924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927     break 2
10928   fi
10929 done
10930   done
10931 IFS=$as_save_IFS
10932 
10933   ;;
10934 esac
10935 fi
10936 WC=$ac_cv_path_WC
10937 if test -n "$WC"; then
10938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10939 $as_echo "$WC" >&6; }
10940 else
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942 $as_echo "no" >&6; }
10943 fi
10944 
10945 
10946         if test "x$WC" = x; then
10947           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10948         fi
10949       else
10950         # Otherwise we believe it is a complete path. Use it as it is.
10951         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10952 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10954 $as_echo_n "checking for WC... " >&6; }
10955         if test ! -x "$tool_specified"; then
10956           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10957 $as_echo "not found" >&6; }
10958           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10959         fi
10960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10961 $as_echo "$tool_specified" >&6; }
10962       fi
10963     fi
10964   fi
10965 
10966 
10967 
10968   if test "x$WC" = x; then
10969     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10970   fi
10971 
10972 
10973 
10974 
10975 
10976   # Publish this variable in the help.
10977 
10978 
10979   if test "x$WHICH" = x; then
10980     # The variable is not set by user, try to locate tool using the code snippet
10981     for ac_prog in which
10982 do
10983   # Extract the first word of "$ac_prog", so it can be a program name with args.
10984 set dummy $ac_prog; ac_word=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if ${ac_cv_path_WHICH+:} false; then :
10988   $as_echo_n "(cached) " >&6
10989 else
10990   case $WHICH in
10991   [\\/]* | ?:[\\/]*)
10992   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10993   ;;
10994   *)
10995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10997 do
10998   IFS=$as_save_IFS
10999   test -z "$as_dir" && as_dir=.
11000     for ac_exec_ext in '' $ac_executable_extensions; do
11001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11002     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004     break 2
11005   fi
11006 done
11007   done
11008 IFS=$as_save_IFS
11009 
11010   ;;
11011 esac
11012 fi
11013 WHICH=$ac_cv_path_WHICH
11014 if test -n "$WHICH"; then
11015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11016 $as_echo "$WHICH" >&6; }
11017 else
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11020 fi
11021 
11022 
11023   test -n "$WHICH" && break
11024 done
11025 
11026   else
11027     # The variable is set, but is it from the command line or the environment?
11028 
11029     # Try to remove the string !WHICH! from our list.
11030     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11031     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11032       # If it failed, the variable was not from the command line. Ignore it,
11033       # but warn the user (except for BASH, which is always set by the calling BASH).
11034       if test "xWHICH" != xBASH; then
11035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11036 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11037       fi
11038       # Try to locate tool using the code snippet
11039       for ac_prog in which
11040 do
11041   # Extract the first word of "$ac_prog", so it can be a program name with args.
11042 set dummy $ac_prog; ac_word=$2
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11044 $as_echo_n "checking for $ac_word... " >&6; }
11045 if ${ac_cv_path_WHICH+:} false; then :
11046   $as_echo_n "(cached) " >&6
11047 else
11048   case $WHICH in
11049   [\\/]* | ?:[\\/]*)
11050   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11051   ;;
11052   *)
11053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11055 do
11056   IFS=$as_save_IFS
11057   test -z "$as_dir" && as_dir=.
11058     for ac_exec_ext in '' $ac_executable_extensions; do
11059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11062     break 2
11063   fi
11064 done
11065   done
11066 IFS=$as_save_IFS
11067 
11068   ;;
11069 esac
11070 fi
11071 WHICH=$ac_cv_path_WHICH
11072 if test -n "$WHICH"; then
11073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11074 $as_echo "$WHICH" >&6; }
11075 else
11076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11078 fi
11079 
11080 
11081   test -n "$WHICH" && break
11082 done
11083 
11084     else
11085       # If it succeeded, then it was overridden by the user. We will use it
11086       # for the tool.
11087 
11088       # First remove it from the list of overridden variables, so we can test
11089       # for unknown variables in the end.
11090       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11091 
11092       # Check if the provided tool contains a complete path.
11093       tool_specified="$WHICH"
11094       tool_basename="${tool_specified##*/}"
11095       if test "x$tool_basename" = "x$tool_specified"; then
11096         # A command without a complete path is provided, search $PATH.
11097         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11098 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11099         # Extract the first word of "$tool_basename", so it can be a program name with args.
11100 set dummy $tool_basename; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if ${ac_cv_path_WHICH+:} false; then :
11104   $as_echo_n "(cached) " >&6
11105 else
11106   case $WHICH in
11107   [\\/]* | ?:[\\/]*)
11108   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11109   ;;
11110   *)
11111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11113 do
11114   IFS=$as_save_IFS
11115   test -z "$as_dir" && as_dir=.
11116     for ac_exec_ext in '' $ac_executable_extensions; do
11117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11118     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120     break 2
11121   fi
11122 done
11123   done
11124 IFS=$as_save_IFS
11125 
11126   ;;
11127 esac
11128 fi
11129 WHICH=$ac_cv_path_WHICH
11130 if test -n "$WHICH"; then
11131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11132 $as_echo "$WHICH" >&6; }
11133 else
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11136 fi
11137 
11138 
11139         if test "x$WHICH" = x; then
11140           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11141         fi
11142       else
11143         # Otherwise we believe it is a complete path. Use it as it is.
11144         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11145 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11147 $as_echo_n "checking for WHICH... " >&6; }
11148         if test ! -x "$tool_specified"; then
11149           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11150 $as_echo "not found" >&6; }
11151           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11152         fi
11153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11154 $as_echo "$tool_specified" >&6; }
11155       fi
11156     fi
11157   fi
11158 
11159 
11160 
11161   if test "x$WHICH" = x; then
11162     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11163   fi
11164 
11165 
11166 
11167 
11168 
11169   # Publish this variable in the help.
11170 
11171 
11172   if test "x$XARGS" = x; then
11173     # The variable is not set by user, try to locate tool using the code snippet
11174     for ac_prog in xargs
11175 do
11176   # Extract the first word of "$ac_prog", so it can be a program name with args.
11177 set dummy $ac_prog; ac_word=$2
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179 $as_echo_n "checking for $ac_word... " >&6; }
11180 if ${ac_cv_path_XARGS+:} false; then :
11181   $as_echo_n "(cached) " >&6
11182 else
11183   case $XARGS in
11184   [\\/]* | ?:[\\/]*)
11185   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11186   ;;
11187   *)
11188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189 for as_dir in $PATH
11190 do
11191   IFS=$as_save_IFS
11192   test -z "$as_dir" && as_dir=.
11193     for ac_exec_ext in '' $ac_executable_extensions; do
11194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11195     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197     break 2
11198   fi
11199 done
11200   done
11201 IFS=$as_save_IFS
11202 
11203   ;;
11204 esac
11205 fi
11206 XARGS=$ac_cv_path_XARGS
11207 if test -n "$XARGS"; then
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11209 $as_echo "$XARGS" >&6; }
11210 else
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11213 fi
11214 
11215 
11216   test -n "$XARGS" && break
11217 done
11218 
11219   else
11220     # The variable is set, but is it from the command line or the environment?
11221 
11222     # Try to remove the string !XARGS! from our list.
11223     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11224     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11225       # If it failed, the variable was not from the command line. Ignore it,
11226       # but warn the user (except for BASH, which is always set by the calling BASH).
11227       if test "xXARGS" != xBASH; then
11228         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11229 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11230       fi
11231       # Try to locate tool using the code snippet
11232       for ac_prog in xargs
11233 do
11234   # Extract the first word of "$ac_prog", so it can be a program name with args.
11235 set dummy $ac_prog; ac_word=$2
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 $as_echo_n "checking for $ac_word... " >&6; }
11238 if ${ac_cv_path_XARGS+:} false; then :
11239   $as_echo_n "(cached) " >&6
11240 else
11241   case $XARGS in
11242   [\\/]* | ?:[\\/]*)
11243   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11244   ;;
11245   *)
11246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247 for as_dir in $PATH
11248 do
11249   IFS=$as_save_IFS
11250   test -z "$as_dir" && as_dir=.
11251     for ac_exec_ext in '' $ac_executable_extensions; do
11252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255     break 2
11256   fi
11257 done
11258   done
11259 IFS=$as_save_IFS
11260 
11261   ;;
11262 esac
11263 fi
11264 XARGS=$ac_cv_path_XARGS
11265 if test -n "$XARGS"; then
11266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11267 $as_echo "$XARGS" >&6; }
11268 else
11269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 $as_echo "no" >&6; }
11271 fi
11272 
11273 
11274   test -n "$XARGS" && break
11275 done
11276 
11277     else
11278       # If it succeeded, then it was overridden by the user. We will use it
11279       # for the tool.
11280 
11281       # First remove it from the list of overridden variables, so we can test
11282       # for unknown variables in the end.
11283       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11284 
11285       # Check if the provided tool contains a complete path.
11286       tool_specified="$XARGS"
11287       tool_basename="${tool_specified##*/}"
11288       if test "x$tool_basename" = "x$tool_specified"; then
11289         # A command without a complete path is provided, search $PATH.
11290         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11291 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11292         # Extract the first word of "$tool_basename", so it can be a program name with args.
11293 set dummy $tool_basename; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_path_XARGS+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   case $XARGS in
11300   [\\/]* | ?:[\\/]*)
11301   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11302   ;;
11303   *)
11304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   test -z "$as_dir" && as_dir=.
11309     for ac_exec_ext in '' $ac_executable_extensions; do
11310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316   done
11317 IFS=$as_save_IFS
11318 
11319   ;;
11320 esac
11321 fi
11322 XARGS=$ac_cv_path_XARGS
11323 if test -n "$XARGS"; then
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11325 $as_echo "$XARGS" >&6; }
11326 else
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329 fi
11330 
11331 
11332         if test "x$XARGS" = x; then
11333           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11334         fi
11335       else
11336         # Otherwise we believe it is a complete path. Use it as it is.
11337         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11338 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11340 $as_echo_n "checking for XARGS... " >&6; }
11341         if test ! -x "$tool_specified"; then
11342           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11343 $as_echo "not found" >&6; }
11344           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11345         fi
11346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11347 $as_echo "$tool_specified" >&6; }
11348       fi
11349     fi
11350   fi
11351 
11352 
11353 
11354   if test "x$XARGS" = x; then
11355     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11356   fi
11357 
11358 
11359 
11360   # Then required tools that require some special treatment.
11361 
11362 
11363   # Publish this variable in the help.
11364 
11365 
11366   if test "x$AWK" = x; then
11367     # The variable is not set by user, try to locate tool using the code snippet
11368     for ac_prog in gawk mawk nawk awk
11369 do
11370   # Extract the first word of "$ac_prog", so it can be a program name with args.
11371 set dummy $ac_prog; ac_word=$2
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; }
11374 if ${ac_cv_prog_AWK+:} false; then :
11375   $as_echo_n "(cached) " >&6
11376 else
11377   if test -n "$AWK"; then
11378   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11379 else
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11382 do
11383   IFS=$as_save_IFS
11384   test -z "$as_dir" && as_dir=.
11385     for ac_exec_ext in '' $ac_executable_extensions; do
11386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387     ac_cv_prog_AWK="$ac_prog"
11388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389     break 2
11390   fi
11391 done
11392   done
11393 IFS=$as_save_IFS
11394 
11395 fi
11396 fi
11397 AWK=$ac_cv_prog_AWK
11398 if test -n "$AWK"; then
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11400 $as_echo "$AWK" >&6; }
11401 else
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403 $as_echo "no" >&6; }
11404 fi
11405 
11406 
11407   test -n "$AWK" && break
11408 done
11409 
11410   else
11411     # The variable is set, but is it from the command line or the environment?
11412 
11413     # Try to remove the string !AWK! from our list.
11414     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11415     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11416       # If it failed, the variable was not from the command line. Ignore it,
11417       # but warn the user (except for BASH, which is always set by the calling BASH).
11418       if test "xAWK" != xBASH; then
11419         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11420 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11421       fi
11422       # Try to locate tool using the code snippet
11423       for ac_prog in gawk mawk nawk awk
11424 do
11425   # Extract the first word of "$ac_prog", so it can be a program name with args.
11426 set dummy $ac_prog; ac_word=$2
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428 $as_echo_n "checking for $ac_word... " >&6; }
11429 if ${ac_cv_prog_AWK+:} false; then :
11430   $as_echo_n "(cached) " >&6
11431 else
11432   if test -n "$AWK"; then
11433   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11434 else
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11437 do
11438   IFS=$as_save_IFS
11439   test -z "$as_dir" && as_dir=.
11440     for ac_exec_ext in '' $ac_executable_extensions; do
11441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442     ac_cv_prog_AWK="$ac_prog"
11443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444     break 2
11445   fi
11446 done
11447   done
11448 IFS=$as_save_IFS
11449 
11450 fi
11451 fi
11452 AWK=$ac_cv_prog_AWK
11453 if test -n "$AWK"; then
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11455 $as_echo "$AWK" >&6; }
11456 else
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11459 fi
11460 
11461 
11462   test -n "$AWK" && break
11463 done
11464 
11465     else
11466       # If it succeeded, then it was overridden by the user. We will use it
11467       # for the tool.
11468 
11469       # First remove it from the list of overridden variables, so we can test
11470       # for unknown variables in the end.
11471       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11472 
11473       # Check if the provided tool contains a complete path.
11474       tool_specified="$AWK"
11475       tool_basename="${tool_specified##*/}"
11476       if test "x$tool_basename" = "x$tool_specified"; then
11477         # A command without a complete path is provided, search $PATH.
11478         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11479 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11480         # Extract the first word of "$tool_basename", so it can be a program name with args.
11481 set dummy $tool_basename; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if ${ac_cv_path_AWK+:} false; then :
11485   $as_echo_n "(cached) " >&6
11486 else
11487   case $AWK in
11488   [\\/]* | ?:[\\/]*)
11489   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11490   ;;
11491   *)
11492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493 for as_dir in $PATH
11494 do
11495   IFS=$as_save_IFS
11496   test -z "$as_dir" && as_dir=.
11497     for ac_exec_ext in '' $ac_executable_extensions; do
11498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11499     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501     break 2
11502   fi
11503 done
11504   done
11505 IFS=$as_save_IFS
11506 
11507   ;;
11508 esac
11509 fi
11510 AWK=$ac_cv_path_AWK
11511 if test -n "$AWK"; then
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11513 $as_echo "$AWK" >&6; }
11514 else
11515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11517 fi
11518 
11519 
11520         if test "x$AWK" = x; then
11521           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11522         fi
11523       else
11524         # Otherwise we believe it is a complete path. Use it as it is.
11525         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11526 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11528 $as_echo_n "checking for AWK... " >&6; }
11529         if test ! -x "$tool_specified"; then
11530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11531 $as_echo "not found" >&6; }
11532           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11533         fi
11534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11535 $as_echo "$tool_specified" >&6; }
11536       fi
11537     fi
11538   fi
11539 
11540 
11541   if test "x$AWK" = x; then
11542     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11543   fi
11544 
11545 
11546 
11547 
11548   # Publish this variable in the help.
11549 
11550 
11551   if test "x$GREP" = x; then
11552     # The variable is not set by user, try to locate tool using the code snippet
11553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11554 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11555 if ${ac_cv_path_GREP+:} false; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558   if test -z "$GREP"; then
11559   ac_path_GREP_found=false
11560   # Loop through the user's path and test for each of PROGNAME-LIST
11561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11563 do
11564   IFS=$as_save_IFS
11565   test -z "$as_dir" && as_dir=.
11566     for ac_prog in grep ggrep; do
11567     for ac_exec_ext in '' $ac_executable_extensions; do
11568       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11569       as_fn_executable_p "$ac_path_GREP" || continue
11570 # Check for GNU ac_path_GREP and select it if it is found.
11571   # Check for GNU $ac_path_GREP
11572 case `"$ac_path_GREP" --version 2>&1` in
11573 *GNU*)
11574   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11575 *)
11576   ac_count=0
11577   $as_echo_n 0123456789 >"conftest.in"
11578   while :
11579   do
11580     cat "conftest.in" "conftest.in" >"conftest.tmp"
11581     mv "conftest.tmp" "conftest.in"
11582     cp "conftest.in" "conftest.nl"
11583     $as_echo 'GREP' >> "conftest.nl"
11584     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11585     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11586     as_fn_arith $ac_count + 1 && ac_count=$as_val
11587     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11588       # Best one so far, save it but keep looking for a better one
11589       ac_cv_path_GREP="$ac_path_GREP"
11590       ac_path_GREP_max=$ac_count
11591     fi
11592     # 10*(2^10) chars as input seems more than enough
11593     test $ac_count -gt 10 && break
11594   done
11595   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11596 esac
11597 
11598       $ac_path_GREP_found && break 3
11599     done
11600   done
11601   done
11602 IFS=$as_save_IFS
11603   if test -z "$ac_cv_path_GREP"; then
11604     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11605   fi
11606 else
11607   ac_cv_path_GREP=$GREP
11608 fi
11609 
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11612 $as_echo "$ac_cv_path_GREP" >&6; }
11613  GREP="$ac_cv_path_GREP"
11614 
11615 
11616   else
11617     # The variable is set, but is it from the command line or the environment?
11618 
11619     # Try to remove the string !GREP! from our list.
11620     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11621     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11622       # If it failed, the variable was not from the command line. Ignore it,
11623       # but warn the user (except for BASH, which is always set by the calling BASH).
11624       if test "xGREP" != xBASH; then
11625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11626 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11627       fi
11628       # Try to locate tool using the code snippet
11629       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11630 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11631 if ${ac_cv_path_GREP+:} false; then :
11632   $as_echo_n "(cached) " >&6
11633 else
11634   if test -z "$GREP"; then
11635   ac_path_GREP_found=false
11636   # Loop through the user's path and test for each of PROGNAME-LIST
11637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11639 do
11640   IFS=$as_save_IFS
11641   test -z "$as_dir" && as_dir=.
11642     for ac_prog in grep ggrep; do
11643     for ac_exec_ext in '' $ac_executable_extensions; do
11644       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11645       as_fn_executable_p "$ac_path_GREP" || continue
11646 # Check for GNU ac_path_GREP and select it if it is found.
11647   # Check for GNU $ac_path_GREP
11648 case `"$ac_path_GREP" --version 2>&1` in
11649 *GNU*)
11650   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11651 *)
11652   ac_count=0
11653   $as_echo_n 0123456789 >"conftest.in"
11654   while :
11655   do
11656     cat "conftest.in" "conftest.in" >"conftest.tmp"
11657     mv "conftest.tmp" "conftest.in"
11658     cp "conftest.in" "conftest.nl"
11659     $as_echo 'GREP' >> "conftest.nl"
11660     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11661     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11662     as_fn_arith $ac_count + 1 && ac_count=$as_val
11663     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11664       # Best one so far, save it but keep looking for a better one
11665       ac_cv_path_GREP="$ac_path_GREP"
11666       ac_path_GREP_max=$ac_count
11667     fi
11668     # 10*(2^10) chars as input seems more than enough
11669     test $ac_count -gt 10 && break
11670   done
11671   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11672 esac
11673 
11674       $ac_path_GREP_found && break 3
11675     done
11676   done
11677   done
11678 IFS=$as_save_IFS
11679   if test -z "$ac_cv_path_GREP"; then
11680     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11681   fi
11682 else
11683   ac_cv_path_GREP=$GREP
11684 fi
11685 
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11688 $as_echo "$ac_cv_path_GREP" >&6; }
11689  GREP="$ac_cv_path_GREP"
11690 
11691 
11692     else
11693       # If it succeeded, then it was overridden by the user. We will use it
11694       # for the tool.
11695 
11696       # First remove it from the list of overridden variables, so we can test
11697       # for unknown variables in the end.
11698       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11699 
11700       # Check if the provided tool contains a complete path.
11701       tool_specified="$GREP"
11702       tool_basename="${tool_specified##*/}"
11703       if test "x$tool_basename" = "x$tool_specified"; then
11704         # A command without a complete path is provided, search $PATH.
11705         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11706 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11707         # Extract the first word of "$tool_basename", so it can be a program name with args.
11708 set dummy $tool_basename; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if ${ac_cv_path_GREP+:} false; then :
11712   $as_echo_n "(cached) " >&6
11713 else
11714   case $GREP in
11715   [\\/]* | ?:[\\/]*)
11716   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11717   ;;
11718   *)
11719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733 
11734   ;;
11735 esac
11736 fi
11737 GREP=$ac_cv_path_GREP
11738 if test -n "$GREP"; then
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11740 $as_echo "$GREP" >&6; }
11741 else
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745 
11746 
11747         if test "x$GREP" = x; then
11748           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11749         fi
11750       else
11751         # Otherwise we believe it is a complete path. Use it as it is.
11752         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11753 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11754         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11755 $as_echo_n "checking for GREP... " >&6; }
11756         if test ! -x "$tool_specified"; then
11757           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11758 $as_echo "not found" >&6; }
11759           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11760         fi
11761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11762 $as_echo "$tool_specified" >&6; }
11763       fi
11764     fi
11765   fi
11766 
11767 
11768   if test "x$GREP" = x; then
11769     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11770   fi
11771 
11772 
11773 
11774 
11775   # Publish this variable in the help.
11776 
11777 
11778   if test "x$EGREP" = x; then
11779     # The variable is not set by user, try to locate tool using the code snippet
11780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11781 $as_echo_n "checking for egrep... " >&6; }
11782 if ${ac_cv_path_EGREP+:} false; then :
11783   $as_echo_n "(cached) " >&6
11784 else
11785   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11786    then ac_cv_path_EGREP="$GREP -E"
11787    else
11788      if test -z "$EGREP"; then
11789   ac_path_EGREP_found=false
11790   # Loop through the user's path and test for each of PROGNAME-LIST
11791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11793 do
11794   IFS=$as_save_IFS
11795   test -z "$as_dir" && as_dir=.
11796     for ac_prog in egrep; do
11797     for ac_exec_ext in '' $ac_executable_extensions; do
11798       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11799       as_fn_executable_p "$ac_path_EGREP" || continue
11800 # Check for GNU ac_path_EGREP and select it if it is found.
11801   # Check for GNU $ac_path_EGREP
11802 case `"$ac_path_EGREP" --version 2>&1` in
11803 *GNU*)
11804   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11805 *)
11806   ac_count=0
11807   $as_echo_n 0123456789 >"conftest.in"
11808   while :
11809   do
11810     cat "conftest.in" "conftest.in" >"conftest.tmp"
11811     mv "conftest.tmp" "conftest.in"
11812     cp "conftest.in" "conftest.nl"
11813     $as_echo 'EGREP' >> "conftest.nl"
11814     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11815     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11816     as_fn_arith $ac_count + 1 && ac_count=$as_val
11817     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11818       # Best one so far, save it but keep looking for a better one
11819       ac_cv_path_EGREP="$ac_path_EGREP"
11820       ac_path_EGREP_max=$ac_count
11821     fi
11822     # 10*(2^10) chars as input seems more than enough
11823     test $ac_count -gt 10 && break
11824   done
11825   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11826 esac
11827 
11828       $ac_path_EGREP_found && break 3
11829     done
11830   done
11831   done
11832 IFS=$as_save_IFS
11833   if test -z "$ac_cv_path_EGREP"; then
11834     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11835   fi
11836 else
11837   ac_cv_path_EGREP=$EGREP
11838 fi
11839 
11840    fi
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11843 $as_echo "$ac_cv_path_EGREP" >&6; }
11844  EGREP="$ac_cv_path_EGREP"
11845 
11846 
11847   else
11848     # The variable is set, but is it from the command line or the environment?
11849 
11850     # Try to remove the string !EGREP! from our list.
11851     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11852     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11853       # If it failed, the variable was not from the command line. Ignore it,
11854       # but warn the user (except for BASH, which is always set by the calling BASH).
11855       if test "xEGREP" != xBASH; then
11856         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11857 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11858       fi
11859       # Try to locate tool using the code snippet
11860       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11861 $as_echo_n "checking for egrep... " >&6; }
11862 if ${ac_cv_path_EGREP+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11866    then ac_cv_path_EGREP="$GREP -E"
11867    else
11868      if test -z "$EGREP"; then
11869   ac_path_EGREP_found=false
11870   # Loop through the user's path and test for each of PROGNAME-LIST
11871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876     for ac_prog in egrep; do
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11879       as_fn_executable_p "$ac_path_EGREP" || continue
11880 # Check for GNU ac_path_EGREP and select it if it is found.
11881   # Check for GNU $ac_path_EGREP
11882 case `"$ac_path_EGREP" --version 2>&1` in
11883 *GNU*)
11884   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11885 *)
11886   ac_count=0
11887   $as_echo_n 0123456789 >"conftest.in"
11888   while :
11889   do
11890     cat "conftest.in" "conftest.in" >"conftest.tmp"
11891     mv "conftest.tmp" "conftest.in"
11892     cp "conftest.in" "conftest.nl"
11893     $as_echo 'EGREP' >> "conftest.nl"
11894     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11896     as_fn_arith $ac_count + 1 && ac_count=$as_val
11897     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11898       # Best one so far, save it but keep looking for a better one
11899       ac_cv_path_EGREP="$ac_path_EGREP"
11900       ac_path_EGREP_max=$ac_count
11901     fi
11902     # 10*(2^10) chars as input seems more than enough
11903     test $ac_count -gt 10 && break
11904   done
11905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11906 esac
11907 
11908       $ac_path_EGREP_found && break 3
11909     done
11910   done
11911   done
11912 IFS=$as_save_IFS
11913   if test -z "$ac_cv_path_EGREP"; then
11914     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11915   fi
11916 else
11917   ac_cv_path_EGREP=$EGREP
11918 fi
11919 
11920    fi
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11923 $as_echo "$ac_cv_path_EGREP" >&6; }
11924  EGREP="$ac_cv_path_EGREP"
11925 
11926 
11927     else
11928       # If it succeeded, then it was overridden by the user. We will use it
11929       # for the tool.
11930 
11931       # First remove it from the list of overridden variables, so we can test
11932       # for unknown variables in the end.
11933       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11934 
11935       # Check if the provided tool contains a complete path.
11936       tool_specified="$EGREP"
11937       tool_basename="${tool_specified##*/}"
11938       if test "x$tool_basename" = "x$tool_specified"; then
11939         # A command without a complete path is provided, search $PATH.
11940         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11941 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11942         # Extract the first word of "$tool_basename", so it can be a program name with args.
11943 set dummy $tool_basename; ac_word=$2
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945 $as_echo_n "checking for $ac_word... " >&6; }
11946 if ${ac_cv_path_EGREP+:} false; then :
11947   $as_echo_n "(cached) " >&6
11948 else
11949   case $EGREP in
11950   [\\/]* | ?:[\\/]*)
11951   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11952   ;;
11953   *)
11954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11956 do
11957   IFS=$as_save_IFS
11958   test -z "$as_dir" && as_dir=.
11959     for ac_exec_ext in '' $ac_executable_extensions; do
11960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11961     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963     break 2
11964   fi
11965 done
11966   done
11967 IFS=$as_save_IFS
11968 
11969   ;;
11970 esac
11971 fi
11972 EGREP=$ac_cv_path_EGREP
11973 if test -n "$EGREP"; then
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11975 $as_echo "$EGREP" >&6; }
11976 else
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979 fi
11980 
11981 
11982         if test "x$EGREP" = x; then
11983           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11984         fi
11985       else
11986         # Otherwise we believe it is a complete path. Use it as it is.
11987         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11988 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11990 $as_echo_n "checking for EGREP... " >&6; }
11991         if test ! -x "$tool_specified"; then
11992           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11993 $as_echo "not found" >&6; }
11994           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11995         fi
11996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11997 $as_echo "$tool_specified" >&6; }
11998       fi
11999     fi
12000   fi
12001 
12002 
12003   if test "x$EGREP" = x; then
12004     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12005   fi
12006 
12007 
12008 
12009 
12010   # Publish this variable in the help.
12011 
12012 
12013   if test "x$FGREP" = x; then
12014     # The variable is not set by user, try to locate tool using the code snippet
12015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12016 $as_echo_n "checking for fgrep... " >&6; }
12017 if ${ac_cv_path_FGREP+:} false; then :
12018   $as_echo_n "(cached) " >&6
12019 else
12020   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12021    then ac_cv_path_FGREP="$GREP -F"
12022    else
12023      if test -z "$FGREP"; then
12024   ac_path_FGREP_found=false
12025   # Loop through the user's path and test for each of PROGNAME-LIST
12026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12028 do
12029   IFS=$as_save_IFS
12030   test -z "$as_dir" && as_dir=.
12031     for ac_prog in fgrep; do
12032     for ac_exec_ext in '' $ac_executable_extensions; do
12033       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12034       as_fn_executable_p "$ac_path_FGREP" || continue
12035 # Check for GNU ac_path_FGREP and select it if it is found.
12036   # Check for GNU $ac_path_FGREP
12037 case `"$ac_path_FGREP" --version 2>&1` in
12038 *GNU*)
12039   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12040 *)
12041   ac_count=0
12042   $as_echo_n 0123456789 >"conftest.in"
12043   while :
12044   do
12045     cat "conftest.in" "conftest.in" >"conftest.tmp"
12046     mv "conftest.tmp" "conftest.in"
12047     cp "conftest.in" "conftest.nl"
12048     $as_echo 'FGREP' >> "conftest.nl"
12049     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12051     as_fn_arith $ac_count + 1 && ac_count=$as_val
12052     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12053       # Best one so far, save it but keep looking for a better one
12054       ac_cv_path_FGREP="$ac_path_FGREP"
12055       ac_path_FGREP_max=$ac_count
12056     fi
12057     # 10*(2^10) chars as input seems more than enough
12058     test $ac_count -gt 10 && break
12059   done
12060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12061 esac
12062 
12063       $ac_path_FGREP_found && break 3
12064     done
12065   done
12066   done
12067 IFS=$as_save_IFS
12068   if test -z "$ac_cv_path_FGREP"; then
12069     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12070   fi
12071 else
12072   ac_cv_path_FGREP=$FGREP
12073 fi
12074 
12075    fi
12076 fi
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12078 $as_echo "$ac_cv_path_FGREP" >&6; }
12079  FGREP="$ac_cv_path_FGREP"
12080 
12081 
12082   else
12083     # The variable is set, but is it from the command line or the environment?
12084 
12085     # Try to remove the string !FGREP! from our list.
12086     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12087     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12088       # If it failed, the variable was not from the command line. Ignore it,
12089       # but warn the user (except for BASH, which is always set by the calling BASH).
12090       if test "xFGREP" != xBASH; then
12091         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12092 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12093       fi
12094       # Try to locate tool using the code snippet
12095       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12096 $as_echo_n "checking for fgrep... " >&6; }
12097 if ${ac_cv_path_FGREP+:} false; then :
12098   $as_echo_n "(cached) " >&6
12099 else
12100   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12101    then ac_cv_path_FGREP="$GREP -F"
12102    else
12103      if test -z "$FGREP"; then
12104   ac_path_FGREP_found=false
12105   # Loop through the user's path and test for each of PROGNAME-LIST
12106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12108 do
12109   IFS=$as_save_IFS
12110   test -z "$as_dir" && as_dir=.
12111     for ac_prog in fgrep; do
12112     for ac_exec_ext in '' $ac_executable_extensions; do
12113       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12114       as_fn_executable_p "$ac_path_FGREP" || continue
12115 # Check for GNU ac_path_FGREP and select it if it is found.
12116   # Check for GNU $ac_path_FGREP
12117 case `"$ac_path_FGREP" --version 2>&1` in
12118 *GNU*)
12119   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12120 *)
12121   ac_count=0
12122   $as_echo_n 0123456789 >"conftest.in"
12123   while :
12124   do
12125     cat "conftest.in" "conftest.in" >"conftest.tmp"
12126     mv "conftest.tmp" "conftest.in"
12127     cp "conftest.in" "conftest.nl"
12128     $as_echo 'FGREP' >> "conftest.nl"
12129     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12130     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12131     as_fn_arith $ac_count + 1 && ac_count=$as_val
12132     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12133       # Best one so far, save it but keep looking for a better one
12134       ac_cv_path_FGREP="$ac_path_FGREP"
12135       ac_path_FGREP_max=$ac_count
12136     fi
12137     # 10*(2^10) chars as input seems more than enough
12138     test $ac_count -gt 10 && break
12139   done
12140   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12141 esac
12142 
12143       $ac_path_FGREP_found && break 3
12144     done
12145   done
12146   done
12147 IFS=$as_save_IFS
12148   if test -z "$ac_cv_path_FGREP"; then
12149     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12150   fi
12151 else
12152   ac_cv_path_FGREP=$FGREP
12153 fi
12154 
12155    fi
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12158 $as_echo "$ac_cv_path_FGREP" >&6; }
12159  FGREP="$ac_cv_path_FGREP"
12160 
12161 
12162     else
12163       # If it succeeded, then it was overridden by the user. We will use it
12164       # for the tool.
12165 
12166       # First remove it from the list of overridden variables, so we can test
12167       # for unknown variables in the end.
12168       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12169 
12170       # Check if the provided tool contains a complete path.
12171       tool_specified="$FGREP"
12172       tool_basename="${tool_specified##*/}"
12173       if test "x$tool_basename" = "x$tool_specified"; then
12174         # A command without a complete path is provided, search $PATH.
12175         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12176 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12177         # Extract the first word of "$tool_basename", so it can be a program name with args.
12178 set dummy $tool_basename; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if ${ac_cv_path_FGREP+:} false; then :
12182   $as_echo_n "(cached) " >&6
12183 else
12184   case $FGREP in
12185   [\\/]* | ?:[\\/]*)
12186   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12187   ;;
12188   *)
12189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12191 do
12192   IFS=$as_save_IFS
12193   test -z "$as_dir" && as_dir=.
12194     for ac_exec_ext in '' $ac_executable_extensions; do
12195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198     break 2
12199   fi
12200 done
12201   done
12202 IFS=$as_save_IFS
12203 
12204   ;;
12205 esac
12206 fi
12207 FGREP=$ac_cv_path_FGREP
12208 if test -n "$FGREP"; then
12209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12210 $as_echo "$FGREP" >&6; }
12211 else
12212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 fi
12215 
12216 
12217         if test "x$FGREP" = x; then
12218           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12219         fi
12220       else
12221         # Otherwise we believe it is a complete path. Use it as it is.
12222         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12223 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12224         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12225 $as_echo_n "checking for FGREP... " >&6; }
12226         if test ! -x "$tool_specified"; then
12227           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12228 $as_echo "not found" >&6; }
12229           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12230         fi
12231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12232 $as_echo "$tool_specified" >&6; }
12233       fi
12234     fi
12235   fi
12236 
12237 
12238   if test "x$FGREP" = x; then
12239     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12240   fi
12241 
12242 
12243 
12244 
12245   # Publish this variable in the help.
12246 
12247 
12248   if test "x$SED" = x; then
12249     # The variable is not set by user, try to locate tool using the code snippet
12250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12251 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12252 if ${ac_cv_path_SED+:} false; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12256      for ac_i in 1 2 3 4 5 6 7; do
12257        ac_script="$ac_script$as_nl$ac_script"
12258      done
12259      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12260      { ac_script=; unset ac_script;}
12261      if test -z "$SED"; then
12262   ac_path_SED_found=false
12263   # Loop through the user's path and test for each of PROGNAME-LIST
12264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_prog in sed gsed; do
12270     for ac_exec_ext in '' $ac_executable_extensions; do
12271       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12272       as_fn_executable_p "$ac_path_SED" || continue
12273 # Check for GNU ac_path_SED and select it if it is found.
12274   # Check for GNU $ac_path_SED
12275 case `"$ac_path_SED" --version 2>&1` in
12276 *GNU*)
12277   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12278 *)
12279   ac_count=0
12280   $as_echo_n 0123456789 >"conftest.in"
12281   while :
12282   do
12283     cat "conftest.in" "conftest.in" >"conftest.tmp"
12284     mv "conftest.tmp" "conftest.in"
12285     cp "conftest.in" "conftest.nl"
12286     $as_echo '' >> "conftest.nl"
12287     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12288     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12289     as_fn_arith $ac_count + 1 && ac_count=$as_val
12290     if test $ac_count -gt ${ac_path_SED_max-0}; then
12291       # Best one so far, save it but keep looking for a better one
12292       ac_cv_path_SED="$ac_path_SED"
12293       ac_path_SED_max=$ac_count
12294     fi
12295     # 10*(2^10) chars as input seems more than enough
12296     test $ac_count -gt 10 && break
12297   done
12298   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12299 esac
12300 
12301       $ac_path_SED_found && break 3
12302     done
12303   done
12304   done
12305 IFS=$as_save_IFS
12306   if test -z "$ac_cv_path_SED"; then
12307     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12308   fi
12309 else
12310   ac_cv_path_SED=$SED
12311 fi
12312 
12313 fi
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12315 $as_echo "$ac_cv_path_SED" >&6; }
12316  SED="$ac_cv_path_SED"
12317   rm -f conftest.sed
12318 
12319   else
12320     # The variable is set, but is it from the command line or the environment?
12321 
12322     # Try to remove the string !SED! from our list.
12323     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12324     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12325       # If it failed, the variable was not from the command line. Ignore it,
12326       # but warn the user (except for BASH, which is always set by the calling BASH).
12327       if test "xSED" != xBASH; then
12328         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12329 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12330       fi
12331       # Try to locate tool using the code snippet
12332       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12333 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12334 if ${ac_cv_path_SED+:} false; then :
12335   $as_echo_n "(cached) " >&6
12336 else
12337             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12338      for ac_i in 1 2 3 4 5 6 7; do
12339        ac_script="$ac_script$as_nl$ac_script"
12340      done
12341      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12342      { ac_script=; unset ac_script;}
12343      if test -z "$SED"; then
12344   ac_path_SED_found=false
12345   # Loop through the user's path and test for each of PROGNAME-LIST
12346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347 for as_dir in $PATH
12348 do
12349   IFS=$as_save_IFS
12350   test -z "$as_dir" && as_dir=.
12351     for ac_prog in sed gsed; do
12352     for ac_exec_ext in '' $ac_executable_extensions; do
12353       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12354       as_fn_executable_p "$ac_path_SED" || continue
12355 # Check for GNU ac_path_SED and select it if it is found.
12356   # Check for GNU $ac_path_SED
12357 case `"$ac_path_SED" --version 2>&1` in
12358 *GNU*)
12359   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12360 *)
12361   ac_count=0
12362   $as_echo_n 0123456789 >"conftest.in"
12363   while :
12364   do
12365     cat "conftest.in" "conftest.in" >"conftest.tmp"
12366     mv "conftest.tmp" "conftest.in"
12367     cp "conftest.in" "conftest.nl"
12368     $as_echo '' >> "conftest.nl"
12369     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12370     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12371     as_fn_arith $ac_count + 1 && ac_count=$as_val
12372     if test $ac_count -gt ${ac_path_SED_max-0}; then
12373       # Best one so far, save it but keep looking for a better one
12374       ac_cv_path_SED="$ac_path_SED"
12375       ac_path_SED_max=$ac_count
12376     fi
12377     # 10*(2^10) chars as input seems more than enough
12378     test $ac_count -gt 10 && break
12379   done
12380   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12381 esac
12382 
12383       $ac_path_SED_found && break 3
12384     done
12385   done
12386   done
12387 IFS=$as_save_IFS
12388   if test -z "$ac_cv_path_SED"; then
12389     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12390   fi
12391 else
12392   ac_cv_path_SED=$SED
12393 fi
12394 
12395 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12397 $as_echo "$ac_cv_path_SED" >&6; }
12398  SED="$ac_cv_path_SED"
12399   rm -f conftest.sed
12400 
12401     else
12402       # If it succeeded, then it was overridden by the user. We will use it
12403       # for the tool.
12404 
12405       # First remove it from the list of overridden variables, so we can test
12406       # for unknown variables in the end.
12407       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12408 
12409       # Check if the provided tool contains a complete path.
12410       tool_specified="$SED"
12411       tool_basename="${tool_specified##*/}"
12412       if test "x$tool_basename" = "x$tool_specified"; then
12413         # A command without a complete path is provided, search $PATH.
12414         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12415 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12416         # Extract the first word of "$tool_basename", so it can be a program name with args.
12417 set dummy $tool_basename; ac_word=$2
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if ${ac_cv_path_SED+:} false; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423   case $SED in
12424   [\\/]* | ?:[\\/]*)
12425   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12426   ;;
12427   *)
12428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431   IFS=$as_save_IFS
12432   test -z "$as_dir" && as_dir=.
12433     for ac_exec_ext in '' $ac_executable_extensions; do
12434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437     break 2
12438   fi
12439 done
12440   done
12441 IFS=$as_save_IFS
12442 
12443   ;;
12444 esac
12445 fi
12446 SED=$ac_cv_path_SED
12447 if test -n "$SED"; then
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12449 $as_echo "$SED" >&6; }
12450 else
12451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454 
12455 
12456         if test "x$SED" = x; then
12457           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12458         fi
12459       else
12460         # Otherwise we believe it is a complete path. Use it as it is.
12461         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12462 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12464 $as_echo_n "checking for SED... " >&6; }
12465         if test ! -x "$tool_specified"; then
12466           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12467 $as_echo "not found" >&6; }
12468           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12469         fi
12470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12471 $as_echo "$tool_specified" >&6; }
12472       fi
12473     fi
12474   fi
12475 
12476 
12477   if test "x$SED" = x; then
12478     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12479   fi
12480 
12481 
12482 
12483   # Always force rm.
12484   RM="$RM -f"
12485 
12486   # pwd behaves differently on various platforms and some don't support the -L flag.
12487   # Always use the bash builtin pwd to get uniform behavior.
12488   THEPWDCMD=pwd
12489 
12490   # These are not required on all platforms
12491 
12492 
12493   # Publish this variable in the help.
12494 
12495 
12496   if test "x$CYGPATH" = x; then
12497     # The variable is not set by user, try to locate tool using the code snippet
12498     for ac_prog in cygpath
12499 do
12500   # Extract the first word of "$ac_prog", so it can be a program name with args.
12501 set dummy $ac_prog; ac_word=$2
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 $as_echo_n "checking for $ac_word... " >&6; }
12504 if ${ac_cv_path_CYGPATH+:} false; then :
12505   $as_echo_n "(cached) " >&6
12506 else
12507   case $CYGPATH in
12508   [\\/]* | ?:[\\/]*)
12509   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12510   ;;
12511   *)
12512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513 for as_dir in $PATH
12514 do
12515   IFS=$as_save_IFS
12516   test -z "$as_dir" && as_dir=.
12517     for ac_exec_ext in '' $ac_executable_extensions; do
12518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12519     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521     break 2
12522   fi
12523 done
12524   done
12525 IFS=$as_save_IFS
12526 
12527   ;;
12528 esac
12529 fi
12530 CYGPATH=$ac_cv_path_CYGPATH
12531 if test -n "$CYGPATH"; then
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12533 $as_echo "$CYGPATH" >&6; }
12534 else
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537 fi
12538 
12539 
12540   test -n "$CYGPATH" && break
12541 done
12542 
12543   else
12544     # The variable is set, but is it from the command line or the environment?
12545 
12546     # Try to remove the string !CYGPATH! from our list.
12547     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12548     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12549       # If it failed, the variable was not from the command line. Ignore it,
12550       # but warn the user (except for BASH, which is always set by the calling BASH).
12551       if test "xCYGPATH" != xBASH; then
12552         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12553 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12554       fi
12555       # Try to locate tool using the code snippet
12556       for ac_prog in cygpath
12557 do
12558   # Extract the first word of "$ac_prog", so it can be a program name with args.
12559 set dummy $ac_prog; ac_word=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if ${ac_cv_path_CYGPATH+:} false; then :
12563   $as_echo_n "(cached) " >&6
12564 else
12565   case $CYGPATH in
12566   [\\/]* | ?:[\\/]*)
12567   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12568   ;;
12569   *)
12570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12572 do
12573   IFS=$as_save_IFS
12574   test -z "$as_dir" && as_dir=.
12575     for ac_exec_ext in '' $ac_executable_extensions; do
12576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12577     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579     break 2
12580   fi
12581 done
12582   done
12583 IFS=$as_save_IFS
12584 
12585   ;;
12586 esac
12587 fi
12588 CYGPATH=$ac_cv_path_CYGPATH
12589 if test -n "$CYGPATH"; then
12590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12591 $as_echo "$CYGPATH" >&6; }
12592 else
12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12595 fi
12596 
12597 
12598   test -n "$CYGPATH" && break
12599 done
12600 
12601     else
12602       # If it succeeded, then it was overridden by the user. We will use it
12603       # for the tool.
12604 
12605       # First remove it from the list of overridden variables, so we can test
12606       # for unknown variables in the end.
12607       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12608 
12609       # Check if the provided tool contains a complete path.
12610       tool_specified="$CYGPATH"
12611       tool_basename="${tool_specified##*/}"
12612       if test "x$tool_basename" = "x$tool_specified"; then
12613         # A command without a complete path is provided, search $PATH.
12614         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12615 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12616         # Extract the first word of "$tool_basename", so it can be a program name with args.
12617 set dummy $tool_basename; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_path_CYGPATH+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   case $CYGPATH in
12624   [\\/]* | ?:[\\/]*)
12625   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12626   ;;
12627   *)
12628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12630 do
12631   IFS=$as_save_IFS
12632   test -z "$as_dir" && as_dir=.
12633     for ac_exec_ext in '' $ac_executable_extensions; do
12634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637     break 2
12638   fi
12639 done
12640   done
12641 IFS=$as_save_IFS
12642 
12643   ;;
12644 esac
12645 fi
12646 CYGPATH=$ac_cv_path_CYGPATH
12647 if test -n "$CYGPATH"; then
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12649 $as_echo "$CYGPATH" >&6; }
12650 else
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654 
12655 
12656         if test "x$CYGPATH" = x; then
12657           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12658         fi
12659       else
12660         # Otherwise we believe it is a complete path. Use it as it is.
12661         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12662 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12664 $as_echo_n "checking for CYGPATH... " >&6; }
12665         if test ! -x "$tool_specified"; then
12666           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12667 $as_echo "not found" >&6; }
12668           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12669         fi
12670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12671 $as_echo "$tool_specified" >&6; }
12672       fi
12673     fi
12674   fi
12675 
12676 
12677 
12678 
12679   # Publish this variable in the help.
12680 
12681 
12682   if test "x$READLINK" = x; then
12683     # The variable is not set by user, try to locate tool using the code snippet
12684     for ac_prog in greadlink readlink
12685 do
12686   # Extract the first word of "$ac_prog", so it can be a program name with args.
12687 set dummy $ac_prog; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_path_READLINK+:} false; then :
12691   $as_echo_n "(cached) " >&6
12692 else
12693   case $READLINK in
12694   [\\/]* | ?:[\\/]*)
12695   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12696   ;;
12697   *)
12698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12700 do
12701   IFS=$as_save_IFS
12702   test -z "$as_dir" && as_dir=.
12703     for ac_exec_ext in '' $ac_executable_extensions; do
12704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12705     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707     break 2
12708   fi
12709 done
12710   done
12711 IFS=$as_save_IFS
12712 
12713   ;;
12714 esac
12715 fi
12716 READLINK=$ac_cv_path_READLINK
12717 if test -n "$READLINK"; then
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12719 $as_echo "$READLINK" >&6; }
12720 else
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 fi
12724 
12725 
12726   test -n "$READLINK" && break
12727 done
12728 
12729   else
12730     # The variable is set, but is it from the command line or the environment?
12731 
12732     # Try to remove the string !READLINK! from our list.
12733     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12734     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12735       # If it failed, the variable was not from the command line. Ignore it,
12736       # but warn the user (except for BASH, which is always set by the calling BASH).
12737       if test "xREADLINK" != xBASH; then
12738         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12739 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12740       fi
12741       # Try to locate tool using the code snippet
12742       for ac_prog in greadlink readlink
12743 do
12744   # Extract the first word of "$ac_prog", so it can be a program name with args.
12745 set dummy $ac_prog; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if ${ac_cv_path_READLINK+:} false; then :
12749   $as_echo_n "(cached) " >&6
12750 else
12751   case $READLINK in
12752   [\\/]* | ?:[\\/]*)
12753   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12754   ;;
12755   *)
12756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12758 do
12759   IFS=$as_save_IFS
12760   test -z "$as_dir" && as_dir=.
12761     for ac_exec_ext in '' $ac_executable_extensions; do
12762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12763     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12765     break 2
12766   fi
12767 done
12768   done
12769 IFS=$as_save_IFS
12770 
12771   ;;
12772 esac
12773 fi
12774 READLINK=$ac_cv_path_READLINK
12775 if test -n "$READLINK"; then
12776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12777 $as_echo "$READLINK" >&6; }
12778 else
12779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12781 fi
12782 
12783 
12784   test -n "$READLINK" && break
12785 done
12786 
12787     else
12788       # If it succeeded, then it was overridden by the user. We will use it
12789       # for the tool.
12790 
12791       # First remove it from the list of overridden variables, so we can test
12792       # for unknown variables in the end.
12793       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12794 
12795       # Check if the provided tool contains a complete path.
12796       tool_specified="$READLINK"
12797       tool_basename="${tool_specified##*/}"
12798       if test "x$tool_basename" = "x$tool_specified"; then
12799         # A command without a complete path is provided, search $PATH.
12800         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12801 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12802         # Extract the first word of "$tool_basename", so it can be a program name with args.
12803 set dummy $tool_basename; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if ${ac_cv_path_READLINK+:} false; then :
12807   $as_echo_n "(cached) " >&6
12808 else
12809   case $READLINK in
12810   [\\/]* | ?:[\\/]*)
12811   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12812   ;;
12813   *)
12814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815 for as_dir in $PATH
12816 do
12817   IFS=$as_save_IFS
12818   test -z "$as_dir" && as_dir=.
12819     for ac_exec_ext in '' $ac_executable_extensions; do
12820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12821     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823     break 2
12824   fi
12825 done
12826   done
12827 IFS=$as_save_IFS
12828 
12829   ;;
12830 esac
12831 fi
12832 READLINK=$ac_cv_path_READLINK
12833 if test -n "$READLINK"; then
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12835 $as_echo "$READLINK" >&6; }
12836 else
12837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839 fi
12840 
12841 
12842         if test "x$READLINK" = x; then
12843           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12844         fi
12845       else
12846         # Otherwise we believe it is a complete path. Use it as it is.
12847         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12848 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12849         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12850 $as_echo_n "checking for READLINK... " >&6; }
12851         if test ! -x "$tool_specified"; then
12852           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12853 $as_echo "not found" >&6; }
12854           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12855         fi
12856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12857 $as_echo "$tool_specified" >&6; }
12858       fi
12859     fi
12860   fi
12861 
12862 
12863 
12864 
12865   # Publish this variable in the help.
12866 
12867 
12868   if test "x$DF" = x; then
12869     # The variable is not set by user, try to locate tool using the code snippet
12870     for ac_prog in df
12871 do
12872   # Extract the first word of "$ac_prog", so it can be a program name with args.
12873 set dummy $ac_prog; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if ${ac_cv_path_DF+:} false; then :
12877   $as_echo_n "(cached) " >&6
12878 else
12879   case $DF in
12880   [\\/]* | ?:[\\/]*)
12881   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12882   ;;
12883   *)
12884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 for as_dir in $PATH
12886 do
12887   IFS=$as_save_IFS
12888   test -z "$as_dir" && as_dir=.
12889     for ac_exec_ext in '' $ac_executable_extensions; do
12890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12891     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12893     break 2
12894   fi
12895 done
12896   done
12897 IFS=$as_save_IFS
12898 
12899   ;;
12900 esac
12901 fi
12902 DF=$ac_cv_path_DF
12903 if test -n "$DF"; then
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12905 $as_echo "$DF" >&6; }
12906 else
12907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12909 fi
12910 
12911 
12912   test -n "$DF" && break
12913 done
12914 
12915   else
12916     # The variable is set, but is it from the command line or the environment?
12917 
12918     # Try to remove the string !DF! from our list.
12919     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12920     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12921       # If it failed, the variable was not from the command line. Ignore it,
12922       # but warn the user (except for BASH, which is always set by the calling BASH).
12923       if test "xDF" != xBASH; then
12924         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12925 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12926       fi
12927       # Try to locate tool using the code snippet
12928       for ac_prog in df
12929 do
12930   # Extract the first word of "$ac_prog", so it can be a program name with args.
12931 set dummy $ac_prog; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if ${ac_cv_path_DF+:} false; then :
12935   $as_echo_n "(cached) " >&6
12936 else
12937   case $DF in
12938   [\\/]* | ?:[\\/]*)
12939   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12940   ;;
12941   *)
12942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12944 do
12945   IFS=$as_save_IFS
12946   test -z "$as_dir" && as_dir=.
12947     for ac_exec_ext in '' $ac_executable_extensions; do
12948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12949     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951     break 2
12952   fi
12953 done
12954   done
12955 IFS=$as_save_IFS
12956 
12957   ;;
12958 esac
12959 fi
12960 DF=$ac_cv_path_DF
12961 if test -n "$DF"; then
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12963 $as_echo "$DF" >&6; }
12964 else
12965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966 $as_echo "no" >&6; }
12967 fi
12968 
12969 
12970   test -n "$DF" && break
12971 done
12972 
12973     else
12974       # If it succeeded, then it was overridden by the user. We will use it
12975       # for the tool.
12976 
12977       # First remove it from the list of overridden variables, so we can test
12978       # for unknown variables in the end.
12979       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12980 
12981       # Check if the provided tool contains a complete path.
12982       tool_specified="$DF"
12983       tool_basename="${tool_specified##*/}"
12984       if test "x$tool_basename" = "x$tool_specified"; then
12985         # A command without a complete path is provided, search $PATH.
12986         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12987 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12988         # Extract the first word of "$tool_basename", so it can be a program name with args.
12989 set dummy $tool_basename; ac_word=$2
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 $as_echo_n "checking for $ac_word... " >&6; }
12992 if ${ac_cv_path_DF+:} false; then :
12993   $as_echo_n "(cached) " >&6
12994 else
12995   case $DF in
12996   [\\/]* | ?:[\\/]*)
12997   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12998   ;;
12999   *)
13000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13002 do
13003   IFS=$as_save_IFS
13004   test -z "$as_dir" && as_dir=.
13005     for ac_exec_ext in '' $ac_executable_extensions; do
13006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009     break 2
13010   fi
13011 done
13012   done
13013 IFS=$as_save_IFS
13014 
13015   ;;
13016 esac
13017 fi
13018 DF=$ac_cv_path_DF
13019 if test -n "$DF"; then
13020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13021 $as_echo "$DF" >&6; }
13022 else
13023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13025 fi
13026 
13027 
13028         if test "x$DF" = x; then
13029           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13030         fi
13031       else
13032         # Otherwise we believe it is a complete path. Use it as it is.
13033         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13034 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13036 $as_echo_n "checking for DF... " >&6; }
13037         if test ! -x "$tool_specified"; then
13038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13039 $as_echo "not found" >&6; }
13040           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13041         fi
13042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13043 $as_echo "$tool_specified" >&6; }
13044       fi
13045     fi
13046   fi
13047 
13048 
13049 
13050 
13051   # Publish this variable in the help.
13052 
13053 
13054   if test "x$SETFILE" = x; then
13055     # The variable is not set by user, try to locate tool using the code snippet
13056     for ac_prog in SetFile
13057 do
13058   # Extract the first word of "$ac_prog", so it can be a program name with args.
13059 set dummy $ac_prog; ac_word=$2
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061 $as_echo_n "checking for $ac_word... " >&6; }
13062 if ${ac_cv_path_SETFILE+:} false; then :
13063   $as_echo_n "(cached) " >&6
13064 else
13065   case $SETFILE in
13066   [\\/]* | ?:[\\/]*)
13067   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13068   ;;
13069   *)
13070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13072 do
13073   IFS=$as_save_IFS
13074   test -z "$as_dir" && as_dir=.
13075     for ac_exec_ext in '' $ac_executable_extensions; do
13076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079     break 2
13080   fi
13081 done
13082   done
13083 IFS=$as_save_IFS
13084 
13085   ;;
13086 esac
13087 fi
13088 SETFILE=$ac_cv_path_SETFILE
13089 if test -n "$SETFILE"; then
13090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13091 $as_echo "$SETFILE" >&6; }
13092 else
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13095 fi
13096 
13097 
13098   test -n "$SETFILE" && break
13099 done
13100 
13101   else
13102     # The variable is set, but is it from the command line or the environment?
13103 
13104     # Try to remove the string !SETFILE! from our list.
13105     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13106     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13107       # If it failed, the variable was not from the command line. Ignore it,
13108       # but warn the user (except for BASH, which is always set by the calling BASH).
13109       if test "xSETFILE" != xBASH; then
13110         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13111 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13112       fi
13113       # Try to locate tool using the code snippet
13114       for ac_prog in SetFile
13115 do
13116   # Extract the first word of "$ac_prog", so it can be a program name with args.
13117 set dummy $ac_prog; ac_word=$2
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119 $as_echo_n "checking for $ac_word... " >&6; }
13120 if ${ac_cv_path_SETFILE+:} false; then :
13121   $as_echo_n "(cached) " >&6
13122 else
13123   case $SETFILE in
13124   [\\/]* | ?:[\\/]*)
13125   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13126   ;;
13127   *)
13128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13130 do
13131   IFS=$as_save_IFS
13132   test -z "$as_dir" && as_dir=.
13133     for ac_exec_ext in '' $ac_executable_extensions; do
13134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13135     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137     break 2
13138   fi
13139 done
13140   done
13141 IFS=$as_save_IFS
13142 
13143   ;;
13144 esac
13145 fi
13146 SETFILE=$ac_cv_path_SETFILE
13147 if test -n "$SETFILE"; then
13148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13149 $as_echo "$SETFILE" >&6; }
13150 else
13151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13153 fi
13154 
13155 
13156   test -n "$SETFILE" && break
13157 done
13158 
13159     else
13160       # If it succeeded, then it was overridden by the user. We will use it
13161       # for the tool.
13162 
13163       # First remove it from the list of overridden variables, so we can test
13164       # for unknown variables in the end.
13165       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13166 
13167       # Check if the provided tool contains a complete path.
13168       tool_specified="$SETFILE"
13169       tool_basename="${tool_specified##*/}"
13170       if test "x$tool_basename" = "x$tool_specified"; then
13171         # A command without a complete path is provided, search $PATH.
13172         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13173 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13174         # Extract the first word of "$tool_basename", so it can be a program name with args.
13175 set dummy $tool_basename; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if ${ac_cv_path_SETFILE+:} false; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181   case $SETFILE in
13182   [\\/]* | ?:[\\/]*)
13183   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13184   ;;
13185   *)
13186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13188 do
13189   IFS=$as_save_IFS
13190   test -z "$as_dir" && as_dir=.
13191     for ac_exec_ext in '' $ac_executable_extensions; do
13192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13193     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195     break 2
13196   fi
13197 done
13198   done
13199 IFS=$as_save_IFS
13200 
13201   ;;
13202 esac
13203 fi
13204 SETFILE=$ac_cv_path_SETFILE
13205 if test -n "$SETFILE"; then
13206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13207 $as_echo "$SETFILE" >&6; }
13208 else
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13211 fi
13212 
13213 
13214         if test "x$SETFILE" = x; then
13215           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13216         fi
13217       else
13218         # Otherwise we believe it is a complete path. Use it as it is.
13219         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13220 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13222 $as_echo_n "checking for SETFILE... " >&6; }
13223         if test ! -x "$tool_specified"; then
13224           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13225 $as_echo "not found" >&6; }
13226           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13227         fi
13228         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13229 $as_echo "$tool_specified" >&6; }
13230       fi
13231     fi
13232   fi
13233 
13234 
13235 
13236 
13237   # Publish this variable in the help.
13238 
13239 
13240   if test "x$CPIO" = x; then
13241     # The variable is not set by user, try to locate tool using the code snippet
13242     for ac_prog in cpio bsdcpio
13243 do
13244   # Extract the first word of "$ac_prog", so it can be a program name with args.
13245 set dummy $ac_prog; ac_word=$2
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247 $as_echo_n "checking for $ac_word... " >&6; }
13248 if ${ac_cv_path_CPIO+:} false; then :
13249   $as_echo_n "(cached) " >&6
13250 else
13251   case $CPIO in
13252   [\\/]* | ?:[\\/]*)
13253   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13254   ;;
13255   *)
13256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257 for as_dir in $PATH
13258 do
13259   IFS=$as_save_IFS
13260   test -z "$as_dir" && as_dir=.
13261     for ac_exec_ext in '' $ac_executable_extensions; do
13262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13263     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13265     break 2
13266   fi
13267 done
13268   done
13269 IFS=$as_save_IFS
13270 
13271   ;;
13272 esac
13273 fi
13274 CPIO=$ac_cv_path_CPIO
13275 if test -n "$CPIO"; then
13276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13277 $as_echo "$CPIO" >&6; }
13278 else
13279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280 $as_echo "no" >&6; }
13281 fi
13282 
13283 
13284   test -n "$CPIO" && break
13285 done
13286 
13287   else
13288     # The variable is set, but is it from the command line or the environment?
13289 
13290     # Try to remove the string !CPIO! from our list.
13291     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13292     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13293       # If it failed, the variable was not from the command line. Ignore it,
13294       # but warn the user (except for BASH, which is always set by the calling BASH).
13295       if test "xCPIO" != xBASH; then
13296         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13297 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13298       fi
13299       # Try to locate tool using the code snippet
13300       for ac_prog in cpio bsdcpio
13301 do
13302   # Extract the first word of "$ac_prog", so it can be a program name with args.
13303 set dummy $ac_prog; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if ${ac_cv_path_CPIO+:} false; then :
13307   $as_echo_n "(cached) " >&6
13308 else
13309   case $CPIO in
13310   [\\/]* | ?:[\\/]*)
13311   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13312   ;;
13313   *)
13314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13316 do
13317   IFS=$as_save_IFS
13318   test -z "$as_dir" && as_dir=.
13319     for ac_exec_ext in '' $ac_executable_extensions; do
13320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323     break 2
13324   fi
13325 done
13326   done
13327 IFS=$as_save_IFS
13328 
13329   ;;
13330 esac
13331 fi
13332 CPIO=$ac_cv_path_CPIO
13333 if test -n "$CPIO"; then
13334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13335 $as_echo "$CPIO" >&6; }
13336 else
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13339 fi
13340 
13341 
13342   test -n "$CPIO" && break
13343 done
13344 
13345     else
13346       # If it succeeded, then it was overridden by the user. We will use it
13347       # for the tool.
13348 
13349       # First remove it from the list of overridden variables, so we can test
13350       # for unknown variables in the end.
13351       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13352 
13353       # Check if the provided tool contains a complete path.
13354       tool_specified="$CPIO"
13355       tool_basename="${tool_specified##*/}"
13356       if test "x$tool_basename" = "x$tool_specified"; then
13357         # A command without a complete path is provided, search $PATH.
13358         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13359 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13360         # Extract the first word of "$tool_basename", so it can be a program name with args.
13361 set dummy $tool_basename; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if ${ac_cv_path_CPIO+:} false; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367   case $CPIO in
13368   [\\/]* | ?:[\\/]*)
13369   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13370   ;;
13371   *)
13372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13374 do
13375   IFS=$as_save_IFS
13376   test -z "$as_dir" && as_dir=.
13377     for ac_exec_ext in '' $ac_executable_extensions; do
13378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13379     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381     break 2
13382   fi
13383 done
13384   done
13385 IFS=$as_save_IFS
13386 
13387   ;;
13388 esac
13389 fi
13390 CPIO=$ac_cv_path_CPIO
13391 if test -n "$CPIO"; then
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13393 $as_echo "$CPIO" >&6; }
13394 else
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13397 fi
13398 
13399 
13400         if test "x$CPIO" = x; then
13401           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13402         fi
13403       else
13404         # Otherwise we believe it is a complete path. Use it as it is.
13405         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13406 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13407         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13408 $as_echo_n "checking for CPIO... " >&6; }
13409         if test ! -x "$tool_specified"; then
13410           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13411 $as_echo "not found" >&6; }
13412           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13413         fi
13414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13415 $as_echo "$tool_specified" >&6; }
13416       fi
13417     fi
13418   fi
13419 
13420 
13421 
13422 
13423 # Now we can determine OpenJDK build and target platforms. This is required to
13424 # have early on.
13425 # Make sure we can run config.sub.
13426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13427   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13428 
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13430 $as_echo_n "checking build system type... " >&6; }
13431 if ${ac_cv_build+:} false; then :
13432   $as_echo_n "(cached) " >&6
13433 else
13434   ac_build_alias=$build_alias
13435 test "x$ac_build_alias" = x &&
13436   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13437 test "x$ac_build_alias" = x &&
13438   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13440   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13441 
13442 fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13444 $as_echo "$ac_cv_build" >&6; }
13445 case $ac_cv_build in
13446 *-*-*) ;;
13447 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13448 esac
13449 build=$ac_cv_build
13450 ac_save_IFS=$IFS; IFS='-'
13451 set x $ac_cv_build
13452 shift
13453 build_cpu=$1
13454 build_vendor=$2
13455 shift; shift
13456 # Remember, the first character of IFS is used to create $*,
13457 # except with old shells:
13458 build_os=$*
13459 IFS=$ac_save_IFS
13460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13461 
13462 
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13464 $as_echo_n "checking host system type... " >&6; }
13465 if ${ac_cv_host+:} false; then :
13466   $as_echo_n "(cached) " >&6
13467 else
13468   if test "x$host_alias" = x; then
13469   ac_cv_host=$ac_cv_build
13470 else
13471   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13472     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13473 fi
13474 
13475 fi
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13477 $as_echo "$ac_cv_host" >&6; }
13478 case $ac_cv_host in
13479 *-*-*) ;;
13480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13481 esac
13482 host=$ac_cv_host
13483 ac_save_IFS=$IFS; IFS='-'
13484 set x $ac_cv_host
13485 shift
13486 host_cpu=$1
13487 host_vendor=$2
13488 shift; shift
13489 # Remember, the first character of IFS is used to create $*,
13490 # except with old shells:
13491 host_os=$*
13492 IFS=$ac_save_IFS
13493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13494 
13495 
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13497 $as_echo_n "checking target system type... " >&6; }
13498 if ${ac_cv_target+:} false; then :
13499   $as_echo_n "(cached) " >&6
13500 else
13501   if test "x$target_alias" = x; then
13502   ac_cv_target=$ac_cv_host
13503 else
13504   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13505     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13506 fi
13507 
13508 fi
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13510 $as_echo "$ac_cv_target" >&6; }
13511 case $ac_cv_target in
13512 *-*-*) ;;
13513 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13514 esac
13515 target=$ac_cv_target
13516 ac_save_IFS=$IFS; IFS='-'
13517 set x $ac_cv_target
13518 shift
13519 target_cpu=$1
13520 target_vendor=$2
13521 shift; shift
13522 # Remember, the first character of IFS is used to create $*,
13523 # except with old shells:
13524 target_os=$*
13525 IFS=$ac_save_IFS
13526 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13527 
13528 
13529 # The aliases save the names the user supplied, while $host etc.
13530 # will get canonicalized.
13531 test -n "$target_alias" &&
13532   test "$program_prefix$program_suffix$program_transform_name" = \
13533     NONENONEs,x,x, &&
13534   program_prefix=${target_alias}-
13535 
13536   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13537   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13538   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13539   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13540   # to use the configure naming style.
13541 
13542 
13543 
13544 
13545 
13546   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13547   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13548   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13549   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13550   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13551   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13552 
13553 
13554 
13555   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13556 
13557   case "$build_os" in
13558     *linux*)
13559       VAR_OS=linux
13560       VAR_OS_API=posix
13561       VAR_OS_ENV=linux
13562       ;;
13563     *solaris*)
13564       VAR_OS=solaris
13565       VAR_OS_API=posix
13566       VAR_OS_ENV=solaris
13567       ;;
13568     *darwin*)
13569       VAR_OS=macosx
13570       VAR_OS_API=posix
13571       VAR_OS_ENV=macosx
13572       ;;
13573     *bsd*)
13574       VAR_OS=bsd
13575       VAR_OS_API=posix
13576       VAR_OS_ENV=bsd
13577       ;;
13578     *cygwin*)
13579       VAR_OS=windows
13580       VAR_OS_API=winapi
13581       VAR_OS_ENV=windows.cygwin
13582       ;;
13583     *mingw*)
13584       VAR_OS=windows
13585       VAR_OS_API=winapi
13586       VAR_OS_ENV=windows.msys
13587       ;;
13588     *aix*)
13589       VAR_OS=aix
13590       VAR_OS_API=posix
13591       VAR_OS_ENV=aix
13592       ;;
13593     *)
13594       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13595       ;;
13596   esac
13597 
13598 
13599   # First argument is the cpu name from the trip/quad
13600   case "$build_cpu" in
13601     x86_64)
13602       VAR_CPU=x86_64
13603       VAR_CPU_ARCH=x86
13604       VAR_CPU_BITS=64
13605       VAR_CPU_ENDIAN=little
13606       ;;
13607     i?86)
13608       VAR_CPU=x86
13609       VAR_CPU_ARCH=x86
13610       VAR_CPU_BITS=32
13611       VAR_CPU_ENDIAN=little
13612       ;;
13613     arm*)
13614       VAR_CPU=arm
13615       VAR_CPU_ARCH=arm
13616       VAR_CPU_BITS=32
13617       VAR_CPU_ENDIAN=little
13618       ;;
13619     aarch64)
13620       VAR_CPU=aarch64
13621       VAR_CPU_ARCH=aarch64
13622       VAR_CPU_BITS=64
13623       VAR_CPU_ENDIAN=little
13624       ;;
13625     powerpc)
13626       VAR_CPU=ppc
13627       VAR_CPU_ARCH=ppc
13628       VAR_CPU_BITS=32
13629       VAR_CPU_ENDIAN=big
13630       ;;
13631     powerpc64)
13632       VAR_CPU=ppc64
13633       VAR_CPU_ARCH=ppc
13634       VAR_CPU_BITS=64
13635       VAR_CPU_ENDIAN=big
13636       ;;
13637     powerpc64le)
13638       VAR_CPU=ppc64le
13639       VAR_CPU_ARCH=ppc
13640       VAR_CPU_BITS=64
13641       VAR_CPU_ENDIAN=little
13642       ;;
13643     s390)
13644       VAR_CPU=s390
13645       VAR_CPU_ARCH=s390
13646       VAR_CPU_BITS=32
13647       VAR_CPU_ENDIAN=big
13648       ;;
13649     s390x)
13650       VAR_CPU=s390x
13651       VAR_CPU_ARCH=s390
13652       VAR_CPU_BITS=64
13653       VAR_CPU_ENDIAN=big
13654       ;;
13655     sparc)
13656       VAR_CPU=sparc
13657       VAR_CPU_ARCH=sparc
13658       VAR_CPU_BITS=32
13659       VAR_CPU_ENDIAN=big
13660       ;;
13661     sparcv9|sparc64)
13662       VAR_CPU=sparcv9
13663       VAR_CPU_ARCH=sparc
13664       VAR_CPU_BITS=64
13665       VAR_CPU_ENDIAN=big
13666       ;;
13667     *)
13668       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13669       ;;
13670   esac
13671 
13672   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13673   OPENJDK_BUILD_OS="$VAR_OS"
13674   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13675   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13676   OPENJDK_BUILD_CPU="$VAR_CPU"
13677   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13678   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13679   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13680 
13681 
13682 
13683 
13684 
13685 
13686 
13687 
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13689 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13691 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13692 
13693   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13694 
13695   case "$host_os" in
13696     *linux*)
13697       VAR_OS=linux
13698       VAR_OS_API=posix
13699       VAR_OS_ENV=linux
13700       ;;
13701     *solaris*)
13702       VAR_OS=solaris
13703       VAR_OS_API=posix
13704       VAR_OS_ENV=solaris
13705       ;;
13706     *darwin*)
13707       VAR_OS=macosx
13708       VAR_OS_API=posix
13709       VAR_OS_ENV=macosx
13710       ;;
13711     *bsd*)
13712       VAR_OS=bsd
13713       VAR_OS_API=posix
13714       VAR_OS_ENV=bsd
13715       ;;
13716     *cygwin*)
13717       VAR_OS=windows
13718       VAR_OS_API=winapi
13719       VAR_OS_ENV=windows.cygwin
13720       ;;
13721     *mingw*)
13722       VAR_OS=windows
13723       VAR_OS_API=winapi
13724       VAR_OS_ENV=windows.msys
13725       ;;
13726     *aix*)
13727       VAR_OS=aix
13728       VAR_OS_API=posix
13729       VAR_OS_ENV=aix
13730       ;;
13731     *)
13732       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13733       ;;
13734   esac
13735 
13736 
13737   # First argument is the cpu name from the trip/quad
13738   case "$host_cpu" in
13739     x86_64)
13740       VAR_CPU=x86_64
13741       VAR_CPU_ARCH=x86
13742       VAR_CPU_BITS=64
13743       VAR_CPU_ENDIAN=little
13744       ;;
13745     i?86)
13746       VAR_CPU=x86
13747       VAR_CPU_ARCH=x86
13748       VAR_CPU_BITS=32
13749       VAR_CPU_ENDIAN=little
13750       ;;
13751     arm*)
13752       VAR_CPU=arm
13753       VAR_CPU_ARCH=arm
13754       VAR_CPU_BITS=32
13755       VAR_CPU_ENDIAN=little
13756       ;;
13757     aarch64)
13758       VAR_CPU=aarch64
13759       VAR_CPU_ARCH=aarch64
13760       VAR_CPU_BITS=64
13761       VAR_CPU_ENDIAN=little
13762       ;;
13763     powerpc)
13764       VAR_CPU=ppc
13765       VAR_CPU_ARCH=ppc
13766       VAR_CPU_BITS=32
13767       VAR_CPU_ENDIAN=big
13768       ;;
13769     powerpc64)
13770       VAR_CPU=ppc64
13771       VAR_CPU_ARCH=ppc
13772       VAR_CPU_BITS=64
13773       VAR_CPU_ENDIAN=big
13774       ;;
13775     powerpc64le)
13776       VAR_CPU=ppc64le
13777       VAR_CPU_ARCH=ppc
13778       VAR_CPU_BITS=64
13779       VAR_CPU_ENDIAN=little
13780       ;;
13781     s390)
13782       VAR_CPU=s390
13783       VAR_CPU_ARCH=s390
13784       VAR_CPU_BITS=32
13785       VAR_CPU_ENDIAN=big
13786       ;;
13787     s390x)
13788       VAR_CPU=s390x
13789       VAR_CPU_ARCH=s390
13790       VAR_CPU_BITS=64
13791       VAR_CPU_ENDIAN=big
13792       ;;
13793     sparc)
13794       VAR_CPU=sparc
13795       VAR_CPU_ARCH=sparc
13796       VAR_CPU_BITS=32
13797       VAR_CPU_ENDIAN=big
13798       ;;
13799     sparcv9|sparc64)
13800       VAR_CPU=sparcv9
13801       VAR_CPU_ARCH=sparc
13802       VAR_CPU_BITS=64
13803       VAR_CPU_ENDIAN=big
13804       ;;
13805     *)
13806       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13807       ;;
13808   esac
13809 
13810   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13811   OPENJDK_TARGET_OS="$VAR_OS"
13812   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13813   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13814   OPENJDK_TARGET_CPU="$VAR_CPU"
13815   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13816   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13817   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13818 
13819 
13820 
13821 
13822 
13823 
13824 
13825 
13826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13827 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13829 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13830 
13831 
13832 
13833 # Check whether --with-target-bits was given.
13834 if test "${with_target_bits+set}" = set; then :
13835   withval=$with_target_bits;
13836 fi
13837 
13838 
13839   # We have three types of compiles:
13840   # native  == normal compilation, target system == build system
13841   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13842   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13843   #
13844   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13845     # We're doing a proper cross-compilation
13846     COMPILE_TYPE="cross"
13847   else
13848     COMPILE_TYPE="native"
13849   fi
13850 
13851   if test "x$with_target_bits" != x; then
13852     if test "x$COMPILE_TYPE" = "xcross"; then
13853       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13854     fi
13855 
13856     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13857       # A reduced build is requested
13858       COMPILE_TYPE="reduced"
13859       OPENJDK_TARGET_CPU_BITS=32
13860       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13861         OPENJDK_TARGET_CPU=x86
13862       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13863         OPENJDK_TARGET_CPU=sparc
13864       else
13865         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13866       fi
13867     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13868       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
13869     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13870       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13871 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13872     else
13873       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13874     fi
13875   fi
13876 
13877 
13878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13879 $as_echo_n "checking compilation type... " >&6; }
13880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13881 $as_echo "$COMPILE_TYPE" >&6; }
13882 
13883 
13884   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13885     REQUIRED_OS_NAME=SunOS
13886     REQUIRED_OS_VERSION=5.10
13887   fi
13888   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13889     REQUIRED_OS_NAME=Linux
13890     REQUIRED_OS_VERSION=2.6
13891   fi
13892   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13893     REQUIRED_OS_NAME=Windows
13894     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13895       REQUIRED_OS_VERSION=5.2
13896     else
13897       REQUIRED_OS_VERSION=5.1
13898     fi
13899   fi
13900   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13901     REQUIRED_OS_NAME=Darwin
13902     REQUIRED_OS_VERSION=11.2
13903   fi
13904 
13905 
13906 
13907 
13908 
13909   # Also store the legacy naming of the cpu.
13910   # Ie i586 and amd64 instead of x86 and x86_64
13911   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13912   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13913     OPENJDK_TARGET_CPU_LEGACY="i586"
13914   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13915     # On all platforms except MacOSX replace x86_64 with amd64.
13916     OPENJDK_TARGET_CPU_LEGACY="amd64"
13917   fi
13918 
13919 
13920   # And the second legacy naming of the cpu.
13921   # Ie i386 and amd64 instead of x86 and x86_64.
13922   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13923   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13924     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13925   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13926     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13927   fi
13928 
13929 
13930   # This is the name of the cpu (but using i386 and amd64 instead of
13931   # x86 and x86_64, respectively), preceeded by a /, to be used when
13932   # locating libraries. On macosx, it's empty, though.
13933   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13934   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13935     OPENJDK_TARGET_CPU_LIBDIR=""
13936   fi
13937 
13938 
13939   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13940   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13941   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13942   OPENJDK_TARGET_CPU_ISADIR=""
13943   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13944     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13945       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13946     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13947       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13948     fi
13949   fi
13950 
13951 
13952   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13953   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13954   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13955     # On linux only, we replace x86 with i386.
13956     OPENJDK_TARGET_CPU_OSARCH="i386"
13957   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13958     # On all platforms except macosx, we replace x86_64 with amd64.
13959     OPENJDK_TARGET_CPU_OSARCH="amd64"
13960   fi
13961 
13962 
13963   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13964   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13965     OPENJDK_TARGET_CPU_JLI="i386"
13966   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13967     # On all platforms except macosx, we replace x86_64 with amd64.
13968     OPENJDK_TARGET_CPU_JLI="amd64"
13969   fi
13970   # Now setup the -D flags for building libjli.
13971   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13972   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13973     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13974       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13975     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13976       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13977     fi
13978   fi
13979 
13980 
13981   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13982   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13983     OPENJDK_TARGET_OS_API_DIR="solaris"
13984   fi
13985   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13986     OPENJDK_TARGET_OS_API_DIR="windows"
13987   fi
13988 
13989 
13990   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13991       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13992   else
13993       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13994   fi
13995 
13996 
13997   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13998     A_LP64="LP64:="
13999     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14000     # unpack200.exe
14001     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14002       ADD_LP64="-D_LP64=1"
14003     fi
14004   fi
14005   LP64=$A_LP64
14006 
14007 
14008   if test "x$COMPILE_TYPE" = "xcross"; then
14009     # FIXME: ... or should this include reduced builds..?
14010     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14011   else
14012     DEFINE_CROSS_COMPILE_ARCH=""
14013   fi
14014 
14015 
14016   # ZERO_ARCHDEF is used to enable architecture-specific code
14017   case "${OPENJDK_TARGET_CPU}" in
14018     ppc)     ZERO_ARCHDEF=PPC32 ;;
14019     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14020     s390*)   ZERO_ARCHDEF=S390  ;;
14021     sparc*)  ZERO_ARCHDEF=SPARC ;;
14022     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14023     x86)     ZERO_ARCHDEF=IA32  ;;
14024     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14025   esac
14026 
14027 
14028 
14029 
14030 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14031 
14032   # Save the current directory this script was started from
14033   CURDIR="$PWD"
14034 
14035   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14036     PATH_SEP=";"
14037 
14038   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14039   if test $SRC_ROOT_LENGTH -gt 100; then
14040     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14041   fi
14042 
14043   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14045 $as_echo_n "checking cygwin release... " >&6; }
14046     CYGWIN_VERSION=`$UNAME -r`
14047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14048 $as_echo "$CYGWIN_VERSION" >&6; }
14049     WINDOWS_ENV_VENDOR='cygwin'
14050     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14051 
14052     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
14053     if test "x$CYGWIN_VERSION_OLD" != x; then
14054       { $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
14055 $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;}
14056       as_fn_error $? "Cannot continue" "$LINENO" 5
14057     fi
14058     if test "x$CYGPATH" = x; then
14059       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14060     fi
14061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14062 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14063     # The cmd output ends with Windows line endings (CR/LF)
14064     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14065     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14066     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14068 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14069     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14070     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14071     if test "x$test_cygdrive_prefix" = x; then
14072       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14073     fi
14074   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14076 $as_echo_n "checking msys release... " >&6; }
14077     MSYS_VERSION=`$UNAME -r`
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14079 $as_echo "$MSYS_VERSION" >&6; }
14080 
14081     WINDOWS_ENV_VENDOR='msys'
14082     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14083 
14084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14085 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14086     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14087     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14088 
14089   windows_path="$MSYS_ROOT_PATH"
14090   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14091     unix_path=`$CYGPATH -u "$windows_path"`
14092     MSYS_ROOT_PATH="$unix_path"
14093   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14094     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14095     MSYS_ROOT_PATH="$unix_path"
14096   fi
14097 
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14099 $as_echo "$MSYS_ROOT_PATH" >&6; }
14100     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14101   else
14102     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14103   fi
14104 
14105   # Test if windows or unix (cygwin/msys) find is first in path.
14106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14107 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14108   FIND_BINARY_OUTPUT=`find --version 2>&1`
14109   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14111 $as_echo "unix style" >&6; }
14112   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14114 $as_echo "Windows" >&6; }
14115     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14116 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14117     { $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
14118 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14119     as_fn_error $? "Cannot continue" "$LINENO" 5
14120   else
14121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14122 $as_echo "unknown" >&6; }
14123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14124 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14125   fi
14126 
14127   else
14128     PATH_SEP=":"
14129   fi
14130 
14131 
14132   # We get the top-level directory from the supporting wrappers.
14133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14134 $as_echo_n "checking for top-level directory... " >&6; }
14135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14136 $as_echo "$TOPDIR" >&6; }
14137 
14138 
14139   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14140 
14141   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14142 
14143   # Input might be given as Windows format, start by converting to
14144   # unix format.
14145   path="$CURDIR"
14146   new_path=`$CYGPATH -u "$path"`
14147 
14148   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14149   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14150   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14151   # "foo.exe" is OK but "foo" is an error.
14152   #
14153   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14154   # It is also a way to make sure we got the proper file name for the real test later on.
14155   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14156   if test "x$test_shortpath" = x; then
14157     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14158 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14159     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14160   fi
14161 
14162   # Call helper function which possibly converts this using DOS-style short mode.
14163   # If so, the updated path is stored in $new_path.
14164 
14165   input_path="$new_path"
14166   # Check if we need to convert this using DOS-style short mode. If the path
14167   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14168   # take no chances and rewrite it.
14169   # Note: m4 eats our [], so we need to use [ and ] instead.
14170   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14171   if test "x$has_forbidden_chars" != x; then
14172     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14173     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14174     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14175     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14176       # Going to short mode and back again did indeed matter. Since short mode is
14177       # case insensitive, let's make it lowercase to improve readability.
14178       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14179       # Now convert it back to Unix-style (cygpath)
14180       input_path=`$CYGPATH -u "$shortmode_path"`
14181       new_path="$input_path"
14182     fi
14183   fi
14184 
14185   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14186   if test "x$test_cygdrive_prefix" = x; then
14187     # As a simple fix, exclude /usr/bin since it's not a real path.
14188     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14189       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14190       # a path prefixed by /cygdrive for fixpath to work.
14191       new_path="$CYGWIN_ROOT_PATH$input_path"
14192     fi
14193   fi
14194 
14195 
14196   if test "x$path" != "x$new_path"; then
14197     CURDIR="$new_path"
14198     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14199 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14200   fi
14201 
14202   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14203 
14204   path="$CURDIR"
14205   has_colon=`$ECHO $path | $GREP ^.:`
14206   new_path="$path"
14207   if test "x$has_colon" = x; then
14208     # Not in mixed or Windows style, start by that.
14209     new_path=`cmd //c echo $path`
14210   fi
14211 
14212 
14213   input_path="$new_path"
14214   # Check if we need to convert this using DOS-style short mode. If the path
14215   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14216   # take no chances and rewrite it.
14217   # Note: m4 eats our [], so we need to use [ and ] instead.
14218   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14219   if test "x$has_forbidden_chars" != x; then
14220     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14221     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14222   fi
14223 
14224 
14225   windows_path="$new_path"
14226   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14227     unix_path=`$CYGPATH -u "$windows_path"`
14228     new_path="$unix_path"
14229   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14230     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14231     new_path="$unix_path"
14232   fi
14233 
14234   if test "x$path" != "x$new_path"; then
14235     CURDIR="$new_path"
14236     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14237 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14238   fi
14239 
14240   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14241   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14242 
14243   else
14244     # We're on a posix platform. Hooray! :)
14245     path="$CURDIR"
14246     has_space=`$ECHO "$path" | $GREP " "`
14247     if test "x$has_space" != x; then
14248       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14249 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14250       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14251     fi
14252 
14253     # Use eval to expand a potential ~
14254     eval path="$path"
14255     if test ! -f "$path" && test ! -d "$path"; then
14256       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14257     fi
14258 
14259     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14260   fi
14261 
14262 
14263   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14264 
14265   # Input might be given as Windows format, start by converting to
14266   # unix format.
14267   path="$TOPDIR"
14268   new_path=`$CYGPATH -u "$path"`
14269 
14270   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14271   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14272   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14273   # "foo.exe" is OK but "foo" is an error.
14274   #
14275   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14276   # It is also a way to make sure we got the proper file name for the real test later on.
14277   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14278   if test "x$test_shortpath" = x; then
14279     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14280 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14281     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14282   fi
14283 
14284   # Call helper function which possibly converts this using DOS-style short mode.
14285   # If so, the updated path is stored in $new_path.
14286 
14287   input_path="$new_path"
14288   # Check if we need to convert this using DOS-style short mode. If the path
14289   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14290   # take no chances and rewrite it.
14291   # Note: m4 eats our [], so we need to use [ and ] instead.
14292   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14293   if test "x$has_forbidden_chars" != x; then
14294     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14295     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14296     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14297     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14298       # Going to short mode and back again did indeed matter. Since short mode is
14299       # case insensitive, let's make it lowercase to improve readability.
14300       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14301       # Now convert it back to Unix-style (cygpath)
14302       input_path=`$CYGPATH -u "$shortmode_path"`
14303       new_path="$input_path"
14304     fi
14305   fi
14306 
14307   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14308   if test "x$test_cygdrive_prefix" = x; then
14309     # As a simple fix, exclude /usr/bin since it's not a real path.
14310     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14311       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14312       # a path prefixed by /cygdrive for fixpath to work.
14313       new_path="$CYGWIN_ROOT_PATH$input_path"
14314     fi
14315   fi
14316 
14317 
14318   if test "x$path" != "x$new_path"; then
14319     TOPDIR="$new_path"
14320     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14321 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14322   fi
14323 
14324   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14325 
14326   path="$TOPDIR"
14327   has_colon=`$ECHO $path | $GREP ^.:`
14328   new_path="$path"
14329   if test "x$has_colon" = x; then
14330     # Not in mixed or Windows style, start by that.
14331     new_path=`cmd //c echo $path`
14332   fi
14333 
14334 
14335   input_path="$new_path"
14336   # Check if we need to convert this using DOS-style short mode. If the path
14337   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14338   # take no chances and rewrite it.
14339   # Note: m4 eats our [], so we need to use [ and ] instead.
14340   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14341   if test "x$has_forbidden_chars" != x; then
14342     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14343     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14344   fi
14345 
14346 
14347   windows_path="$new_path"
14348   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14349     unix_path=`$CYGPATH -u "$windows_path"`
14350     new_path="$unix_path"
14351   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14352     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14353     new_path="$unix_path"
14354   fi
14355 
14356   if test "x$path" != "x$new_path"; then
14357     TOPDIR="$new_path"
14358     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14359 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14360   fi
14361 
14362   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14363   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14364 
14365   else
14366     # We're on a posix platform. Hooray! :)
14367     path="$TOPDIR"
14368     has_space=`$ECHO "$path" | $GREP " "`
14369     if test "x$has_space" != x; then
14370       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14371 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14372       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14373     fi
14374 
14375     # Use eval to expand a potential ~
14376     eval path="$path"
14377     if test ! -f "$path" && test ! -d "$path"; then
14378       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14379     fi
14380 
14381     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14382   fi
14383 
14384   # SRC_ROOT is a traditional alias for TOPDIR.
14385   SRC_ROOT=$TOPDIR
14386 
14387   # Locate the directory of this script.
14388   AUTOCONF_DIR=$TOPDIR/common/autoconf
14389 
14390 
14391   # Setup default logging of stdout and stderr to build.log in the output root.
14392   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14393   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14394   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14395 
14396 
14397 
14398 
14399 
14400 # Check if it's a pure open build or if custom sources are to be used.
14401 
14402   # Check whether --enable-openjdk-only was given.
14403 if test "${enable_openjdk_only+set}" = set; then :
14404   enableval=$enable_openjdk_only;
14405 else
14406   enable_openjdk_only="no"
14407 fi
14408 
14409 
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14411 $as_echo_n "checking for presence of closed sources... " >&6; }
14412   if test -d "$SRC_ROOT/jdk/src/closed"; then
14413     CLOSED_SOURCE_PRESENT=yes
14414   else
14415     CLOSED_SOURCE_PRESENT=no
14416   fi
14417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14418 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14419 
14420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14421 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14422   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14424 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14425 
14426   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14427     OPENJDK=true
14428     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14429       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14430 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14431     fi
14432   else
14433     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14434       OPENJDK=true
14435     else
14436       OPENJDK=false
14437     fi
14438   fi
14439 
14440   if test "x$OPENJDK" = "xtrue"; then
14441     SET_OPENJDK="OPENJDK=true"
14442   fi
14443 
14444 
14445 
14446 
14447 # These are needed to be able to create a configuration name (and thus the output directory)
14448 
14449   ###############################################################################
14450   #
14451   # Check which variant of the JDK that we want to build.
14452   # Currently we have:
14453   #    normal:   standard edition
14454   # but the custom make system may add other variants
14455   #
14456   # Effectively the JDK variant gives a name to a specific set of
14457   # modules to compile into the JDK. In the future, these modules
14458   # might even be Jigsaw modules.
14459   #
14460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14461 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14462 
14463 # Check whether --with-jdk-variant was given.
14464 if test "${with_jdk_variant+set}" = set; then :
14465   withval=$with_jdk_variant;
14466 fi
14467 
14468 
14469   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14470     JDK_VARIANT="normal"
14471   else
14472     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14473   fi
14474 
14475 
14476 
14477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14478 $as_echo "$JDK_VARIANT" >&6; }
14479 
14480 
14481 ###############################################################################
14482 #
14483 # Check which interpreter of the JVM we want to build.
14484 # Currently we have:
14485 #    template: Template interpreter (the default)
14486 #    cpp     : C++ interpreter
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14488 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14489 
14490 # Check whether --with-jvm-interpreter was given.
14491 if test "${with_jvm_interpreter+set}" = set; then :
14492   withval=$with_jvm_interpreter;
14493 fi
14494 
14495 
14496 if test "x$with_jvm_interpreter" = x; then
14497      with_jvm_interpreter="template"
14498 fi
14499 
14500 JVM_INTERPRETER="$with_jvm_interpreter"
14501 
14502 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14503    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14504 fi
14505 
14506 
14507 
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14509 $as_echo "$with_jvm_interpreter" >&6; }
14510 
14511 
14512 
14513   ###############################################################################
14514   #
14515   # Check which variants of the JVM that we want to build.
14516   # Currently we have:
14517   #    server: normal interpreter and a tiered C1/C2 compiler
14518   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14519   #    minimal1: reduced form of client with optional VM services and features stripped out
14520   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14521   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14522   #    zero: no machine code interpreter, no compiler
14523   #    zeroshark: zero interpreter and shark/llvm compiler backend
14524 #    core: interpreter only, no compiler (only works on some platforms)
14525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14526 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14527 
14528 # Check whether --with-jvm-variants was given.
14529 if test "${with_jvm_variants+set}" = set; then :
14530   withval=$with_jvm_variants;
14531 fi
14532 
14533 
14534   if test "x$with_jvm_variants" = x; then
14535     with_jvm_variants="server"
14536   fi
14537 
14538   JVM_VARIANTS=",$with_jvm_variants,"
14539   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,//'`
14540 
14541   if test "x$TEST_VARIANTS" != "x,"; then
14542      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14543   fi
14544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14545 $as_echo "$with_jvm_variants" >&6; }
14546 
14547   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14548   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14549   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14550   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14551   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14552   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14553   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14554 
14555   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14556     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14557       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14558     fi
14559   fi
14560   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14561     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14562       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14563     fi
14564   fi
14565   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14566     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14567       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14568     fi
14569   fi
14570 
14571   # Replace the commas with AND for use in the build directory name.
14572   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14573   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/'`
14574   if test "x$COUNT_VARIANTS" != "x,1"; then
14575     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14576   else
14577     BUILDING_MULTIPLE_JVM_VARIANTS=no
14578   fi
14579 
14580 
14581 
14582 
14583 
14584 
14585 
14586 
14587 
14588 
14589   INCLUDE_SA=true
14590   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14591     INCLUDE_SA=false
14592   fi
14593   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14594     INCLUDE_SA=false
14595   fi
14596   if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
14597     INCLUDE_SA=false
14598   fi
14599   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14600     INCLUDE_SA=false
14601   fi
14602 
14603 
14604   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14605     MACOSX_UNIVERSAL="false"
14606   fi
14607 
14608 
14609 
14610 
14611   ###############################################################################
14612   #
14613   # Set the debug level
14614   #    release: no debug information, all optimizations, no asserts.
14615   #    fastdebug: debug information (-g), all optimizations, all asserts
14616   #    slowdebug: debug information (-g), no optimizations, all asserts
14617   #
14618   DEBUG_LEVEL="release"
14619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14620 $as_echo_n "checking which debug level to use... " >&6; }
14621   # Check whether --enable-debug was given.
14622 if test "${enable_debug+set}" = set; then :
14623   enableval=$enable_debug;
14624         ENABLE_DEBUG="${enableval}"
14625         DEBUG_LEVEL="fastdebug"
14626 
14627 else
14628   ENABLE_DEBUG="no"
14629 fi
14630 
14631 
14632 
14633 # Check whether --with-debug-level was given.
14634 if test "${with_debug_level+set}" = set; then :
14635   withval=$with_debug_level;
14636         DEBUG_LEVEL="${withval}"
14637         if test "x$ENABLE_DEBUG" = xyes; then
14638           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14639         fi
14640 
14641 fi
14642 
14643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14644 $as_echo "$DEBUG_LEVEL" >&6; }
14645 
14646   if test "x$DEBUG_LEVEL" != xrelease && \
14647       test "x$DEBUG_LEVEL" != xfastdebug && \
14648       test "x$DEBUG_LEVEL" != xslowdebug; then
14649     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14650   fi
14651 
14652 
14653   ###############################################################################
14654   #
14655   # Setup legacy vars/targets and new vars to deal with different debug levels.
14656   #
14657 
14658   case $DEBUG_LEVEL in
14659     release )
14660       VARIANT="OPT"
14661       FASTDEBUG="false"
14662       DEBUG_CLASSFILES="false"
14663       BUILD_VARIANT_RELEASE=""
14664       HOTSPOT_DEBUG_LEVEL="product"
14665       HOTSPOT_EXPORT="product"
14666       ;;
14667     fastdebug )
14668       VARIANT="DBG"
14669       FASTDEBUG="true"
14670       DEBUG_CLASSFILES="true"
14671       BUILD_VARIANT_RELEASE="-fastdebug"
14672       HOTSPOT_DEBUG_LEVEL="fastdebug"
14673       HOTSPOT_EXPORT="fastdebug"
14674       ;;
14675     slowdebug )
14676       VARIANT="DBG"
14677       FASTDEBUG="false"
14678       DEBUG_CLASSFILES="true"
14679       BUILD_VARIANT_RELEASE="-debug"
14680       HOTSPOT_DEBUG_LEVEL="jvmg"
14681       HOTSPOT_EXPORT="debug"
14682       ;;
14683   esac
14684 
14685   #####
14686   # Generate the legacy makefile targets for hotspot.
14687   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14688   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14689   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14690   # But until then ...
14691   HOTSPOT_TARGET=""
14692 
14693   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14694     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14695   fi
14696 
14697   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14698     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14699   fi
14700 
14701   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14702     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14703   fi
14704 
14705   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14706     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14707   fi
14708 
14709   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14710     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14711   fi
14712 
14713   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14714     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14715   fi
14716 
14717   if test "x$JVM_VARIANT_CORE" = xtrue; then
14718     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14719   fi
14720 
14721   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14722 
14723   # On Macosx universal binaries are produced, but they only contain
14724   # 64 bit intel. This invalidates control of which jvms are built
14725   # from configure, but only server is valid anyway. Fix this
14726   # when hotspot makefiles are rewritten.
14727   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14728     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14729   fi
14730 
14731   #####
14732 
14733 
14734 
14735 
14736 
14737 
14738 
14739 
14740 # With basic setup done, call the custom early hook.
14741 
14742 
14743 # Check if we have devkits, extra paths or sysroot set.
14744 
14745 
14746 # Check whether --with-devkit was given.
14747 if test "${with_devkit+set}" = set; then :
14748   withval=$with_devkit;
14749 fi
14750 
14751 
14752   if test "x$with_devkit" = xyes; then
14753     as_fn_error $? "--with-devkit must have a value" "$LINENO" 5
14754   elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
14755 
14756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14757 
14758   # Input might be given as Windows format, start by converting to
14759   # unix format.
14760   path="$with_devkit"
14761   new_path=`$CYGPATH -u "$path"`
14762 
14763   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14764   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14765   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14766   # "foo.exe" is OK but "foo" is an error.
14767   #
14768   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14769   # It is also a way to make sure we got the proper file name for the real test later on.
14770   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14771   if test "x$test_shortpath" = x; then
14772     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14773 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14774     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14775   fi
14776 
14777   # Call helper function which possibly converts this using DOS-style short mode.
14778   # If so, the updated path is stored in $new_path.
14779 
14780   input_path="$new_path"
14781   # Check if we need to convert this using DOS-style short mode. If the path
14782   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14783   # take no chances and rewrite it.
14784   # Note: m4 eats our [], so we need to use [ and ] instead.
14785   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14786   if test "x$has_forbidden_chars" != x; then
14787     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14788     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14789     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14790     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14791       # Going to short mode and back again did indeed matter. Since short mode is
14792       # case insensitive, let's make it lowercase to improve readability.
14793       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14794       # Now convert it back to Unix-style (cygpath)
14795       input_path=`$CYGPATH -u "$shortmode_path"`
14796       new_path="$input_path"
14797     fi
14798   fi
14799 
14800   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14801   if test "x$test_cygdrive_prefix" = x; then
14802     # As a simple fix, exclude /usr/bin since it's not a real path.
14803     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14804       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14805       # a path prefixed by /cygdrive for fixpath to work.
14806       new_path="$CYGWIN_ROOT_PATH$input_path"
14807     fi
14808   fi
14809 
14810 
14811   if test "x$path" != "x$new_path"; then
14812     with_devkit="$new_path"
14813     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14814 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14815   fi
14816 
14817   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14818 
14819   path="$with_devkit"
14820   has_colon=`$ECHO $path | $GREP ^.:`
14821   new_path="$path"
14822   if test "x$has_colon" = x; then
14823     # Not in mixed or Windows style, start by that.
14824     new_path=`cmd //c echo $path`
14825   fi
14826 
14827 
14828   input_path="$new_path"
14829   # Check if we need to convert this using DOS-style short mode. If the path
14830   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14831   # take no chances and rewrite it.
14832   # Note: m4 eats our [], so we need to use [ and ] instead.
14833   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14834   if test "x$has_forbidden_chars" != x; then
14835     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14836     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14837   fi
14838 
14839 
14840   windows_path="$new_path"
14841   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14842     unix_path=`$CYGPATH -u "$windows_path"`
14843     new_path="$unix_path"
14844   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14845     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14846     new_path="$unix_path"
14847   fi
14848 
14849   if test "x$path" != "x$new_path"; then
14850     with_devkit="$new_path"
14851     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14852 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14853   fi
14854 
14855   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14856   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14857 
14858   else
14859     # We're on a posix platform. Hooray! :)
14860     path="$with_devkit"
14861     has_space=`$ECHO "$path" | $GREP " "`
14862     if test "x$has_space" != x; then
14863       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14864 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14865       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14866     fi
14867 
14868     # Use eval to expand a potential ~
14869     eval path="$path"
14870     if test ! -f "$path" && test ! -d "$path"; then
14871       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14872     fi
14873 
14874     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14875   fi
14876 
14877     DEVKIT_ROOT="$with_devkit"
14878     # Check for a meta data info file in the root of the devkit
14879     if test -f "$DEVKIT_ROOT/devkit.info"; then
14880       . $DEVKIT_ROOT/devkit.info
14881       # This potentially sets the following:
14882       # A descriptive name of the devkit
14883 
14884   if test "x$DEVKIT_NAME" = x; then
14885     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14886   fi
14887 
14888       # Corresponds to --with-extra-path
14889 
14890   if test "x$DEVKIT_EXTRA_PATH" = x; then
14891     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14892   fi
14893 
14894       # Corresponds to --with-toolchain-path
14895 
14896   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14897     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14898   fi
14899 
14900       # Corresponds to --with-sysroot
14901 
14902   if test "x$DEVKIT_SYSROOT" = x; then
14903     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14904   fi
14905 
14906 
14907       # Identifies the Visual Studio version in the devkit
14908 
14909   if test "x$DEVKIT_VS_VERSION" = x; then
14910     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14911   fi
14912 
14913       # The Visual Studio include environment variable
14914 
14915   if test "x$DEVKIT_VS_INCLUDE" = x; then
14916     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14917   fi
14918 
14919       # The Visual Studio lib environment variable
14920 
14921   if test "x$DEVKIT_VS_LIB" = x; then
14922     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14923   fi
14924 
14925       # Corresponds to --with-msvcr-dll
14926 
14927   if test "x$DEVKIT_MSVCR_DLL" = x; then
14928     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14929   fi
14930 
14931       # Corresponds to --with-msvcp-dll
14932 
14933   if test "x$DEVKIT_MSVCP_DLL" = x; then
14934     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14935   fi
14936 
14937       # Corresponds to --with-ucrt-dll-dir
14938 
14939   if test "x$DEVKIT_UCRT_DLL_DIR" = x; then
14940     eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}"
14941   fi
14942 
14943     fi
14944 
14945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14946 $as_echo_n "checking for devkit... " >&6; }
14947     if test "x$DEVKIT_NAME" != x; then
14948       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14949 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14950     else
14951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14952 $as_echo "$DEVKIT_ROOT" >&6; }
14953     fi
14954 
14955 
14956   if test "x$DEVKIT_EXTRA_PATH" != x; then
14957     if test "x$EXTRA_PATH" = x; then
14958       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14959     else
14960       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14961     fi
14962   fi
14963 
14964 
14965     # Fallback default of just /bin if DEVKIT_PATH is not defined
14966     if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14967       DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14968     fi
14969 
14970   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14971     if test "x$TOOLCHAIN_PATH" = x; then
14972       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14973     else
14974       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14975     fi
14976   fi
14977 
14978 
14979     # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14980     # places for backwards compatiblity.
14981     if test "x$DEVKIT_SYSROOT" != x; then
14982       SYSROOT="$DEVKIT_SYSROOT"
14983     elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
14984       SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
14985     elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
14986       SYSROOT="$DEVKIT_ROOT/$host/sys-root"
14987     fi
14988 
14989     if test "x$DEVKIT_ROOT" != x; then
14990       DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
14991       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14992         DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
14993       fi
14994 
14995     fi
14996   fi
14997 
14998   # You can force the sysroot if the sysroot encoded into the compiler tools
14999   # is not correct.
15000 
15001 # Check whether --with-sys-root was given.
15002 if test "${with_sys_root+set}" = set; then :
15003   withval=$with_sys_root; SYSROOT=$with_sys_root
15004 
15005 fi
15006 
15007 
15008 
15009 # Check whether --with-sysroot was given.
15010 if test "${with_sysroot+set}" = set; then :
15011   withval=$with_sysroot; SYSROOT=$with_sysroot
15012 
15013 fi
15014 
15015 
15016 
15017 # Check whether --with-tools-dir was given.
15018 if test "${with_tools_dir+set}" = set; then :
15019   withval=$with_tools_dir;
15020   if test "x$with_tools_dir" != x; then
15021     if test "x$TOOLCHAIN_PATH" = x; then
15022       TOOLCHAIN_PATH="$with_tools_dir"
15023     else
15024       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15025     fi
15026   fi
15027 
15028 
15029 fi
15030 
15031 
15032 
15033 # Check whether --with-toolchain-path was given.
15034 if test "${with_toolchain_path+set}" = set; then :
15035   withval=$with_toolchain_path;
15036   if test "x$with_toolchain_path" != x; then
15037     if test "x$TOOLCHAIN_PATH" = x; then
15038       TOOLCHAIN_PATH="$with_toolchain_path"
15039     else
15040       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15041     fi
15042   fi
15043 
15044 
15045 fi
15046 
15047 
15048 
15049 # Check whether --with-extra-path was given.
15050 if test "${with_extra_path+set}" = set; then :
15051   withval=$with_extra_path;
15052   if test "x$with_extra_path" != x; then
15053     if test "x$EXTRA_PATH" = x; then
15054       EXTRA_PATH="$with_extra_path"
15055     else
15056       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15057     fi
15058   fi
15059 
15060 
15061 fi
15062 
15063 
15064   # Prepend the extra path to the global path
15065 
15066   if test "x$EXTRA_PATH" != x; then
15067     if test "x$PATH" = x; then
15068       PATH="$EXTRA_PATH"
15069     else
15070       PATH="$EXTRA_PATH:$PATH"
15071     fi
15072   fi
15073 
15074 
15075   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15076     # Add extra search paths on solaris for utilities like ar and as etc...
15077     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15078   fi
15079 
15080   # Xcode version will be validated later
15081 
15082 # Check whether --with-xcode-path was given.
15083 if test "${with_xcode_path+set}" = set; then :
15084   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15085 
15086 fi
15087 
15088 
15089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15090 $as_echo_n "checking for sysroot... " >&6; }
15091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15092 $as_echo "$SYSROOT" >&6; }
15093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15094 $as_echo_n "checking for toolchain path... " >&6; }
15095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15096 $as_echo "$TOOLCHAIN_PATH" >&6; }
15097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15098 $as_echo_n "checking for extra path... " >&6; }
15099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15100 $as_echo "$EXTRA_PATH" >&6; }
15101 
15102 
15103 # To properly create a configuration name, we need to have the OpenJDK target
15104 # and options (variants and debug level) parsed.
15105 
15106 
15107 
15108 # Check whether --with-conf-name was given.
15109 if test "${with_conf_name+set}" = set; then :
15110   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15111 fi
15112 
15113 
15114   # Test from where we are running configure, in or outside of src root.
15115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15116 $as_echo_n "checking where to store configuration... " >&6; }
15117   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15118       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15119       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15120     # We are running configure from the src root.
15121     # Create a default ./build/target-variant-debuglevel output root.
15122     if test "x${CONF_NAME}" = x; then
15123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15124 $as_echo "in default location" >&6; }
15125       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15126     else
15127       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15128 $as_echo "in build directory with custom name" >&6; }
15129     fi
15130     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15131     $MKDIR -p "$OUTPUT_ROOT"
15132     if test ! -d "$OUTPUT_ROOT"; then
15133       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15134     fi
15135   else
15136     # We are running configure from outside of the src dir.
15137     # Then use the current directory as output dir!
15138     # If configuration is situated in normal build directory, just use the build
15139     # directory name as configuration name, otherwise use the complete path.
15140     if test "x${CONF_NAME}" = x; then
15141       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15142     fi
15143     OUTPUT_ROOT="$CURDIR"
15144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15145 $as_echo "in current directory" >&6; }
15146 
15147     # WARNING: This might be a bad thing to do. You need to be sure you want to
15148     # have a configuration in this directory. Do some sanity checks!
15149 
15150     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15151       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15152       # other files
15153       files_present=`$LS $OUTPUT_ROOT`
15154       # Configure has already touched config.log and confdefs.h in the current dir when this check
15155       # is performed.
15156       filtered_files=`$ECHO "$files_present" \
15157           | $SED -e 's/config.log//g' \
15158               -e 's/confdefs.h//g' \
15159               -e 's/fixpath.exe//g' \
15160               -e 's/ //g' \
15161           | $TR -d '\n'`
15162       if test "x$filtered_files" != x; then
15163         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15164 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15165         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15166 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15167         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15168 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15169         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15170 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15171         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15172 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15173         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15174 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15175         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15176 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15177         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15178       fi
15179     fi
15180   fi
15181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15182 $as_echo_n "checking what configuration name to use... " >&6; }
15183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15184 $as_echo "$CONF_NAME" >&6; }
15185 
15186 
15187   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15188 
15189   # Input might be given as Windows format, start by converting to
15190   # unix format.
15191   path="$OUTPUT_ROOT"
15192   new_path=`$CYGPATH -u "$path"`
15193 
15194   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15195   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15196   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15197   # "foo.exe" is OK but "foo" is an error.
15198   #
15199   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15200   # It is also a way to make sure we got the proper file name for the real test later on.
15201   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15202   if test "x$test_shortpath" = x; then
15203     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15204 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15205     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15206   fi
15207 
15208   # Call helper function which possibly converts this using DOS-style short mode.
15209   # If so, the updated path is stored in $new_path.
15210 
15211   input_path="$new_path"
15212   # Check if we need to convert this using DOS-style short mode. If the path
15213   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15214   # take no chances and rewrite it.
15215   # Note: m4 eats our [], so we need to use [ and ] instead.
15216   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15217   if test "x$has_forbidden_chars" != x; then
15218     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15219     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15220     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15221     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15222       # Going to short mode and back again did indeed matter. Since short mode is
15223       # case insensitive, let's make it lowercase to improve readability.
15224       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15225       # Now convert it back to Unix-style (cygpath)
15226       input_path=`$CYGPATH -u "$shortmode_path"`
15227       new_path="$input_path"
15228     fi
15229   fi
15230 
15231   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15232   if test "x$test_cygdrive_prefix" = x; then
15233     # As a simple fix, exclude /usr/bin since it's not a real path.
15234     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15235       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15236       # a path prefixed by /cygdrive for fixpath to work.
15237       new_path="$CYGWIN_ROOT_PATH$input_path"
15238     fi
15239   fi
15240 
15241 
15242   if test "x$path" != "x$new_path"; then
15243     OUTPUT_ROOT="$new_path"
15244     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15245 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15246   fi
15247 
15248   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15249 
15250   path="$OUTPUT_ROOT"
15251   has_colon=`$ECHO $path | $GREP ^.:`
15252   new_path="$path"
15253   if test "x$has_colon" = x; then
15254     # Not in mixed or Windows style, start by that.
15255     new_path=`cmd //c echo $path`
15256   fi
15257 
15258 
15259   input_path="$new_path"
15260   # Check if we need to convert this using DOS-style short mode. If the path
15261   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15262   # take no chances and rewrite it.
15263   # Note: m4 eats our [], so we need to use [ and ] instead.
15264   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15265   if test "x$has_forbidden_chars" != x; then
15266     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15267     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15268   fi
15269 
15270 
15271   windows_path="$new_path"
15272   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15273     unix_path=`$CYGPATH -u "$windows_path"`
15274     new_path="$unix_path"
15275   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15276     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15277     new_path="$unix_path"
15278   fi
15279 
15280   if test "x$path" != "x$new_path"; then
15281     OUTPUT_ROOT="$new_path"
15282     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15283 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15284   fi
15285 
15286   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15287   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15288 
15289   else
15290     # We're on a posix platform. Hooray! :)
15291     path="$OUTPUT_ROOT"
15292     has_space=`$ECHO "$path" | $GREP " "`
15293     if test "x$has_space" != x; then
15294       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15295 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15296       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15297     fi
15298 
15299     # Use eval to expand a potential ~
15300     eval path="$path"
15301     if test ! -f "$path" && test ! -d "$path"; then
15302       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15303     fi
15304 
15305     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15306   fi
15307 
15308 
15309   SPEC=$OUTPUT_ROOT/spec.gmk
15310 
15311   CONF_NAME=$CONF_NAME
15312 
15313   OUTPUT_ROOT=$OUTPUT_ROOT
15314 
15315 
15316   # Most of the probed defines are put into config.h
15317   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15318 
15319   # The spec.gmk file contains all variables for the make system.
15320   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15321 
15322   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15323   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15324 
15325   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15326   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15327 
15328   # The compare.sh is used to compare the build output to other builds.
15329   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15330 
15331   # Spec.sh is currently used by compare-objects.sh
15332   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15333 
15334   # The generated Makefile knows where the spec.gmk is and where the source is.
15335   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15336   # which will look for generated configurations
15337   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15338 
15339 
15340 
15341 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15342 
15343   for ac_prog in apt-get yum port pkgutil pkgadd
15344 do
15345   # Extract the first word of "$ac_prog", so it can be a program name with args.
15346 set dummy $ac_prog; ac_word=$2
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15348 $as_echo_n "checking for $ac_word... " >&6; }
15349 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15350   $as_echo_n "(cached) " >&6
15351 else
15352   if test -n "$PKGHANDLER"; then
15353   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15354 else
15355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15356 for as_dir in $PATH
15357 do
15358   IFS=$as_save_IFS
15359   test -z "$as_dir" && as_dir=.
15360     for ac_exec_ext in '' $ac_executable_extensions; do
15361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15362     ac_cv_prog_PKGHANDLER="$ac_prog"
15363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15364     break 2
15365   fi
15366 done
15367   done
15368 IFS=$as_save_IFS
15369 
15370 fi
15371 fi
15372 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15373 if test -n "$PKGHANDLER"; then
15374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15375 $as_echo "$PKGHANDLER" >&6; }
15376 else
15377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378 $as_echo "no" >&6; }
15379 fi
15380 
15381 
15382   test -n "$PKGHANDLER" && break
15383 done
15384 
15385 
15386 
15387 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15388 
15389 
15390   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15391   if test "x$MAKE" != x; then
15392     # User has supplied a make, test it.
15393     if test ! -f "$MAKE"; then
15394       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15395     fi
15396 
15397   MAKE_CANDIDATE=""$MAKE""
15398   DESCRIPTION="user supplied MAKE=$MAKE"
15399   if test "x$MAKE_CANDIDATE" != x; then
15400     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15401 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15402     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15403     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15404     if test "x$IS_GNU_MAKE" = x; then
15405       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15406 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15407     else
15408       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15409       if test "x$IS_MODERN_MAKE" = x; then
15410         { $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
15411 $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;}
15412       else
15413         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15414           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15415             MAKE_EXPECTED_ENV='cygwin'
15416           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15417             MAKE_EXPECTED_ENV='msys'
15418           else
15419             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15420           fi
15421           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15422           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15423         else
15424           # Not relevant for non-Windows
15425           IS_MAKE_CORRECT_ENV=true
15426         fi
15427         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15428           { $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
15429 $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;}
15430         else
15431           FOUND_MAKE=$MAKE_CANDIDATE
15432 
15433   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15434 
15435   # First separate the path from the arguments. This will split at the first
15436   # space.
15437   complete="$FOUND_MAKE"
15438   path="${complete%% *}"
15439   tmp="$complete EOL"
15440   arguments="${tmp#* }"
15441 
15442   # Input might be given as Windows format, start by converting to
15443   # unix format.
15444   new_path=`$CYGPATH -u "$path"`
15445 
15446   # Now try to locate executable using which
15447   new_path=`$WHICH "$new_path" 2> /dev/null`
15448   # bat and cmd files are not always considered executable in cygwin causing which
15449   # to not find them
15450   if test "x$new_path" = x \
15451       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15452       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15453     new_path=`$CYGPATH -u "$path"`
15454   fi
15455   if test "x$new_path" = x; then
15456     # Oops. Which didn't find the executable.
15457     # The splitting of arguments from the executable at a space might have been incorrect,
15458     # since paths with space are more likely in Windows. Give it another try with the whole
15459     # argument.
15460     path="$complete"
15461     arguments="EOL"
15462     new_path=`$CYGPATH -u "$path"`
15463     new_path=`$WHICH "$new_path" 2> /dev/null`
15464     # bat and cmd files are not always considered executable in cygwin causing which
15465     # to not find them
15466     if test "x$new_path" = x \
15467         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15468         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15469       new_path=`$CYGPATH -u "$path"`
15470     fi
15471     if test "x$new_path" = x; then
15472       # It's still not found. Now this is an unrecoverable error.
15473       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15474 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15475       has_space=`$ECHO "$complete" | $GREP " "`
15476       if test "x$has_space" != x; then
15477         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15478 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15479       fi
15480       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15481     fi
15482   fi
15483 
15484   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15485   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15486   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15487   # "foo.exe" is OK but "foo" is an error.
15488   #
15489   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15490   # It is also a way to make sure we got the proper file name for the real test later on.
15491   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15492   if test "x$test_shortpath" = x; then
15493     # Short path failed, file does not exist as specified.
15494     # Try adding .exe or .cmd
15495     if test -f "${new_path}.exe"; then
15496       input_to_shortpath="${new_path}.exe"
15497     elif test -f "${new_path}.cmd"; then
15498       input_to_shortpath="${new_path}.cmd"
15499     else
15500       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15501 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15502       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15503 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15504       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15505     fi
15506   else
15507     input_to_shortpath="$new_path"
15508   fi
15509 
15510   # Call helper function which possibly converts this using DOS-style short mode.
15511   # If so, the updated path is stored in $new_path.
15512   new_path="$input_to_shortpath"
15513 
15514   input_path="$input_to_shortpath"
15515   # Check if we need to convert this using DOS-style short mode. If the path
15516   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15517   # take no chances and rewrite it.
15518   # Note: m4 eats our [], so we need to use [ and ] instead.
15519   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15520   if test "x$has_forbidden_chars" != x; then
15521     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15522     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15523     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15524     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15525       # Going to short mode and back again did indeed matter. Since short mode is
15526       # case insensitive, let's make it lowercase to improve readability.
15527       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15528       # Now convert it back to Unix-style (cygpath)
15529       input_path=`$CYGPATH -u "$shortmode_path"`
15530       new_path="$input_path"
15531     fi
15532   fi
15533 
15534   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15535   if test "x$test_cygdrive_prefix" = x; then
15536     # As a simple fix, exclude /usr/bin since it's not a real path.
15537     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15538       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15539       # a path prefixed by /cygdrive for fixpath to work.
15540       new_path="$CYGWIN_ROOT_PATH$input_path"
15541     fi
15542   fi
15543 
15544   # remove trailing .exe if any
15545   new_path="${new_path/%.exe/}"
15546 
15547   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15548 
15549   # First separate the path from the arguments. This will split at the first
15550   # space.
15551   complete="$FOUND_MAKE"
15552   path="${complete%% *}"
15553   tmp="$complete EOL"
15554   arguments="${tmp#* }"
15555 
15556   # Input might be given as Windows format, start by converting to
15557   # unix format.
15558   new_path="$path"
15559 
15560   windows_path="$new_path"
15561   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15562     unix_path=`$CYGPATH -u "$windows_path"`
15563     new_path="$unix_path"
15564   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15565     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15566     new_path="$unix_path"
15567   fi
15568 
15569 
15570   # Now try to locate executable using which
15571   new_path=`$WHICH "$new_path" 2> /dev/null`
15572 
15573   if test "x$new_path" = x; then
15574     # Oops. Which didn't find the executable.
15575     # The splitting of arguments from the executable at a space might have been incorrect,
15576     # since paths with space are more likely in Windows. Give it another try with the whole
15577     # argument.
15578     path="$complete"
15579     arguments="EOL"
15580     new_path="$path"
15581 
15582   windows_path="$new_path"
15583   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15584     unix_path=`$CYGPATH -u "$windows_path"`
15585     new_path="$unix_path"
15586   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15587     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15588     new_path="$unix_path"
15589   fi
15590 
15591 
15592     new_path=`$WHICH "$new_path" 2> /dev/null`
15593     # bat and cmd files are not always considered executable in MSYS causing which
15594     # to not find them
15595     if test "x$new_path" = x \
15596         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15597         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15598       new_path="$path"
15599 
15600   windows_path="$new_path"
15601   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15602     unix_path=`$CYGPATH -u "$windows_path"`
15603     new_path="$unix_path"
15604   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15605     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15606     new_path="$unix_path"
15607   fi
15608 
15609     fi
15610 
15611     if test "x$new_path" = x; then
15612       # It's still not found. Now this is an unrecoverable error.
15613       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15614 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15615       has_space=`$ECHO "$complete" | $GREP " "`
15616       if test "x$has_space" != x; then
15617         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15618 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15619       fi
15620       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15621     fi
15622   fi
15623 
15624   # Now new_path has a complete unix path to the binary
15625   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15626     # Keep paths in /bin as-is, but remove trailing .exe if any
15627     new_path="${new_path/%.exe/}"
15628     # Do not save /bin paths to all_fixpath_prefixes!
15629   else
15630     # Not in mixed or Windows style, start by that.
15631     new_path=`cmd //c echo $new_path`
15632 
15633   input_path="$new_path"
15634   # Check if we need to convert this using DOS-style short mode. If the path
15635   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15636   # take no chances and rewrite it.
15637   # Note: m4 eats our [], so we need to use [ and ] instead.
15638   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15639   if test "x$has_forbidden_chars" != x; then
15640     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15641     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15642   fi
15643 
15644     # Output is in $new_path
15645 
15646   windows_path="$new_path"
15647   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15648     unix_path=`$CYGPATH -u "$windows_path"`
15649     new_path="$unix_path"
15650   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15651     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15652     new_path="$unix_path"
15653   fi
15654 
15655     # remove trailing .exe if any
15656     new_path="${new_path/%.exe/}"
15657 
15658     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15659     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15660   fi
15661 
15662   else
15663     # We're on a posix platform. Hooray! :)
15664     # First separate the path from the arguments. This will split at the first
15665     # space.
15666     complete="$FOUND_MAKE"
15667     path="${complete%% *}"
15668     tmp="$complete EOL"
15669     arguments="${tmp#* }"
15670 
15671     # Cannot rely on the command "which" here since it doesn't always work.
15672     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15673     if test -z "$is_absolute_path"; then
15674       # Path to executable is not absolute. Find it.
15675       IFS_save="$IFS"
15676       IFS=:
15677       for p in $PATH; do
15678         if test -f "$p/$path" && test -x "$p/$path"; then
15679           new_path="$p/$path"
15680           break
15681         fi
15682       done
15683       IFS="$IFS_save"
15684     else
15685       # This is an absolute path, we can use it without further modifications.
15686       new_path="$path"
15687     fi
15688 
15689     if test "x$new_path" = x; then
15690       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15691 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15692       has_space=`$ECHO "$complete" | $GREP " "`
15693       if test "x$has_space" != x; then
15694         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15695 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15696       fi
15697       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15698     fi
15699   fi
15700 
15701   # Now join together the path and the arguments once again
15702   if test "x$arguments" != xEOL; then
15703     new_complete="$new_path ${arguments% *}"
15704   else
15705     new_complete="$new_path"
15706   fi
15707 
15708   if test "x$complete" != "x$new_complete"; then
15709     FOUND_MAKE="$new_complete"
15710     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15711 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15712   fi
15713 
15714         fi
15715       fi
15716     fi
15717   fi
15718 
15719     if test "x$FOUND_MAKE" = x; then
15720       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15721     fi
15722   else
15723     # Try our hardest to locate a correct version of GNU make
15724     for ac_prog in gmake
15725 do
15726   # Extract the first word of "$ac_prog", so it can be a program name with args.
15727 set dummy $ac_prog; ac_word=$2
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15729 $as_echo_n "checking for $ac_word... " >&6; }
15730 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15731   $as_echo_n "(cached) " >&6
15732 else
15733   case $CHECK_GMAKE in
15734   [\\/]* | ?:[\\/]*)
15735   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15736   ;;
15737   *)
15738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15739 for as_dir in $PATH
15740 do
15741   IFS=$as_save_IFS
15742   test -z "$as_dir" && as_dir=.
15743     for ac_exec_ext in '' $ac_executable_extensions; do
15744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15745     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15747     break 2
15748   fi
15749 done
15750   done
15751 IFS=$as_save_IFS
15752 
15753   ;;
15754 esac
15755 fi
15756 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15757 if test -n "$CHECK_GMAKE"; then
15758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15759 $as_echo "$CHECK_GMAKE" >&6; }
15760 else
15761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15763 fi
15764 
15765 
15766   test -n "$CHECK_GMAKE" && break
15767 done
15768 
15769 
15770   MAKE_CANDIDATE=""$CHECK_GMAKE""
15771   DESCRIPTION="gmake in PATH"
15772   if test "x$MAKE_CANDIDATE" != x; then
15773     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15774 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15775     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15776     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15777     if test "x$IS_GNU_MAKE" = x; then
15778       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15779 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15780     else
15781       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15782       if test "x$IS_MODERN_MAKE" = x; then
15783         { $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
15784 $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;}
15785       else
15786         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15787           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15788             MAKE_EXPECTED_ENV='cygwin'
15789           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15790             MAKE_EXPECTED_ENV='msys'
15791           else
15792             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15793           fi
15794           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15795           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15796         else
15797           # Not relevant for non-Windows
15798           IS_MAKE_CORRECT_ENV=true
15799         fi
15800         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15801           { $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
15802 $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;}
15803         else
15804           FOUND_MAKE=$MAKE_CANDIDATE
15805 
15806   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15807 
15808   # First separate the path from the arguments. This will split at the first
15809   # space.
15810   complete="$FOUND_MAKE"
15811   path="${complete%% *}"
15812   tmp="$complete EOL"
15813   arguments="${tmp#* }"
15814 
15815   # Input might be given as Windows format, start by converting to
15816   # unix format.
15817   new_path=`$CYGPATH -u "$path"`
15818 
15819   # Now try to locate executable using which
15820   new_path=`$WHICH "$new_path" 2> /dev/null`
15821   # bat and cmd files are not always considered executable in cygwin causing which
15822   # to not find them
15823   if test "x$new_path" = x \
15824       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15825       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15826     new_path=`$CYGPATH -u "$path"`
15827   fi
15828   if test "x$new_path" = x; then
15829     # Oops. Which didn't find the executable.
15830     # The splitting of arguments from the executable at a space might have been incorrect,
15831     # since paths with space are more likely in Windows. Give it another try with the whole
15832     # argument.
15833     path="$complete"
15834     arguments="EOL"
15835     new_path=`$CYGPATH -u "$path"`
15836     new_path=`$WHICH "$new_path" 2> /dev/null`
15837     # bat and cmd files are not always considered executable in cygwin causing which
15838     # to not find them
15839     if test "x$new_path" = x \
15840         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15841         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15842       new_path=`$CYGPATH -u "$path"`
15843     fi
15844     if test "x$new_path" = x; then
15845       # It's still not found. Now this is an unrecoverable error.
15846       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15847 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15848       has_space=`$ECHO "$complete" | $GREP " "`
15849       if test "x$has_space" != x; then
15850         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15851 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15852       fi
15853       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15854     fi
15855   fi
15856 
15857   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15858   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15859   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15860   # "foo.exe" is OK but "foo" is an error.
15861   #
15862   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15863   # It is also a way to make sure we got the proper file name for the real test later on.
15864   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15865   if test "x$test_shortpath" = x; then
15866     # Short path failed, file does not exist as specified.
15867     # Try adding .exe or .cmd
15868     if test -f "${new_path}.exe"; then
15869       input_to_shortpath="${new_path}.exe"
15870     elif test -f "${new_path}.cmd"; then
15871       input_to_shortpath="${new_path}.cmd"
15872     else
15873       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15874 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15875       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15876 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15877       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15878     fi
15879   else
15880     input_to_shortpath="$new_path"
15881   fi
15882 
15883   # Call helper function which possibly converts this using DOS-style short mode.
15884   # If so, the updated path is stored in $new_path.
15885   new_path="$input_to_shortpath"
15886 
15887   input_path="$input_to_shortpath"
15888   # Check if we need to convert this using DOS-style short mode. If the path
15889   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15890   # take no chances and rewrite it.
15891   # Note: m4 eats our [], so we need to use [ and ] instead.
15892   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15893   if test "x$has_forbidden_chars" != x; then
15894     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15895     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15896     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15897     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15898       # Going to short mode and back again did indeed matter. Since short mode is
15899       # case insensitive, let's make it lowercase to improve readability.
15900       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15901       # Now convert it back to Unix-style (cygpath)
15902       input_path=`$CYGPATH -u "$shortmode_path"`
15903       new_path="$input_path"
15904     fi
15905   fi
15906 
15907   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15908   if test "x$test_cygdrive_prefix" = x; then
15909     # As a simple fix, exclude /usr/bin since it's not a real path.
15910     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15911       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15912       # a path prefixed by /cygdrive for fixpath to work.
15913       new_path="$CYGWIN_ROOT_PATH$input_path"
15914     fi
15915   fi
15916 
15917   # remove trailing .exe if any
15918   new_path="${new_path/%.exe/}"
15919 
15920   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15921 
15922   # First separate the path from the arguments. This will split at the first
15923   # space.
15924   complete="$FOUND_MAKE"
15925   path="${complete%% *}"
15926   tmp="$complete EOL"
15927   arguments="${tmp#* }"
15928 
15929   # Input might be given as Windows format, start by converting to
15930   # unix format.
15931   new_path="$path"
15932 
15933   windows_path="$new_path"
15934   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15935     unix_path=`$CYGPATH -u "$windows_path"`
15936     new_path="$unix_path"
15937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15938     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15939     new_path="$unix_path"
15940   fi
15941 
15942 
15943   # Now try to locate executable using which
15944   new_path=`$WHICH "$new_path" 2> /dev/null`
15945 
15946   if test "x$new_path" = x; then
15947     # Oops. Which didn't find the executable.
15948     # The splitting of arguments from the executable at a space might have been incorrect,
15949     # since paths with space are more likely in Windows. Give it another try with the whole
15950     # argument.
15951     path="$complete"
15952     arguments="EOL"
15953     new_path="$path"
15954 
15955   windows_path="$new_path"
15956   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15957     unix_path=`$CYGPATH -u "$windows_path"`
15958     new_path="$unix_path"
15959   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15960     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15961     new_path="$unix_path"
15962   fi
15963 
15964 
15965     new_path=`$WHICH "$new_path" 2> /dev/null`
15966     # bat and cmd files are not always considered executable in MSYS causing which
15967     # to not find them
15968     if test "x$new_path" = x \
15969         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15970         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15971       new_path="$path"
15972 
15973   windows_path="$new_path"
15974   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15975     unix_path=`$CYGPATH -u "$windows_path"`
15976     new_path="$unix_path"
15977   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15978     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15979     new_path="$unix_path"
15980   fi
15981 
15982     fi
15983 
15984     if test "x$new_path" = x; then
15985       # It's still not found. Now this is an unrecoverable error.
15986       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15987 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15988       has_space=`$ECHO "$complete" | $GREP " "`
15989       if test "x$has_space" != x; then
15990         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15991 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15992       fi
15993       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15994     fi
15995   fi
15996 
15997   # Now new_path has a complete unix path to the binary
15998   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15999     # Keep paths in /bin as-is, but remove trailing .exe if any
16000     new_path="${new_path/%.exe/}"
16001     # Do not save /bin paths to all_fixpath_prefixes!
16002   else
16003     # Not in mixed or Windows style, start by that.
16004     new_path=`cmd //c echo $new_path`
16005 
16006   input_path="$new_path"
16007   # Check if we need to convert this using DOS-style short mode. If the path
16008   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16009   # take no chances and rewrite it.
16010   # Note: m4 eats our [], so we need to use [ and ] instead.
16011   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16012   if test "x$has_forbidden_chars" != x; then
16013     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16014     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16015   fi
16016 
16017     # Output is in $new_path
16018 
16019   windows_path="$new_path"
16020   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16021     unix_path=`$CYGPATH -u "$windows_path"`
16022     new_path="$unix_path"
16023   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16024     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16025     new_path="$unix_path"
16026   fi
16027 
16028     # remove trailing .exe if any
16029     new_path="${new_path/%.exe/}"
16030 
16031     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16032     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16033   fi
16034 
16035   else
16036     # We're on a posix platform. Hooray! :)
16037     # First separate the path from the arguments. This will split at the first
16038     # space.
16039     complete="$FOUND_MAKE"
16040     path="${complete%% *}"
16041     tmp="$complete EOL"
16042     arguments="${tmp#* }"
16043 
16044     # Cannot rely on the command "which" here since it doesn't always work.
16045     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16046     if test -z "$is_absolute_path"; then
16047       # Path to executable is not absolute. Find it.
16048       IFS_save="$IFS"
16049       IFS=:
16050       for p in $PATH; do
16051         if test -f "$p/$path" && test -x "$p/$path"; then
16052           new_path="$p/$path"
16053           break
16054         fi
16055       done
16056       IFS="$IFS_save"
16057     else
16058       # This is an absolute path, we can use it without further modifications.
16059       new_path="$path"
16060     fi
16061 
16062     if test "x$new_path" = x; then
16063       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16064 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16065       has_space=`$ECHO "$complete" | $GREP " "`
16066       if test "x$has_space" != x; then
16067         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16068 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16069       fi
16070       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16071     fi
16072   fi
16073 
16074   # Now join together the path and the arguments once again
16075   if test "x$arguments" != xEOL; then
16076     new_complete="$new_path ${arguments% *}"
16077   else
16078     new_complete="$new_path"
16079   fi
16080 
16081   if test "x$complete" != "x$new_complete"; then
16082     FOUND_MAKE="$new_complete"
16083     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16084 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16085   fi
16086 
16087         fi
16088       fi
16089     fi
16090   fi
16091 
16092 
16093     if test "x$FOUND_MAKE" = x; then
16094       for ac_prog in make
16095 do
16096   # Extract the first word of "$ac_prog", so it can be a program name with args.
16097 set dummy $ac_prog; ac_word=$2
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16099 $as_echo_n "checking for $ac_word... " >&6; }
16100 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16101   $as_echo_n "(cached) " >&6
16102 else
16103   case $CHECK_MAKE in
16104   [\\/]* | ?:[\\/]*)
16105   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16106   ;;
16107   *)
16108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109 for as_dir in $PATH
16110 do
16111   IFS=$as_save_IFS
16112   test -z "$as_dir" && as_dir=.
16113     for ac_exec_ext in '' $ac_executable_extensions; do
16114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16115     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16117     break 2
16118   fi
16119 done
16120   done
16121 IFS=$as_save_IFS
16122 
16123   ;;
16124 esac
16125 fi
16126 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16127 if test -n "$CHECK_MAKE"; then
16128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16129 $as_echo "$CHECK_MAKE" >&6; }
16130 else
16131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16132 $as_echo "no" >&6; }
16133 fi
16134 
16135 
16136   test -n "$CHECK_MAKE" && break
16137 done
16138 
16139 
16140   MAKE_CANDIDATE=""$CHECK_MAKE""
16141   DESCRIPTION="make in PATH"
16142   if test "x$MAKE_CANDIDATE" != x; then
16143     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16144 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16145     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16146     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16147     if test "x$IS_GNU_MAKE" = x; then
16148       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16149 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16150     else
16151       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16152       if test "x$IS_MODERN_MAKE" = x; then
16153         { $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
16154 $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;}
16155       else
16156         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16157           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16158             MAKE_EXPECTED_ENV='cygwin'
16159           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16160             MAKE_EXPECTED_ENV='msys'
16161           else
16162             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16163           fi
16164           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16165           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16166         else
16167           # Not relevant for non-Windows
16168           IS_MAKE_CORRECT_ENV=true
16169         fi
16170         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16171           { $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
16172 $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;}
16173         else
16174           FOUND_MAKE=$MAKE_CANDIDATE
16175 
16176   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16177 
16178   # First separate the path from the arguments. This will split at the first
16179   # space.
16180   complete="$FOUND_MAKE"
16181   path="${complete%% *}"
16182   tmp="$complete EOL"
16183   arguments="${tmp#* }"
16184 
16185   # Input might be given as Windows format, start by converting to
16186   # unix format.
16187   new_path=`$CYGPATH -u "$path"`
16188 
16189   # Now try to locate executable using which
16190   new_path=`$WHICH "$new_path" 2> /dev/null`
16191   # bat and cmd files are not always considered executable in cygwin causing which
16192   # to not find them
16193   if test "x$new_path" = x \
16194       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16195       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16196     new_path=`$CYGPATH -u "$path"`
16197   fi
16198   if test "x$new_path" = x; then
16199     # Oops. Which didn't find the executable.
16200     # The splitting of arguments from the executable at a space might have been incorrect,
16201     # since paths with space are more likely in Windows. Give it another try with the whole
16202     # argument.
16203     path="$complete"
16204     arguments="EOL"
16205     new_path=`$CYGPATH -u "$path"`
16206     new_path=`$WHICH "$new_path" 2> /dev/null`
16207     # bat and cmd files are not always considered executable in cygwin causing which
16208     # to not find them
16209     if test "x$new_path" = x \
16210         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16211         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16212       new_path=`$CYGPATH -u "$path"`
16213     fi
16214     if test "x$new_path" = x; then
16215       # It's still not found. Now this is an unrecoverable error.
16216       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16217 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16218       has_space=`$ECHO "$complete" | $GREP " "`
16219       if test "x$has_space" != x; then
16220         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16221 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16222       fi
16223       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16224     fi
16225   fi
16226 
16227   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16228   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16229   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16230   # "foo.exe" is OK but "foo" is an error.
16231   #
16232   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16233   # It is also a way to make sure we got the proper file name for the real test later on.
16234   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16235   if test "x$test_shortpath" = x; then
16236     # Short path failed, file does not exist as specified.
16237     # Try adding .exe or .cmd
16238     if test -f "${new_path}.exe"; then
16239       input_to_shortpath="${new_path}.exe"
16240     elif test -f "${new_path}.cmd"; then
16241       input_to_shortpath="${new_path}.cmd"
16242     else
16243       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16244 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16245       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16246 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16247       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16248     fi
16249   else
16250     input_to_shortpath="$new_path"
16251   fi
16252 
16253   # Call helper function which possibly converts this using DOS-style short mode.
16254   # If so, the updated path is stored in $new_path.
16255   new_path="$input_to_shortpath"
16256 
16257   input_path="$input_to_shortpath"
16258   # Check if we need to convert this using DOS-style short mode. If the path
16259   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16260   # take no chances and rewrite it.
16261   # Note: m4 eats our [], so we need to use [ and ] instead.
16262   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16263   if test "x$has_forbidden_chars" != x; then
16264     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16265     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16266     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16267     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16268       # Going to short mode and back again did indeed matter. Since short mode is
16269       # case insensitive, let's make it lowercase to improve readability.
16270       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16271       # Now convert it back to Unix-style (cygpath)
16272       input_path=`$CYGPATH -u "$shortmode_path"`
16273       new_path="$input_path"
16274     fi
16275   fi
16276 
16277   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16278   if test "x$test_cygdrive_prefix" = x; then
16279     # As a simple fix, exclude /usr/bin since it's not a real path.
16280     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16281       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16282       # a path prefixed by /cygdrive for fixpath to work.
16283       new_path="$CYGWIN_ROOT_PATH$input_path"
16284     fi
16285   fi
16286 
16287   # remove trailing .exe if any
16288   new_path="${new_path/%.exe/}"
16289 
16290   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16291 
16292   # First separate the path from the arguments. This will split at the first
16293   # space.
16294   complete="$FOUND_MAKE"
16295   path="${complete%% *}"
16296   tmp="$complete EOL"
16297   arguments="${tmp#* }"
16298 
16299   # Input might be given as Windows format, start by converting to
16300   # unix format.
16301   new_path="$path"
16302 
16303   windows_path="$new_path"
16304   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16305     unix_path=`$CYGPATH -u "$windows_path"`
16306     new_path="$unix_path"
16307   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16308     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16309     new_path="$unix_path"
16310   fi
16311 
16312 
16313   # Now try to locate executable using which
16314   new_path=`$WHICH "$new_path" 2> /dev/null`
16315 
16316   if test "x$new_path" = x; then
16317     # Oops. Which didn't find the executable.
16318     # The splitting of arguments from the executable at a space might have been incorrect,
16319     # since paths with space are more likely in Windows. Give it another try with the whole
16320     # argument.
16321     path="$complete"
16322     arguments="EOL"
16323     new_path="$path"
16324 
16325   windows_path="$new_path"
16326   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16327     unix_path=`$CYGPATH -u "$windows_path"`
16328     new_path="$unix_path"
16329   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16330     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16331     new_path="$unix_path"
16332   fi
16333 
16334 
16335     new_path=`$WHICH "$new_path" 2> /dev/null`
16336     # bat and cmd files are not always considered executable in MSYS causing which
16337     # to not find them
16338     if test "x$new_path" = x \
16339         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16340         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16341       new_path="$path"
16342 
16343   windows_path="$new_path"
16344   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16345     unix_path=`$CYGPATH -u "$windows_path"`
16346     new_path="$unix_path"
16347   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16348     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16349     new_path="$unix_path"
16350   fi
16351 
16352     fi
16353 
16354     if test "x$new_path" = x; then
16355       # It's still not found. Now this is an unrecoverable error.
16356       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16357 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16358       has_space=`$ECHO "$complete" | $GREP " "`
16359       if test "x$has_space" != x; then
16360         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16361 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16362       fi
16363       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16364     fi
16365   fi
16366 
16367   # Now new_path has a complete unix path to the binary
16368   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16369     # Keep paths in /bin as-is, but remove trailing .exe if any
16370     new_path="${new_path/%.exe/}"
16371     # Do not save /bin paths to all_fixpath_prefixes!
16372   else
16373     # Not in mixed or Windows style, start by that.
16374     new_path=`cmd //c echo $new_path`
16375 
16376   input_path="$new_path"
16377   # Check if we need to convert this using DOS-style short mode. If the path
16378   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16379   # take no chances and rewrite it.
16380   # Note: m4 eats our [], so we need to use [ and ] instead.
16381   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16382   if test "x$has_forbidden_chars" != x; then
16383     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16384     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16385   fi
16386 
16387     # Output is in $new_path
16388 
16389   windows_path="$new_path"
16390   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16391     unix_path=`$CYGPATH -u "$windows_path"`
16392     new_path="$unix_path"
16393   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16394     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16395     new_path="$unix_path"
16396   fi
16397 
16398     # remove trailing .exe if any
16399     new_path="${new_path/%.exe/}"
16400 
16401     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16402     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16403   fi
16404 
16405   else
16406     # We're on a posix platform. Hooray! :)
16407     # First separate the path from the arguments. This will split at the first
16408     # space.
16409     complete="$FOUND_MAKE"
16410     path="${complete%% *}"
16411     tmp="$complete EOL"
16412     arguments="${tmp#* }"
16413 
16414     # Cannot rely on the command "which" here since it doesn't always work.
16415     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16416     if test -z "$is_absolute_path"; then
16417       # Path to executable is not absolute. Find it.
16418       IFS_save="$IFS"
16419       IFS=:
16420       for p in $PATH; do
16421         if test -f "$p/$path" && test -x "$p/$path"; then
16422           new_path="$p/$path"
16423           break
16424         fi
16425       done
16426       IFS="$IFS_save"
16427     else
16428       # This is an absolute path, we can use it without further modifications.
16429       new_path="$path"
16430     fi
16431 
16432     if test "x$new_path" = x; then
16433       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16434 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16435       has_space=`$ECHO "$complete" | $GREP " "`
16436       if test "x$has_space" != x; then
16437         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16438 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16439       fi
16440       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16441     fi
16442   fi
16443 
16444   # Now join together the path and the arguments once again
16445   if test "x$arguments" != xEOL; then
16446     new_complete="$new_path ${arguments% *}"
16447   else
16448     new_complete="$new_path"
16449   fi
16450 
16451   if test "x$complete" != "x$new_complete"; then
16452     FOUND_MAKE="$new_complete"
16453     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16454 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16455   fi
16456 
16457         fi
16458       fi
16459     fi
16460   fi
16461 
16462     fi
16463 
16464     if test "x$FOUND_MAKE" = x; then
16465       if test "x$TOOLCHAIN_PATH" != x; then
16466         # We have a toolchain path, check that as well before giving up.
16467         OLD_PATH=$PATH
16468         PATH=$TOOLCHAIN_PATH:$PATH
16469         for ac_prog in gmake
16470 do
16471   # Extract the first word of "$ac_prog", so it can be a program name with args.
16472 set dummy $ac_prog; ac_word=$2
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16474 $as_echo_n "checking for $ac_word... " >&6; }
16475 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16476   $as_echo_n "(cached) " >&6
16477 else
16478   case $CHECK_TOOLSDIR_GMAKE in
16479   [\\/]* | ?:[\\/]*)
16480   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16481   ;;
16482   *)
16483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 for as_dir in $PATH
16485 do
16486   IFS=$as_save_IFS
16487   test -z "$as_dir" && as_dir=.
16488     for ac_exec_ext in '' $ac_executable_extensions; do
16489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16490     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16492     break 2
16493   fi
16494 done
16495   done
16496 IFS=$as_save_IFS
16497 
16498   ;;
16499 esac
16500 fi
16501 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16502 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16504 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16505 else
16506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507 $as_echo "no" >&6; }
16508 fi
16509 
16510 
16511   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16512 done
16513 
16514 
16515   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16516   DESCRIPTION="gmake in tools-dir"
16517   if test "x$MAKE_CANDIDATE" != x; then
16518     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16519 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16520     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16521     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16522     if test "x$IS_GNU_MAKE" = x; then
16523       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16524 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16525     else
16526       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16527       if test "x$IS_MODERN_MAKE" = x; then
16528         { $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
16529 $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;}
16530       else
16531         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16532           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16533             MAKE_EXPECTED_ENV='cygwin'
16534           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16535             MAKE_EXPECTED_ENV='msys'
16536           else
16537             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16538           fi
16539           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16540           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16541         else
16542           # Not relevant for non-Windows
16543           IS_MAKE_CORRECT_ENV=true
16544         fi
16545         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16546           { $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
16547 $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;}
16548         else
16549           FOUND_MAKE=$MAKE_CANDIDATE
16550 
16551   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16552 
16553   # First separate the path from the arguments. This will split at the first
16554   # space.
16555   complete="$FOUND_MAKE"
16556   path="${complete%% *}"
16557   tmp="$complete EOL"
16558   arguments="${tmp#* }"
16559 
16560   # Input might be given as Windows format, start by converting to
16561   # unix format.
16562   new_path=`$CYGPATH -u "$path"`
16563 
16564   # Now try to locate executable using which
16565   new_path=`$WHICH "$new_path" 2> /dev/null`
16566   # bat and cmd files are not always considered executable in cygwin causing which
16567   # to not find them
16568   if test "x$new_path" = x \
16569       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16570       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16571     new_path=`$CYGPATH -u "$path"`
16572   fi
16573   if test "x$new_path" = x; then
16574     # Oops. Which didn't find the executable.
16575     # The splitting of arguments from the executable at a space might have been incorrect,
16576     # since paths with space are more likely in Windows. Give it another try with the whole
16577     # argument.
16578     path="$complete"
16579     arguments="EOL"
16580     new_path=`$CYGPATH -u "$path"`
16581     new_path=`$WHICH "$new_path" 2> /dev/null`
16582     # bat and cmd files are not always considered executable in cygwin causing which
16583     # to not find them
16584     if test "x$new_path" = x \
16585         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16586         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16587       new_path=`$CYGPATH -u "$path"`
16588     fi
16589     if test "x$new_path" = x; then
16590       # It's still not found. Now this is an unrecoverable error.
16591       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16592 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16593       has_space=`$ECHO "$complete" | $GREP " "`
16594       if test "x$has_space" != x; then
16595         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16596 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16597       fi
16598       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16599     fi
16600   fi
16601 
16602   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16603   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16604   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16605   # "foo.exe" is OK but "foo" is an error.
16606   #
16607   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16608   # It is also a way to make sure we got the proper file name for the real test later on.
16609   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16610   if test "x$test_shortpath" = x; then
16611     # Short path failed, file does not exist as specified.
16612     # Try adding .exe or .cmd
16613     if test -f "${new_path}.exe"; then
16614       input_to_shortpath="${new_path}.exe"
16615     elif test -f "${new_path}.cmd"; then
16616       input_to_shortpath="${new_path}.cmd"
16617     else
16618       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16619 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16620       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16621 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16622       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16623     fi
16624   else
16625     input_to_shortpath="$new_path"
16626   fi
16627 
16628   # Call helper function which possibly converts this using DOS-style short mode.
16629   # If so, the updated path is stored in $new_path.
16630   new_path="$input_to_shortpath"
16631 
16632   input_path="$input_to_shortpath"
16633   # Check if we need to convert this using DOS-style short mode. If the path
16634   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16635   # take no chances and rewrite it.
16636   # Note: m4 eats our [], so we need to use [ and ] instead.
16637   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16638   if test "x$has_forbidden_chars" != x; then
16639     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16640     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16641     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16642     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16643       # Going to short mode and back again did indeed matter. Since short mode is
16644       # case insensitive, let's make it lowercase to improve readability.
16645       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16646       # Now convert it back to Unix-style (cygpath)
16647       input_path=`$CYGPATH -u "$shortmode_path"`
16648       new_path="$input_path"
16649     fi
16650   fi
16651 
16652   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16653   if test "x$test_cygdrive_prefix" = x; then
16654     # As a simple fix, exclude /usr/bin since it's not a real path.
16655     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16656       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16657       # a path prefixed by /cygdrive for fixpath to work.
16658       new_path="$CYGWIN_ROOT_PATH$input_path"
16659     fi
16660   fi
16661 
16662   # remove trailing .exe if any
16663   new_path="${new_path/%.exe/}"
16664 
16665   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16666 
16667   # First separate the path from the arguments. This will split at the first
16668   # space.
16669   complete="$FOUND_MAKE"
16670   path="${complete%% *}"
16671   tmp="$complete EOL"
16672   arguments="${tmp#* }"
16673 
16674   # Input might be given as Windows format, start by converting to
16675   # unix format.
16676   new_path="$path"
16677 
16678   windows_path="$new_path"
16679   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16680     unix_path=`$CYGPATH -u "$windows_path"`
16681     new_path="$unix_path"
16682   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16683     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16684     new_path="$unix_path"
16685   fi
16686 
16687 
16688   # Now try to locate executable using which
16689   new_path=`$WHICH "$new_path" 2> /dev/null`
16690 
16691   if test "x$new_path" = x; then
16692     # Oops. Which didn't find the executable.
16693     # The splitting of arguments from the executable at a space might have been incorrect,
16694     # since paths with space are more likely in Windows. Give it another try with the whole
16695     # argument.
16696     path="$complete"
16697     arguments="EOL"
16698     new_path="$path"
16699 
16700   windows_path="$new_path"
16701   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16702     unix_path=`$CYGPATH -u "$windows_path"`
16703     new_path="$unix_path"
16704   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16705     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16706     new_path="$unix_path"
16707   fi
16708 
16709 
16710     new_path=`$WHICH "$new_path" 2> /dev/null`
16711     # bat and cmd files are not always considered executable in MSYS causing which
16712     # to not find them
16713     if test "x$new_path" = x \
16714         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16715         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16716       new_path="$path"
16717 
16718   windows_path="$new_path"
16719   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16720     unix_path=`$CYGPATH -u "$windows_path"`
16721     new_path="$unix_path"
16722   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16723     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16724     new_path="$unix_path"
16725   fi
16726 
16727     fi
16728 
16729     if test "x$new_path" = x; then
16730       # It's still not found. Now this is an unrecoverable error.
16731       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16732 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16733       has_space=`$ECHO "$complete" | $GREP " "`
16734       if test "x$has_space" != x; then
16735         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16736 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16737       fi
16738       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16739     fi
16740   fi
16741 
16742   # Now new_path has a complete unix path to the binary
16743   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16744     # Keep paths in /bin as-is, but remove trailing .exe if any
16745     new_path="${new_path/%.exe/}"
16746     # Do not save /bin paths to all_fixpath_prefixes!
16747   else
16748     # Not in mixed or Windows style, start by that.
16749     new_path=`cmd //c echo $new_path`
16750 
16751   input_path="$new_path"
16752   # Check if we need to convert this using DOS-style short mode. If the path
16753   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16754   # take no chances and rewrite it.
16755   # Note: m4 eats our [], so we need to use [ and ] instead.
16756   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16757   if test "x$has_forbidden_chars" != x; then
16758     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16759     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16760   fi
16761 
16762     # Output is in $new_path
16763 
16764   windows_path="$new_path"
16765   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16766     unix_path=`$CYGPATH -u "$windows_path"`
16767     new_path="$unix_path"
16768   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16769     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16770     new_path="$unix_path"
16771   fi
16772 
16773     # remove trailing .exe if any
16774     new_path="${new_path/%.exe/}"
16775 
16776     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16777     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16778   fi
16779 
16780   else
16781     # We're on a posix platform. Hooray! :)
16782     # First separate the path from the arguments. This will split at the first
16783     # space.
16784     complete="$FOUND_MAKE"
16785     path="${complete%% *}"
16786     tmp="$complete EOL"
16787     arguments="${tmp#* }"
16788 
16789     # Cannot rely on the command "which" here since it doesn't always work.
16790     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16791     if test -z "$is_absolute_path"; then
16792       # Path to executable is not absolute. Find it.
16793       IFS_save="$IFS"
16794       IFS=:
16795       for p in $PATH; do
16796         if test -f "$p/$path" && test -x "$p/$path"; then
16797           new_path="$p/$path"
16798           break
16799         fi
16800       done
16801       IFS="$IFS_save"
16802     else
16803       # This is an absolute path, we can use it without further modifications.
16804       new_path="$path"
16805     fi
16806 
16807     if test "x$new_path" = x; then
16808       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16809 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16810       has_space=`$ECHO "$complete" | $GREP " "`
16811       if test "x$has_space" != x; then
16812         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16813 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16814       fi
16815       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16816     fi
16817   fi
16818 
16819   # Now join together the path and the arguments once again
16820   if test "x$arguments" != xEOL; then
16821     new_complete="$new_path ${arguments% *}"
16822   else
16823     new_complete="$new_path"
16824   fi
16825 
16826   if test "x$complete" != "x$new_complete"; then
16827     FOUND_MAKE="$new_complete"
16828     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16829 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16830   fi
16831 
16832         fi
16833       fi
16834     fi
16835   fi
16836 
16837         if test "x$FOUND_MAKE" = x; then
16838           for ac_prog in make
16839 do
16840   # Extract the first word of "$ac_prog", so it can be a program name with args.
16841 set dummy $ac_prog; ac_word=$2
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16843 $as_echo_n "checking for $ac_word... " >&6; }
16844 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16845   $as_echo_n "(cached) " >&6
16846 else
16847   case $CHECK_TOOLSDIR_MAKE in
16848   [\\/]* | ?:[\\/]*)
16849   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16850   ;;
16851   *)
16852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16853 for as_dir in $PATH
16854 do
16855   IFS=$as_save_IFS
16856   test -z "$as_dir" && as_dir=.
16857     for ac_exec_ext in '' $ac_executable_extensions; do
16858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16859     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16861     break 2
16862   fi
16863 done
16864   done
16865 IFS=$as_save_IFS
16866 
16867   ;;
16868 esac
16869 fi
16870 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16871 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16873 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16874 else
16875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876 $as_echo "no" >&6; }
16877 fi
16878 
16879 
16880   test -n "$CHECK_TOOLSDIR_MAKE" && break
16881 done
16882 
16883 
16884   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16885   DESCRIPTION="make in tools-dir"
16886   if test "x$MAKE_CANDIDATE" != x; then
16887     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16888 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16889     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16890     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16891     if test "x$IS_GNU_MAKE" = x; then
16892       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16893 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16894     else
16895       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16896       if test "x$IS_MODERN_MAKE" = x; then
16897         { $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
16898 $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;}
16899       else
16900         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16901           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16902             MAKE_EXPECTED_ENV='cygwin'
16903           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16904             MAKE_EXPECTED_ENV='msys'
16905           else
16906             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16907           fi
16908           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16909           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16910         else
16911           # Not relevant for non-Windows
16912           IS_MAKE_CORRECT_ENV=true
16913         fi
16914         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16915           { $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
16916 $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;}
16917         else
16918           FOUND_MAKE=$MAKE_CANDIDATE
16919 
16920   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16921 
16922   # First separate the path from the arguments. This will split at the first
16923   # space.
16924   complete="$FOUND_MAKE"
16925   path="${complete%% *}"
16926   tmp="$complete EOL"
16927   arguments="${tmp#* }"
16928 
16929   # Input might be given as Windows format, start by converting to
16930   # unix format.
16931   new_path=`$CYGPATH -u "$path"`
16932 
16933   # Now try to locate executable using which
16934   new_path=`$WHICH "$new_path" 2> /dev/null`
16935   # bat and cmd files are not always considered executable in cygwin causing which
16936   # to not find them
16937   if test "x$new_path" = x \
16938       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16939       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16940     new_path=`$CYGPATH -u "$path"`
16941   fi
16942   if test "x$new_path" = x; then
16943     # Oops. Which didn't find the executable.
16944     # The splitting of arguments from the executable at a space might have been incorrect,
16945     # since paths with space are more likely in Windows. Give it another try with the whole
16946     # argument.
16947     path="$complete"
16948     arguments="EOL"
16949     new_path=`$CYGPATH -u "$path"`
16950     new_path=`$WHICH "$new_path" 2> /dev/null`
16951     # bat and cmd files are not always considered executable in cygwin causing which
16952     # to not find them
16953     if test "x$new_path" = x \
16954         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16955         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16956       new_path=`$CYGPATH -u "$path"`
16957     fi
16958     if test "x$new_path" = x; then
16959       # It's still not found. Now this is an unrecoverable error.
16960       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16961 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16962       has_space=`$ECHO "$complete" | $GREP " "`
16963       if test "x$has_space" != x; then
16964         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16965 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16966       fi
16967       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16968     fi
16969   fi
16970 
16971   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16972   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16973   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16974   # "foo.exe" is OK but "foo" is an error.
16975   #
16976   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16977   # It is also a way to make sure we got the proper file name for the real test later on.
16978   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16979   if test "x$test_shortpath" = x; then
16980     # Short path failed, file does not exist as specified.
16981     # Try adding .exe or .cmd
16982     if test -f "${new_path}.exe"; then
16983       input_to_shortpath="${new_path}.exe"
16984     elif test -f "${new_path}.cmd"; then
16985       input_to_shortpath="${new_path}.cmd"
16986     else
16987       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16988 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16989       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16990 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16991       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16992     fi
16993   else
16994     input_to_shortpath="$new_path"
16995   fi
16996 
16997   # Call helper function which possibly converts this using DOS-style short mode.
16998   # If so, the updated path is stored in $new_path.
16999   new_path="$input_to_shortpath"
17000 
17001   input_path="$input_to_shortpath"
17002   # Check if we need to convert this using DOS-style short mode. If the path
17003   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17004   # take no chances and rewrite it.
17005   # Note: m4 eats our [], so we need to use [ and ] instead.
17006   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17007   if test "x$has_forbidden_chars" != x; then
17008     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17009     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17010     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17011     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17012       # Going to short mode and back again did indeed matter. Since short mode is
17013       # case insensitive, let's make it lowercase to improve readability.
17014       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17015       # Now convert it back to Unix-style (cygpath)
17016       input_path=`$CYGPATH -u "$shortmode_path"`
17017       new_path="$input_path"
17018     fi
17019   fi
17020 
17021   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17022   if test "x$test_cygdrive_prefix" = x; then
17023     # As a simple fix, exclude /usr/bin since it's not a real path.
17024     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17025       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17026       # a path prefixed by /cygdrive for fixpath to work.
17027       new_path="$CYGWIN_ROOT_PATH$input_path"
17028     fi
17029   fi
17030 
17031   # remove trailing .exe if any
17032   new_path="${new_path/%.exe/}"
17033 
17034   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17035 
17036   # First separate the path from the arguments. This will split at the first
17037   # space.
17038   complete="$FOUND_MAKE"
17039   path="${complete%% *}"
17040   tmp="$complete EOL"
17041   arguments="${tmp#* }"
17042 
17043   # Input might be given as Windows format, start by converting to
17044   # unix format.
17045   new_path="$path"
17046 
17047   windows_path="$new_path"
17048   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17049     unix_path=`$CYGPATH -u "$windows_path"`
17050     new_path="$unix_path"
17051   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17052     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17053     new_path="$unix_path"
17054   fi
17055 
17056 
17057   # Now try to locate executable using which
17058   new_path=`$WHICH "$new_path" 2> /dev/null`
17059 
17060   if test "x$new_path" = x; then
17061     # Oops. Which didn't find the executable.
17062     # The splitting of arguments from the executable at a space might have been incorrect,
17063     # since paths with space are more likely in Windows. Give it another try with the whole
17064     # argument.
17065     path="$complete"
17066     arguments="EOL"
17067     new_path="$path"
17068 
17069   windows_path="$new_path"
17070   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17071     unix_path=`$CYGPATH -u "$windows_path"`
17072     new_path="$unix_path"
17073   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17074     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17075     new_path="$unix_path"
17076   fi
17077 
17078 
17079     new_path=`$WHICH "$new_path" 2> /dev/null`
17080     # bat and cmd files are not always considered executable in MSYS causing which
17081     # to not find them
17082     if test "x$new_path" = x \
17083         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17084         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17085       new_path="$path"
17086 
17087   windows_path="$new_path"
17088   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17089     unix_path=`$CYGPATH -u "$windows_path"`
17090     new_path="$unix_path"
17091   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17092     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17093     new_path="$unix_path"
17094   fi
17095 
17096     fi
17097 
17098     if test "x$new_path" = x; then
17099       # It's still not found. Now this is an unrecoverable error.
17100       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17101 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17102       has_space=`$ECHO "$complete" | $GREP " "`
17103       if test "x$has_space" != x; then
17104         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17105 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17106       fi
17107       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17108     fi
17109   fi
17110 
17111   # Now new_path has a complete unix path to the binary
17112   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17113     # Keep paths in /bin as-is, but remove trailing .exe if any
17114     new_path="${new_path/%.exe/}"
17115     # Do not save /bin paths to all_fixpath_prefixes!
17116   else
17117     # Not in mixed or Windows style, start by that.
17118     new_path=`cmd //c echo $new_path`
17119 
17120   input_path="$new_path"
17121   # Check if we need to convert this using DOS-style short mode. If the path
17122   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17123   # take no chances and rewrite it.
17124   # Note: m4 eats our [], so we need to use [ and ] instead.
17125   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17126   if test "x$has_forbidden_chars" != x; then
17127     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17128     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17129   fi
17130 
17131     # Output is in $new_path
17132 
17133   windows_path="$new_path"
17134   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17135     unix_path=`$CYGPATH -u "$windows_path"`
17136     new_path="$unix_path"
17137   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17138     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17139     new_path="$unix_path"
17140   fi
17141 
17142     # remove trailing .exe if any
17143     new_path="${new_path/%.exe/}"
17144 
17145     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17146     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17147   fi
17148 
17149   else
17150     # We're on a posix platform. Hooray! :)
17151     # First separate the path from the arguments. This will split at the first
17152     # space.
17153     complete="$FOUND_MAKE"
17154     path="${complete%% *}"
17155     tmp="$complete EOL"
17156     arguments="${tmp#* }"
17157 
17158     # Cannot rely on the command "which" here since it doesn't always work.
17159     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17160     if test -z "$is_absolute_path"; then
17161       # Path to executable is not absolute. Find it.
17162       IFS_save="$IFS"
17163       IFS=:
17164       for p in $PATH; do
17165         if test -f "$p/$path" && test -x "$p/$path"; then
17166           new_path="$p/$path"
17167           break
17168         fi
17169       done
17170       IFS="$IFS_save"
17171     else
17172       # This is an absolute path, we can use it without further modifications.
17173       new_path="$path"
17174     fi
17175 
17176     if test "x$new_path" = x; then
17177       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17178 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17179       has_space=`$ECHO "$complete" | $GREP " "`
17180       if test "x$has_space" != x; then
17181         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17182 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17183       fi
17184       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17185     fi
17186   fi
17187 
17188   # Now join together the path and the arguments once again
17189   if test "x$arguments" != xEOL; then
17190     new_complete="$new_path ${arguments% *}"
17191   else
17192     new_complete="$new_path"
17193   fi
17194 
17195   if test "x$complete" != "x$new_complete"; then
17196     FOUND_MAKE="$new_complete"
17197     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17198 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17199   fi
17200 
17201         fi
17202       fi
17203     fi
17204   fi
17205 
17206         fi
17207         PATH=$OLD_PATH
17208       fi
17209     fi
17210 
17211     if test "x$FOUND_MAKE" = x; then
17212       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
17213     fi
17214   fi
17215 
17216   MAKE=$FOUND_MAKE
17217 
17218   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17219 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17220 
17221 
17222 
17223   # Test if find supports -delete
17224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17225 $as_echo_n "checking if find supports -delete... " >&6; }
17226   FIND_DELETE="-delete"
17227 
17228   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17229 
17230   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17231 
17232   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17233   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17234     # No, it does not.
17235     rm $DELETEDIR/TestIfFindSupportsDelete
17236     FIND_DELETE="-exec rm \{\} \+"
17237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17238 $as_echo "no" >&6; }
17239   else
17240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241 $as_echo "yes" >&6; }
17242   fi
17243   rmdir $DELETEDIR
17244 
17245 
17246 
17247   # These tools might not be installed by default,
17248   # need hint on how to install them.
17249 
17250 
17251 
17252   # Publish this variable in the help.
17253 
17254 
17255   if test "x$UNZIP" = x; then
17256     # The variable is not set by user, try to locate tool using the code snippet
17257     for ac_prog in unzip
17258 do
17259   # Extract the first word of "$ac_prog", so it can be a program name with args.
17260 set dummy $ac_prog; ac_word=$2
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17262 $as_echo_n "checking for $ac_word... " >&6; }
17263 if ${ac_cv_path_UNZIP+:} false; then :
17264   $as_echo_n "(cached) " >&6
17265 else
17266   case $UNZIP in
17267   [\\/]* | ?:[\\/]*)
17268   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17269   ;;
17270   *)
17271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17272 for as_dir in $PATH
17273 do
17274   IFS=$as_save_IFS
17275   test -z "$as_dir" && as_dir=.
17276     for ac_exec_ext in '' $ac_executable_extensions; do
17277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17278     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17280     break 2
17281   fi
17282 done
17283   done
17284 IFS=$as_save_IFS
17285 
17286   ;;
17287 esac
17288 fi
17289 UNZIP=$ac_cv_path_UNZIP
17290 if test -n "$UNZIP"; then
17291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17292 $as_echo "$UNZIP" >&6; }
17293 else
17294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 $as_echo "no" >&6; }
17296 fi
17297 
17298 
17299   test -n "$UNZIP" && break
17300 done
17301 
17302   else
17303     # The variable is set, but is it from the command line or the environment?
17304 
17305     # Try to remove the string !UNZIP! from our list.
17306     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17307     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17308       # If it failed, the variable was not from the command line. Ignore it,
17309       # but warn the user (except for BASH, which is always set by the calling BASH).
17310       if test "xUNZIP" != xBASH; then
17311         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17312 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17313       fi
17314       # Try to locate tool using the code snippet
17315       for ac_prog in unzip
17316 do
17317   # Extract the first word of "$ac_prog", so it can be a program name with args.
17318 set dummy $ac_prog; ac_word=$2
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17320 $as_echo_n "checking for $ac_word... " >&6; }
17321 if ${ac_cv_path_UNZIP+:} false; then :
17322   $as_echo_n "(cached) " >&6
17323 else
17324   case $UNZIP in
17325   [\\/]* | ?:[\\/]*)
17326   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17327   ;;
17328   *)
17329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17330 for as_dir in $PATH
17331 do
17332   IFS=$as_save_IFS
17333   test -z "$as_dir" && as_dir=.
17334     for ac_exec_ext in '' $ac_executable_extensions; do
17335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17336     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17338     break 2
17339   fi
17340 done
17341   done
17342 IFS=$as_save_IFS
17343 
17344   ;;
17345 esac
17346 fi
17347 UNZIP=$ac_cv_path_UNZIP
17348 if test -n "$UNZIP"; then
17349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17350 $as_echo "$UNZIP" >&6; }
17351 else
17352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353 $as_echo "no" >&6; }
17354 fi
17355 
17356 
17357   test -n "$UNZIP" && break
17358 done
17359 
17360     else
17361       # If it succeeded, then it was overridden by the user. We will use it
17362       # for the tool.
17363 
17364       # First remove it from the list of overridden variables, so we can test
17365       # for unknown variables in the end.
17366       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17367 
17368       # Check if the provided tool contains a complete path.
17369       tool_specified="$UNZIP"
17370       tool_basename="${tool_specified##*/}"
17371       if test "x$tool_basename" = "x$tool_specified"; then
17372         # A command without a complete path is provided, search $PATH.
17373         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17374 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17375         # Extract the first word of "$tool_basename", so it can be a program name with args.
17376 set dummy $tool_basename; ac_word=$2
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17378 $as_echo_n "checking for $ac_word... " >&6; }
17379 if ${ac_cv_path_UNZIP+:} false; then :
17380   $as_echo_n "(cached) " >&6
17381 else
17382   case $UNZIP in
17383   [\\/]* | ?:[\\/]*)
17384   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17385   ;;
17386   *)
17387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17388 for as_dir in $PATH
17389 do
17390   IFS=$as_save_IFS
17391   test -z "$as_dir" && as_dir=.
17392     for ac_exec_ext in '' $ac_executable_extensions; do
17393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17394     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17396     break 2
17397   fi
17398 done
17399   done
17400 IFS=$as_save_IFS
17401 
17402   ;;
17403 esac
17404 fi
17405 UNZIP=$ac_cv_path_UNZIP
17406 if test -n "$UNZIP"; then
17407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17408 $as_echo "$UNZIP" >&6; }
17409 else
17410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17411 $as_echo "no" >&6; }
17412 fi
17413 
17414 
17415         if test "x$UNZIP" = x; then
17416           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17417         fi
17418       else
17419         # Otherwise we believe it is a complete path. Use it as it is.
17420         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17421 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17423 $as_echo_n "checking for UNZIP... " >&6; }
17424         if test ! -x "$tool_specified"; then
17425           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17426 $as_echo "not found" >&6; }
17427           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17428         fi
17429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17430 $as_echo "$tool_specified" >&6; }
17431       fi
17432     fi
17433   fi
17434 
17435 
17436 
17437   if test "x$UNZIP" = x; then
17438     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17439   fi
17440 
17441 
17442 
17443 
17444 
17445   # Publish this variable in the help.
17446 
17447 
17448   if test "x$ZIP" = x; then
17449     # The variable is not set by user, try to locate tool using the code snippet
17450     for ac_prog in zip
17451 do
17452   # Extract the first word of "$ac_prog", so it can be a program name with args.
17453 set dummy $ac_prog; ac_word=$2
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17455 $as_echo_n "checking for $ac_word... " >&6; }
17456 if ${ac_cv_path_ZIP+:} false; then :
17457   $as_echo_n "(cached) " >&6
17458 else
17459   case $ZIP in
17460   [\\/]* | ?:[\\/]*)
17461   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17462   ;;
17463   *)
17464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17465 for as_dir in $PATH
17466 do
17467   IFS=$as_save_IFS
17468   test -z "$as_dir" && as_dir=.
17469     for ac_exec_ext in '' $ac_executable_extensions; do
17470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17471     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17473     break 2
17474   fi
17475 done
17476   done
17477 IFS=$as_save_IFS
17478 
17479   ;;
17480 esac
17481 fi
17482 ZIP=$ac_cv_path_ZIP
17483 if test -n "$ZIP"; then
17484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17485 $as_echo "$ZIP" >&6; }
17486 else
17487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 $as_echo "no" >&6; }
17489 fi
17490 
17491 
17492   test -n "$ZIP" && break
17493 done
17494 
17495   else
17496     # The variable is set, but is it from the command line or the environment?
17497 
17498     # Try to remove the string !ZIP! from our list.
17499     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17500     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17501       # If it failed, the variable was not from the command line. Ignore it,
17502       # but warn the user (except for BASH, which is always set by the calling BASH).
17503       if test "xZIP" != xBASH; then
17504         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17505 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17506       fi
17507       # Try to locate tool using the code snippet
17508       for ac_prog in zip
17509 do
17510   # Extract the first word of "$ac_prog", so it can be a program name with args.
17511 set dummy $ac_prog; ac_word=$2
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17513 $as_echo_n "checking for $ac_word... " >&6; }
17514 if ${ac_cv_path_ZIP+:} false; then :
17515   $as_echo_n "(cached) " >&6
17516 else
17517   case $ZIP in
17518   [\\/]* | ?:[\\/]*)
17519   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17520   ;;
17521   *)
17522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17523 for as_dir in $PATH
17524 do
17525   IFS=$as_save_IFS
17526   test -z "$as_dir" && as_dir=.
17527     for ac_exec_ext in '' $ac_executable_extensions; do
17528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17529     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17531     break 2
17532   fi
17533 done
17534   done
17535 IFS=$as_save_IFS
17536 
17537   ;;
17538 esac
17539 fi
17540 ZIP=$ac_cv_path_ZIP
17541 if test -n "$ZIP"; then
17542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17543 $as_echo "$ZIP" >&6; }
17544 else
17545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17546 $as_echo "no" >&6; }
17547 fi
17548 
17549 
17550   test -n "$ZIP" && break
17551 done
17552 
17553     else
17554       # If it succeeded, then it was overridden by the user. We will use it
17555       # for the tool.
17556 
17557       # First remove it from the list of overridden variables, so we can test
17558       # for unknown variables in the end.
17559       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17560 
17561       # Check if the provided tool contains a complete path.
17562       tool_specified="$ZIP"
17563       tool_basename="${tool_specified##*/}"
17564       if test "x$tool_basename" = "x$tool_specified"; then
17565         # A command without a complete path is provided, search $PATH.
17566         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17567 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17568         # Extract the first word of "$tool_basename", so it can be a program name with args.
17569 set dummy $tool_basename; ac_word=$2
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17571 $as_echo_n "checking for $ac_word... " >&6; }
17572 if ${ac_cv_path_ZIP+:} false; then :
17573   $as_echo_n "(cached) " >&6
17574 else
17575   case $ZIP in
17576   [\\/]* | ?:[\\/]*)
17577   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17578   ;;
17579   *)
17580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17581 for as_dir in $PATH
17582 do
17583   IFS=$as_save_IFS
17584   test -z "$as_dir" && as_dir=.
17585     for ac_exec_ext in '' $ac_executable_extensions; do
17586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17587     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17589     break 2
17590   fi
17591 done
17592   done
17593 IFS=$as_save_IFS
17594 
17595   ;;
17596 esac
17597 fi
17598 ZIP=$ac_cv_path_ZIP
17599 if test -n "$ZIP"; then
17600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17601 $as_echo "$ZIP" >&6; }
17602 else
17603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604 $as_echo "no" >&6; }
17605 fi
17606 
17607 
17608         if test "x$ZIP" = x; then
17609           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17610         fi
17611       else
17612         # Otherwise we believe it is a complete path. Use it as it is.
17613         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17614 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17616 $as_echo_n "checking for ZIP... " >&6; }
17617         if test ! -x "$tool_specified"; then
17618           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17619 $as_echo "not found" >&6; }
17620           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17621         fi
17622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17623 $as_echo "$tool_specified" >&6; }
17624       fi
17625     fi
17626   fi
17627 
17628 
17629 
17630   if test "x$ZIP" = x; then
17631     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17632   fi
17633 
17634 
17635 
17636   # Non-required basic tools
17637 
17638 
17639 
17640   # Publish this variable in the help.
17641 
17642 
17643   if test "x$LDD" = x; then
17644     # The variable is not set by user, try to locate tool using the code snippet
17645     for ac_prog in ldd
17646 do
17647   # Extract the first word of "$ac_prog", so it can be a program name with args.
17648 set dummy $ac_prog; ac_word=$2
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17650 $as_echo_n "checking for $ac_word... " >&6; }
17651 if ${ac_cv_path_LDD+:} false; then :
17652   $as_echo_n "(cached) " >&6
17653 else
17654   case $LDD in
17655   [\\/]* | ?:[\\/]*)
17656   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17657   ;;
17658   *)
17659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660 for as_dir in $PATH
17661 do
17662   IFS=$as_save_IFS
17663   test -z "$as_dir" && as_dir=.
17664     for ac_exec_ext in '' $ac_executable_extensions; do
17665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17666     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17668     break 2
17669   fi
17670 done
17671   done
17672 IFS=$as_save_IFS
17673 
17674   ;;
17675 esac
17676 fi
17677 LDD=$ac_cv_path_LDD
17678 if test -n "$LDD"; then
17679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17680 $as_echo "$LDD" >&6; }
17681 else
17682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17683 $as_echo "no" >&6; }
17684 fi
17685 
17686 
17687   test -n "$LDD" && break
17688 done
17689 
17690   else
17691     # The variable is set, but is it from the command line or the environment?
17692 
17693     # Try to remove the string !LDD! from our list.
17694     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17695     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17696       # If it failed, the variable was not from the command line. Ignore it,
17697       # but warn the user (except for BASH, which is always set by the calling BASH).
17698       if test "xLDD" != xBASH; then
17699         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17700 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17701       fi
17702       # Try to locate tool using the code snippet
17703       for ac_prog in ldd
17704 do
17705   # Extract the first word of "$ac_prog", so it can be a program name with args.
17706 set dummy $ac_prog; ac_word=$2
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17708 $as_echo_n "checking for $ac_word... " >&6; }
17709 if ${ac_cv_path_LDD+:} false; then :
17710   $as_echo_n "(cached) " >&6
17711 else
17712   case $LDD in
17713   [\\/]* | ?:[\\/]*)
17714   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17715   ;;
17716   *)
17717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17718 for as_dir in $PATH
17719 do
17720   IFS=$as_save_IFS
17721   test -z "$as_dir" && as_dir=.
17722     for ac_exec_ext in '' $ac_executable_extensions; do
17723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17724     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17726     break 2
17727   fi
17728 done
17729   done
17730 IFS=$as_save_IFS
17731 
17732   ;;
17733 esac
17734 fi
17735 LDD=$ac_cv_path_LDD
17736 if test -n "$LDD"; then
17737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17738 $as_echo "$LDD" >&6; }
17739 else
17740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17741 $as_echo "no" >&6; }
17742 fi
17743 
17744 
17745   test -n "$LDD" && break
17746 done
17747 
17748     else
17749       # If it succeeded, then it was overridden by the user. We will use it
17750       # for the tool.
17751 
17752       # First remove it from the list of overridden variables, so we can test
17753       # for unknown variables in the end.
17754       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17755 
17756       # Check if the provided tool contains a complete path.
17757       tool_specified="$LDD"
17758       tool_basename="${tool_specified##*/}"
17759       if test "x$tool_basename" = "x$tool_specified"; then
17760         # A command without a complete path is provided, search $PATH.
17761         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17762 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17763         # Extract the first word of "$tool_basename", so it can be a program name with args.
17764 set dummy $tool_basename; ac_word=$2
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17766 $as_echo_n "checking for $ac_word... " >&6; }
17767 if ${ac_cv_path_LDD+:} false; then :
17768   $as_echo_n "(cached) " >&6
17769 else
17770   case $LDD in
17771   [\\/]* | ?:[\\/]*)
17772   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17773   ;;
17774   *)
17775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776 for as_dir in $PATH
17777 do
17778   IFS=$as_save_IFS
17779   test -z "$as_dir" && as_dir=.
17780     for ac_exec_ext in '' $ac_executable_extensions; do
17781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17782     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17784     break 2
17785   fi
17786 done
17787   done
17788 IFS=$as_save_IFS
17789 
17790   ;;
17791 esac
17792 fi
17793 LDD=$ac_cv_path_LDD
17794 if test -n "$LDD"; then
17795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17796 $as_echo "$LDD" >&6; }
17797 else
17798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799 $as_echo "no" >&6; }
17800 fi
17801 
17802 
17803         if test "x$LDD" = x; then
17804           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17805         fi
17806       else
17807         # Otherwise we believe it is a complete path. Use it as it is.
17808         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17809 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17811 $as_echo_n "checking for LDD... " >&6; }
17812         if test ! -x "$tool_specified"; then
17813           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17814 $as_echo "not found" >&6; }
17815           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17816         fi
17817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17818 $as_echo "$tool_specified" >&6; }
17819       fi
17820     fi
17821   fi
17822 
17823 
17824   if test "x$LDD" = "x"; then
17825     # List shared lib dependencies is used for
17826     # debug output and checking for forbidden dependencies.
17827     # We can build without it.
17828     LDD="true"
17829   fi
17830 
17831 
17832   # Publish this variable in the help.
17833 
17834 
17835   if test "x$READELF" = x; then
17836     # The variable is not set by user, try to locate tool using the code snippet
17837     for ac_prog in readelf greadelf
17838 do
17839   # Extract the first word of "$ac_prog", so it can be a program name with args.
17840 set dummy $ac_prog; ac_word=$2
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17842 $as_echo_n "checking for $ac_word... " >&6; }
17843 if ${ac_cv_path_READELF+:} false; then :
17844   $as_echo_n "(cached) " >&6
17845 else
17846   case $READELF in
17847   [\\/]* | ?:[\\/]*)
17848   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17849   ;;
17850   *)
17851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17852 for as_dir in $PATH
17853 do
17854   IFS=$as_save_IFS
17855   test -z "$as_dir" && as_dir=.
17856     for ac_exec_ext in '' $ac_executable_extensions; do
17857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17858     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17860     break 2
17861   fi
17862 done
17863   done
17864 IFS=$as_save_IFS
17865 
17866   ;;
17867 esac
17868 fi
17869 READELF=$ac_cv_path_READELF
17870 if test -n "$READELF"; then
17871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17872 $as_echo "$READELF" >&6; }
17873 else
17874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17875 $as_echo "no" >&6; }
17876 fi
17877 
17878 
17879   test -n "$READELF" && break
17880 done
17881 
17882   else
17883     # The variable is set, but is it from the command line or the environment?
17884 
17885     # Try to remove the string !READELF! from our list.
17886     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17887     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17888       # If it failed, the variable was not from the command line. Ignore it,
17889       # but warn the user (except for BASH, which is always set by the calling BASH).
17890       if test "xREADELF" != xBASH; then
17891         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17892 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17893       fi
17894       # Try to locate tool using the code snippet
17895       for ac_prog in readelf greadelf
17896 do
17897   # Extract the first word of "$ac_prog", so it can be a program name with args.
17898 set dummy $ac_prog; ac_word=$2
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17900 $as_echo_n "checking for $ac_word... " >&6; }
17901 if ${ac_cv_path_READELF+:} false; then :
17902   $as_echo_n "(cached) " >&6
17903 else
17904   case $READELF in
17905   [\\/]* | ?:[\\/]*)
17906   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17907   ;;
17908   *)
17909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17910 for as_dir in $PATH
17911 do
17912   IFS=$as_save_IFS
17913   test -z "$as_dir" && as_dir=.
17914     for ac_exec_ext in '' $ac_executable_extensions; do
17915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17916     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17918     break 2
17919   fi
17920 done
17921   done
17922 IFS=$as_save_IFS
17923 
17924   ;;
17925 esac
17926 fi
17927 READELF=$ac_cv_path_READELF
17928 if test -n "$READELF"; then
17929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17930 $as_echo "$READELF" >&6; }
17931 else
17932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17933 $as_echo "no" >&6; }
17934 fi
17935 
17936 
17937   test -n "$READELF" && break
17938 done
17939 
17940     else
17941       # If it succeeded, then it was overridden by the user. We will use it
17942       # for the tool.
17943 
17944       # First remove it from the list of overridden variables, so we can test
17945       # for unknown variables in the end.
17946       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17947 
17948       # Check if the provided tool contains a complete path.
17949       tool_specified="$READELF"
17950       tool_basename="${tool_specified##*/}"
17951       if test "x$tool_basename" = "x$tool_specified"; then
17952         # A command without a complete path is provided, search $PATH.
17953         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17954 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17955         # Extract the first word of "$tool_basename", so it can be a program name with args.
17956 set dummy $tool_basename; ac_word=$2
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17958 $as_echo_n "checking for $ac_word... " >&6; }
17959 if ${ac_cv_path_READELF+:} false; then :
17960   $as_echo_n "(cached) " >&6
17961 else
17962   case $READELF in
17963   [\\/]* | ?:[\\/]*)
17964   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17965   ;;
17966   *)
17967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17968 for as_dir in $PATH
17969 do
17970   IFS=$as_save_IFS
17971   test -z "$as_dir" && as_dir=.
17972     for ac_exec_ext in '' $ac_executable_extensions; do
17973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17974     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17976     break 2
17977   fi
17978 done
17979   done
17980 IFS=$as_save_IFS
17981 
17982   ;;
17983 esac
17984 fi
17985 READELF=$ac_cv_path_READELF
17986 if test -n "$READELF"; then
17987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17988 $as_echo "$READELF" >&6; }
17989 else
17990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17991 $as_echo "no" >&6; }
17992 fi
17993 
17994 
17995         if test "x$READELF" = x; then
17996           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17997         fi
17998       else
17999         # Otherwise we believe it is a complete path. Use it as it is.
18000         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18001 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18002         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18003 $as_echo_n "checking for READELF... " >&6; }
18004         if test ! -x "$tool_specified"; then
18005           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18006 $as_echo "not found" >&6; }
18007           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18008         fi
18009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18010 $as_echo "$tool_specified" >&6; }
18011       fi
18012     fi
18013   fi
18014 
18015 
18016 
18017 
18018   # Publish this variable in the help.
18019 
18020 
18021   if test "x$HG" = x; then
18022     # The variable is not set by user, try to locate tool using the code snippet
18023     for ac_prog in hg
18024 do
18025   # Extract the first word of "$ac_prog", so it can be a program name with args.
18026 set dummy $ac_prog; ac_word=$2
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18028 $as_echo_n "checking for $ac_word... " >&6; }
18029 if ${ac_cv_path_HG+:} false; then :
18030   $as_echo_n "(cached) " >&6
18031 else
18032   case $HG in
18033   [\\/]* | ?:[\\/]*)
18034   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18035   ;;
18036   *)
18037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18038 for as_dir in $PATH
18039 do
18040   IFS=$as_save_IFS
18041   test -z "$as_dir" && as_dir=.
18042     for ac_exec_ext in '' $ac_executable_extensions; do
18043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18044     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18046     break 2
18047   fi
18048 done
18049   done
18050 IFS=$as_save_IFS
18051 
18052   ;;
18053 esac
18054 fi
18055 HG=$ac_cv_path_HG
18056 if test -n "$HG"; then
18057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18058 $as_echo "$HG" >&6; }
18059 else
18060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18061 $as_echo "no" >&6; }
18062 fi
18063 
18064 
18065   test -n "$HG" && break
18066 done
18067 
18068   else
18069     # The variable is set, but is it from the command line or the environment?
18070 
18071     # Try to remove the string !HG! from our list.
18072     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18073     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18074       # If it failed, the variable was not from the command line. Ignore it,
18075       # but warn the user (except for BASH, which is always set by the calling BASH).
18076       if test "xHG" != xBASH; then
18077         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18078 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18079       fi
18080       # Try to locate tool using the code snippet
18081       for ac_prog in hg
18082 do
18083   # Extract the first word of "$ac_prog", so it can be a program name with args.
18084 set dummy $ac_prog; ac_word=$2
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18086 $as_echo_n "checking for $ac_word... " >&6; }
18087 if ${ac_cv_path_HG+:} false; then :
18088   $as_echo_n "(cached) " >&6
18089 else
18090   case $HG in
18091   [\\/]* | ?:[\\/]*)
18092   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18093   ;;
18094   *)
18095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18096 for as_dir in $PATH
18097 do
18098   IFS=$as_save_IFS
18099   test -z "$as_dir" && as_dir=.
18100     for ac_exec_ext in '' $ac_executable_extensions; do
18101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18102     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18104     break 2
18105   fi
18106 done
18107   done
18108 IFS=$as_save_IFS
18109 
18110   ;;
18111 esac
18112 fi
18113 HG=$ac_cv_path_HG
18114 if test -n "$HG"; then
18115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18116 $as_echo "$HG" >&6; }
18117 else
18118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119 $as_echo "no" >&6; }
18120 fi
18121 
18122 
18123   test -n "$HG" && break
18124 done
18125 
18126     else
18127       # If it succeeded, then it was overridden by the user. We will use it
18128       # for the tool.
18129 
18130       # First remove it from the list of overridden variables, so we can test
18131       # for unknown variables in the end.
18132       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18133 
18134       # Check if the provided tool contains a complete path.
18135       tool_specified="$HG"
18136       tool_basename="${tool_specified##*/}"
18137       if test "x$tool_basename" = "x$tool_specified"; then
18138         # A command without a complete path is provided, search $PATH.
18139         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18140 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18141         # Extract the first word of "$tool_basename", so it can be a program name with args.
18142 set dummy $tool_basename; ac_word=$2
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18144 $as_echo_n "checking for $ac_word... " >&6; }
18145 if ${ac_cv_path_HG+:} false; then :
18146   $as_echo_n "(cached) " >&6
18147 else
18148   case $HG in
18149   [\\/]* | ?:[\\/]*)
18150   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18151   ;;
18152   *)
18153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18154 for as_dir in $PATH
18155 do
18156   IFS=$as_save_IFS
18157   test -z "$as_dir" && as_dir=.
18158     for ac_exec_ext in '' $ac_executable_extensions; do
18159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18160     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18162     break 2
18163   fi
18164 done
18165   done
18166 IFS=$as_save_IFS
18167 
18168   ;;
18169 esac
18170 fi
18171 HG=$ac_cv_path_HG
18172 if test -n "$HG"; then
18173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18174 $as_echo "$HG" >&6; }
18175 else
18176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18178 fi
18179 
18180 
18181         if test "x$HG" = x; then
18182           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18183         fi
18184       else
18185         # Otherwise we believe it is a complete path. Use it as it is.
18186         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18187 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18189 $as_echo_n "checking for HG... " >&6; }
18190         if test ! -x "$tool_specified"; then
18191           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18192 $as_echo "not found" >&6; }
18193           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18194         fi
18195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18196 $as_echo "$tool_specified" >&6; }
18197       fi
18198     fi
18199   fi
18200 
18201 
18202 
18203 
18204   # Publish this variable in the help.
18205 
18206 
18207   if test "x$STAT" = x; then
18208     # The variable is not set by user, try to locate tool using the code snippet
18209     for ac_prog in stat
18210 do
18211   # Extract the first word of "$ac_prog", so it can be a program name with args.
18212 set dummy $ac_prog; ac_word=$2
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18214 $as_echo_n "checking for $ac_word... " >&6; }
18215 if ${ac_cv_path_STAT+:} false; then :
18216   $as_echo_n "(cached) " >&6
18217 else
18218   case $STAT in
18219   [\\/]* | ?:[\\/]*)
18220   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18221   ;;
18222   *)
18223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18224 for as_dir in $PATH
18225 do
18226   IFS=$as_save_IFS
18227   test -z "$as_dir" && as_dir=.
18228     for ac_exec_ext in '' $ac_executable_extensions; do
18229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18230     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18232     break 2
18233   fi
18234 done
18235   done
18236 IFS=$as_save_IFS
18237 
18238   ;;
18239 esac
18240 fi
18241 STAT=$ac_cv_path_STAT
18242 if test -n "$STAT"; then
18243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18244 $as_echo "$STAT" >&6; }
18245 else
18246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18247 $as_echo "no" >&6; }
18248 fi
18249 
18250 
18251   test -n "$STAT" && break
18252 done
18253 
18254   else
18255     # The variable is set, but is it from the command line or the environment?
18256 
18257     # Try to remove the string !STAT! from our list.
18258     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18259     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18260       # If it failed, the variable was not from the command line. Ignore it,
18261       # but warn the user (except for BASH, which is always set by the calling BASH).
18262       if test "xSTAT" != xBASH; then
18263         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18264 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18265       fi
18266       # Try to locate tool using the code snippet
18267       for ac_prog in stat
18268 do
18269   # Extract the first word of "$ac_prog", so it can be a program name with args.
18270 set dummy $ac_prog; ac_word=$2
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18272 $as_echo_n "checking for $ac_word... " >&6; }
18273 if ${ac_cv_path_STAT+:} false; then :
18274   $as_echo_n "(cached) " >&6
18275 else
18276   case $STAT in
18277   [\\/]* | ?:[\\/]*)
18278   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18279   ;;
18280   *)
18281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18282 for as_dir in $PATH
18283 do
18284   IFS=$as_save_IFS
18285   test -z "$as_dir" && as_dir=.
18286     for ac_exec_ext in '' $ac_executable_extensions; do
18287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18288     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18290     break 2
18291   fi
18292 done
18293   done
18294 IFS=$as_save_IFS
18295 
18296   ;;
18297 esac
18298 fi
18299 STAT=$ac_cv_path_STAT
18300 if test -n "$STAT"; then
18301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18302 $as_echo "$STAT" >&6; }
18303 else
18304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18306 fi
18307 
18308 
18309   test -n "$STAT" && break
18310 done
18311 
18312     else
18313       # If it succeeded, then it was overridden by the user. We will use it
18314       # for the tool.
18315 
18316       # First remove it from the list of overridden variables, so we can test
18317       # for unknown variables in the end.
18318       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18319 
18320       # Check if the provided tool contains a complete path.
18321       tool_specified="$STAT"
18322       tool_basename="${tool_specified##*/}"
18323       if test "x$tool_basename" = "x$tool_specified"; then
18324         # A command without a complete path is provided, search $PATH.
18325         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18326 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18327         # Extract the first word of "$tool_basename", so it can be a program name with args.
18328 set dummy $tool_basename; ac_word=$2
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18330 $as_echo_n "checking for $ac_word... " >&6; }
18331 if ${ac_cv_path_STAT+:} false; then :
18332   $as_echo_n "(cached) " >&6
18333 else
18334   case $STAT in
18335   [\\/]* | ?:[\\/]*)
18336   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18337   ;;
18338   *)
18339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18340 for as_dir in $PATH
18341 do
18342   IFS=$as_save_IFS
18343   test -z "$as_dir" && as_dir=.
18344     for ac_exec_ext in '' $ac_executable_extensions; do
18345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18346     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18348     break 2
18349   fi
18350 done
18351   done
18352 IFS=$as_save_IFS
18353 
18354   ;;
18355 esac
18356 fi
18357 STAT=$ac_cv_path_STAT
18358 if test -n "$STAT"; then
18359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18360 $as_echo "$STAT" >&6; }
18361 else
18362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18363 $as_echo "no" >&6; }
18364 fi
18365 
18366 
18367         if test "x$STAT" = x; then
18368           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18369         fi
18370       else
18371         # Otherwise we believe it is a complete path. Use it as it is.
18372         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18373 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18374         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18375 $as_echo_n "checking for STAT... " >&6; }
18376         if test ! -x "$tool_specified"; then
18377           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18378 $as_echo "not found" >&6; }
18379           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18380         fi
18381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18382 $as_echo "$tool_specified" >&6; }
18383       fi
18384     fi
18385   fi
18386 
18387 
18388 
18389 
18390   # Publish this variable in the help.
18391 
18392 
18393   if test "x$TIME" = x; then
18394     # The variable is not set by user, try to locate tool using the code snippet
18395     for ac_prog in time
18396 do
18397   # Extract the first word of "$ac_prog", so it can be a program name with args.
18398 set dummy $ac_prog; ac_word=$2
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18400 $as_echo_n "checking for $ac_word... " >&6; }
18401 if ${ac_cv_path_TIME+:} false; then :
18402   $as_echo_n "(cached) " >&6
18403 else
18404   case $TIME in
18405   [\\/]* | ?:[\\/]*)
18406   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18407   ;;
18408   *)
18409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18410 for as_dir in $PATH
18411 do
18412   IFS=$as_save_IFS
18413   test -z "$as_dir" && as_dir=.
18414     for ac_exec_ext in '' $ac_executable_extensions; do
18415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18416     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18418     break 2
18419   fi
18420 done
18421   done
18422 IFS=$as_save_IFS
18423 
18424   ;;
18425 esac
18426 fi
18427 TIME=$ac_cv_path_TIME
18428 if test -n "$TIME"; then
18429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18430 $as_echo "$TIME" >&6; }
18431 else
18432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433 $as_echo "no" >&6; }
18434 fi
18435 
18436 
18437   test -n "$TIME" && break
18438 done
18439 
18440   else
18441     # The variable is set, but is it from the command line or the environment?
18442 
18443     # Try to remove the string !TIME! from our list.
18444     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18445     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18446       # If it failed, the variable was not from the command line. Ignore it,
18447       # but warn the user (except for BASH, which is always set by the calling BASH).
18448       if test "xTIME" != xBASH; then
18449         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18450 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18451       fi
18452       # Try to locate tool using the code snippet
18453       for ac_prog in time
18454 do
18455   # Extract the first word of "$ac_prog", so it can be a program name with args.
18456 set dummy $ac_prog; ac_word=$2
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18458 $as_echo_n "checking for $ac_word... " >&6; }
18459 if ${ac_cv_path_TIME+:} false; then :
18460   $as_echo_n "(cached) " >&6
18461 else
18462   case $TIME in
18463   [\\/]* | ?:[\\/]*)
18464   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18465   ;;
18466   *)
18467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18468 for as_dir in $PATH
18469 do
18470   IFS=$as_save_IFS
18471   test -z "$as_dir" && as_dir=.
18472     for ac_exec_ext in '' $ac_executable_extensions; do
18473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18474     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18476     break 2
18477   fi
18478 done
18479   done
18480 IFS=$as_save_IFS
18481 
18482   ;;
18483 esac
18484 fi
18485 TIME=$ac_cv_path_TIME
18486 if test -n "$TIME"; then
18487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18488 $as_echo "$TIME" >&6; }
18489 else
18490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18491 $as_echo "no" >&6; }
18492 fi
18493 
18494 
18495   test -n "$TIME" && break
18496 done
18497 
18498     else
18499       # If it succeeded, then it was overridden by the user. We will use it
18500       # for the tool.
18501 
18502       # First remove it from the list of overridden variables, so we can test
18503       # for unknown variables in the end.
18504       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18505 
18506       # Check if the provided tool contains a complete path.
18507       tool_specified="$TIME"
18508       tool_basename="${tool_specified##*/}"
18509       if test "x$tool_basename" = "x$tool_specified"; then
18510         # A command without a complete path is provided, search $PATH.
18511         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18512 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18513         # Extract the first word of "$tool_basename", so it can be a program name with args.
18514 set dummy $tool_basename; ac_word=$2
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18516 $as_echo_n "checking for $ac_word... " >&6; }
18517 if ${ac_cv_path_TIME+:} false; then :
18518   $as_echo_n "(cached) " >&6
18519 else
18520   case $TIME in
18521   [\\/]* | ?:[\\/]*)
18522   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18523   ;;
18524   *)
18525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526 for as_dir in $PATH
18527 do
18528   IFS=$as_save_IFS
18529   test -z "$as_dir" && as_dir=.
18530     for ac_exec_ext in '' $ac_executable_extensions; do
18531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18532     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18534     break 2
18535   fi
18536 done
18537   done
18538 IFS=$as_save_IFS
18539 
18540   ;;
18541 esac
18542 fi
18543 TIME=$ac_cv_path_TIME
18544 if test -n "$TIME"; then
18545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18546 $as_echo "$TIME" >&6; }
18547 else
18548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18549 $as_echo "no" >&6; }
18550 fi
18551 
18552 
18553         if test "x$TIME" = x; then
18554           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18555         fi
18556       else
18557         # Otherwise we believe it is a complete path. Use it as it is.
18558         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18559 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18560         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18561 $as_echo_n "checking for TIME... " >&6; }
18562         if test ! -x "$tool_specified"; then
18563           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18564 $as_echo "not found" >&6; }
18565           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18566         fi
18567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18568 $as_echo "$tool_specified" >&6; }
18569       fi
18570     fi
18571   fi
18572 
18573 
18574   # Check if it's GNU time
18575   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18576   if test "x$IS_GNU_TIME" != x; then
18577     IS_GNU_TIME=yes
18578   else
18579     IS_GNU_TIME=no
18580   fi
18581 
18582 
18583   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18584 
18585 
18586 
18587   # Publish this variable in the help.
18588 
18589 
18590   if test "x$COMM" = x; then
18591     # The variable is not set by user, try to locate tool using the code snippet
18592     for ac_prog in comm
18593 do
18594   # Extract the first word of "$ac_prog", so it can be a program name with args.
18595 set dummy $ac_prog; ac_word=$2
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18597 $as_echo_n "checking for $ac_word... " >&6; }
18598 if ${ac_cv_path_COMM+:} false; then :
18599   $as_echo_n "(cached) " >&6
18600 else
18601   case $COMM in
18602   [\\/]* | ?:[\\/]*)
18603   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18604   ;;
18605   *)
18606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607 for as_dir in $PATH
18608 do
18609   IFS=$as_save_IFS
18610   test -z "$as_dir" && as_dir=.
18611     for ac_exec_ext in '' $ac_executable_extensions; do
18612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18613     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18615     break 2
18616   fi
18617 done
18618   done
18619 IFS=$as_save_IFS
18620 
18621   ;;
18622 esac
18623 fi
18624 COMM=$ac_cv_path_COMM
18625 if test -n "$COMM"; then
18626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18627 $as_echo "$COMM" >&6; }
18628 else
18629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18630 $as_echo "no" >&6; }
18631 fi
18632 
18633 
18634   test -n "$COMM" && break
18635 done
18636 
18637   else
18638     # The variable is set, but is it from the command line or the environment?
18639 
18640     # Try to remove the string !COMM! from our list.
18641     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18642     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18643       # If it failed, the variable was not from the command line. Ignore it,
18644       # but warn the user (except for BASH, which is always set by the calling BASH).
18645       if test "xCOMM" != xBASH; then
18646         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18647 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18648       fi
18649       # Try to locate tool using the code snippet
18650       for ac_prog in comm
18651 do
18652   # Extract the first word of "$ac_prog", so it can be a program name with args.
18653 set dummy $ac_prog; ac_word=$2
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18655 $as_echo_n "checking for $ac_word... " >&6; }
18656 if ${ac_cv_path_COMM+:} false; then :
18657   $as_echo_n "(cached) " >&6
18658 else
18659   case $COMM in
18660   [\\/]* | ?:[\\/]*)
18661   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18662   ;;
18663   *)
18664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18665 for as_dir in $PATH
18666 do
18667   IFS=$as_save_IFS
18668   test -z "$as_dir" && as_dir=.
18669     for ac_exec_ext in '' $ac_executable_extensions; do
18670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18671     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18673     break 2
18674   fi
18675 done
18676   done
18677 IFS=$as_save_IFS
18678 
18679   ;;
18680 esac
18681 fi
18682 COMM=$ac_cv_path_COMM
18683 if test -n "$COMM"; then
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18685 $as_echo "$COMM" >&6; }
18686 else
18687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18689 fi
18690 
18691 
18692   test -n "$COMM" && break
18693 done
18694 
18695     else
18696       # If it succeeded, then it was overridden by the user. We will use it
18697       # for the tool.
18698 
18699       # First remove it from the list of overridden variables, so we can test
18700       # for unknown variables in the end.
18701       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18702 
18703       # Check if the provided tool contains a complete path.
18704       tool_specified="$COMM"
18705       tool_basename="${tool_specified##*/}"
18706       if test "x$tool_basename" = "x$tool_specified"; then
18707         # A command without a complete path is provided, search $PATH.
18708         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18709 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18710         # Extract the first word of "$tool_basename", so it can be a program name with args.
18711 set dummy $tool_basename; ac_word=$2
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18713 $as_echo_n "checking for $ac_word... " >&6; }
18714 if ${ac_cv_path_COMM+:} false; then :
18715   $as_echo_n "(cached) " >&6
18716 else
18717   case $COMM in
18718   [\\/]* | ?:[\\/]*)
18719   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18720   ;;
18721   *)
18722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723 for as_dir in $PATH
18724 do
18725   IFS=$as_save_IFS
18726   test -z "$as_dir" && as_dir=.
18727     for ac_exec_ext in '' $ac_executable_extensions; do
18728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18729     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18731     break 2
18732   fi
18733 done
18734   done
18735 IFS=$as_save_IFS
18736 
18737   ;;
18738 esac
18739 fi
18740 COMM=$ac_cv_path_COMM
18741 if test -n "$COMM"; then
18742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18743 $as_echo "$COMM" >&6; }
18744 else
18745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18746 $as_echo "no" >&6; }
18747 fi
18748 
18749 
18750         if test "x$COMM" = x; then
18751           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18752         fi
18753       else
18754         # Otherwise we believe it is a complete path. Use it as it is.
18755         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18756 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18757         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18758 $as_echo_n "checking for COMM... " >&6; }
18759         if test ! -x "$tool_specified"; then
18760           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18761 $as_echo "not found" >&6; }
18762           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18763         fi
18764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18765 $as_echo "$tool_specified" >&6; }
18766       fi
18767     fi
18768   fi
18769 
18770 
18771 
18772   if test "x$COMM" = x; then
18773     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18774   fi
18775 
18776 
18777   fi
18778 
18779   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18780 
18781 
18782 
18783   # Publish this variable in the help.
18784 
18785 
18786   if test "x$DSYMUTIL" = x; then
18787     # The variable is not set by user, try to locate tool using the code snippet
18788     for ac_prog in dsymutil
18789 do
18790   # Extract the first word of "$ac_prog", so it can be a program name with args.
18791 set dummy $ac_prog; ac_word=$2
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18793 $as_echo_n "checking for $ac_word... " >&6; }
18794 if ${ac_cv_path_DSYMUTIL+:} false; then :
18795   $as_echo_n "(cached) " >&6
18796 else
18797   case $DSYMUTIL in
18798   [\\/]* | ?:[\\/]*)
18799   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18800   ;;
18801   *)
18802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18803 for as_dir in $PATH
18804 do
18805   IFS=$as_save_IFS
18806   test -z "$as_dir" && as_dir=.
18807     for ac_exec_ext in '' $ac_executable_extensions; do
18808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18809     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18811     break 2
18812   fi
18813 done
18814   done
18815 IFS=$as_save_IFS
18816 
18817   ;;
18818 esac
18819 fi
18820 DSYMUTIL=$ac_cv_path_DSYMUTIL
18821 if test -n "$DSYMUTIL"; then
18822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18823 $as_echo "$DSYMUTIL" >&6; }
18824 else
18825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 $as_echo "no" >&6; }
18827 fi
18828 
18829 
18830   test -n "$DSYMUTIL" && break
18831 done
18832 
18833   else
18834     # The variable is set, but is it from the command line or the environment?
18835 
18836     # Try to remove the string !DSYMUTIL! from our list.
18837     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18838     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18839       # If it failed, the variable was not from the command line. Ignore it,
18840       # but warn the user (except for BASH, which is always set by the calling BASH).
18841       if test "xDSYMUTIL" != xBASH; then
18842         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18843 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18844       fi
18845       # Try to locate tool using the code snippet
18846       for ac_prog in dsymutil
18847 do
18848   # Extract the first word of "$ac_prog", so it can be a program name with args.
18849 set dummy $ac_prog; ac_word=$2
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18851 $as_echo_n "checking for $ac_word... " >&6; }
18852 if ${ac_cv_path_DSYMUTIL+:} false; then :
18853   $as_echo_n "(cached) " >&6
18854 else
18855   case $DSYMUTIL in
18856   [\\/]* | ?:[\\/]*)
18857   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18858   ;;
18859   *)
18860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18861 for as_dir in $PATH
18862 do
18863   IFS=$as_save_IFS
18864   test -z "$as_dir" && as_dir=.
18865     for ac_exec_ext in '' $ac_executable_extensions; do
18866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18867     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18869     break 2
18870   fi
18871 done
18872   done
18873 IFS=$as_save_IFS
18874 
18875   ;;
18876 esac
18877 fi
18878 DSYMUTIL=$ac_cv_path_DSYMUTIL
18879 if test -n "$DSYMUTIL"; then
18880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18881 $as_echo "$DSYMUTIL" >&6; }
18882 else
18883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884 $as_echo "no" >&6; }
18885 fi
18886 
18887 
18888   test -n "$DSYMUTIL" && break
18889 done
18890 
18891     else
18892       # If it succeeded, then it was overridden by the user. We will use it
18893       # for the tool.
18894 
18895       # First remove it from the list of overridden variables, so we can test
18896       # for unknown variables in the end.
18897       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18898 
18899       # Check if the provided tool contains a complete path.
18900       tool_specified="$DSYMUTIL"
18901       tool_basename="${tool_specified##*/}"
18902       if test "x$tool_basename" = "x$tool_specified"; then
18903         # A command without a complete path is provided, search $PATH.
18904         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18905 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18906         # Extract the first word of "$tool_basename", so it can be a program name with args.
18907 set dummy $tool_basename; ac_word=$2
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18909 $as_echo_n "checking for $ac_word... " >&6; }
18910 if ${ac_cv_path_DSYMUTIL+:} false; then :
18911   $as_echo_n "(cached) " >&6
18912 else
18913   case $DSYMUTIL in
18914   [\\/]* | ?:[\\/]*)
18915   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18916   ;;
18917   *)
18918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919 for as_dir in $PATH
18920 do
18921   IFS=$as_save_IFS
18922   test -z "$as_dir" && as_dir=.
18923     for ac_exec_ext in '' $ac_executable_extensions; do
18924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18925     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18927     break 2
18928   fi
18929 done
18930   done
18931 IFS=$as_save_IFS
18932 
18933   ;;
18934 esac
18935 fi
18936 DSYMUTIL=$ac_cv_path_DSYMUTIL
18937 if test -n "$DSYMUTIL"; then
18938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18939 $as_echo "$DSYMUTIL" >&6; }
18940 else
18941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18942 $as_echo "no" >&6; }
18943 fi
18944 
18945 
18946         if test "x$DSYMUTIL" = x; then
18947           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18948         fi
18949       else
18950         # Otherwise we believe it is a complete path. Use it as it is.
18951         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18952 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18954 $as_echo_n "checking for DSYMUTIL... " >&6; }
18955         if test ! -x "$tool_specified"; then
18956           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18957 $as_echo "not found" >&6; }
18958           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18959         fi
18960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18961 $as_echo "$tool_specified" >&6; }
18962       fi
18963     fi
18964   fi
18965 
18966 
18967 
18968   if test "x$DSYMUTIL" = x; then
18969     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18970   fi
18971 
18972 
18973 
18974 
18975 
18976   # Publish this variable in the help.
18977 
18978 
18979   if test "x$XATTR" = x; then
18980     # The variable is not set by user, try to locate tool using the code snippet
18981     for ac_prog in xattr
18982 do
18983   # Extract the first word of "$ac_prog", so it can be a program name with args.
18984 set dummy $ac_prog; ac_word=$2
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18986 $as_echo_n "checking for $ac_word... " >&6; }
18987 if ${ac_cv_path_XATTR+:} false; then :
18988   $as_echo_n "(cached) " >&6
18989 else
18990   case $XATTR in
18991   [\\/]* | ?:[\\/]*)
18992   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18993   ;;
18994   *)
18995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18996 for as_dir in $PATH
18997 do
18998   IFS=$as_save_IFS
18999   test -z "$as_dir" && as_dir=.
19000     for ac_exec_ext in '' $ac_executable_extensions; do
19001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19002     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19004     break 2
19005   fi
19006 done
19007   done
19008 IFS=$as_save_IFS
19009 
19010   ;;
19011 esac
19012 fi
19013 XATTR=$ac_cv_path_XATTR
19014 if test -n "$XATTR"; then
19015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19016 $as_echo "$XATTR" >&6; }
19017 else
19018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19019 $as_echo "no" >&6; }
19020 fi
19021 
19022 
19023   test -n "$XATTR" && break
19024 done
19025 
19026   else
19027     # The variable is set, but is it from the command line or the environment?
19028 
19029     # Try to remove the string !XATTR! from our list.
19030     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19031     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19032       # If it failed, the variable was not from the command line. Ignore it,
19033       # but warn the user (except for BASH, which is always set by the calling BASH).
19034       if test "xXATTR" != xBASH; then
19035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19036 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19037       fi
19038       # Try to locate tool using the code snippet
19039       for ac_prog in xattr
19040 do
19041   # Extract the first word of "$ac_prog", so it can be a program name with args.
19042 set dummy $ac_prog; ac_word=$2
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19044 $as_echo_n "checking for $ac_word... " >&6; }
19045 if ${ac_cv_path_XATTR+:} false; then :
19046   $as_echo_n "(cached) " >&6
19047 else
19048   case $XATTR in
19049   [\\/]* | ?:[\\/]*)
19050   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19051   ;;
19052   *)
19053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054 for as_dir in $PATH
19055 do
19056   IFS=$as_save_IFS
19057   test -z "$as_dir" && as_dir=.
19058     for ac_exec_ext in '' $ac_executable_extensions; do
19059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19060     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19062     break 2
19063   fi
19064 done
19065   done
19066 IFS=$as_save_IFS
19067 
19068   ;;
19069 esac
19070 fi
19071 XATTR=$ac_cv_path_XATTR
19072 if test -n "$XATTR"; then
19073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19074 $as_echo "$XATTR" >&6; }
19075 else
19076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077 $as_echo "no" >&6; }
19078 fi
19079 
19080 
19081   test -n "$XATTR" && break
19082 done
19083 
19084     else
19085       # If it succeeded, then it was overridden by the user. We will use it
19086       # for the tool.
19087 
19088       # First remove it from the list of overridden variables, so we can test
19089       # for unknown variables in the end.
19090       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19091 
19092       # Check if the provided tool contains a complete path.
19093       tool_specified="$XATTR"
19094       tool_basename="${tool_specified##*/}"
19095       if test "x$tool_basename" = "x$tool_specified"; then
19096         # A command without a complete path is provided, search $PATH.
19097         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19098 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19099         # Extract the first word of "$tool_basename", so it can be a program name with args.
19100 set dummy $tool_basename; ac_word=$2
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19102 $as_echo_n "checking for $ac_word... " >&6; }
19103 if ${ac_cv_path_XATTR+:} false; then :
19104   $as_echo_n "(cached) " >&6
19105 else
19106   case $XATTR in
19107   [\\/]* | ?:[\\/]*)
19108   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19109   ;;
19110   *)
19111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19112 for as_dir in $PATH
19113 do
19114   IFS=$as_save_IFS
19115   test -z "$as_dir" && as_dir=.
19116     for ac_exec_ext in '' $ac_executable_extensions; do
19117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19118     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19120     break 2
19121   fi
19122 done
19123   done
19124 IFS=$as_save_IFS
19125 
19126   ;;
19127 esac
19128 fi
19129 XATTR=$ac_cv_path_XATTR
19130 if test -n "$XATTR"; then
19131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19132 $as_echo "$XATTR" >&6; }
19133 else
19134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19135 $as_echo "no" >&6; }
19136 fi
19137 
19138 
19139         if test "x$XATTR" = x; then
19140           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19141         fi
19142       else
19143         # Otherwise we believe it is a complete path. Use it as it is.
19144         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19145 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19147 $as_echo_n "checking for XATTR... " >&6; }
19148         if test ! -x "$tool_specified"; then
19149           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19150 $as_echo "not found" >&6; }
19151           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19152         fi
19153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19154 $as_echo "$tool_specified" >&6; }
19155       fi
19156     fi
19157   fi
19158 
19159 
19160 
19161   if test "x$XATTR" = x; then
19162     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19163   fi
19164 
19165 
19166 
19167 
19168   # Publish this variable in the help.
19169 
19170 
19171   if test "x$CODESIGN" = x; then
19172     # The variable is not set by user, try to locate tool using the code snippet
19173     for ac_prog in codesign
19174 do
19175   # Extract the first word of "$ac_prog", so it can be a program name with args.
19176 set dummy $ac_prog; ac_word=$2
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19178 $as_echo_n "checking for $ac_word... " >&6; }
19179 if ${ac_cv_path_CODESIGN+:} false; then :
19180   $as_echo_n "(cached) " >&6
19181 else
19182   case $CODESIGN in
19183   [\\/]* | ?:[\\/]*)
19184   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19185   ;;
19186   *)
19187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188 for as_dir in $PATH
19189 do
19190   IFS=$as_save_IFS
19191   test -z "$as_dir" && as_dir=.
19192     for ac_exec_ext in '' $ac_executable_extensions; do
19193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19194     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19196     break 2
19197   fi
19198 done
19199   done
19200 IFS=$as_save_IFS
19201 
19202   ;;
19203 esac
19204 fi
19205 CODESIGN=$ac_cv_path_CODESIGN
19206 if test -n "$CODESIGN"; then
19207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19208 $as_echo "$CODESIGN" >&6; }
19209 else
19210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211 $as_echo "no" >&6; }
19212 fi
19213 
19214 
19215   test -n "$CODESIGN" && break
19216 done
19217 
19218   else
19219     # The variable is set, but is it from the command line or the environment?
19220 
19221     # Try to remove the string !CODESIGN! from our list.
19222     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19223     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19224       # If it failed, the variable was not from the command line. Ignore it,
19225       # but warn the user (except for BASH, which is always set by the calling BASH).
19226       if test "xCODESIGN" != xBASH; then
19227         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19228 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19229       fi
19230       # Try to locate tool using the code snippet
19231       for ac_prog in codesign
19232 do
19233   # Extract the first word of "$ac_prog", so it can be a program name with args.
19234 set dummy $ac_prog; ac_word=$2
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19236 $as_echo_n "checking for $ac_word... " >&6; }
19237 if ${ac_cv_path_CODESIGN+:} false; then :
19238   $as_echo_n "(cached) " >&6
19239 else
19240   case $CODESIGN in
19241   [\\/]* | ?:[\\/]*)
19242   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19243   ;;
19244   *)
19245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19246 for as_dir in $PATH
19247 do
19248   IFS=$as_save_IFS
19249   test -z "$as_dir" && as_dir=.
19250     for ac_exec_ext in '' $ac_executable_extensions; do
19251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19252     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19254     break 2
19255   fi
19256 done
19257   done
19258 IFS=$as_save_IFS
19259 
19260   ;;
19261 esac
19262 fi
19263 CODESIGN=$ac_cv_path_CODESIGN
19264 if test -n "$CODESIGN"; then
19265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19266 $as_echo "$CODESIGN" >&6; }
19267 else
19268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19269 $as_echo "no" >&6; }
19270 fi
19271 
19272 
19273   test -n "$CODESIGN" && break
19274 done
19275 
19276     else
19277       # If it succeeded, then it was overridden by the user. We will use it
19278       # for the tool.
19279 
19280       # First remove it from the list of overridden variables, so we can test
19281       # for unknown variables in the end.
19282       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19283 
19284       # Check if the provided tool contains a complete path.
19285       tool_specified="$CODESIGN"
19286       tool_basename="${tool_specified##*/}"
19287       if test "x$tool_basename" = "x$tool_specified"; then
19288         # A command without a complete path is provided, search $PATH.
19289         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19290 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19291         # Extract the first word of "$tool_basename", so it can be a program name with args.
19292 set dummy $tool_basename; ac_word=$2
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19294 $as_echo_n "checking for $ac_word... " >&6; }
19295 if ${ac_cv_path_CODESIGN+:} false; then :
19296   $as_echo_n "(cached) " >&6
19297 else
19298   case $CODESIGN in
19299   [\\/]* | ?:[\\/]*)
19300   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19301   ;;
19302   *)
19303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19304 for as_dir in $PATH
19305 do
19306   IFS=$as_save_IFS
19307   test -z "$as_dir" && as_dir=.
19308     for ac_exec_ext in '' $ac_executable_extensions; do
19309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19310     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19312     break 2
19313   fi
19314 done
19315   done
19316 IFS=$as_save_IFS
19317 
19318   ;;
19319 esac
19320 fi
19321 CODESIGN=$ac_cv_path_CODESIGN
19322 if test -n "$CODESIGN"; then
19323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19324 $as_echo "$CODESIGN" >&6; }
19325 else
19326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327 $as_echo "no" >&6; }
19328 fi
19329 
19330 
19331         if test "x$CODESIGN" = x; then
19332           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19333         fi
19334       else
19335         # Otherwise we believe it is a complete path. Use it as it is.
19336         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19337 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19339 $as_echo_n "checking for CODESIGN... " >&6; }
19340         if test ! -x "$tool_specified"; then
19341           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19342 $as_echo "not found" >&6; }
19343           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19344         fi
19345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19346 $as_echo "$tool_specified" >&6; }
19347       fi
19348     fi
19349   fi
19350 
19351 
19352     if test "x$CODESIGN" != "x"; then
19353       # Verify that the openjdk_codesign certificate is present
19354       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19355 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19356       rm -f codesign-testfile
19357       touch codesign-testfile
19358       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19359       rm -f codesign-testfile
19360       if test "x$CODESIGN" = x; then
19361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19362 $as_echo "no" >&6; }
19363       else
19364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19365 $as_echo "yes" >&6; }
19366       fi
19367     fi
19368   fi
19369 
19370 
19371 # Check if pkg-config is available.
19372 
19373 
19374 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19375         if test -n "$ac_tool_prefix"; then
19376   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19377 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19379 $as_echo_n "checking for $ac_word... " >&6; }
19380 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19381   $as_echo_n "(cached) " >&6
19382 else
19383   case $PKG_CONFIG in
19384   [\\/]* | ?:[\\/]*)
19385   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19386   ;;
19387   *)
19388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19389 for as_dir in $PATH
19390 do
19391   IFS=$as_save_IFS
19392   test -z "$as_dir" && as_dir=.
19393     for ac_exec_ext in '' $ac_executable_extensions; do
19394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19395     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19397     break 2
19398   fi
19399 done
19400   done
19401 IFS=$as_save_IFS
19402 
19403   ;;
19404 esac
19405 fi
19406 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19407 if test -n "$PKG_CONFIG"; then
19408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19409 $as_echo "$PKG_CONFIG" >&6; }
19410 else
19411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19412 $as_echo "no" >&6; }
19413 fi
19414 
19415 
19416 fi
19417 if test -z "$ac_cv_path_PKG_CONFIG"; then
19418   ac_pt_PKG_CONFIG=$PKG_CONFIG
19419   # Extract the first word of "pkg-config", so it can be a program name with args.
19420 set dummy pkg-config; ac_word=$2
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19422 $as_echo_n "checking for $ac_word... " >&6; }
19423 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19424   $as_echo_n "(cached) " >&6
19425 else
19426   case $ac_pt_PKG_CONFIG in
19427   [\\/]* | ?:[\\/]*)
19428   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19429   ;;
19430   *)
19431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19432 for as_dir in $PATH
19433 do
19434   IFS=$as_save_IFS
19435   test -z "$as_dir" && as_dir=.
19436     for ac_exec_ext in '' $ac_executable_extensions; do
19437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19438     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19440     break 2
19441   fi
19442 done
19443   done
19444 IFS=$as_save_IFS
19445 
19446   ;;
19447 esac
19448 fi
19449 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19450 if test -n "$ac_pt_PKG_CONFIG"; then
19451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19452 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19453 else
19454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19455 $as_echo "no" >&6; }
19456 fi
19457 
19458   if test "x$ac_pt_PKG_CONFIG" = x; then
19459     PKG_CONFIG=""
19460   else
19461     case $cross_compiling:$ac_tool_warned in
19462 yes:)
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19465 ac_tool_warned=yes ;;
19466 esac
19467     PKG_CONFIG=$ac_pt_PKG_CONFIG
19468   fi
19469 else
19470   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19471 fi
19472 
19473 fi
19474 if test -n "$PKG_CONFIG"; then
19475         _pkg_min_version=0.9.0
19476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19477 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19478         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19479                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19480 $as_echo "yes" >&6; }
19481         else
19482                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19483 $as_echo "no" >&6; }
19484                 PKG_CONFIG=""
19485         fi
19486 
19487 fi
19488 
19489 # After basic tools have been setup, we can check build os specific details.
19490 
19491   ###############################################################################
19492 
19493   # Note that this is the build platform OS version!
19494 
19495   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19496   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19497   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19498   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19499 
19500 
19501 
19502 
19503 
19504 # Setup builddeps, for automatic downloading of tools we need.
19505 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19506 # boot-jdk setup, but we need to have basic tools setup first.
19507 
19508 
19509 # Check whether --with-builddeps-conf was given.
19510 if test "${with_builddeps_conf+set}" = set; then :
19511   withval=$with_builddeps_conf;
19512 fi
19513 
19514 
19515 
19516 # Check whether --with-builddeps-server was given.
19517 if test "${with_builddeps_server+set}" = set; then :
19518   withval=$with_builddeps_server;
19519 fi
19520 
19521 
19522 
19523 # Check whether --with-builddeps-dir was given.
19524 if test "${with_builddeps_dir+set}" = set; then :
19525   withval=$with_builddeps_dir;
19526 else
19527   with_builddeps_dir=/localhome/builddeps
19528 fi
19529 
19530 
19531 
19532 # Check whether --with-builddeps-group was given.
19533 if test "${with_builddeps_group+set}" = set; then :
19534   withval=$with_builddeps_group;
19535 fi
19536 
19537 
19538 
19539 
19540   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19541     if test "x$with_builddeps_conf" != x; then
19542       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19543 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19544       builddepsfile=$with_builddeps_conf
19545       if test -s $builddepsfile; then
19546         . $builddepsfile
19547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19548 $as_echo "loaded!" >&6; }
19549       else
19550         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19551       fi
19552     else
19553       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19554 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19555       builddepsfile=`mktemp`
19556       touch $builddepsfile
19557       # Put all found confs into a single file.
19558       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19559       # Source the file to acquire the variables
19560       if test -s $builddepsfile; then
19561         . $builddepsfile
19562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19563 $as_echo "found at least one!" >&6; }
19564       else
19565         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19566       fi
19567     fi
19568     # Create build and target names that use _ instead of "-" and ".".
19569     # This is necessary to use them in variable names.
19570     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19571     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19572     # Extract rewrite information for build and target
19573     eval rewritten_build=\${REWRITE_${build_var}}
19574     if test "x$rewritten_build" = x; then
19575       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19576       echo Build stays the same $rewritten_build
19577     else
19578       echo Rewriting build for builddeps into $rewritten_build
19579     fi
19580     eval rewritten_target=\${REWRITE_${target_var}}
19581     if test "x$rewritten_target" = x; then
19582       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19583       echo Target stays the same $rewritten_target
19584     else
19585       echo Rewriting target for builddeps into $rewritten_target
19586     fi
19587     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19588     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19589   fi
19590   for ac_prog in 7z unzip
19591 do
19592   # Extract the first word of "$ac_prog", so it can be a program name with args.
19593 set dummy $ac_prog; ac_word=$2
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19595 $as_echo_n "checking for $ac_word... " >&6; }
19596 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19597   $as_echo_n "(cached) " >&6
19598 else
19599   if test -n "$BDEPS_UNZIP"; then
19600   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19601 else
19602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19603 for as_dir in $PATH
19604 do
19605   IFS=$as_save_IFS
19606   test -z "$as_dir" && as_dir=.
19607     for ac_exec_ext in '' $ac_executable_extensions; do
19608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19609     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19611     break 2
19612   fi
19613 done
19614   done
19615 IFS=$as_save_IFS
19616 
19617 fi
19618 fi
19619 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19620 if test -n "$BDEPS_UNZIP"; then
19621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19622 $as_echo "$BDEPS_UNZIP" >&6; }
19623 else
19624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19625 $as_echo "no" >&6; }
19626 fi
19627 
19628 
19629   test -n "$BDEPS_UNZIP" && break
19630 done
19631 
19632   if test "x$BDEPS_UNZIP" = x7z; then
19633     BDEPS_UNZIP="7z x"
19634   fi
19635 
19636   for ac_prog in wget lftp ftp
19637 do
19638   # Extract the first word of "$ac_prog", so it can be a program name with args.
19639 set dummy $ac_prog; ac_word=$2
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19641 $as_echo_n "checking for $ac_word... " >&6; }
19642 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19643   $as_echo_n "(cached) " >&6
19644 else
19645   if test -n "$BDEPS_FTP"; then
19646   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19647 else
19648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649 for as_dir in $PATH
19650 do
19651   IFS=$as_save_IFS
19652   test -z "$as_dir" && as_dir=.
19653     for ac_exec_ext in '' $ac_executable_extensions; do
19654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19655     ac_cv_prog_BDEPS_FTP="$ac_prog"
19656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19657     break 2
19658   fi
19659 done
19660   done
19661 IFS=$as_save_IFS
19662 
19663 fi
19664 fi
19665 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19666 if test -n "$BDEPS_FTP"; then
19667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19668 $as_echo "$BDEPS_FTP" >&6; }
19669 else
19670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19671 $as_echo "no" >&6; }
19672 fi
19673 
19674 
19675   test -n "$BDEPS_FTP" && break
19676 done
19677 
19678 
19679 
19680 ###############################################################################
19681 #
19682 # Determine OpenJDK variants, options and version numbers.
19683 #
19684 ###############################################################################
19685 
19686 # We need build & target for this.
19687 
19688 
19689   ###############################################################################
19690   #
19691   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19692   # We always build headless support.
19693   #
19694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19695 $as_echo_n "checking headful support... " >&6; }
19696   # Check whether --enable-headful was given.
19697 if test "${enable_headful+set}" = set; then :
19698   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19699 else
19700   SUPPORT_HEADFUL=yes
19701 fi
19702 
19703 
19704   SUPPORT_HEADLESS=yes
19705   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19706 
19707   if test "x$SUPPORT_HEADFUL" = xyes; then
19708     # We are building both headful and headless.
19709     headful_msg="include support for both headful and headless"
19710   fi
19711 
19712   if test "x$SUPPORT_HEADFUL" = xno; then
19713     # Thus we are building headless only.
19714     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19715     headful_msg="headless only"
19716   fi
19717 
19718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19719 $as_echo "$headful_msg" >&6; }
19720 
19721 
19722 
19723 
19724 
19725   # Control wether Hotspot runs Queens test after build.
19726   # Check whether --enable-hotspot-test-in-build was given.
19727 if test "${enable_hotspot_test_in_build+set}" = set; then :
19728   enableval=$enable_hotspot_test_in_build;
19729 else
19730   enable_hotspot_test_in_build=no
19731 fi
19732 
19733   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19734     TEST_IN_BUILD=true
19735   else
19736     TEST_IN_BUILD=false
19737   fi
19738 
19739 
19740   ###############################################################################
19741   #
19742   # Choose cacerts source file
19743   #
19744 
19745 # Check whether --with-cacerts-file was given.
19746 if test "${with_cacerts_file+set}" = set; then :
19747   withval=$with_cacerts_file;
19748 fi
19749 
19750   if test "x$with_cacerts_file" != x; then
19751     CACERTS_FILE=$with_cacerts_file
19752   else
19753     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19754   fi
19755 
19756 
19757   ###############################################################################
19758   #
19759   # Enable or disable unlimited crypto
19760   #
19761   # Check whether --enable-unlimited-crypto was given.
19762 if test "${enable_unlimited_crypto+set}" = set; then :
19763   enableval=$enable_unlimited_crypto;
19764 else
19765   enable_unlimited_crypto=no
19766 fi
19767 
19768   if test "x$enable_unlimited_crypto" = "xyes"; then
19769     UNLIMITED_CRYPTO=true
19770   else
19771     UNLIMITED_CRYPTO=false
19772   fi
19773 
19774 
19775   ###############################################################################
19776   #
19777   # Enable or disable the elliptic curve crypto implementation
19778   #
19779 
19780 
19781   ###############################################################################
19782   #
19783   # Compress jars
19784   #
19785   COMPRESS_JARS=false
19786 
19787 
19788 
19789 
19790   # Source the version numbers
19791   . $AUTOCONF_DIR/version-numbers
19792 
19793   # Get the settings from parameters
19794 
19795 # Check whether --with-milestone was given.
19796 if test "${with_milestone+set}" = set; then :
19797   withval=$with_milestone;
19798 fi
19799 
19800   if test "x$with_milestone" = xyes; then
19801     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19802   elif test "x$with_milestone" != x; then
19803     MILESTONE="$with_milestone"
19804   fi
19805   if test "x$MILESTONE" = x; then
19806     MILESTONE=internal
19807   fi
19808 
19809 
19810 # Check whether --with-update-version was given.
19811 if test "${with_update_version+set}" = set; then :
19812   withval=$with_update_version;
19813 fi
19814 
19815   if test "x$with_update_version" = xyes; then
19816     as_fn_error $? "Update version must have a value" "$LINENO" 5
19817   elif test "x$with_update_version" != x; then
19818     JDK_UPDATE_VERSION="$with_update_version"
19819     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19820     # to a bug in expr (which reduces it to just X). To work around this, we
19821     # always add a 0 to one digit update versions.
19822     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19823       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19824     fi
19825   fi
19826 
19827 
19828 # Check whether --with-user-release-suffix was given.
19829 if test "${with_user_release_suffix+set}" = set; then :
19830   withval=$with_user_release_suffix;
19831 fi
19832 
19833   if test "x$with_user_release_suffix" = xyes; then
19834     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19835   elif test "x$with_user_release_suffix" != x; then
19836     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19837   fi
19838 
19839 
19840 # Check whether --with-build-number was given.
19841 if test "${with_build_number+set}" = set; then :
19842   withval=$with_build_number;
19843 fi
19844 
19845   if test "x$with_build_number" = xyes; then
19846     as_fn_error $? "Build number must have a value" "$LINENO" 5
19847   elif test "x$with_build_number" != x; then
19848     JDK_BUILD_NUMBER="$with_build_number"
19849   fi
19850   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19851   if test "x$JDK_BUILD_NUMBER" = x; then
19852     JDK_BUILD_NUMBER=b00
19853     if test "x$USER_RELEASE_SUFFIX" = x; then
19854       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19855       # Avoid [:alnum:] since it depends on the locale.
19856       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19857       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19858     fi
19859   fi
19860 
19861   # Now set the JDK version, milestone, build number etc.
19862 
19863 
19864 
19865 
19866 
19867 
19868 
19869 
19870 
19871 
19872 
19873 
19874 
19875 
19876   # The vendor name, if any
19877 
19878 # Check whether --with-vendor-name was given.
19879 if test "${with_vendor_name+set}" = set; then :
19880   withval=$with_vendor_name;
19881 fi
19882 
19883   if test "x$with_vendor_name" = xyes; then
19884     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
19885   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
19886     as_fn_error $? "--with--vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
19887   else
19888     COMPANY_NAME="$with_vendor_name"
19889   fi
19890 
19891 
19892 
19893 # Check whether --with-copyright-year was given.
19894 if test "${with_copyright_year+set}" = set; then :
19895   withval=$with_copyright_year;
19896 fi
19897 
19898   if test "x$with_copyright_year" = xyes; then
19899     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
19900   elif test "x$with_copyright_year" != x; then
19901     COPYRIGHT_YEAR="$with_copyright_year"
19902   else
19903     COPYRIGHT_YEAR=`date +'%Y'`
19904   fi
19905 
19906 
19907   if test "x$JDK_UPDATE_VERSION" != x; then
19908     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19909   else
19910     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19911   fi
19912 
19913 
19914   # The cooked update version used to encode trailing letters in the update
19915   # version into a trailing number. That is no longer needed, but need to
19916   # keep the format in 8u for compatibility.
19917   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
19918 
19919 
19920   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19921 
19922 
19923 
19924 ###############################################################################
19925 #
19926 # Setup BootJDK, used to bootstrap the build.
19927 #
19928 ###############################################################################
19929 
19930 
19931   BOOT_JDK_FOUND=no
19932 
19933 # Check whether --with-boot-jdk was given.
19934 if test "${with_boot_jdk+set}" = set; then :
19935   withval=$with_boot_jdk;
19936 fi
19937 
19938 
19939   # We look for the Boot JDK through various means, going from more certain to
19940   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19941   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19942   # must check if this is indeed valid; otherwise we'll continue looking.
19943 
19944   # Test: Is bootjdk explicitely set by command line arguments?
19945 
19946   if test "x$BOOT_JDK_FOUND" = xno; then
19947     # Now execute the test
19948 
19949   if test "x$with_boot_jdk" != x; then
19950     BOOT_JDK=$with_boot_jdk
19951     BOOT_JDK_FOUND=maybe
19952     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19953 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19954   fi
19955 
19956 
19957     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19958     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19959       # Do we have a bin/java?
19960       if test ! -x "$BOOT_JDK/bin/java"; then
19961         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19962 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19963         BOOT_JDK_FOUND=no
19964       else
19965         # Do we have a bin/javac?
19966         if test ! -x "$BOOT_JDK/bin/javac"; then
19967           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19968 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19969           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19970 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19971           BOOT_JDK_FOUND=no
19972         else
19973           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19974           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19975             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19976 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19977             BOOT_JDK_FOUND=no
19978           else
19979             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19980             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19981 
19982             # Extra M4 quote needed to protect [] in grep expression.
19983             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
19984             if test "x$FOUND_VERSION_78" = x; then
19985               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19986 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19987               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
19988 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
19989               BOOT_JDK_FOUND=no
19990             else
19991               # We're done! :-)
19992               BOOT_JDK_FOUND=yes
19993 
19994   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19995 
19996   # Input might be given as Windows format, start by converting to
19997   # unix format.
19998   path="$BOOT_JDK"
19999   new_path=`$CYGPATH -u "$path"`
20000 
20001   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20002   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20003   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20004   # "foo.exe" is OK but "foo" is an error.
20005   #
20006   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20007   # It is also a way to make sure we got the proper file name for the real test later on.
20008   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20009   if test "x$test_shortpath" = x; then
20010     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20011 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20012     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20013   fi
20014 
20015   # Call helper function which possibly converts this using DOS-style short mode.
20016   # If so, the updated path is stored in $new_path.
20017 
20018   input_path="$new_path"
20019   # Check if we need to convert this using DOS-style short mode. If the path
20020   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20021   # take no chances and rewrite it.
20022   # Note: m4 eats our [], so we need to use [ and ] instead.
20023   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20024   if test "x$has_forbidden_chars" != x; then
20025     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20026     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20027     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20028     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20029       # Going to short mode and back again did indeed matter. Since short mode is
20030       # case insensitive, let's make it lowercase to improve readability.
20031       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20032       # Now convert it back to Unix-style (cygpath)
20033       input_path=`$CYGPATH -u "$shortmode_path"`
20034       new_path="$input_path"
20035     fi
20036   fi
20037 
20038   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20039   if test "x$test_cygdrive_prefix" = x; then
20040     # As a simple fix, exclude /usr/bin since it's not a real path.
20041     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20042       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20043       # a path prefixed by /cygdrive for fixpath to work.
20044       new_path="$CYGWIN_ROOT_PATH$input_path"
20045     fi
20046   fi
20047 
20048 
20049   if test "x$path" != "x$new_path"; then
20050     BOOT_JDK="$new_path"
20051     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20052 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20053   fi
20054 
20055   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20056 
20057   path="$BOOT_JDK"
20058   has_colon=`$ECHO $path | $GREP ^.:`
20059   new_path="$path"
20060   if test "x$has_colon" = x; then
20061     # Not in mixed or Windows style, start by that.
20062     new_path=`cmd //c echo $path`
20063   fi
20064 
20065 
20066   input_path="$new_path"
20067   # Check if we need to convert this using DOS-style short mode. If the path
20068   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20069   # take no chances and rewrite it.
20070   # Note: m4 eats our [], so we need to use [ and ] instead.
20071   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20072   if test "x$has_forbidden_chars" != x; then
20073     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20074     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20075   fi
20076 
20077 
20078   windows_path="$new_path"
20079   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20080     unix_path=`$CYGPATH -u "$windows_path"`
20081     new_path="$unix_path"
20082   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20083     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20084     new_path="$unix_path"
20085   fi
20086 
20087   if test "x$path" != "x$new_path"; then
20088     BOOT_JDK="$new_path"
20089     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20090 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20091   fi
20092 
20093   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20094   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20095 
20096   else
20097     # We're on a posix platform. Hooray! :)
20098     path="$BOOT_JDK"
20099     has_space=`$ECHO "$path" | $GREP " "`
20100     if test "x$has_space" != x; then
20101       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20102 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20103       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20104     fi
20105 
20106     # Use eval to expand a potential ~
20107     eval path="$path"
20108     if test ! -f "$path" && test ! -d "$path"; then
20109       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20110     fi
20111 
20112     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20113   fi
20114 
20115               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20116 $as_echo_n "checking for Boot JDK... " >&6; }
20117               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20118 $as_echo "$BOOT_JDK" >&6; }
20119               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20120 $as_echo_n "checking Boot JDK version... " >&6; }
20121               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20122               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20123 $as_echo "$BOOT_JDK_VERSION" >&6; }
20124             fi # end check jdk version
20125           fi # end check rt.jar
20126         fi # end check javac
20127       fi # end check java
20128     fi # end check boot jdk found
20129   fi
20130 
20131   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20132     # Having specified an argument which is incorrect will produce an instant failure;
20133     # we should not go on looking
20134     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20135   fi
20136 
20137   # Test: Is bootjdk available from builddeps?
20138 
20139   if test "x$BOOT_JDK_FOUND" = xno; then
20140     # Now execute the test
20141 
20142 
20143 
20144   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20145     # Source the builddeps file again, to make sure it uses the latest variables!
20146     . $builddepsfile
20147     # Look for a target and build machine specific resource!
20148     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20149     if test "x$resource" = x; then
20150       # Ok, lets instead look for a target specific resource
20151       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20152     fi
20153     if test "x$resource" = x; then
20154       # Ok, lets instead look for a build specific resource
20155       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20156     fi
20157     if test "x$resource" = x; then
20158       # Ok, lets instead look for a generic resource
20159       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20160       resource=${builddep_bootjdk}
20161     fi
20162     if test "x$resource" != x; then
20163       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20164 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20165       # If the resource in the builddeps.conf file is an existing directory,
20166       # for example /java/linux/cups
20167       if test -d ${resource}; then
20168         depdir=${resource}
20169       else
20170 
20171   # bootjdk is for example mymodule
20172   # $resource is for example libs/general/libmymod_1_2_3.zip
20173   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20174   # $with_builddeps_dir is for example /localhome/builddeps
20175   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20176   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20177   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20178   filename=`basename $resource`
20179   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20180   filebase=${filename%%.*}
20181   extension=${filename#*.}
20182   installdir=$with_builddeps_dir/$filebase
20183   if test ! -f $installdir/$filename.unpacked; then
20184     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20185 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20186     if test ! -d $installdir; then
20187       mkdir -p $installdir
20188     fi
20189     if test ! -d $installdir; then
20190       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20191     fi
20192     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20193     touch $tmpfile
20194     if test ! -f $tmpfile; then
20195       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20196     fi
20197 
20198   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20199   # $tmpfile is the local file name for the downloaded file.
20200   VALID_TOOL=no
20201   if test "x$BDEPS_FTP" = xwget; then
20202     VALID_TOOL=yes
20203     wget -O $tmpfile $with_builddeps_server/$resource
20204   fi
20205   if test "x$BDEPS_FTP" = xlftp; then
20206     VALID_TOOL=yes
20207     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20208   fi
20209   if test "x$BDEPS_FTP" = xftp; then
20210     VALID_TOOL=yes
20211     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20212     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20213     FTPUSERPWD=${FTPSERVER%%@*}
20214     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20215       FTPUSER=${userpwd%%:*}
20216       FTPPWD=${userpwd#*@}
20217       FTPSERVER=${FTPSERVER#*@}
20218     else
20219       FTPUSER=ftp
20220       FTPPWD=ftp
20221     fi
20222     # the "pass" command does not work on some
20223     # ftp clients (read ftp.exe) but if it works,
20224     # passive mode is better!
20225     ( \
20226         echo "user $FTPUSER $FTPPWD"        ; \
20227         echo "pass"                         ; \
20228         echo "bin"                          ; \
20229         echo "get $FTPPATH $tmpfile"              ; \
20230     ) | ftp -in $FTPSERVER
20231   fi
20232   if test "x$VALID_TOOL" != xyes; then
20233     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20234   fi
20235 
20236     mv $tmpfile $installdir/$filename
20237     if test ! -s $installdir/$filename; then
20238       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20239     fi
20240     case "$extension" in
20241       zip)  echo "Unzipping $installdir/$filename..."
20242         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20243         ;;
20244       tar.gz) echo "Untaring $installdir/$filename..."
20245         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20246         ;;
20247       tgz) echo "Untaring $installdir/$filename..."
20248         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20249         ;;
20250       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20251         ;;
20252     esac
20253   fi
20254   if test -f $installdir/$filename.unpacked; then
20255     depdir=$installdir
20256   fi
20257 
20258       fi
20259       # Source the builddeps file again, because in the previous command, the depdir
20260       # was updated to point at the current build dependency install directory.
20261       . $builddepsfile
20262       # Now extract variables from the builddeps.conf files.
20263       theroot=${builddep_bootjdk_ROOT}
20264       thecflags=${builddep_bootjdk_CFLAGS}
20265       thelibs=${builddep_bootjdk_LIBS}
20266       if test "x$depdir" = x; then
20267         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20268       fi
20269       BOOT_JDK=$depdir
20270       if test "x$theroot" != x; then
20271         BOOT_JDK="$theroot"
20272       fi
20273       if test "x$thecflags" != x; then
20274         BOOT_JDK_CFLAGS="$thecflags"
20275       fi
20276       if test "x$thelibs" != x; then
20277         BOOT_JDK_LIBS="$thelibs"
20278       fi
20279       BOOT_JDK_FOUND=maybe
20280       else BOOT_JDK_FOUND=no
20281 
20282     fi
20283     else BOOT_JDK_FOUND=no
20284 
20285   fi
20286 
20287 
20288 
20289     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20290     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20291       # Do we have a bin/java?
20292       if test ! -x "$BOOT_JDK/bin/java"; then
20293         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20295         BOOT_JDK_FOUND=no
20296       else
20297         # Do we have a bin/javac?
20298         if test ! -x "$BOOT_JDK/bin/javac"; then
20299           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20301           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20302 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20303           BOOT_JDK_FOUND=no
20304         else
20305           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20306           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20307             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20309             BOOT_JDK_FOUND=no
20310           else
20311             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20312             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20313 
20314             # Extra M4 quote needed to protect [] in grep expression.
20315             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20316             if test "x$FOUND_VERSION_78" = x; then
20317               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20318 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20319               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20320 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20321               BOOT_JDK_FOUND=no
20322             else
20323               # We're done! :-)
20324               BOOT_JDK_FOUND=yes
20325 
20326   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20327 
20328   # Input might be given as Windows format, start by converting to
20329   # unix format.
20330   path="$BOOT_JDK"
20331   new_path=`$CYGPATH -u "$path"`
20332 
20333   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20334   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20335   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20336   # "foo.exe" is OK but "foo" is an error.
20337   #
20338   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20339   # It is also a way to make sure we got the proper file name for the real test later on.
20340   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20341   if test "x$test_shortpath" = x; then
20342     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20343 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20344     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20345   fi
20346 
20347   # Call helper function which possibly converts this using DOS-style short mode.
20348   # If so, the updated path is stored in $new_path.
20349 
20350   input_path="$new_path"
20351   # Check if we need to convert this using DOS-style short mode. If the path
20352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20353   # take no chances and rewrite it.
20354   # Note: m4 eats our [], so we need to use [ and ] instead.
20355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20356   if test "x$has_forbidden_chars" != x; then
20357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20358     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20359     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20360     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20361       # Going to short mode and back again did indeed matter. Since short mode is
20362       # case insensitive, let's make it lowercase to improve readability.
20363       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20364       # Now convert it back to Unix-style (cygpath)
20365       input_path=`$CYGPATH -u "$shortmode_path"`
20366       new_path="$input_path"
20367     fi
20368   fi
20369 
20370   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20371   if test "x$test_cygdrive_prefix" = x; then
20372     # As a simple fix, exclude /usr/bin since it's not a real path.
20373     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20374       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20375       # a path prefixed by /cygdrive for fixpath to work.
20376       new_path="$CYGWIN_ROOT_PATH$input_path"
20377     fi
20378   fi
20379 
20380 
20381   if test "x$path" != "x$new_path"; then
20382     BOOT_JDK="$new_path"
20383     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20385   fi
20386 
20387   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20388 
20389   path="$BOOT_JDK"
20390   has_colon=`$ECHO $path | $GREP ^.:`
20391   new_path="$path"
20392   if test "x$has_colon" = x; then
20393     # Not in mixed or Windows style, start by that.
20394     new_path=`cmd //c echo $path`
20395   fi
20396 
20397 
20398   input_path="$new_path"
20399   # Check if we need to convert this using DOS-style short mode. If the path
20400   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20401   # take no chances and rewrite it.
20402   # Note: m4 eats our [], so we need to use [ and ] instead.
20403   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20404   if test "x$has_forbidden_chars" != x; then
20405     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20406     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20407   fi
20408 
20409 
20410   windows_path="$new_path"
20411   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20412     unix_path=`$CYGPATH -u "$windows_path"`
20413     new_path="$unix_path"
20414   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20415     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20416     new_path="$unix_path"
20417   fi
20418 
20419   if test "x$path" != "x$new_path"; then
20420     BOOT_JDK="$new_path"
20421     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20422 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20423   fi
20424 
20425   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20426   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20427 
20428   else
20429     # We're on a posix platform. Hooray! :)
20430     path="$BOOT_JDK"
20431     has_space=`$ECHO "$path" | $GREP " "`
20432     if test "x$has_space" != x; then
20433       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20434 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20435       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20436     fi
20437 
20438     # Use eval to expand a potential ~
20439     eval path="$path"
20440     if test ! -f "$path" && test ! -d "$path"; then
20441       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20442     fi
20443 
20444     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20445   fi
20446 
20447               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20448 $as_echo_n "checking for Boot JDK... " >&6; }
20449               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20450 $as_echo "$BOOT_JDK" >&6; }
20451               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20452 $as_echo_n "checking Boot JDK version... " >&6; }
20453               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20454               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20455 $as_echo "$BOOT_JDK_VERSION" >&6; }
20456             fi # end check jdk version
20457           fi # end check rt.jar
20458         fi # end check javac
20459       fi # end check java
20460     fi # end check boot jdk found
20461   fi
20462 
20463 
20464   # Test: Is $JAVA_HOME set?
20465 
20466   if test "x$BOOT_JDK_FOUND" = xno; then
20467     # Now execute the test
20468 
20469   if test "x$JAVA_HOME" != x; then
20470     JAVA_HOME_PROCESSED="$JAVA_HOME"
20471 
20472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20473 
20474   # Input might be given as Windows format, start by converting to
20475   # unix format.
20476   path="$JAVA_HOME_PROCESSED"
20477   new_path=`$CYGPATH -u "$path"`
20478 
20479   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20480   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20481   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20482   # "foo.exe" is OK but "foo" is an error.
20483   #
20484   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20485   # It is also a way to make sure we got the proper file name for the real test later on.
20486   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20487   if test "x$test_shortpath" = x; then
20488     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20489 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20490     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20491   fi
20492 
20493   # Call helper function which possibly converts this using DOS-style short mode.
20494   # If so, the updated path is stored in $new_path.
20495 
20496   input_path="$new_path"
20497   # Check if we need to convert this using DOS-style short mode. If the path
20498   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20499   # take no chances and rewrite it.
20500   # Note: m4 eats our [], so we need to use [ and ] instead.
20501   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20502   if test "x$has_forbidden_chars" != x; then
20503     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20504     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20505     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20506     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20507       # Going to short mode and back again did indeed matter. Since short mode is
20508       # case insensitive, let's make it lowercase to improve readability.
20509       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20510       # Now convert it back to Unix-style (cygpath)
20511       input_path=`$CYGPATH -u "$shortmode_path"`
20512       new_path="$input_path"
20513     fi
20514   fi
20515 
20516   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20517   if test "x$test_cygdrive_prefix" = x; then
20518     # As a simple fix, exclude /usr/bin since it's not a real path.
20519     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20520       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20521       # a path prefixed by /cygdrive for fixpath to work.
20522       new_path="$CYGWIN_ROOT_PATH$input_path"
20523     fi
20524   fi
20525 
20526 
20527   if test "x$path" != "x$new_path"; then
20528     JAVA_HOME_PROCESSED="$new_path"
20529     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20530 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20531   fi
20532 
20533   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20534 
20535   path="$JAVA_HOME_PROCESSED"
20536   has_colon=`$ECHO $path | $GREP ^.:`
20537   new_path="$path"
20538   if test "x$has_colon" = x; then
20539     # Not in mixed or Windows style, start by that.
20540     new_path=`cmd //c echo $path`
20541   fi
20542 
20543 
20544   input_path="$new_path"
20545   # Check if we need to convert this using DOS-style short mode. If the path
20546   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20547   # take no chances and rewrite it.
20548   # Note: m4 eats our [], so we need to use [ and ] instead.
20549   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20550   if test "x$has_forbidden_chars" != x; then
20551     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20552     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20553   fi
20554 
20555 
20556   windows_path="$new_path"
20557   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20558     unix_path=`$CYGPATH -u "$windows_path"`
20559     new_path="$unix_path"
20560   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20561     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20562     new_path="$unix_path"
20563   fi
20564 
20565   if test "x$path" != "x$new_path"; then
20566     JAVA_HOME_PROCESSED="$new_path"
20567     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20568 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20569   fi
20570 
20571   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20572   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20573 
20574   else
20575     # We're on a posix platform. Hooray! :)
20576     path="$JAVA_HOME_PROCESSED"
20577     has_space=`$ECHO "$path" | $GREP " "`
20578     if test "x$has_space" != x; then
20579       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20580 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20581       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20582     fi
20583 
20584     # Use eval to expand a potential ~
20585     eval path="$path"
20586     if test ! -f "$path" && test ! -d "$path"; then
20587       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20588     fi
20589 
20590     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20591   fi
20592 
20593     if test ! -d "$JAVA_HOME_PROCESSED"; then
20594       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20595 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20596     else
20597       # Aha, the user has set a JAVA_HOME
20598       # let us use that as the Boot JDK.
20599       BOOT_JDK="$JAVA_HOME_PROCESSED"
20600       BOOT_JDK_FOUND=maybe
20601       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20602 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20603     fi
20604   fi
20605 
20606 
20607     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20608     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20609       # Do we have a bin/java?
20610       if test ! -x "$BOOT_JDK/bin/java"; then
20611         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20613         BOOT_JDK_FOUND=no
20614       else
20615         # Do we have a bin/javac?
20616         if test ! -x "$BOOT_JDK/bin/javac"; then
20617           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20618 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20619           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20620 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20621           BOOT_JDK_FOUND=no
20622         else
20623           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20624           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20625             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20627             BOOT_JDK_FOUND=no
20628           else
20629             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20630             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20631 
20632             # Extra M4 quote needed to protect [] in grep expression.
20633             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20634             if test "x$FOUND_VERSION_78" = x; then
20635               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20636 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20637               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20638 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20639               BOOT_JDK_FOUND=no
20640             else
20641               # We're done! :-)
20642               BOOT_JDK_FOUND=yes
20643 
20644   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20645 
20646   # Input might be given as Windows format, start by converting to
20647   # unix format.
20648   path="$BOOT_JDK"
20649   new_path=`$CYGPATH -u "$path"`
20650 
20651   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20652   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20653   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20654   # "foo.exe" is OK but "foo" is an error.
20655   #
20656   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20657   # It is also a way to make sure we got the proper file name for the real test later on.
20658   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20659   if test "x$test_shortpath" = x; then
20660     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20661 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20662     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20663   fi
20664 
20665   # Call helper function which possibly converts this using DOS-style short mode.
20666   # If so, the updated path is stored in $new_path.
20667 
20668   input_path="$new_path"
20669   # Check if we need to convert this using DOS-style short mode. If the path
20670   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20671   # take no chances and rewrite it.
20672   # Note: m4 eats our [], so we need to use [ and ] instead.
20673   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20674   if test "x$has_forbidden_chars" != x; then
20675     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20676     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20677     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20678     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20679       # Going to short mode and back again did indeed matter. Since short mode is
20680       # case insensitive, let's make it lowercase to improve readability.
20681       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20682       # Now convert it back to Unix-style (cygpath)
20683       input_path=`$CYGPATH -u "$shortmode_path"`
20684       new_path="$input_path"
20685     fi
20686   fi
20687 
20688   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20689   if test "x$test_cygdrive_prefix" = x; then
20690     # As a simple fix, exclude /usr/bin since it's not a real path.
20691     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20692       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20693       # a path prefixed by /cygdrive for fixpath to work.
20694       new_path="$CYGWIN_ROOT_PATH$input_path"
20695     fi
20696   fi
20697 
20698 
20699   if test "x$path" != "x$new_path"; then
20700     BOOT_JDK="$new_path"
20701     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20702 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20703   fi
20704 
20705   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20706 
20707   path="$BOOT_JDK"
20708   has_colon=`$ECHO $path | $GREP ^.:`
20709   new_path="$path"
20710   if test "x$has_colon" = x; then
20711     # Not in mixed or Windows style, start by that.
20712     new_path=`cmd //c echo $path`
20713   fi
20714 
20715 
20716   input_path="$new_path"
20717   # Check if we need to convert this using DOS-style short mode. If the path
20718   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20719   # take no chances and rewrite it.
20720   # Note: m4 eats our [], so we need to use [ and ] instead.
20721   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20722   if test "x$has_forbidden_chars" != x; then
20723     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20724     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20725   fi
20726 
20727 
20728   windows_path="$new_path"
20729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20730     unix_path=`$CYGPATH -u "$windows_path"`
20731     new_path="$unix_path"
20732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20734     new_path="$unix_path"
20735   fi
20736 
20737   if test "x$path" != "x$new_path"; then
20738     BOOT_JDK="$new_path"
20739     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20740 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20741   fi
20742 
20743   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20744   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20745 
20746   else
20747     # We're on a posix platform. Hooray! :)
20748     path="$BOOT_JDK"
20749     has_space=`$ECHO "$path" | $GREP " "`
20750     if test "x$has_space" != x; then
20751       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20752 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20753       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20754     fi
20755 
20756     # Use eval to expand a potential ~
20757     eval path="$path"
20758     if test ! -f "$path" && test ! -d "$path"; then
20759       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20760     fi
20761 
20762     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20763   fi
20764 
20765               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20766 $as_echo_n "checking for Boot JDK... " >&6; }
20767               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20768 $as_echo "$BOOT_JDK" >&6; }
20769               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20770 $as_echo_n "checking Boot JDK version... " >&6; }
20771               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20772               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20773 $as_echo "$BOOT_JDK_VERSION" >&6; }
20774             fi # end check jdk version
20775           fi # end check rt.jar
20776         fi # end check javac
20777       fi # end check java
20778     fi # end check boot jdk found
20779   fi
20780 
20781 
20782   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20783 
20784   if test "x$BOOT_JDK_FOUND" = xno; then
20785     # Now execute the test
20786 
20787   if test -x /usr/libexec/java_home; then
20788     BOOT_JDK=`/usr/libexec/java_home`
20789     BOOT_JDK_FOUND=maybe
20790     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20791 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20792   fi
20793 
20794 
20795     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20796     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20797       # Do we have a bin/java?
20798       if test ! -x "$BOOT_JDK/bin/java"; then
20799         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20801         BOOT_JDK_FOUND=no
20802       else
20803         # Do we have a bin/javac?
20804         if test ! -x "$BOOT_JDK/bin/javac"; then
20805           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20807           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20808 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20809           BOOT_JDK_FOUND=no
20810         else
20811           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20812           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20813             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20815             BOOT_JDK_FOUND=no
20816           else
20817             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20818             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20819 
20820             # Extra M4 quote needed to protect [] in grep expression.
20821             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20822             if test "x$FOUND_VERSION_78" = x; then
20823               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20825               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20826 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20827               BOOT_JDK_FOUND=no
20828             else
20829               # We're done! :-)
20830               BOOT_JDK_FOUND=yes
20831 
20832   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20833 
20834   # Input might be given as Windows format, start by converting to
20835   # unix format.
20836   path="$BOOT_JDK"
20837   new_path=`$CYGPATH -u "$path"`
20838 
20839   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20840   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20841   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20842   # "foo.exe" is OK but "foo" is an error.
20843   #
20844   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20845   # It is also a way to make sure we got the proper file name for the real test later on.
20846   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20847   if test "x$test_shortpath" = x; then
20848     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20849 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20850     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20851   fi
20852 
20853   # Call helper function which possibly converts this using DOS-style short mode.
20854   # If so, the updated path is stored in $new_path.
20855 
20856   input_path="$new_path"
20857   # Check if we need to convert this using DOS-style short mode. If the path
20858   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20859   # take no chances and rewrite it.
20860   # Note: m4 eats our [], so we need to use [ and ] instead.
20861   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20862   if test "x$has_forbidden_chars" != x; then
20863     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20864     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20865     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20866     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20867       # Going to short mode and back again did indeed matter. Since short mode is
20868       # case insensitive, let's make it lowercase to improve readability.
20869       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20870       # Now convert it back to Unix-style (cygpath)
20871       input_path=`$CYGPATH -u "$shortmode_path"`
20872       new_path="$input_path"
20873     fi
20874   fi
20875 
20876   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20877   if test "x$test_cygdrive_prefix" = x; then
20878     # As a simple fix, exclude /usr/bin since it's not a real path.
20879     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20880       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20881       # a path prefixed by /cygdrive for fixpath to work.
20882       new_path="$CYGWIN_ROOT_PATH$input_path"
20883     fi
20884   fi
20885 
20886 
20887   if test "x$path" != "x$new_path"; then
20888     BOOT_JDK="$new_path"
20889     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20890 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20891   fi
20892 
20893   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20894 
20895   path="$BOOT_JDK"
20896   has_colon=`$ECHO $path | $GREP ^.:`
20897   new_path="$path"
20898   if test "x$has_colon" = x; then
20899     # Not in mixed or Windows style, start by that.
20900     new_path=`cmd //c echo $path`
20901   fi
20902 
20903 
20904   input_path="$new_path"
20905   # Check if we need to convert this using DOS-style short mode. If the path
20906   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20907   # take no chances and rewrite it.
20908   # Note: m4 eats our [], so we need to use [ and ] instead.
20909   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20910   if test "x$has_forbidden_chars" != x; then
20911     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20912     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20913   fi
20914 
20915 
20916   windows_path="$new_path"
20917   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20918     unix_path=`$CYGPATH -u "$windows_path"`
20919     new_path="$unix_path"
20920   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20921     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20922     new_path="$unix_path"
20923   fi
20924 
20925   if test "x$path" != "x$new_path"; then
20926     BOOT_JDK="$new_path"
20927     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20928 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20929   fi
20930 
20931   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20932   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20933 
20934   else
20935     # We're on a posix platform. Hooray! :)
20936     path="$BOOT_JDK"
20937     has_space=`$ECHO "$path" | $GREP " "`
20938     if test "x$has_space" != x; then
20939       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20940 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20941       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20942     fi
20943 
20944     # Use eval to expand a potential ~
20945     eval path="$path"
20946     if test ! -f "$path" && test ! -d "$path"; then
20947       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20948     fi
20949 
20950     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20951   fi
20952 
20953               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20954 $as_echo_n "checking for Boot JDK... " >&6; }
20955               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20956 $as_echo "$BOOT_JDK" >&6; }
20957               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20958 $as_echo_n "checking Boot JDK version... " >&6; }
20959               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20960               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20961 $as_echo "$BOOT_JDK_VERSION" >&6; }
20962             fi # end check jdk version
20963           fi # end check rt.jar
20964         fi # end check javac
20965       fi # end check java
20966     fi # end check boot jdk found
20967   fi
20968 
20969 
20970   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
20971 
20972   if test "x$BOOT_JDK_FOUND" = xno; then
20973     # Now execute the test
20974 
20975   # Extract the first word of "javac", so it can be a program name with args.
20976 set dummy javac; ac_word=$2
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20978 $as_echo_n "checking for $ac_word... " >&6; }
20979 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
20980   $as_echo_n "(cached) " >&6
20981 else
20982   case $JAVAC_CHECK in
20983   [\\/]* | ?:[\\/]*)
20984   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
20985   ;;
20986   *)
20987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20988 for as_dir in $PATH
20989 do
20990   IFS=$as_save_IFS
20991   test -z "$as_dir" && as_dir=.
20992     for ac_exec_ext in '' $ac_executable_extensions; do
20993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20994     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20996     break 2
20997   fi
20998 done
20999   done
21000 IFS=$as_save_IFS
21001 
21002   ;;
21003 esac
21004 fi
21005 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21006 if test -n "$JAVAC_CHECK"; then
21007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21008 $as_echo "$JAVAC_CHECK" >&6; }
21009 else
21010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21011 $as_echo "no" >&6; }
21012 fi
21013 
21014 
21015   # Extract the first word of "java", so it can be a program name with args.
21016 set dummy java; ac_word=$2
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21018 $as_echo_n "checking for $ac_word... " >&6; }
21019 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21020   $as_echo_n "(cached) " >&6
21021 else
21022   case $JAVA_CHECK in
21023   [\\/]* | ?:[\\/]*)
21024   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21025   ;;
21026   *)
21027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21028 for as_dir in $PATH
21029 do
21030   IFS=$as_save_IFS
21031   test -z "$as_dir" && as_dir=.
21032     for ac_exec_ext in '' $ac_executable_extensions; do
21033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21034     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21036     break 2
21037   fi
21038 done
21039   done
21040 IFS=$as_save_IFS
21041 
21042   ;;
21043 esac
21044 fi
21045 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21046 if test -n "$JAVA_CHECK"; then
21047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21048 $as_echo "$JAVA_CHECK" >&6; }
21049 else
21050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051 $as_echo "no" >&6; }
21052 fi
21053 
21054 
21055   BINARY="$JAVAC_CHECK"
21056   if test "x$JAVAC_CHECK" = x; then
21057     BINARY="$JAVA_CHECK"
21058   fi
21059   if test "x$BINARY" != x; then
21060     # So there is a java(c) binary, it might be part of a JDK.
21061     # Lets find the JDK/JRE directory by following symbolic links.
21062     # Linux/GNU systems often have links from /usr/bin/java to
21063     # /etc/alternatives/java to the real JDK binary.
21064 
21065   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21066     # Follow a chain of symbolic links. Use readlink
21067     # where it exists, else fall back to horribly
21068     # complicated shell code.
21069     if test "x$READLINK_TESTED" != yes; then
21070       # On MacOSX there is a readlink tool with a different
21071       # purpose than the GNU readlink tool. Check the found readlink.
21072       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21073       if test "x$ISGNU" = x; then
21074         # A readlink that we do not know how to use.
21075         # Are there other non-GNU readlinks out there?
21076         READLINK_TESTED=yes
21077         READLINK=
21078       fi
21079     fi
21080 
21081     if test "x$READLINK" != x; then
21082       BINARY=`$READLINK -f $BINARY`
21083     else
21084       # Save the current directory for restoring afterwards
21085       STARTDIR=$PWD
21086       COUNTER=0
21087       sym_link_dir=`$DIRNAME $BINARY`
21088       sym_link_file=`$BASENAME $BINARY`
21089       cd $sym_link_dir
21090       # Use -P flag to resolve symlinks in directories.
21091       cd `$THEPWDCMD -P`
21092       sym_link_dir=`$THEPWDCMD -P`
21093       # Resolve file symlinks
21094       while test $COUNTER -lt 20; do
21095         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21096         if test "x$ISLINK" == x; then
21097           # This is not a symbolic link! We are done!
21098           break
21099         fi
21100         # Again resolve directory symlinks since the target of the just found
21101         # link could be in a different directory
21102         cd `$DIRNAME $ISLINK`
21103         sym_link_dir=`$THEPWDCMD -P`
21104         sym_link_file=`$BASENAME $ISLINK`
21105         let COUNTER=COUNTER+1
21106       done
21107       cd $STARTDIR
21108       BINARY=$sym_link_dir/$sym_link_file
21109     fi
21110   fi
21111 
21112     BOOT_JDK=`dirname "$BINARY"`
21113     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21114     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21115       # Looks like we found ourselves an JDK
21116       BOOT_JDK_FOUND=maybe
21117       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21118 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21119     fi
21120   fi
21121 
21122 
21123     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21124     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21125       # Do we have a bin/java?
21126       if test ! -x "$BOOT_JDK/bin/java"; then
21127         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21129         BOOT_JDK_FOUND=no
21130       else
21131         # Do we have a bin/javac?
21132         if test ! -x "$BOOT_JDK/bin/javac"; then
21133           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21134 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21135           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21136 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21137           BOOT_JDK_FOUND=no
21138         else
21139           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21140           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21141             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21143             BOOT_JDK_FOUND=no
21144           else
21145             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21146             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21147 
21148             # Extra M4 quote needed to protect [] in grep expression.
21149             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21150             if test "x$FOUND_VERSION_78" = x; then
21151               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21152 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21153               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21154 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21155               BOOT_JDK_FOUND=no
21156             else
21157               # We're done! :-)
21158               BOOT_JDK_FOUND=yes
21159 
21160   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21161 
21162   # Input might be given as Windows format, start by converting to
21163   # unix format.
21164   path="$BOOT_JDK"
21165   new_path=`$CYGPATH -u "$path"`
21166 
21167   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21168   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21169   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21170   # "foo.exe" is OK but "foo" is an error.
21171   #
21172   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21173   # It is also a way to make sure we got the proper file name for the real test later on.
21174   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21175   if test "x$test_shortpath" = x; then
21176     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21177 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21178     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21179   fi
21180 
21181   # Call helper function which possibly converts this using DOS-style short mode.
21182   # If so, the updated path is stored in $new_path.
21183 
21184   input_path="$new_path"
21185   # Check if we need to convert this using DOS-style short mode. If the path
21186   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21187   # take no chances and rewrite it.
21188   # Note: m4 eats our [], so we need to use [ and ] instead.
21189   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21190   if test "x$has_forbidden_chars" != x; then
21191     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21192     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21193     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21194     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21195       # Going to short mode and back again did indeed matter. Since short mode is
21196       # case insensitive, let's make it lowercase to improve readability.
21197       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21198       # Now convert it back to Unix-style (cygpath)
21199       input_path=`$CYGPATH -u "$shortmode_path"`
21200       new_path="$input_path"
21201     fi
21202   fi
21203 
21204   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21205   if test "x$test_cygdrive_prefix" = x; then
21206     # As a simple fix, exclude /usr/bin since it's not a real path.
21207     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21208       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21209       # a path prefixed by /cygdrive for fixpath to work.
21210       new_path="$CYGWIN_ROOT_PATH$input_path"
21211     fi
21212   fi
21213 
21214 
21215   if test "x$path" != "x$new_path"; then
21216     BOOT_JDK="$new_path"
21217     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21218 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21219   fi
21220 
21221   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21222 
21223   path="$BOOT_JDK"
21224   has_colon=`$ECHO $path | $GREP ^.:`
21225   new_path="$path"
21226   if test "x$has_colon" = x; then
21227     # Not in mixed or Windows style, start by that.
21228     new_path=`cmd //c echo $path`
21229   fi
21230 
21231 
21232   input_path="$new_path"
21233   # Check if we need to convert this using DOS-style short mode. If the path
21234   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21235   # take no chances and rewrite it.
21236   # Note: m4 eats our [], so we need to use [ and ] instead.
21237   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21238   if test "x$has_forbidden_chars" != x; then
21239     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21240     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21241   fi
21242 
21243 
21244   windows_path="$new_path"
21245   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21246     unix_path=`$CYGPATH -u "$windows_path"`
21247     new_path="$unix_path"
21248   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21249     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21250     new_path="$unix_path"
21251   fi
21252 
21253   if test "x$path" != "x$new_path"; then
21254     BOOT_JDK="$new_path"
21255     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21256 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21257   fi
21258 
21259   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21260   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21261 
21262   else
21263     # We're on a posix platform. Hooray! :)
21264     path="$BOOT_JDK"
21265     has_space=`$ECHO "$path" | $GREP " "`
21266     if test "x$has_space" != x; then
21267       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21269       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21270     fi
21271 
21272     # Use eval to expand a potential ~
21273     eval path="$path"
21274     if test ! -f "$path" && test ! -d "$path"; then
21275       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21276     fi
21277 
21278     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21279   fi
21280 
21281               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21282 $as_echo_n "checking for Boot JDK... " >&6; }
21283               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21284 $as_echo "$BOOT_JDK" >&6; }
21285               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21286 $as_echo_n "checking Boot JDK version... " >&6; }
21287               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21288               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21289 $as_echo "$BOOT_JDK_VERSION" >&6; }
21290             fi # end check jdk version
21291           fi # end check rt.jar
21292         fi # end check javac
21293       fi # end check java
21294     fi # end check boot jdk found
21295   fi
21296 
21297 
21298   # Test: Is there a JDK installed in default, well-known locations?
21299 
21300   if test "x$BOOT_JDK_FOUND" = xno; then
21301     # Now execute the test
21302 
21303   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21304 
21305   if test "x$BOOT_JDK_FOUND" = xno; then
21306     # Now execute the test
21307 
21308   if test "x$ProgramW6432" != x; then
21309     VIRTUAL_DIR="$ProgramW6432/Java"
21310 
21311   windows_path="$VIRTUAL_DIR"
21312   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21313     unix_path=`$CYGPATH -u "$windows_path"`
21314     VIRTUAL_DIR="$unix_path"
21315   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21316     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21317     VIRTUAL_DIR="$unix_path"
21318   fi
21319 
21320 
21321   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21322   BOOT_JDK_SUFFIX=""
21323   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21324   if test "x$ALL_JDKS_FOUND" != x; then
21325     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21326 
21327   if test "x$BOOT_JDK_FOUND" = xno; then
21328     # Now execute the test
21329 
21330         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21331         if test -d "$BOOT_JDK"; then
21332           BOOT_JDK_FOUND=maybe
21333           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21334 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21335         fi
21336 
21337 
21338     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21339     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21340       # Do we have a bin/java?
21341       if test ! -x "$BOOT_JDK/bin/java"; then
21342         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21343 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21344         BOOT_JDK_FOUND=no
21345       else
21346         # Do we have a bin/javac?
21347         if test ! -x "$BOOT_JDK/bin/javac"; then
21348           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21349 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21350           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21351 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21352           BOOT_JDK_FOUND=no
21353         else
21354           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21355           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21356             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21357 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21358             BOOT_JDK_FOUND=no
21359           else
21360             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21361             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21362 
21363             # Extra M4 quote needed to protect [] in grep expression.
21364             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21365             if test "x$FOUND_VERSION_78" = x; then
21366               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21367 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21368               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21369 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21370               BOOT_JDK_FOUND=no
21371             else
21372               # We're done! :-)
21373               BOOT_JDK_FOUND=yes
21374 
21375   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21376 
21377   # Input might be given as Windows format, start by converting to
21378   # unix format.
21379   path="$BOOT_JDK"
21380   new_path=`$CYGPATH -u "$path"`
21381 
21382   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21383   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21384   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21385   # "foo.exe" is OK but "foo" is an error.
21386   #
21387   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21388   # It is also a way to make sure we got the proper file name for the real test later on.
21389   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21390   if test "x$test_shortpath" = x; then
21391     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21392 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21393     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21394   fi
21395 
21396   # Call helper function which possibly converts this using DOS-style short mode.
21397   # If so, the updated path is stored in $new_path.
21398 
21399   input_path="$new_path"
21400   # Check if we need to convert this using DOS-style short mode. If the path
21401   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21402   # take no chances and rewrite it.
21403   # Note: m4 eats our [], so we need to use [ and ] instead.
21404   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21405   if test "x$has_forbidden_chars" != x; then
21406     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21407     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21408     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21409     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21410       # Going to short mode and back again did indeed matter. Since short mode is
21411       # case insensitive, let's make it lowercase to improve readability.
21412       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21413       # Now convert it back to Unix-style (cygpath)
21414       input_path=`$CYGPATH -u "$shortmode_path"`
21415       new_path="$input_path"
21416     fi
21417   fi
21418 
21419   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21420   if test "x$test_cygdrive_prefix" = x; then
21421     # As a simple fix, exclude /usr/bin since it's not a real path.
21422     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21423       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21424       # a path prefixed by /cygdrive for fixpath to work.
21425       new_path="$CYGWIN_ROOT_PATH$input_path"
21426     fi
21427   fi
21428 
21429 
21430   if test "x$path" != "x$new_path"; then
21431     BOOT_JDK="$new_path"
21432     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21433 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21434   fi
21435 
21436   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21437 
21438   path="$BOOT_JDK"
21439   has_colon=`$ECHO $path | $GREP ^.:`
21440   new_path="$path"
21441   if test "x$has_colon" = x; then
21442     # Not in mixed or Windows style, start by that.
21443     new_path=`cmd //c echo $path`
21444   fi
21445 
21446 
21447   input_path="$new_path"
21448   # Check if we need to convert this using DOS-style short mode. If the path
21449   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21450   # take no chances and rewrite it.
21451   # Note: m4 eats our [], so we need to use [ and ] instead.
21452   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21453   if test "x$has_forbidden_chars" != x; then
21454     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21455     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21456   fi
21457 
21458 
21459   windows_path="$new_path"
21460   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21461     unix_path=`$CYGPATH -u "$windows_path"`
21462     new_path="$unix_path"
21463   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21464     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21465     new_path="$unix_path"
21466   fi
21467 
21468   if test "x$path" != "x$new_path"; then
21469     BOOT_JDK="$new_path"
21470     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21471 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21472   fi
21473 
21474   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21475   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21476 
21477   else
21478     # We're on a posix platform. Hooray! :)
21479     path="$BOOT_JDK"
21480     has_space=`$ECHO "$path" | $GREP " "`
21481     if test "x$has_space" != x; then
21482       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21483 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21484       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21485     fi
21486 
21487     # Use eval to expand a potential ~
21488     eval path="$path"
21489     if test ! -f "$path" && test ! -d "$path"; then
21490       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21491     fi
21492 
21493     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21494   fi
21495 
21496               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21497 $as_echo_n "checking for Boot JDK... " >&6; }
21498               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21499 $as_echo "$BOOT_JDK" >&6; }
21500               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21501 $as_echo_n "checking Boot JDK version... " >&6; }
21502               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21503               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21504 $as_echo "$BOOT_JDK_VERSION" >&6; }
21505             fi # end check jdk version
21506           fi # end check rt.jar
21507         fi # end check javac
21508       fi # end check java
21509     fi # end check boot jdk found
21510   fi
21511 
21512     done
21513   fi
21514 
21515   fi
21516 
21517 
21518     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21519     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21520       # Do we have a bin/java?
21521       if test ! -x "$BOOT_JDK/bin/java"; then
21522         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21523 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21524         BOOT_JDK_FOUND=no
21525       else
21526         # Do we have a bin/javac?
21527         if test ! -x "$BOOT_JDK/bin/javac"; then
21528           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21529 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21530           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21531 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21532           BOOT_JDK_FOUND=no
21533         else
21534           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21535           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21536             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21537 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21538             BOOT_JDK_FOUND=no
21539           else
21540             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21541             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21542 
21543             # Extra M4 quote needed to protect [] in grep expression.
21544             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21545             if test "x$FOUND_VERSION_78" = x; then
21546               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21547 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21548               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21549 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21550               BOOT_JDK_FOUND=no
21551             else
21552               # We're done! :-)
21553               BOOT_JDK_FOUND=yes
21554 
21555   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21556 
21557   # Input might be given as Windows format, start by converting to
21558   # unix format.
21559   path="$BOOT_JDK"
21560   new_path=`$CYGPATH -u "$path"`
21561 
21562   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21563   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21564   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21565   # "foo.exe" is OK but "foo" is an error.
21566   #
21567   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21568   # It is also a way to make sure we got the proper file name for the real test later on.
21569   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21570   if test "x$test_shortpath" = x; then
21571     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21572 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21573     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21574   fi
21575 
21576   # Call helper function which possibly converts this using DOS-style short mode.
21577   # If so, the updated path is stored in $new_path.
21578 
21579   input_path="$new_path"
21580   # Check if we need to convert this using DOS-style short mode. If the path
21581   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21582   # take no chances and rewrite it.
21583   # Note: m4 eats our [], so we need to use [ and ] instead.
21584   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21585   if test "x$has_forbidden_chars" != x; then
21586     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21587     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21588     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21589     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21590       # Going to short mode and back again did indeed matter. Since short mode is
21591       # case insensitive, let's make it lowercase to improve readability.
21592       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21593       # Now convert it back to Unix-style (cygpath)
21594       input_path=`$CYGPATH -u "$shortmode_path"`
21595       new_path="$input_path"
21596     fi
21597   fi
21598 
21599   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21600   if test "x$test_cygdrive_prefix" = x; then
21601     # As a simple fix, exclude /usr/bin since it's not a real path.
21602     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21603       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21604       # a path prefixed by /cygdrive for fixpath to work.
21605       new_path="$CYGWIN_ROOT_PATH$input_path"
21606     fi
21607   fi
21608 
21609 
21610   if test "x$path" != "x$new_path"; then
21611     BOOT_JDK="$new_path"
21612     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21613 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21614   fi
21615 
21616   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21617 
21618   path="$BOOT_JDK"
21619   has_colon=`$ECHO $path | $GREP ^.:`
21620   new_path="$path"
21621   if test "x$has_colon" = x; then
21622     # Not in mixed or Windows style, start by that.
21623     new_path=`cmd //c echo $path`
21624   fi
21625 
21626 
21627   input_path="$new_path"
21628   # Check if we need to convert this using DOS-style short mode. If the path
21629   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21630   # take no chances and rewrite it.
21631   # Note: m4 eats our [], so we need to use [ and ] instead.
21632   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21633   if test "x$has_forbidden_chars" != x; then
21634     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21635     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21636   fi
21637 
21638 
21639   windows_path="$new_path"
21640   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21641     unix_path=`$CYGPATH -u "$windows_path"`
21642     new_path="$unix_path"
21643   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21644     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21645     new_path="$unix_path"
21646   fi
21647 
21648   if test "x$path" != "x$new_path"; then
21649     BOOT_JDK="$new_path"
21650     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21651 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21652   fi
21653 
21654   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21655   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21656 
21657   else
21658     # We're on a posix platform. Hooray! :)
21659     path="$BOOT_JDK"
21660     has_space=`$ECHO "$path" | $GREP " "`
21661     if test "x$has_space" != x; then
21662       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21663 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21664       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21665     fi
21666 
21667     # Use eval to expand a potential ~
21668     eval path="$path"
21669     if test ! -f "$path" && test ! -d "$path"; then
21670       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21671     fi
21672 
21673     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21674   fi
21675 
21676               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21677 $as_echo_n "checking for Boot JDK... " >&6; }
21678               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21679 $as_echo "$BOOT_JDK" >&6; }
21680               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21681 $as_echo_n "checking Boot JDK version... " >&6; }
21682               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21683               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21684 $as_echo "$BOOT_JDK_VERSION" >&6; }
21685             fi # end check jdk version
21686           fi # end check rt.jar
21687         fi # end check javac
21688       fi # end check java
21689     fi # end check boot jdk found
21690   fi
21691 
21692 
21693   if test "x$BOOT_JDK_FOUND" = xno; then
21694     # Now execute the test
21695 
21696   if test "x$PROGRAMW6432" != x; then
21697     VIRTUAL_DIR="$PROGRAMW6432/Java"
21698 
21699   windows_path="$VIRTUAL_DIR"
21700   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21701     unix_path=`$CYGPATH -u "$windows_path"`
21702     VIRTUAL_DIR="$unix_path"
21703   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21704     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21705     VIRTUAL_DIR="$unix_path"
21706   fi
21707 
21708 
21709   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21710   BOOT_JDK_SUFFIX=""
21711   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21712   if test "x$ALL_JDKS_FOUND" != x; then
21713     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21714 
21715   if test "x$BOOT_JDK_FOUND" = xno; then
21716     # Now execute the test
21717 
21718         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21719         if test -d "$BOOT_JDK"; then
21720           BOOT_JDK_FOUND=maybe
21721           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21722 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21723         fi
21724 
21725 
21726     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21727     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21728       # Do we have a bin/java?
21729       if test ! -x "$BOOT_JDK/bin/java"; then
21730         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21731 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21732         BOOT_JDK_FOUND=no
21733       else
21734         # Do we have a bin/javac?
21735         if test ! -x "$BOOT_JDK/bin/javac"; then
21736           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21737 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21738           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21739 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21740           BOOT_JDK_FOUND=no
21741         else
21742           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21743           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21744             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21746             BOOT_JDK_FOUND=no
21747           else
21748             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21749             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21750 
21751             # Extra M4 quote needed to protect [] in grep expression.
21752             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21753             if test "x$FOUND_VERSION_78" = x; then
21754               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21755 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21756               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21757 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21758               BOOT_JDK_FOUND=no
21759             else
21760               # We're done! :-)
21761               BOOT_JDK_FOUND=yes
21762 
21763   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21764 
21765   # Input might be given as Windows format, start by converting to
21766   # unix format.
21767   path="$BOOT_JDK"
21768   new_path=`$CYGPATH -u "$path"`
21769 
21770   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21771   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21772   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21773   # "foo.exe" is OK but "foo" is an error.
21774   #
21775   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21776   # It is also a way to make sure we got the proper file name for the real test later on.
21777   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21778   if test "x$test_shortpath" = x; then
21779     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21780 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21781     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21782   fi
21783 
21784   # Call helper function which possibly converts this using DOS-style short mode.
21785   # If so, the updated path is stored in $new_path.
21786 
21787   input_path="$new_path"
21788   # Check if we need to convert this using DOS-style short mode. If the path
21789   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21790   # take no chances and rewrite it.
21791   # Note: m4 eats our [], so we need to use [ and ] instead.
21792   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21793   if test "x$has_forbidden_chars" != x; then
21794     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21795     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21796     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21797     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21798       # Going to short mode and back again did indeed matter. Since short mode is
21799       # case insensitive, let's make it lowercase to improve readability.
21800       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21801       # Now convert it back to Unix-style (cygpath)
21802       input_path=`$CYGPATH -u "$shortmode_path"`
21803       new_path="$input_path"
21804     fi
21805   fi
21806 
21807   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21808   if test "x$test_cygdrive_prefix" = x; then
21809     # As a simple fix, exclude /usr/bin since it's not a real path.
21810     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21811       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21812       # a path prefixed by /cygdrive for fixpath to work.
21813       new_path="$CYGWIN_ROOT_PATH$input_path"
21814     fi
21815   fi
21816 
21817 
21818   if test "x$path" != "x$new_path"; then
21819     BOOT_JDK="$new_path"
21820     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21821 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21822   fi
21823 
21824   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21825 
21826   path="$BOOT_JDK"
21827   has_colon=`$ECHO $path | $GREP ^.:`
21828   new_path="$path"
21829   if test "x$has_colon" = x; then
21830     # Not in mixed or Windows style, start by that.
21831     new_path=`cmd //c echo $path`
21832   fi
21833 
21834 
21835   input_path="$new_path"
21836   # Check if we need to convert this using DOS-style short mode. If the path
21837   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21838   # take no chances and rewrite it.
21839   # Note: m4 eats our [], so we need to use [ and ] instead.
21840   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21841   if test "x$has_forbidden_chars" != x; then
21842     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21843     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21844   fi
21845 
21846 
21847   windows_path="$new_path"
21848   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21849     unix_path=`$CYGPATH -u "$windows_path"`
21850     new_path="$unix_path"
21851   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21852     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21853     new_path="$unix_path"
21854   fi
21855 
21856   if test "x$path" != "x$new_path"; then
21857     BOOT_JDK="$new_path"
21858     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21859 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21860   fi
21861 
21862   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21863   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21864 
21865   else
21866     # We're on a posix platform. Hooray! :)
21867     path="$BOOT_JDK"
21868     has_space=`$ECHO "$path" | $GREP " "`
21869     if test "x$has_space" != x; then
21870       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21871 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21872       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21873     fi
21874 
21875     # Use eval to expand a potential ~
21876     eval path="$path"
21877     if test ! -f "$path" && test ! -d "$path"; then
21878       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21879     fi
21880 
21881     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21882   fi
21883 
21884               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21885 $as_echo_n "checking for Boot JDK... " >&6; }
21886               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21887 $as_echo "$BOOT_JDK" >&6; }
21888               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21889 $as_echo_n "checking Boot JDK version... " >&6; }
21890               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21891               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21892 $as_echo "$BOOT_JDK_VERSION" >&6; }
21893             fi # end check jdk version
21894           fi # end check rt.jar
21895         fi # end check javac
21896       fi # end check java
21897     fi # end check boot jdk found
21898   fi
21899 
21900     done
21901   fi
21902 
21903   fi
21904 
21905 
21906     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21907     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21908       # Do we have a bin/java?
21909       if test ! -x "$BOOT_JDK/bin/java"; then
21910         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21912         BOOT_JDK_FOUND=no
21913       else
21914         # Do we have a bin/javac?
21915         if test ! -x "$BOOT_JDK/bin/javac"; then
21916           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21917 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21918           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21919 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21920           BOOT_JDK_FOUND=no
21921         else
21922           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21923           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21924             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21925 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21926             BOOT_JDK_FOUND=no
21927           else
21928             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21929             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21930 
21931             # Extra M4 quote needed to protect [] in grep expression.
21932             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21933             if test "x$FOUND_VERSION_78" = x; then
21934               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21935 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21936               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21937 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21938               BOOT_JDK_FOUND=no
21939             else
21940               # We're done! :-)
21941               BOOT_JDK_FOUND=yes
21942 
21943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21944 
21945   # Input might be given as Windows format, start by converting to
21946   # unix format.
21947   path="$BOOT_JDK"
21948   new_path=`$CYGPATH -u "$path"`
21949 
21950   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21951   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21952   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21953   # "foo.exe" is OK but "foo" is an error.
21954   #
21955   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21956   # It is also a way to make sure we got the proper file name for the real test later on.
21957   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21958   if test "x$test_shortpath" = x; then
21959     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21960 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21961     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21962   fi
21963 
21964   # Call helper function which possibly converts this using DOS-style short mode.
21965   # If so, the updated path is stored in $new_path.
21966 
21967   input_path="$new_path"
21968   # Check if we need to convert this using DOS-style short mode. If the path
21969   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21970   # take no chances and rewrite it.
21971   # Note: m4 eats our [], so we need to use [ and ] instead.
21972   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21973   if test "x$has_forbidden_chars" != x; then
21974     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21975     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21976     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21977     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21978       # Going to short mode and back again did indeed matter. Since short mode is
21979       # case insensitive, let's make it lowercase to improve readability.
21980       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21981       # Now convert it back to Unix-style (cygpath)
21982       input_path=`$CYGPATH -u "$shortmode_path"`
21983       new_path="$input_path"
21984     fi
21985   fi
21986 
21987   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21988   if test "x$test_cygdrive_prefix" = x; then
21989     # As a simple fix, exclude /usr/bin since it's not a real path.
21990     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21991       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21992       # a path prefixed by /cygdrive for fixpath to work.
21993       new_path="$CYGWIN_ROOT_PATH$input_path"
21994     fi
21995   fi
21996 
21997 
21998   if test "x$path" != "x$new_path"; then
21999     BOOT_JDK="$new_path"
22000     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22001 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22002   fi
22003 
22004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22005 
22006   path="$BOOT_JDK"
22007   has_colon=`$ECHO $path | $GREP ^.:`
22008   new_path="$path"
22009   if test "x$has_colon" = x; then
22010     # Not in mixed or Windows style, start by that.
22011     new_path=`cmd //c echo $path`
22012   fi
22013 
22014 
22015   input_path="$new_path"
22016   # Check if we need to convert this using DOS-style short mode. If the path
22017   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22018   # take no chances and rewrite it.
22019   # Note: m4 eats our [], so we need to use [ and ] instead.
22020   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22021   if test "x$has_forbidden_chars" != x; then
22022     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22023     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22024   fi
22025 
22026 
22027   windows_path="$new_path"
22028   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22029     unix_path=`$CYGPATH -u "$windows_path"`
22030     new_path="$unix_path"
22031   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22032     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22033     new_path="$unix_path"
22034   fi
22035 
22036   if test "x$path" != "x$new_path"; then
22037     BOOT_JDK="$new_path"
22038     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22039 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22040   fi
22041 
22042   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22043   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22044 
22045   else
22046     # We're on a posix platform. Hooray! :)
22047     path="$BOOT_JDK"
22048     has_space=`$ECHO "$path" | $GREP " "`
22049     if test "x$has_space" != x; then
22050       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22051 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22052       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22053     fi
22054 
22055     # Use eval to expand a potential ~
22056     eval path="$path"
22057     if test ! -f "$path" && test ! -d "$path"; then
22058       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22059     fi
22060 
22061     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22062   fi
22063 
22064               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22065 $as_echo_n "checking for Boot JDK... " >&6; }
22066               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22067 $as_echo "$BOOT_JDK" >&6; }
22068               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22069 $as_echo_n "checking Boot JDK version... " >&6; }
22070               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22071               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22072 $as_echo "$BOOT_JDK_VERSION" >&6; }
22073             fi # end check jdk version
22074           fi # end check rt.jar
22075         fi # end check javac
22076       fi # end check java
22077     fi # end check boot jdk found
22078   fi
22079 
22080 
22081   if test "x$BOOT_JDK_FOUND" = xno; then
22082     # Now execute the test
22083 
22084   if test "x$PROGRAMFILES" != x; then
22085     VIRTUAL_DIR="$PROGRAMFILES/Java"
22086 
22087   windows_path="$VIRTUAL_DIR"
22088   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22089     unix_path=`$CYGPATH -u "$windows_path"`
22090     VIRTUAL_DIR="$unix_path"
22091   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22092     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22093     VIRTUAL_DIR="$unix_path"
22094   fi
22095 
22096 
22097   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22098   BOOT_JDK_SUFFIX=""
22099   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22100   if test "x$ALL_JDKS_FOUND" != x; then
22101     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22102 
22103   if test "x$BOOT_JDK_FOUND" = xno; then
22104     # Now execute the test
22105 
22106         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22107         if test -d "$BOOT_JDK"; then
22108           BOOT_JDK_FOUND=maybe
22109           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22110 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22111         fi
22112 
22113 
22114     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22115     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22116       # Do we have a bin/java?
22117       if test ! -x "$BOOT_JDK/bin/java"; then
22118         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22119 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22120         BOOT_JDK_FOUND=no
22121       else
22122         # Do we have a bin/javac?
22123         if test ! -x "$BOOT_JDK/bin/javac"; then
22124           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22125 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22126           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22127 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22128           BOOT_JDK_FOUND=no
22129         else
22130           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22131           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22132             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22133 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22134             BOOT_JDK_FOUND=no
22135           else
22136             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22137             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22138 
22139             # Extra M4 quote needed to protect [] in grep expression.
22140             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22141             if test "x$FOUND_VERSION_78" = x; then
22142               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22143 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22144               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22145 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22146               BOOT_JDK_FOUND=no
22147             else
22148               # We're done! :-)
22149               BOOT_JDK_FOUND=yes
22150 
22151   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22152 
22153   # Input might be given as Windows format, start by converting to
22154   # unix format.
22155   path="$BOOT_JDK"
22156   new_path=`$CYGPATH -u "$path"`
22157 
22158   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22159   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22160   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22161   # "foo.exe" is OK but "foo" is an error.
22162   #
22163   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22164   # It is also a way to make sure we got the proper file name for the real test later on.
22165   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22166   if test "x$test_shortpath" = x; then
22167     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22168 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22169     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22170   fi
22171 
22172   # Call helper function which possibly converts this using DOS-style short mode.
22173   # If so, the updated path is stored in $new_path.
22174 
22175   input_path="$new_path"
22176   # Check if we need to convert this using DOS-style short mode. If the path
22177   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22178   # take no chances and rewrite it.
22179   # Note: m4 eats our [], so we need to use [ and ] instead.
22180   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22181   if test "x$has_forbidden_chars" != x; then
22182     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22183     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22184     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22185     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22186       # Going to short mode and back again did indeed matter. Since short mode is
22187       # case insensitive, let's make it lowercase to improve readability.
22188       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22189       # Now convert it back to Unix-style (cygpath)
22190       input_path=`$CYGPATH -u "$shortmode_path"`
22191       new_path="$input_path"
22192     fi
22193   fi
22194 
22195   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22196   if test "x$test_cygdrive_prefix" = x; then
22197     # As a simple fix, exclude /usr/bin since it's not a real path.
22198     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22199       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22200       # a path prefixed by /cygdrive for fixpath to work.
22201       new_path="$CYGWIN_ROOT_PATH$input_path"
22202     fi
22203   fi
22204 
22205 
22206   if test "x$path" != "x$new_path"; then
22207     BOOT_JDK="$new_path"
22208     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22209 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22210   fi
22211 
22212   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22213 
22214   path="$BOOT_JDK"
22215   has_colon=`$ECHO $path | $GREP ^.:`
22216   new_path="$path"
22217   if test "x$has_colon" = x; then
22218     # Not in mixed or Windows style, start by that.
22219     new_path=`cmd //c echo $path`
22220   fi
22221 
22222 
22223   input_path="$new_path"
22224   # Check if we need to convert this using DOS-style short mode. If the path
22225   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22226   # take no chances and rewrite it.
22227   # Note: m4 eats our [], so we need to use [ and ] instead.
22228   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22229   if test "x$has_forbidden_chars" != x; then
22230     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22231     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22232   fi
22233 
22234 
22235   windows_path="$new_path"
22236   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22237     unix_path=`$CYGPATH -u "$windows_path"`
22238     new_path="$unix_path"
22239   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22240     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22241     new_path="$unix_path"
22242   fi
22243 
22244   if test "x$path" != "x$new_path"; then
22245     BOOT_JDK="$new_path"
22246     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22247 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22248   fi
22249 
22250   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22251   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22252 
22253   else
22254     # We're on a posix platform. Hooray! :)
22255     path="$BOOT_JDK"
22256     has_space=`$ECHO "$path" | $GREP " "`
22257     if test "x$has_space" != x; then
22258       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22259 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22260       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22261     fi
22262 
22263     # Use eval to expand a potential ~
22264     eval path="$path"
22265     if test ! -f "$path" && test ! -d "$path"; then
22266       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22267     fi
22268 
22269     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22270   fi
22271 
22272               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22273 $as_echo_n "checking for Boot JDK... " >&6; }
22274               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22275 $as_echo "$BOOT_JDK" >&6; }
22276               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22277 $as_echo_n "checking Boot JDK version... " >&6; }
22278               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22279               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22280 $as_echo "$BOOT_JDK_VERSION" >&6; }
22281             fi # end check jdk version
22282           fi # end check rt.jar
22283         fi # end check javac
22284       fi # end check java
22285     fi # end check boot jdk found
22286   fi
22287 
22288     done
22289   fi
22290 
22291   fi
22292 
22293 
22294     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22295     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22296       # Do we have a bin/java?
22297       if test ! -x "$BOOT_JDK/bin/java"; then
22298         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22299 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22300         BOOT_JDK_FOUND=no
22301       else
22302         # Do we have a bin/javac?
22303         if test ! -x "$BOOT_JDK/bin/javac"; then
22304           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22305 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22306           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22307 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22308           BOOT_JDK_FOUND=no
22309         else
22310           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22311           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22312             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22313 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22314             BOOT_JDK_FOUND=no
22315           else
22316             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22317             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22318 
22319             # Extra M4 quote needed to protect [] in grep expression.
22320             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22321             if test "x$FOUND_VERSION_78" = x; then
22322               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22324               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22325 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22326               BOOT_JDK_FOUND=no
22327             else
22328               # We're done! :-)
22329               BOOT_JDK_FOUND=yes
22330 
22331   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22332 
22333   # Input might be given as Windows format, start by converting to
22334   # unix format.
22335   path="$BOOT_JDK"
22336   new_path=`$CYGPATH -u "$path"`
22337 
22338   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22339   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22340   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22341   # "foo.exe" is OK but "foo" is an error.
22342   #
22343   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22344   # It is also a way to make sure we got the proper file name for the real test later on.
22345   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22346   if test "x$test_shortpath" = x; then
22347     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22348 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22349     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22350   fi
22351 
22352   # Call helper function which possibly converts this using DOS-style short mode.
22353   # If so, the updated path is stored in $new_path.
22354 
22355   input_path="$new_path"
22356   # Check if we need to convert this using DOS-style short mode. If the path
22357   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22358   # take no chances and rewrite it.
22359   # Note: m4 eats our [], so we need to use [ and ] instead.
22360   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22361   if test "x$has_forbidden_chars" != x; then
22362     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22363     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22364     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22365     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22366       # Going to short mode and back again did indeed matter. Since short mode is
22367       # case insensitive, let's make it lowercase to improve readability.
22368       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22369       # Now convert it back to Unix-style (cygpath)
22370       input_path=`$CYGPATH -u "$shortmode_path"`
22371       new_path="$input_path"
22372     fi
22373   fi
22374 
22375   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22376   if test "x$test_cygdrive_prefix" = x; then
22377     # As a simple fix, exclude /usr/bin since it's not a real path.
22378     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22379       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22380       # a path prefixed by /cygdrive for fixpath to work.
22381       new_path="$CYGWIN_ROOT_PATH$input_path"
22382     fi
22383   fi
22384 
22385 
22386   if test "x$path" != "x$new_path"; then
22387     BOOT_JDK="$new_path"
22388     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22389 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22390   fi
22391 
22392   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22393 
22394   path="$BOOT_JDK"
22395   has_colon=`$ECHO $path | $GREP ^.:`
22396   new_path="$path"
22397   if test "x$has_colon" = x; then
22398     # Not in mixed or Windows style, start by that.
22399     new_path=`cmd //c echo $path`
22400   fi
22401 
22402 
22403   input_path="$new_path"
22404   # Check if we need to convert this using DOS-style short mode. If the path
22405   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22406   # take no chances and rewrite it.
22407   # Note: m4 eats our [], so we need to use [ and ] instead.
22408   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22409   if test "x$has_forbidden_chars" != x; then
22410     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22411     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22412   fi
22413 
22414 
22415   windows_path="$new_path"
22416   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22417     unix_path=`$CYGPATH -u "$windows_path"`
22418     new_path="$unix_path"
22419   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22420     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22421     new_path="$unix_path"
22422   fi
22423 
22424   if test "x$path" != "x$new_path"; then
22425     BOOT_JDK="$new_path"
22426     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22427 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22428   fi
22429 
22430   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22431   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22432 
22433   else
22434     # We're on a posix platform. Hooray! :)
22435     path="$BOOT_JDK"
22436     has_space=`$ECHO "$path" | $GREP " "`
22437     if test "x$has_space" != x; then
22438       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22439 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22440       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22441     fi
22442 
22443     # Use eval to expand a potential ~
22444     eval path="$path"
22445     if test ! -f "$path" && test ! -d "$path"; then
22446       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22447     fi
22448 
22449     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22450   fi
22451 
22452               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22453 $as_echo_n "checking for Boot JDK... " >&6; }
22454               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22455 $as_echo "$BOOT_JDK" >&6; }
22456               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22457 $as_echo_n "checking Boot JDK version... " >&6; }
22458               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22459               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22460 $as_echo "$BOOT_JDK_VERSION" >&6; }
22461             fi # end check jdk version
22462           fi # end check rt.jar
22463         fi # end check javac
22464       fi # end check java
22465     fi # end check boot jdk found
22466   fi
22467 
22468 
22469   if test "x$BOOT_JDK_FOUND" = xno; then
22470     # Now execute the test
22471 
22472   if test "x$ProgramFiles" != x; then
22473     VIRTUAL_DIR="$ProgramFiles/Java"
22474 
22475   windows_path="$VIRTUAL_DIR"
22476   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22477     unix_path=`$CYGPATH -u "$windows_path"`
22478     VIRTUAL_DIR="$unix_path"
22479   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22480     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22481     VIRTUAL_DIR="$unix_path"
22482   fi
22483 
22484 
22485   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22486   BOOT_JDK_SUFFIX=""
22487   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22488   if test "x$ALL_JDKS_FOUND" != x; then
22489     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22490 
22491   if test "x$BOOT_JDK_FOUND" = xno; then
22492     # Now execute the test
22493 
22494         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22495         if test -d "$BOOT_JDK"; then
22496           BOOT_JDK_FOUND=maybe
22497           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22498 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22499         fi
22500 
22501 
22502     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22503     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22504       # Do we have a bin/java?
22505       if test ! -x "$BOOT_JDK/bin/java"; then
22506         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22507 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22508         BOOT_JDK_FOUND=no
22509       else
22510         # Do we have a bin/javac?
22511         if test ! -x "$BOOT_JDK/bin/javac"; then
22512           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22513 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22514           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22515 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22516           BOOT_JDK_FOUND=no
22517         else
22518           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22519           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22520             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22521 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22522             BOOT_JDK_FOUND=no
22523           else
22524             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22525             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22526 
22527             # Extra M4 quote needed to protect [] in grep expression.
22528             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22529             if test "x$FOUND_VERSION_78" = x; then
22530               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22531 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22532               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22533 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22534               BOOT_JDK_FOUND=no
22535             else
22536               # We're done! :-)
22537               BOOT_JDK_FOUND=yes
22538 
22539   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22540 
22541   # Input might be given as Windows format, start by converting to
22542   # unix format.
22543   path="$BOOT_JDK"
22544   new_path=`$CYGPATH -u "$path"`
22545 
22546   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22547   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22548   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22549   # "foo.exe" is OK but "foo" is an error.
22550   #
22551   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22552   # It is also a way to make sure we got the proper file name for the real test later on.
22553   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22554   if test "x$test_shortpath" = x; then
22555     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22556 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22557     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22558   fi
22559 
22560   # Call helper function which possibly converts this using DOS-style short mode.
22561   # If so, the updated path is stored in $new_path.
22562 
22563   input_path="$new_path"
22564   # Check if we need to convert this using DOS-style short mode. If the path
22565   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22566   # take no chances and rewrite it.
22567   # Note: m4 eats our [], so we need to use [ and ] instead.
22568   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22569   if test "x$has_forbidden_chars" != x; then
22570     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22571     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22572     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22573     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22574       # Going to short mode and back again did indeed matter. Since short mode is
22575       # case insensitive, let's make it lowercase to improve readability.
22576       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22577       # Now convert it back to Unix-style (cygpath)
22578       input_path=`$CYGPATH -u "$shortmode_path"`
22579       new_path="$input_path"
22580     fi
22581   fi
22582 
22583   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22584   if test "x$test_cygdrive_prefix" = x; then
22585     # As a simple fix, exclude /usr/bin since it's not a real path.
22586     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22587       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22588       # a path prefixed by /cygdrive for fixpath to work.
22589       new_path="$CYGWIN_ROOT_PATH$input_path"
22590     fi
22591   fi
22592 
22593 
22594   if test "x$path" != "x$new_path"; then
22595     BOOT_JDK="$new_path"
22596     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22597 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22598   fi
22599 
22600   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22601 
22602   path="$BOOT_JDK"
22603   has_colon=`$ECHO $path | $GREP ^.:`
22604   new_path="$path"
22605   if test "x$has_colon" = x; then
22606     # Not in mixed or Windows style, start by that.
22607     new_path=`cmd //c echo $path`
22608   fi
22609 
22610 
22611   input_path="$new_path"
22612   # Check if we need to convert this using DOS-style short mode. If the path
22613   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22614   # take no chances and rewrite it.
22615   # Note: m4 eats our [], so we need to use [ and ] instead.
22616   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22617   if test "x$has_forbidden_chars" != x; then
22618     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22619     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22620   fi
22621 
22622 
22623   windows_path="$new_path"
22624   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22625     unix_path=`$CYGPATH -u "$windows_path"`
22626     new_path="$unix_path"
22627   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22628     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22629     new_path="$unix_path"
22630   fi
22631 
22632   if test "x$path" != "x$new_path"; then
22633     BOOT_JDK="$new_path"
22634     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22635 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22636   fi
22637 
22638   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22639   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22640 
22641   else
22642     # We're on a posix platform. Hooray! :)
22643     path="$BOOT_JDK"
22644     has_space=`$ECHO "$path" | $GREP " "`
22645     if test "x$has_space" != x; then
22646       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22647 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22648       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22649     fi
22650 
22651     # Use eval to expand a potential ~
22652     eval path="$path"
22653     if test ! -f "$path" && test ! -d "$path"; then
22654       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22655     fi
22656 
22657     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22658   fi
22659 
22660               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22661 $as_echo_n "checking for Boot JDK... " >&6; }
22662               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22663 $as_echo "$BOOT_JDK" >&6; }
22664               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22665 $as_echo_n "checking Boot JDK version... " >&6; }
22666               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22667               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22668 $as_echo "$BOOT_JDK_VERSION" >&6; }
22669             fi # end check jdk version
22670           fi # end check rt.jar
22671         fi # end check javac
22672       fi # end check java
22673     fi # end check boot jdk found
22674   fi
22675 
22676     done
22677   fi
22678 
22679   fi
22680 
22681 
22682     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22683     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22684       # Do we have a bin/java?
22685       if test ! -x "$BOOT_JDK/bin/java"; then
22686         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22687 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22688         BOOT_JDK_FOUND=no
22689       else
22690         # Do we have a bin/javac?
22691         if test ! -x "$BOOT_JDK/bin/javac"; then
22692           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22693 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22694           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22695 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22696           BOOT_JDK_FOUND=no
22697         else
22698           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22699           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22700             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22701 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22702             BOOT_JDK_FOUND=no
22703           else
22704             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22705             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22706 
22707             # Extra M4 quote needed to protect [] in grep expression.
22708             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22709             if test "x$FOUND_VERSION_78" = x; then
22710               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22711 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22712               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22713 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22714               BOOT_JDK_FOUND=no
22715             else
22716               # We're done! :-)
22717               BOOT_JDK_FOUND=yes
22718 
22719   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22720 
22721   # Input might be given as Windows format, start by converting to
22722   # unix format.
22723   path="$BOOT_JDK"
22724   new_path=`$CYGPATH -u "$path"`
22725 
22726   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22727   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22728   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22729   # "foo.exe" is OK but "foo" is an error.
22730   #
22731   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22732   # It is also a way to make sure we got the proper file name for the real test later on.
22733   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22734   if test "x$test_shortpath" = x; then
22735     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22736 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22737     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22738   fi
22739 
22740   # Call helper function which possibly converts this using DOS-style short mode.
22741   # If so, the updated path is stored in $new_path.
22742 
22743   input_path="$new_path"
22744   # Check if we need to convert this using DOS-style short mode. If the path
22745   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22746   # take no chances and rewrite it.
22747   # Note: m4 eats our [], so we need to use [ and ] instead.
22748   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22749   if test "x$has_forbidden_chars" != x; then
22750     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22751     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22752     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22753     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22754       # Going to short mode and back again did indeed matter. Since short mode is
22755       # case insensitive, let's make it lowercase to improve readability.
22756       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22757       # Now convert it back to Unix-style (cygpath)
22758       input_path=`$CYGPATH -u "$shortmode_path"`
22759       new_path="$input_path"
22760     fi
22761   fi
22762 
22763   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22764   if test "x$test_cygdrive_prefix" = x; then
22765     # As a simple fix, exclude /usr/bin since it's not a real path.
22766     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22767       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22768       # a path prefixed by /cygdrive for fixpath to work.
22769       new_path="$CYGWIN_ROOT_PATH$input_path"
22770     fi
22771   fi
22772 
22773 
22774   if test "x$path" != "x$new_path"; then
22775     BOOT_JDK="$new_path"
22776     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22777 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22778   fi
22779 
22780   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22781 
22782   path="$BOOT_JDK"
22783   has_colon=`$ECHO $path | $GREP ^.:`
22784   new_path="$path"
22785   if test "x$has_colon" = x; then
22786     # Not in mixed or Windows style, start by that.
22787     new_path=`cmd //c echo $path`
22788   fi
22789 
22790 
22791   input_path="$new_path"
22792   # Check if we need to convert this using DOS-style short mode. If the path
22793   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22794   # take no chances and rewrite it.
22795   # Note: m4 eats our [], so we need to use [ and ] instead.
22796   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22797   if test "x$has_forbidden_chars" != x; then
22798     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22799     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22800   fi
22801 
22802 
22803   windows_path="$new_path"
22804   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22805     unix_path=`$CYGPATH -u "$windows_path"`
22806     new_path="$unix_path"
22807   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22808     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22809     new_path="$unix_path"
22810   fi
22811 
22812   if test "x$path" != "x$new_path"; then
22813     BOOT_JDK="$new_path"
22814     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22815 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22816   fi
22817 
22818   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22819   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22820 
22821   else
22822     # We're on a posix platform. Hooray! :)
22823     path="$BOOT_JDK"
22824     has_space=`$ECHO "$path" | $GREP " "`
22825     if test "x$has_space" != x; then
22826       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22827 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22828       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22829     fi
22830 
22831     # Use eval to expand a potential ~
22832     eval path="$path"
22833     if test ! -f "$path" && test ! -d "$path"; then
22834       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22835     fi
22836 
22837     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22838   fi
22839 
22840               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22841 $as_echo_n "checking for Boot JDK... " >&6; }
22842               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22843 $as_echo "$BOOT_JDK" >&6; }
22844               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22845 $as_echo_n "checking Boot JDK version... " >&6; }
22846               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22847               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22848 $as_echo "$BOOT_JDK_VERSION" >&6; }
22849             fi # end check jdk version
22850           fi # end check rt.jar
22851         fi # end check javac
22852       fi # end check java
22853     fi # end check boot jdk found
22854   fi
22855 
22856 
22857   if test "x$BOOT_JDK_FOUND" = xno; then
22858     # Now execute the test
22859 
22860   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22861   BOOT_JDK_SUFFIX=""
22862   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22863   if test "x$ALL_JDKS_FOUND" != x; then
22864     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22865 
22866   if test "x$BOOT_JDK_FOUND" = xno; then
22867     # Now execute the test
22868 
22869         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22870         if test -d "$BOOT_JDK"; then
22871           BOOT_JDK_FOUND=maybe
22872           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22873 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22874         fi
22875 
22876 
22877     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22878     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22879       # Do we have a bin/java?
22880       if test ! -x "$BOOT_JDK/bin/java"; then
22881         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22882 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22883         BOOT_JDK_FOUND=no
22884       else
22885         # Do we have a bin/javac?
22886         if test ! -x "$BOOT_JDK/bin/javac"; then
22887           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22888 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22889           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22890 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22891           BOOT_JDK_FOUND=no
22892         else
22893           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22894           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22895             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22896 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22897             BOOT_JDK_FOUND=no
22898           else
22899             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22900             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22901 
22902             # Extra M4 quote needed to protect [] in grep expression.
22903             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22904             if test "x$FOUND_VERSION_78" = x; then
22905               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22906 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22907               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22908 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22909               BOOT_JDK_FOUND=no
22910             else
22911               # We're done! :-)
22912               BOOT_JDK_FOUND=yes
22913 
22914   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22915 
22916   # Input might be given as Windows format, start by converting to
22917   # unix format.
22918   path="$BOOT_JDK"
22919   new_path=`$CYGPATH -u "$path"`
22920 
22921   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22922   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22923   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22924   # "foo.exe" is OK but "foo" is an error.
22925   #
22926   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22927   # It is also a way to make sure we got the proper file name for the real test later on.
22928   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22929   if test "x$test_shortpath" = x; then
22930     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22931 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22932     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22933   fi
22934 
22935   # Call helper function which possibly converts this using DOS-style short mode.
22936   # If so, the updated path is stored in $new_path.
22937 
22938   input_path="$new_path"
22939   # Check if we need to convert this using DOS-style short mode. If the path
22940   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22941   # take no chances and rewrite it.
22942   # Note: m4 eats our [], so we need to use [ and ] instead.
22943   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22944   if test "x$has_forbidden_chars" != x; then
22945     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22946     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22947     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22948     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22949       # Going to short mode and back again did indeed matter. Since short mode is
22950       # case insensitive, let's make it lowercase to improve readability.
22951       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22952       # Now convert it back to Unix-style (cygpath)
22953       input_path=`$CYGPATH -u "$shortmode_path"`
22954       new_path="$input_path"
22955     fi
22956   fi
22957 
22958   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22959   if test "x$test_cygdrive_prefix" = x; then
22960     # As a simple fix, exclude /usr/bin since it's not a real path.
22961     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22962       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22963       # a path prefixed by /cygdrive for fixpath to work.
22964       new_path="$CYGWIN_ROOT_PATH$input_path"
22965     fi
22966   fi
22967 
22968 
22969   if test "x$path" != "x$new_path"; then
22970     BOOT_JDK="$new_path"
22971     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22972 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22973   fi
22974 
22975   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22976 
22977   path="$BOOT_JDK"
22978   has_colon=`$ECHO $path | $GREP ^.:`
22979   new_path="$path"
22980   if test "x$has_colon" = x; then
22981     # Not in mixed or Windows style, start by that.
22982     new_path=`cmd //c echo $path`
22983   fi
22984 
22985 
22986   input_path="$new_path"
22987   # Check if we need to convert this using DOS-style short mode. If the path
22988   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22989   # take no chances and rewrite it.
22990   # Note: m4 eats our [], so we need to use [ and ] instead.
22991   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22992   if test "x$has_forbidden_chars" != x; then
22993     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22994     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22995   fi
22996 
22997 
22998   windows_path="$new_path"
22999   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23000     unix_path=`$CYGPATH -u "$windows_path"`
23001     new_path="$unix_path"
23002   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23003     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23004     new_path="$unix_path"
23005   fi
23006 
23007   if test "x$path" != "x$new_path"; then
23008     BOOT_JDK="$new_path"
23009     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23010 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23011   fi
23012 
23013   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23014   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23015 
23016   else
23017     # We're on a posix platform. Hooray! :)
23018     path="$BOOT_JDK"
23019     has_space=`$ECHO "$path" | $GREP " "`
23020     if test "x$has_space" != x; then
23021       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23022 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23023       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23024     fi
23025 
23026     # Use eval to expand a potential ~
23027     eval path="$path"
23028     if test ! -f "$path" && test ! -d "$path"; then
23029       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23030     fi
23031 
23032     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23033   fi
23034 
23035               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23036 $as_echo_n "checking for Boot JDK... " >&6; }
23037               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23038 $as_echo "$BOOT_JDK" >&6; }
23039               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23040 $as_echo_n "checking Boot JDK version... " >&6; }
23041               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23042               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23043 $as_echo "$BOOT_JDK_VERSION" >&6; }
23044             fi # end check jdk version
23045           fi # end check rt.jar
23046         fi # end check javac
23047       fi # end check java
23048     fi # end check boot jdk found
23049   fi
23050 
23051     done
23052   fi
23053 
23054 
23055     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23056     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23057       # Do we have a bin/java?
23058       if test ! -x "$BOOT_JDK/bin/java"; then
23059         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23060 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23061         BOOT_JDK_FOUND=no
23062       else
23063         # Do we have a bin/javac?
23064         if test ! -x "$BOOT_JDK/bin/javac"; then
23065           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23066 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23067           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23068 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23069           BOOT_JDK_FOUND=no
23070         else
23071           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23072           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23073             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23074 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23075             BOOT_JDK_FOUND=no
23076           else
23077             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23078             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23079 
23080             # Extra M4 quote needed to protect [] in grep expression.
23081             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23082             if test "x$FOUND_VERSION_78" = x; then
23083               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23084 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23085               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23086 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23087               BOOT_JDK_FOUND=no
23088             else
23089               # We're done! :-)
23090               BOOT_JDK_FOUND=yes
23091 
23092   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23093 
23094   # Input might be given as Windows format, start by converting to
23095   # unix format.
23096   path="$BOOT_JDK"
23097   new_path=`$CYGPATH -u "$path"`
23098 
23099   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23100   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23101   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23102   # "foo.exe" is OK but "foo" is an error.
23103   #
23104   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23105   # It is also a way to make sure we got the proper file name for the real test later on.
23106   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23107   if test "x$test_shortpath" = x; then
23108     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23109 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23110     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23111   fi
23112 
23113   # Call helper function which possibly converts this using DOS-style short mode.
23114   # If so, the updated path is stored in $new_path.
23115 
23116   input_path="$new_path"
23117   # Check if we need to convert this using DOS-style short mode. If the path
23118   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23119   # take no chances and rewrite it.
23120   # Note: m4 eats our [], so we need to use [ and ] instead.
23121   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23122   if test "x$has_forbidden_chars" != x; then
23123     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23124     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23125     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23126     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23127       # Going to short mode and back again did indeed matter. Since short mode is
23128       # case insensitive, let's make it lowercase to improve readability.
23129       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23130       # Now convert it back to Unix-style (cygpath)
23131       input_path=`$CYGPATH -u "$shortmode_path"`
23132       new_path="$input_path"
23133     fi
23134   fi
23135 
23136   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23137   if test "x$test_cygdrive_prefix" = x; then
23138     # As a simple fix, exclude /usr/bin since it's not a real path.
23139     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23140       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23141       # a path prefixed by /cygdrive for fixpath to work.
23142       new_path="$CYGWIN_ROOT_PATH$input_path"
23143     fi
23144   fi
23145 
23146 
23147   if test "x$path" != "x$new_path"; then
23148     BOOT_JDK="$new_path"
23149     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23150 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23151   fi
23152 
23153   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23154 
23155   path="$BOOT_JDK"
23156   has_colon=`$ECHO $path | $GREP ^.:`
23157   new_path="$path"
23158   if test "x$has_colon" = x; then
23159     # Not in mixed or Windows style, start by that.
23160     new_path=`cmd //c echo $path`
23161   fi
23162 
23163 
23164   input_path="$new_path"
23165   # Check if we need to convert this using DOS-style short mode. If the path
23166   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23167   # take no chances and rewrite it.
23168   # Note: m4 eats our [], so we need to use [ and ] instead.
23169   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23170   if test "x$has_forbidden_chars" != x; then
23171     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23172     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23173   fi
23174 
23175 
23176   windows_path="$new_path"
23177   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23178     unix_path=`$CYGPATH -u "$windows_path"`
23179     new_path="$unix_path"
23180   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23181     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23182     new_path="$unix_path"
23183   fi
23184 
23185   if test "x$path" != "x$new_path"; then
23186     BOOT_JDK="$new_path"
23187     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23188 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23189   fi
23190 
23191   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23192   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23193 
23194   else
23195     # We're on a posix platform. Hooray! :)
23196     path="$BOOT_JDK"
23197     has_space=`$ECHO "$path" | $GREP " "`
23198     if test "x$has_space" != x; then
23199       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23200 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23201       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23202     fi
23203 
23204     # Use eval to expand a potential ~
23205     eval path="$path"
23206     if test ! -f "$path" && test ! -d "$path"; then
23207       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23208     fi
23209 
23210     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23211   fi
23212 
23213               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23214 $as_echo_n "checking for Boot JDK... " >&6; }
23215               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23216 $as_echo "$BOOT_JDK" >&6; }
23217               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23218 $as_echo_n "checking Boot JDK version... " >&6; }
23219               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23220               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23221 $as_echo "$BOOT_JDK_VERSION" >&6; }
23222             fi # end check jdk version
23223           fi # end check rt.jar
23224         fi # end check javac
23225       fi # end check java
23226     fi # end check boot jdk found
23227   fi
23228 
23229   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23230 
23231   if test "x$BOOT_JDK_FOUND" = xno; then
23232     # Now execute the test
23233 
23234   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23235   BOOT_JDK_SUFFIX="/Contents/Home"
23236   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23237   if test "x$ALL_JDKS_FOUND" != x; then
23238     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23239 
23240   if test "x$BOOT_JDK_FOUND" = xno; then
23241     # Now execute the test
23242 
23243         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23244         if test -d "$BOOT_JDK"; then
23245           BOOT_JDK_FOUND=maybe
23246           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23247 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23248         fi
23249 
23250 
23251     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23252     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23253       # Do we have a bin/java?
23254       if test ! -x "$BOOT_JDK/bin/java"; then
23255         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23257         BOOT_JDK_FOUND=no
23258       else
23259         # Do we have a bin/javac?
23260         if test ! -x "$BOOT_JDK/bin/javac"; then
23261           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23262 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23263           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23264 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23265           BOOT_JDK_FOUND=no
23266         else
23267           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23268           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23269             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23271             BOOT_JDK_FOUND=no
23272           else
23273             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23274             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23275 
23276             # Extra M4 quote needed to protect [] in grep expression.
23277             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23278             if test "x$FOUND_VERSION_78" = x; then
23279               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23281               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23282 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23283               BOOT_JDK_FOUND=no
23284             else
23285               # We're done! :-)
23286               BOOT_JDK_FOUND=yes
23287 
23288   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23289 
23290   # Input might be given as Windows format, start by converting to
23291   # unix format.
23292   path="$BOOT_JDK"
23293   new_path=`$CYGPATH -u "$path"`
23294 
23295   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23296   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23297   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23298   # "foo.exe" is OK but "foo" is an error.
23299   #
23300   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23301   # It is also a way to make sure we got the proper file name for the real test later on.
23302   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23303   if test "x$test_shortpath" = x; then
23304     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23305 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23306     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23307   fi
23308 
23309   # Call helper function which possibly converts this using DOS-style short mode.
23310   # If so, the updated path is stored in $new_path.
23311 
23312   input_path="$new_path"
23313   # Check if we need to convert this using DOS-style short mode. If the path
23314   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23315   # take no chances and rewrite it.
23316   # Note: m4 eats our [], so we need to use [ and ] instead.
23317   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23318   if test "x$has_forbidden_chars" != x; then
23319     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23320     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23321     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23322     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23323       # Going to short mode and back again did indeed matter. Since short mode is
23324       # case insensitive, let's make it lowercase to improve readability.
23325       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23326       # Now convert it back to Unix-style (cygpath)
23327       input_path=`$CYGPATH -u "$shortmode_path"`
23328       new_path="$input_path"
23329     fi
23330   fi
23331 
23332   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23333   if test "x$test_cygdrive_prefix" = x; then
23334     # As a simple fix, exclude /usr/bin since it's not a real path.
23335     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23336       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23337       # a path prefixed by /cygdrive for fixpath to work.
23338       new_path="$CYGWIN_ROOT_PATH$input_path"
23339     fi
23340   fi
23341 
23342 
23343   if test "x$path" != "x$new_path"; then
23344     BOOT_JDK="$new_path"
23345     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23347   fi
23348 
23349   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23350 
23351   path="$BOOT_JDK"
23352   has_colon=`$ECHO $path | $GREP ^.:`
23353   new_path="$path"
23354   if test "x$has_colon" = x; then
23355     # Not in mixed or Windows style, start by that.
23356     new_path=`cmd //c echo $path`
23357   fi
23358 
23359 
23360   input_path="$new_path"
23361   # Check if we need to convert this using DOS-style short mode. If the path
23362   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23363   # take no chances and rewrite it.
23364   # Note: m4 eats our [], so we need to use [ and ] instead.
23365   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23366   if test "x$has_forbidden_chars" != x; then
23367     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23368     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23369   fi
23370 
23371 
23372   windows_path="$new_path"
23373   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23374     unix_path=`$CYGPATH -u "$windows_path"`
23375     new_path="$unix_path"
23376   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23377     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23378     new_path="$unix_path"
23379   fi
23380 
23381   if test "x$path" != "x$new_path"; then
23382     BOOT_JDK="$new_path"
23383     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23385   fi
23386 
23387   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23388   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23389 
23390   else
23391     # We're on a posix platform. Hooray! :)
23392     path="$BOOT_JDK"
23393     has_space=`$ECHO "$path" | $GREP " "`
23394     if test "x$has_space" != x; then
23395       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23396 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23397       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23398     fi
23399 
23400     # Use eval to expand a potential ~
23401     eval path="$path"
23402     if test ! -f "$path" && test ! -d "$path"; then
23403       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23404     fi
23405 
23406     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23407   fi
23408 
23409               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23410 $as_echo_n "checking for Boot JDK... " >&6; }
23411               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23412 $as_echo "$BOOT_JDK" >&6; }
23413               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23414 $as_echo_n "checking Boot JDK version... " >&6; }
23415               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23416               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23417 $as_echo "$BOOT_JDK_VERSION" >&6; }
23418             fi # end check jdk version
23419           fi # end check rt.jar
23420         fi # end check javac
23421       fi # end check java
23422     fi # end check boot jdk found
23423   fi
23424 
23425     done
23426   fi
23427 
23428 
23429     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23430     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23431       # Do we have a bin/java?
23432       if test ! -x "$BOOT_JDK/bin/java"; then
23433         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23435         BOOT_JDK_FOUND=no
23436       else
23437         # Do we have a bin/javac?
23438         if test ! -x "$BOOT_JDK/bin/javac"; then
23439           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23441           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23442 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23443           BOOT_JDK_FOUND=no
23444         else
23445           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23446           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23447             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23449             BOOT_JDK_FOUND=no
23450           else
23451             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23452             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23453 
23454             # Extra M4 quote needed to protect [] in grep expression.
23455             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23456             if test "x$FOUND_VERSION_78" = x; then
23457               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23458 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23459               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23460 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23461               BOOT_JDK_FOUND=no
23462             else
23463               # We're done! :-)
23464               BOOT_JDK_FOUND=yes
23465 
23466   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23467 
23468   # Input might be given as Windows format, start by converting to
23469   # unix format.
23470   path="$BOOT_JDK"
23471   new_path=`$CYGPATH -u "$path"`
23472 
23473   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23474   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23475   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23476   # "foo.exe" is OK but "foo" is an error.
23477   #
23478   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23479   # It is also a way to make sure we got the proper file name for the real test later on.
23480   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23481   if test "x$test_shortpath" = x; then
23482     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23483 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23484     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23485   fi
23486 
23487   # Call helper function which possibly converts this using DOS-style short mode.
23488   # If so, the updated path is stored in $new_path.
23489 
23490   input_path="$new_path"
23491   # Check if we need to convert this using DOS-style short mode. If the path
23492   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23493   # take no chances and rewrite it.
23494   # Note: m4 eats our [], so we need to use [ and ] instead.
23495   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23496   if test "x$has_forbidden_chars" != x; then
23497     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23498     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23499     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23500     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23501       # Going to short mode and back again did indeed matter. Since short mode is
23502       # case insensitive, let's make it lowercase to improve readability.
23503       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23504       # Now convert it back to Unix-style (cygpath)
23505       input_path=`$CYGPATH -u "$shortmode_path"`
23506       new_path="$input_path"
23507     fi
23508   fi
23509 
23510   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23511   if test "x$test_cygdrive_prefix" = x; then
23512     # As a simple fix, exclude /usr/bin since it's not a real path.
23513     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23514       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23515       # a path prefixed by /cygdrive for fixpath to work.
23516       new_path="$CYGWIN_ROOT_PATH$input_path"
23517     fi
23518   fi
23519 
23520 
23521   if test "x$path" != "x$new_path"; then
23522     BOOT_JDK="$new_path"
23523     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23524 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23525   fi
23526 
23527   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23528 
23529   path="$BOOT_JDK"
23530   has_colon=`$ECHO $path | $GREP ^.:`
23531   new_path="$path"
23532   if test "x$has_colon" = x; then
23533     # Not in mixed or Windows style, start by that.
23534     new_path=`cmd //c echo $path`
23535   fi
23536 
23537 
23538   input_path="$new_path"
23539   # Check if we need to convert this using DOS-style short mode. If the path
23540   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23541   # take no chances and rewrite it.
23542   # Note: m4 eats our [], so we need to use [ and ] instead.
23543   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23544   if test "x$has_forbidden_chars" != x; then
23545     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23546     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23547   fi
23548 
23549 
23550   windows_path="$new_path"
23551   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23552     unix_path=`$CYGPATH -u "$windows_path"`
23553     new_path="$unix_path"
23554   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23555     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23556     new_path="$unix_path"
23557   fi
23558 
23559   if test "x$path" != "x$new_path"; then
23560     BOOT_JDK="$new_path"
23561     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23562 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23563   fi
23564 
23565   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23566   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23567 
23568   else
23569     # We're on a posix platform. Hooray! :)
23570     path="$BOOT_JDK"
23571     has_space=`$ECHO "$path" | $GREP " "`
23572     if test "x$has_space" != x; then
23573       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23574 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23575       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23576     fi
23577 
23578     # Use eval to expand a potential ~
23579     eval path="$path"
23580     if test ! -f "$path" && test ! -d "$path"; then
23581       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23582     fi
23583 
23584     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23585   fi
23586 
23587               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23588 $as_echo_n "checking for Boot JDK... " >&6; }
23589               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23590 $as_echo "$BOOT_JDK" >&6; }
23591               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23592 $as_echo_n "checking Boot JDK version... " >&6; }
23593               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23594               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23595 $as_echo "$BOOT_JDK_VERSION" >&6; }
23596             fi # end check jdk version
23597           fi # end check rt.jar
23598         fi # end check javac
23599       fi # end check java
23600     fi # end check boot jdk found
23601   fi
23602 
23603 
23604   if test "x$BOOT_JDK_FOUND" = xno; then
23605     # Now execute the test
23606 
23607   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23608   BOOT_JDK_SUFFIX="/Contents/Home"
23609   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23610   if test "x$ALL_JDKS_FOUND" != x; then
23611     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23612 
23613   if test "x$BOOT_JDK_FOUND" = xno; then
23614     # Now execute the test
23615 
23616         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23617         if test -d "$BOOT_JDK"; then
23618           BOOT_JDK_FOUND=maybe
23619           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23620 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23621         fi
23622 
23623 
23624     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23625     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23626       # Do we have a bin/java?
23627       if test ! -x "$BOOT_JDK/bin/java"; then
23628         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23630         BOOT_JDK_FOUND=no
23631       else
23632         # Do we have a bin/javac?
23633         if test ! -x "$BOOT_JDK/bin/javac"; then
23634           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23636           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23637 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23638           BOOT_JDK_FOUND=no
23639         else
23640           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23641           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23642             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23644             BOOT_JDK_FOUND=no
23645           else
23646             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23647             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23648 
23649             # Extra M4 quote needed to protect [] in grep expression.
23650             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23651             if test "x$FOUND_VERSION_78" = x; then
23652               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23654               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23655 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23656               BOOT_JDK_FOUND=no
23657             else
23658               # We're done! :-)
23659               BOOT_JDK_FOUND=yes
23660 
23661   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23662 
23663   # Input might be given as Windows format, start by converting to
23664   # unix format.
23665   path="$BOOT_JDK"
23666   new_path=`$CYGPATH -u "$path"`
23667 
23668   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23669   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23670   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23671   # "foo.exe" is OK but "foo" is an error.
23672   #
23673   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23674   # It is also a way to make sure we got the proper file name for the real test later on.
23675   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23676   if test "x$test_shortpath" = x; then
23677     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23678 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23679     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23680   fi
23681 
23682   # Call helper function which possibly converts this using DOS-style short mode.
23683   # If so, the updated path is stored in $new_path.
23684 
23685   input_path="$new_path"
23686   # Check if we need to convert this using DOS-style short mode. If the path
23687   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23688   # take no chances and rewrite it.
23689   # Note: m4 eats our [], so we need to use [ and ] instead.
23690   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23691   if test "x$has_forbidden_chars" != x; then
23692     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23693     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23694     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23695     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23696       # Going to short mode and back again did indeed matter. Since short mode is
23697       # case insensitive, let's make it lowercase to improve readability.
23698       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23699       # Now convert it back to Unix-style (cygpath)
23700       input_path=`$CYGPATH -u "$shortmode_path"`
23701       new_path="$input_path"
23702     fi
23703   fi
23704 
23705   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23706   if test "x$test_cygdrive_prefix" = x; then
23707     # As a simple fix, exclude /usr/bin since it's not a real path.
23708     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23709       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23710       # a path prefixed by /cygdrive for fixpath to work.
23711       new_path="$CYGWIN_ROOT_PATH$input_path"
23712     fi
23713   fi
23714 
23715 
23716   if test "x$path" != "x$new_path"; then
23717     BOOT_JDK="$new_path"
23718     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23720   fi
23721 
23722   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23723 
23724   path="$BOOT_JDK"
23725   has_colon=`$ECHO $path | $GREP ^.:`
23726   new_path="$path"
23727   if test "x$has_colon" = x; then
23728     # Not in mixed or Windows style, start by that.
23729     new_path=`cmd //c echo $path`
23730   fi
23731 
23732 
23733   input_path="$new_path"
23734   # Check if we need to convert this using DOS-style short mode. If the path
23735   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23736   # take no chances and rewrite it.
23737   # Note: m4 eats our [], so we need to use [ and ] instead.
23738   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23739   if test "x$has_forbidden_chars" != x; then
23740     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23741     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23742   fi
23743 
23744 
23745   windows_path="$new_path"
23746   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23747     unix_path=`$CYGPATH -u "$windows_path"`
23748     new_path="$unix_path"
23749   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23750     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23751     new_path="$unix_path"
23752   fi
23753 
23754   if test "x$path" != "x$new_path"; then
23755     BOOT_JDK="$new_path"
23756     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23758   fi
23759 
23760   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23761   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23762 
23763   else
23764     # We're on a posix platform. Hooray! :)
23765     path="$BOOT_JDK"
23766     has_space=`$ECHO "$path" | $GREP " "`
23767     if test "x$has_space" != x; then
23768       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23770       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23771     fi
23772 
23773     # Use eval to expand a potential ~
23774     eval path="$path"
23775     if test ! -f "$path" && test ! -d "$path"; then
23776       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23777     fi
23778 
23779     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23780   fi
23781 
23782               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23783 $as_echo_n "checking for Boot JDK... " >&6; }
23784               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23785 $as_echo "$BOOT_JDK" >&6; }
23786               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23787 $as_echo_n "checking Boot JDK version... " >&6; }
23788               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23789               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23790 $as_echo "$BOOT_JDK_VERSION" >&6; }
23791             fi # end check jdk version
23792           fi # end check rt.jar
23793         fi # end check javac
23794       fi # end check java
23795     fi # end check boot jdk found
23796   fi
23797 
23798     done
23799   fi
23800 
23801 
23802     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23803     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23804       # Do we have a bin/java?
23805       if test ! -x "$BOOT_JDK/bin/java"; then
23806         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23807 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23808         BOOT_JDK_FOUND=no
23809       else
23810         # Do we have a bin/javac?
23811         if test ! -x "$BOOT_JDK/bin/javac"; then
23812           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23813 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23814           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23815 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23816           BOOT_JDK_FOUND=no
23817         else
23818           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23819           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23820             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23822             BOOT_JDK_FOUND=no
23823           else
23824             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23825             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23826 
23827             # Extra M4 quote needed to protect [] in grep expression.
23828             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23829             if test "x$FOUND_VERSION_78" = x; then
23830               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23831 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23832               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23833 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23834               BOOT_JDK_FOUND=no
23835             else
23836               # We're done! :-)
23837               BOOT_JDK_FOUND=yes
23838 
23839   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23840 
23841   # Input might be given as Windows format, start by converting to
23842   # unix format.
23843   path="$BOOT_JDK"
23844   new_path=`$CYGPATH -u "$path"`
23845 
23846   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23847   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23848   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23849   # "foo.exe" is OK but "foo" is an error.
23850   #
23851   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23852   # It is also a way to make sure we got the proper file name for the real test later on.
23853   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23854   if test "x$test_shortpath" = x; then
23855     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23856 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23857     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23858   fi
23859 
23860   # Call helper function which possibly converts this using DOS-style short mode.
23861   # If so, the updated path is stored in $new_path.
23862 
23863   input_path="$new_path"
23864   # Check if we need to convert this using DOS-style short mode. If the path
23865   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23866   # take no chances and rewrite it.
23867   # Note: m4 eats our [], so we need to use [ and ] instead.
23868   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23869   if test "x$has_forbidden_chars" != x; then
23870     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23871     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23872     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23873     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23874       # Going to short mode and back again did indeed matter. Since short mode is
23875       # case insensitive, let's make it lowercase to improve readability.
23876       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23877       # Now convert it back to Unix-style (cygpath)
23878       input_path=`$CYGPATH -u "$shortmode_path"`
23879       new_path="$input_path"
23880     fi
23881   fi
23882 
23883   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23884   if test "x$test_cygdrive_prefix" = x; then
23885     # As a simple fix, exclude /usr/bin since it's not a real path.
23886     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23887       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23888       # a path prefixed by /cygdrive for fixpath to work.
23889       new_path="$CYGWIN_ROOT_PATH$input_path"
23890     fi
23891   fi
23892 
23893 
23894   if test "x$path" != "x$new_path"; then
23895     BOOT_JDK="$new_path"
23896     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23897 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23898   fi
23899 
23900   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23901 
23902   path="$BOOT_JDK"
23903   has_colon=`$ECHO $path | $GREP ^.:`
23904   new_path="$path"
23905   if test "x$has_colon" = x; then
23906     # Not in mixed or Windows style, start by that.
23907     new_path=`cmd //c echo $path`
23908   fi
23909 
23910 
23911   input_path="$new_path"
23912   # Check if we need to convert this using DOS-style short mode. If the path
23913   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23914   # take no chances and rewrite it.
23915   # Note: m4 eats our [], so we need to use [ and ] instead.
23916   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23917   if test "x$has_forbidden_chars" != x; then
23918     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23919     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23920   fi
23921 
23922 
23923   windows_path="$new_path"
23924   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23925     unix_path=`$CYGPATH -u "$windows_path"`
23926     new_path="$unix_path"
23927   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23928     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23929     new_path="$unix_path"
23930   fi
23931 
23932   if test "x$path" != "x$new_path"; then
23933     BOOT_JDK="$new_path"
23934     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23935 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23936   fi
23937 
23938   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23939   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23940 
23941   else
23942     # We're on a posix platform. Hooray! :)
23943     path="$BOOT_JDK"
23944     has_space=`$ECHO "$path" | $GREP " "`
23945     if test "x$has_space" != x; then
23946       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23947 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23948       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23949     fi
23950 
23951     # Use eval to expand a potential ~
23952     eval path="$path"
23953     if test ! -f "$path" && test ! -d "$path"; then
23954       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23955     fi
23956 
23957     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23958   fi
23959 
23960               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23961 $as_echo_n "checking for Boot JDK... " >&6; }
23962               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23963 $as_echo "$BOOT_JDK" >&6; }
23964               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23965 $as_echo_n "checking Boot JDK version... " >&6; }
23966               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23967               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23968 $as_echo "$BOOT_JDK_VERSION" >&6; }
23969             fi # end check jdk version
23970           fi # end check rt.jar
23971         fi # end check javac
23972       fi # end check java
23973     fi # end check boot jdk found
23974   fi
23975 
23976   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
23977 
23978   if test "x$BOOT_JDK_FOUND" = xno; then
23979     # Now execute the test
23980 
23981   BOOT_JDK_PREFIX="/usr/lib/jvm"
23982   BOOT_JDK_SUFFIX=""
23983   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23984   if test "x$ALL_JDKS_FOUND" != x; then
23985     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23986 
23987   if test "x$BOOT_JDK_FOUND" = xno; then
23988     # Now execute the test
23989 
23990         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23991         if test -d "$BOOT_JDK"; then
23992           BOOT_JDK_FOUND=maybe
23993           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23994 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23995         fi
23996 
23997 
23998     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23999     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24000       # Do we have a bin/java?
24001       if test ! -x "$BOOT_JDK/bin/java"; then
24002         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24003 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24004         BOOT_JDK_FOUND=no
24005       else
24006         # Do we have a bin/javac?
24007         if test ! -x "$BOOT_JDK/bin/javac"; then
24008           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24009 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24010           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24011 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24012           BOOT_JDK_FOUND=no
24013         else
24014           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24015           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24016             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24017 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24018             BOOT_JDK_FOUND=no
24019           else
24020             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24021             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24022 
24023             # Extra M4 quote needed to protect [] in grep expression.
24024             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24025             if test "x$FOUND_VERSION_78" = x; then
24026               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24027 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24028               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24029 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24030               BOOT_JDK_FOUND=no
24031             else
24032               # We're done! :-)
24033               BOOT_JDK_FOUND=yes
24034 
24035   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24036 
24037   # Input might be given as Windows format, start by converting to
24038   # unix format.
24039   path="$BOOT_JDK"
24040   new_path=`$CYGPATH -u "$path"`
24041 
24042   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24043   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24044   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24045   # "foo.exe" is OK but "foo" is an error.
24046   #
24047   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24048   # It is also a way to make sure we got the proper file name for the real test later on.
24049   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24050   if test "x$test_shortpath" = x; then
24051     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24052 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24053     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24054   fi
24055 
24056   # Call helper function which possibly converts this using DOS-style short mode.
24057   # If so, the updated path is stored in $new_path.
24058 
24059   input_path="$new_path"
24060   # Check if we need to convert this using DOS-style short mode. If the path
24061   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24062   # take no chances and rewrite it.
24063   # Note: m4 eats our [], so we need to use [ and ] instead.
24064   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24065   if test "x$has_forbidden_chars" != x; then
24066     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24067     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24068     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24069     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24070       # Going to short mode and back again did indeed matter. Since short mode is
24071       # case insensitive, let's make it lowercase to improve readability.
24072       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24073       # Now convert it back to Unix-style (cygpath)
24074       input_path=`$CYGPATH -u "$shortmode_path"`
24075       new_path="$input_path"
24076     fi
24077   fi
24078 
24079   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24080   if test "x$test_cygdrive_prefix" = x; then
24081     # As a simple fix, exclude /usr/bin since it's not a real path.
24082     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24083       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24084       # a path prefixed by /cygdrive for fixpath to work.
24085       new_path="$CYGWIN_ROOT_PATH$input_path"
24086     fi
24087   fi
24088 
24089 
24090   if test "x$path" != "x$new_path"; then
24091     BOOT_JDK="$new_path"
24092     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24093 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24094   fi
24095 
24096   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24097 
24098   path="$BOOT_JDK"
24099   has_colon=`$ECHO $path | $GREP ^.:`
24100   new_path="$path"
24101   if test "x$has_colon" = x; then
24102     # Not in mixed or Windows style, start by that.
24103     new_path=`cmd //c echo $path`
24104   fi
24105 
24106 
24107   input_path="$new_path"
24108   # Check if we need to convert this using DOS-style short mode. If the path
24109   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24110   # take no chances and rewrite it.
24111   # Note: m4 eats our [], so we need to use [ and ] instead.
24112   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24113   if test "x$has_forbidden_chars" != x; then
24114     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24115     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24116   fi
24117 
24118 
24119   windows_path="$new_path"
24120   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24121     unix_path=`$CYGPATH -u "$windows_path"`
24122     new_path="$unix_path"
24123   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24124     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24125     new_path="$unix_path"
24126   fi
24127 
24128   if test "x$path" != "x$new_path"; then
24129     BOOT_JDK="$new_path"
24130     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24131 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24132   fi
24133 
24134   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24135   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24136 
24137   else
24138     # We're on a posix platform. Hooray! :)
24139     path="$BOOT_JDK"
24140     has_space=`$ECHO "$path" | $GREP " "`
24141     if test "x$has_space" != x; then
24142       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24143 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24144       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24145     fi
24146 
24147     # Use eval to expand a potential ~
24148     eval path="$path"
24149     if test ! -f "$path" && test ! -d "$path"; then
24150       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24151     fi
24152 
24153     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24154   fi
24155 
24156               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24157 $as_echo_n "checking for Boot JDK... " >&6; }
24158               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24159 $as_echo "$BOOT_JDK" >&6; }
24160               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24161 $as_echo_n "checking Boot JDK version... " >&6; }
24162               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24163               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24164 $as_echo "$BOOT_JDK_VERSION" >&6; }
24165             fi # end check jdk version
24166           fi # end check rt.jar
24167         fi # end check javac
24168       fi # end check java
24169     fi # end check boot jdk found
24170   fi
24171 
24172     done
24173   fi
24174 
24175 
24176     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24177     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24178       # Do we have a bin/java?
24179       if test ! -x "$BOOT_JDK/bin/java"; then
24180         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24181 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24182         BOOT_JDK_FOUND=no
24183       else
24184         # Do we have a bin/javac?
24185         if test ! -x "$BOOT_JDK/bin/javac"; then
24186           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24188           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24189 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24190           BOOT_JDK_FOUND=no
24191         else
24192           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24193           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24194             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24195 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24196             BOOT_JDK_FOUND=no
24197           else
24198             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24199             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24200 
24201             # Extra M4 quote needed to protect [] in grep expression.
24202             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24203             if test "x$FOUND_VERSION_78" = x; then
24204               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24205 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24206               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24207 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24208               BOOT_JDK_FOUND=no
24209             else
24210               # We're done! :-)
24211               BOOT_JDK_FOUND=yes
24212 
24213   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24214 
24215   # Input might be given as Windows format, start by converting to
24216   # unix format.
24217   path="$BOOT_JDK"
24218   new_path=`$CYGPATH -u "$path"`
24219 
24220   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24221   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24222   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24223   # "foo.exe" is OK but "foo" is an error.
24224   #
24225   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24226   # It is also a way to make sure we got the proper file name for the real test later on.
24227   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24228   if test "x$test_shortpath" = x; then
24229     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24230 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24231     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24232   fi
24233 
24234   # Call helper function which possibly converts this using DOS-style short mode.
24235   # If so, the updated path is stored in $new_path.
24236 
24237   input_path="$new_path"
24238   # Check if we need to convert this using DOS-style short mode. If the path
24239   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24240   # take no chances and rewrite it.
24241   # Note: m4 eats our [], so we need to use [ and ] instead.
24242   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24243   if test "x$has_forbidden_chars" != x; then
24244     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24245     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24246     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24247     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24248       # Going to short mode and back again did indeed matter. Since short mode is
24249       # case insensitive, let's make it lowercase to improve readability.
24250       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24251       # Now convert it back to Unix-style (cygpath)
24252       input_path=`$CYGPATH -u "$shortmode_path"`
24253       new_path="$input_path"
24254     fi
24255   fi
24256 
24257   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24258   if test "x$test_cygdrive_prefix" = x; then
24259     # As a simple fix, exclude /usr/bin since it's not a real path.
24260     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24261       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24262       # a path prefixed by /cygdrive for fixpath to work.
24263       new_path="$CYGWIN_ROOT_PATH$input_path"
24264     fi
24265   fi
24266 
24267 
24268   if test "x$path" != "x$new_path"; then
24269     BOOT_JDK="$new_path"
24270     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24271 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24272   fi
24273 
24274   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24275 
24276   path="$BOOT_JDK"
24277   has_colon=`$ECHO $path | $GREP ^.:`
24278   new_path="$path"
24279   if test "x$has_colon" = x; then
24280     # Not in mixed or Windows style, start by that.
24281     new_path=`cmd //c echo $path`
24282   fi
24283 
24284 
24285   input_path="$new_path"
24286   # Check if we need to convert this using DOS-style short mode. If the path
24287   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24288   # take no chances and rewrite it.
24289   # Note: m4 eats our [], so we need to use [ and ] instead.
24290   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24291   if test "x$has_forbidden_chars" != x; then
24292     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24293     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24294   fi
24295 
24296 
24297   windows_path="$new_path"
24298   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24299     unix_path=`$CYGPATH -u "$windows_path"`
24300     new_path="$unix_path"
24301   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24302     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24303     new_path="$unix_path"
24304   fi
24305 
24306   if test "x$path" != "x$new_path"; then
24307     BOOT_JDK="$new_path"
24308     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24309 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24310   fi
24311 
24312   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24313   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24314 
24315   else
24316     # We're on a posix platform. Hooray! :)
24317     path="$BOOT_JDK"
24318     has_space=`$ECHO "$path" | $GREP " "`
24319     if test "x$has_space" != x; then
24320       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24321 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24322       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24323     fi
24324 
24325     # Use eval to expand a potential ~
24326     eval path="$path"
24327     if test ! -f "$path" && test ! -d "$path"; then
24328       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24329     fi
24330 
24331     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24332   fi
24333 
24334               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24335 $as_echo_n "checking for Boot JDK... " >&6; }
24336               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24337 $as_echo "$BOOT_JDK" >&6; }
24338               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24339 $as_echo_n "checking Boot JDK version... " >&6; }
24340               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24341               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24342 $as_echo "$BOOT_JDK_VERSION" >&6; }
24343             fi # end check jdk version
24344           fi # end check rt.jar
24345         fi # end check javac
24346       fi # end check java
24347     fi # end check boot jdk found
24348   fi
24349 
24350   fi
24351 
24352 
24353     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24354     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24355       # Do we have a bin/java?
24356       if test ! -x "$BOOT_JDK/bin/java"; then
24357         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24358 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24359         BOOT_JDK_FOUND=no
24360       else
24361         # Do we have a bin/javac?
24362         if test ! -x "$BOOT_JDK/bin/javac"; then
24363           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24364 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24365           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24366 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24367           BOOT_JDK_FOUND=no
24368         else
24369           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24370           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24371             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24372 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24373             BOOT_JDK_FOUND=no
24374           else
24375             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24376             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24377 
24378             # Extra M4 quote needed to protect [] in grep expression.
24379             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24380             if test "x$FOUND_VERSION_78" = x; then
24381               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24382 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24383               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24384 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24385               BOOT_JDK_FOUND=no
24386             else
24387               # We're done! :-)
24388               BOOT_JDK_FOUND=yes
24389 
24390   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24391 
24392   # Input might be given as Windows format, start by converting to
24393   # unix format.
24394   path="$BOOT_JDK"
24395   new_path=`$CYGPATH -u "$path"`
24396 
24397   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24398   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24399   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24400   # "foo.exe" is OK but "foo" is an error.
24401   #
24402   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24403   # It is also a way to make sure we got the proper file name for the real test later on.
24404   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24405   if test "x$test_shortpath" = x; then
24406     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24407 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24408     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24409   fi
24410 
24411   # Call helper function which possibly converts this using DOS-style short mode.
24412   # If so, the updated path is stored in $new_path.
24413 
24414   input_path="$new_path"
24415   # Check if we need to convert this using DOS-style short mode. If the path
24416   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24417   # take no chances and rewrite it.
24418   # Note: m4 eats our [], so we need to use [ and ] instead.
24419   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24420   if test "x$has_forbidden_chars" != x; then
24421     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24422     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24423     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24424     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24425       # Going to short mode and back again did indeed matter. Since short mode is
24426       # case insensitive, let's make it lowercase to improve readability.
24427       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24428       # Now convert it back to Unix-style (cygpath)
24429       input_path=`$CYGPATH -u "$shortmode_path"`
24430       new_path="$input_path"
24431     fi
24432   fi
24433 
24434   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24435   if test "x$test_cygdrive_prefix" = x; then
24436     # As a simple fix, exclude /usr/bin since it's not a real path.
24437     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24438       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24439       # a path prefixed by /cygdrive for fixpath to work.
24440       new_path="$CYGWIN_ROOT_PATH$input_path"
24441     fi
24442   fi
24443 
24444 
24445   if test "x$path" != "x$new_path"; then
24446     BOOT_JDK="$new_path"
24447     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24448 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24449   fi
24450 
24451   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24452 
24453   path="$BOOT_JDK"
24454   has_colon=`$ECHO $path | $GREP ^.:`
24455   new_path="$path"
24456   if test "x$has_colon" = x; then
24457     # Not in mixed or Windows style, start by that.
24458     new_path=`cmd //c echo $path`
24459   fi
24460 
24461 
24462   input_path="$new_path"
24463   # Check if we need to convert this using DOS-style short mode. If the path
24464   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24465   # take no chances and rewrite it.
24466   # Note: m4 eats our [], so we need to use [ and ] instead.
24467   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24468   if test "x$has_forbidden_chars" != x; then
24469     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24470     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24471   fi
24472 
24473 
24474   windows_path="$new_path"
24475   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24476     unix_path=`$CYGPATH -u "$windows_path"`
24477     new_path="$unix_path"
24478   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24479     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24480     new_path="$unix_path"
24481   fi
24482 
24483   if test "x$path" != "x$new_path"; then
24484     BOOT_JDK="$new_path"
24485     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24486 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24487   fi
24488 
24489   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24490   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24491 
24492   else
24493     # We're on a posix platform. Hooray! :)
24494     path="$BOOT_JDK"
24495     has_space=`$ECHO "$path" | $GREP " "`
24496     if test "x$has_space" != x; then
24497       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24498 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24499       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24500     fi
24501 
24502     # Use eval to expand a potential ~
24503     eval path="$path"
24504     if test ! -f "$path" && test ! -d "$path"; then
24505       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24506     fi
24507 
24508     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24509   fi
24510 
24511               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24512 $as_echo_n "checking for Boot JDK... " >&6; }
24513               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24514 $as_echo "$BOOT_JDK" >&6; }
24515               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24516 $as_echo_n "checking Boot JDK version... " >&6; }
24517               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24518               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24519 $as_echo "$BOOT_JDK_VERSION" >&6; }
24520             fi # end check jdk version
24521           fi # end check rt.jar
24522         fi # end check javac
24523       fi # end check java
24524     fi # end check boot jdk found
24525   fi
24526 
24527 
24528   # If we haven't found anything yet, we've truly lost. Give up.
24529   if test "x$BOOT_JDK_FOUND" = xno; then
24530 
24531   # Print a helpful message on how to acquire the necessary build dependency.
24532   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24533   MISSING_DEPENDENCY=openjdk
24534 
24535   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24536     cygwin_help $MISSING_DEPENDENCY
24537   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24538     msys_help $MISSING_DEPENDENCY
24539   else
24540     PKGHANDLER_COMMAND=
24541 
24542     case $PKGHANDLER in
24543       apt-get)
24544         apt_help     $MISSING_DEPENDENCY ;;
24545       yum)
24546         yum_help     $MISSING_DEPENDENCY ;;
24547       port)
24548         port_help    $MISSING_DEPENDENCY ;;
24549       pkgutil)
24550         pkgutil_help $MISSING_DEPENDENCY ;;
24551       pkgadd)
24552         pkgadd_help  $MISSING_DEPENDENCY ;;
24553     esac
24554 
24555     if test "x$PKGHANDLER_COMMAND" != x; then
24556       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24557     fi
24558   fi
24559 
24560     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24561 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24562     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24563 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24564     as_fn_error $? "Cannot continue" "$LINENO" 5
24565   fi
24566 
24567   # Setup proper paths for what we found
24568   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24569   if test ! -f "$BOOT_RTJAR"; then
24570     # On MacOSX it is called classes.jar
24571     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24572     if test -f "$BOOT_RTJAR"; then
24573       # Remove the ..
24574       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24575     fi
24576   fi
24577   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24578   BOOT_JDK="$BOOT_JDK"
24579 
24580 
24581 
24582 
24583   # Setup tools from the Boot JDK.
24584 
24585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24586 $as_echo_n "checking for java in Boot JDK... " >&6; }
24587   JAVA=$BOOT_JDK/bin/java
24588   if test ! -x $JAVA; then
24589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24590 $as_echo "not found" >&6; }
24591     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24592 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24593     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24594   fi
24595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24596 $as_echo "ok" >&6; }
24597 
24598 
24599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24600 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24601   JAVAC=$BOOT_JDK/bin/javac
24602   if test ! -x $JAVAC; then
24603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24604 $as_echo "not found" >&6; }
24605     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24606 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24607     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24608   fi
24609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24610 $as_echo "ok" >&6; }
24611 
24612 
24613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24614 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24615   JAVAH=$BOOT_JDK/bin/javah
24616   if test ! -x $JAVAH; then
24617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24618 $as_echo "not found" >&6; }
24619     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24620 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24621     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24622   fi
24623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24624 $as_echo "ok" >&6; }
24625 
24626 
24627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24628 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24629   JAVAP=$BOOT_JDK/bin/javap
24630   if test ! -x $JAVAP; then
24631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24632 $as_echo "not found" >&6; }
24633     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24634 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24635     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24636   fi
24637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24638 $as_echo "ok" >&6; }
24639 
24640 
24641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24642 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24643   JAR=$BOOT_JDK/bin/jar
24644   if test ! -x $JAR; then
24645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24646 $as_echo "not found" >&6; }
24647     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24648 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24649     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24650   fi
24651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24652 $as_echo "ok" >&6; }
24653 
24654 
24655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24656 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24657   RMIC=$BOOT_JDK/bin/rmic
24658   if test ! -x $RMIC; then
24659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24660 $as_echo "not found" >&6; }
24661     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24662 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24663     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24664   fi
24665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24666 $as_echo "ok" >&6; }
24667 
24668 
24669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24670 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24671   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24672   if test ! -x $NATIVE2ASCII; then
24673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24674 $as_echo "not found" >&6; }
24675     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24676 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24677     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24678   fi
24679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24680 $as_echo "ok" >&6; }
24681 
24682 
24683   # Finally, set some other options...
24684 
24685   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24686   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24687 
24688 
24689 
24690   # Check if the boot jdk is 32 or 64 bit
24691   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24692     BOOT_JDK_BITS="64"
24693   else
24694     BOOT_JDK_BITS="32"
24695   fi
24696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24697 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24699 $as_echo "$BOOT_JDK_BITS" >&6; }
24700 
24701 
24702 
24703   ##############################################################################
24704   #
24705   # Specify options for anything that is run with the Boot JDK.
24706   #
24707 
24708 # Check whether --with-boot-jdk-jvmargs was given.
24709 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24710   withval=$with_boot_jdk_jvmargs;
24711 fi
24712 
24713 
24714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24715 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24716 
24717   # Disable special log output when a debug build is used as Boot JDK...
24718 
24719   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24720   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24721   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24722   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24723   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24724   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24725     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24726     JVM_ARG_OK=true
24727   else
24728     $ECHO "Arg failed:" >&5
24729     $ECHO "$OUTPUT" >&5
24730     JVM_ARG_OK=false
24731   fi
24732 
24733 
24734   # Apply user provided options.
24735 
24736   $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5
24737   $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5
24738   OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1`
24739   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24740   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24741   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24742     boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs"
24743     JVM_ARG_OK=true
24744   else
24745     $ECHO "Arg failed:" >&5
24746     $ECHO "$OUTPUT" >&5
24747     JVM_ARG_OK=false
24748   fi
24749 
24750 
24751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5
24752 $as_echo "$boot_jdk_jvmargs" >&6; }
24753 
24754   # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
24755   JAVA_FLAGS=$boot_jdk_jvmargs
24756 
24757 
24758 
24759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5
24760 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; }
24761 
24762   # Starting amount of heap memory.
24763 
24764   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
24765   $ECHO "Command: $JAVA -Xms64M -version" >&5
24766   OUTPUT=`$JAVA -Xms64M -version 2>&1`
24767   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24768   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24769   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24770     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M"
24771     JVM_ARG_OK=true
24772   else
24773     $ECHO "Arg failed:" >&5
24774     $ECHO "$OUTPUT" >&5
24775     JVM_ARG_OK=false
24776   fi
24777 
24778 
24779   # Maximum amount of heap memory.
24780   # Maximum stack size.
24781   if test "x$BOOT_JDK_BITS" = x32; then
24782     JVM_MAX_HEAP=768M
24783     STACK_SIZE=768
24784   else
24785     # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit
24786     # pointers are used. Apparently, we need to increase the heap and stack
24787     # space for the jvm. More specifically, when running javac to build huge
24788     # jdk batch
24789     JVM_MAX_HEAP=1600M
24790     STACK_SIZE=1536
24791   fi
24792 
24793   $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5
24794   $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5
24795   OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1`
24796   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24797   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24798   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24799     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP"
24800     JVM_ARG_OK=true
24801   else
24802     $ECHO "Arg failed:" >&5
24803     $ECHO "$OUTPUT" >&5
24804     JVM_ARG_OK=false
24805   fi
24806 
24807 
24808   $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5
24809   $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5
24810   OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1`
24811   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24812   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24813   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24814     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE"
24815     JVM_ARG_OK=true
24816   else
24817     $ECHO "Arg failed:" >&5
24818     $ECHO "$OUTPUT" >&5
24819     JVM_ARG_OK=false
24820   fi
24821 
24822 
24823   $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5
24824   $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5
24825   OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1`
24826   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24827   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24828   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24829     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m"
24830     JVM_ARG_OK=true
24831   else
24832     $ECHO "Arg failed:" >&5
24833     $ECHO "$OUTPUT" >&5
24834     JVM_ARG_OK=false
24835   fi
24836 
24837 
24838   $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5
24839   $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5
24840   OUTPUT=`$JAVA