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 MSVCR_DLL
 644 LIBCXX
 645 LLVM_LIBS
 646 LLVM_LDFLAGS
 647 LLVM_CFLAGS
 648 LLVM_CONFIG
 649 LIBFFI_LIBS
 650 LIBFFI_CFLAGS
 651 STATIC_CXX_SETTING
 652 LIBDL
 653 LIBM
 654 LIBZIP_CAN_USE_MMAP
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBGIF
 657 USE_EXTERNAL_LIBJPEG
 658 ALSA_LIBS
 659 ALSA_CFLAGS
 660 FREETYPE_BUNDLE_LIB_PATH
 661 FREETYPE_LIBS
 662 FREETYPE_CFLAGS
 663 CUPS_CFLAGS
 664 OPENWIN_HOME
 665 X_EXTRA_LIBS
 666 X_LIBS
 667 X_PRE_LIBS
 668 X_CFLAGS
 669 XMKMF
 670 FIXPATH
 671 ZIP_DEBUGINFO_FILES
 672 ENABLE_DEBUG_SYMBOLS
 673 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 674 ZERO_ARCHFLAG
 675 LDFLAGS_CXX_JDK
 676 LDFLAGS_JDKEXE_SUFFIX
 677 LDFLAGS_JDKLIB_SUFFIX
 678 LDFLAGS_JDKEXE
 679 LDFLAGS_JDKLIB
 680 CXXFLAGS_JDKEXE
 681 CXXFLAGS_JDKLIB
 682 CFLAGS_JDKEXE
 683 CFLAGS_JDKLIB
 684 MACOSX_VERSION_MIN
 685 LEGACY_EXTRA_LDFLAGS
 686 LEGACY_EXTRA_CXXFLAGS
 687 LEGACY_EXTRA_CFLAGS
 688 CXX_O_FLAG_NONE
 689 CXX_O_FLAG_NORM
 690 CXX_O_FLAG_HI
 691 CXX_O_FLAG_HIGHEST
 692 C_O_FLAG_NONE
 693 C_O_FLAG_NORM
 694 C_O_FLAG_HI
 695 C_O_FLAG_HIGHEST
 696 CXXFLAGS_DEBUG_SYMBOLS
 697 CFLAGS_DEBUG_SYMBOLS
 698 CXX_FLAG_DEPS
 699 C_FLAG_DEPS
 700 SET_SHARED_LIBRARY_MAPFILE
 701 SET_SHARED_LIBRARY_NAME
 702 SET_SHARED_LIBRARY_ORIGIN
 703 SET_EXECUTABLE_ORIGIN
 704 SHARED_LIBRARY_FLAGS
 705 CXX_FLAG_REORDER
 706 C_FLAG_REORDER
 707 RC_FLAGS
 708 AR_OUT_OPTION
 709 LD_OUT_OPTION
 710 EXE_OUT_OPTION
 711 CC_OUT_OPTION
 712 POST_MCS_CMD
 713 POST_STRIP_CMD
 714 ARFLAGS
 715 COMPILER_TARGET_BITS_FLAG
 716 JT_HOME
 717 JTREGEXE
 718 USING_BROKEN_SUSE_LD
 719 PACKAGE_PATH
 720 LDEXECXX
 721 LDEXE
 722 USE_CLANG
 723 HOTSPOT_LD
 724 HOTSPOT_CXX
 725 HOTSPOT_RC
 726 HOTSPOT_MT
 727 BUILD_LD
 728 BUILD_CXX
 729 BUILD_CC
 730 ac_ct_OBJDUMP
 731 OBJDUMP
 732 ac_ct_OBJCOPY
 733 OBJCOPY
 734 ac_ct_NM
 735 ac_ct_STRIP
 736 MCS
 737 GNM
 738 NM
 739 STRIP
 740 DUMPBIN
 741 RC
 742 MT
 743 LIPO
 744 ac_ct_OBJC
 745 OBJCFLAGS
 746 OBJC
 747 ac_ct_AR
 748 AR
 749 AS
 750 LDCXX
 751 LD
 752 CXXCPP
 753 CPP
 754 ac_ct_CXX
 755 CXXFLAGS
 756 CXX
 757 ac_ct_PROPER_COMPILER_CXX
 758 PROPER_COMPILER_CXX
 759 TOOLS_DIR_CXX
 760 POTENTIAL_CXX
 761 OBJEXT
 762 EXEEXT
 763 ac_ct_CC
 764 CPPFLAGS
 765 LDFLAGS
 766 CFLAGS
 767 CC
 768 ac_ct_PROPER_COMPILER_CC
 769 PROPER_COMPILER_CC
 770 TOOLS_DIR_CC
 771 POTENTIAL_CC
 772 VS_PATH
 773 VS_LIB
 774 VS_INCLUDE
 775 CYGWIN_LINK
 776 EXE_SUFFIX
 777 OBJ_SUFFIX
 778 STATIC_LIBRARY
 779 SHARED_LIBRARY
 780 STATIC_LIBRARY_SUFFIX
 781 SHARED_LIBRARY_SUFFIX
 782 LIBRARY_PREFIX
 783 TOOLCHAIN_TYPE
 784 BUILD_HOTSPOT
 785 HOTSPOT_DIST
 786 BUILD_OUTPUT
 787 OVERRIDE_SRC_ROOT
 788 ADD_SRC_ROOT
 789 JDK_TOPDIR
 790 NASHORN_TOPDIR
 791 HOTSPOT_TOPDIR
 792 JAXWS_TOPDIR
 793 JAXP_TOPDIR
 794 CORBA_TOPDIR
 795 LANGTOOLS_TOPDIR
 796 BOOT_JDK_JVMARGS
 797 JAVAC_FLAGS
 798 BOOT_JDK_SOURCETARGET
 799 JARSIGNER
 800 NATIVE2ASCII
 801 JAR
 802 JAVAH
 803 JAVAC
 804 JAVA
 805 BOOT_JDK
 806 BOOT_TOOLSJAR
 807 BOOT_RTJAR
 808 JAVA_CHECK
 809 JAVAC_CHECK
 810 COOKED_BUILD_NUMBER
 811 JDK_VERSION
 812 COPYRIGHT_YEAR
 813 MACOSX_BUNDLE_ID_BASE
 814 MACOSX_BUNDLE_NAME_BASE
 815 COMPANY_NAME
 816 JDK_RC_PLATFORM_NAME
 817 PRODUCT_SUFFIX
 818 PRODUCT_NAME
 819 LAUNCHER_NAME
 820 MILESTONE
 821 JDK_BUILD_NUMBER
 822 JDK_UPDATE_VERSION
 823 JDK_MICRO_VERSION
 824 JDK_MINOR_VERSION
 825 JDK_MAJOR_VERSION
 826 USER_RELEASE_SUFFIX
 827 COMPRESS_JARS
 828 RMICONNECTOR_IIOP
 829 UNLIMITED_CRYPTO
 830 CACERTS_FILE
 831 TEST_IN_BUILD
 832 BUILD_HEADLESS
 833 SUPPORT_HEADFUL
 834 SUPPORT_HEADLESS
 835 BDEPS_FTP
 836 BDEPS_UNZIP
 837 OS_VERSION_MICRO
 838 OS_VERSION_MINOR
 839 OS_VERSION_MAJOR
 840 PKG_CONFIG
 841 CODESIGN
 842 XATTR
 843 DSYMUTIL
 844 IS_GNU_TIME
 845 TIME
 846 STAT
 847 HG
 848 READELF
 849 OTOOL
 850 LDD
 851 ZIP
 852 UNZIP
 853 FIND_DELETE
 854 MAKE
 855 CHECK_TOOLSDIR_MAKE
 856 CHECK_TOOLSDIR_GMAKE
 857 CHECK_MAKE
 858 CHECK_GMAKE
 859 PKGHANDLER
 860 OUTPUT_ROOT
 861 CONF_NAME
 862 SPEC
 863 BUILD_VARIANT_RELEASE
 864 DEBUG_CLASSFILES
 865 FASTDEBUG
 866 VARIANT
 867 DEBUG_LEVEL
 868 MACOSX_UNIVERSAL
 869 INCLUDE_SA
 870 JVM_VARIANT_CORE
 871 JVM_VARIANT_ZEROSHARK
 872 JVM_VARIANT_ZERO
 873 JVM_VARIANT_KERNEL
 874 JVM_VARIANT_MINIMAL1
 875 JVM_VARIANT_CLIENT
 876 JVM_VARIANT_SERVER
 877 JVM_VARIANTS
 878 JVM_INTERPRETER
 879 JDK_VARIANT
 880 SET_OPENJDK
 881 BUILD_LOG_WRAPPER
 882 BUILD_LOG_PREVIOUS
 883 BUILD_LOG
 884 SYS_ROOT
 885 PATH_SEP
 886 TOPDIR
 887 ZERO_ARCHDEF
 888 DEFINE_CROSS_COMPILE_ARCH
 889 LP64
 890 OPENJDK_TARGET_OS_EXPORT_DIR
 891 OPENJDK_TARGET_OS_API_DIR
 892 OPENJDK_TARGET_CPU_JLI_CFLAGS
 893 OPENJDK_TARGET_CPU_OSARCH
 894 OPENJDK_TARGET_CPU_ISADIR
 895 OPENJDK_TARGET_CPU_LIBDIR
 896 OPENJDK_TARGET_CPU_LEGACY_LIB
 897 OPENJDK_TARGET_CPU_LEGACY
 898 REQUIRED_OS_VERSION
 899 REQUIRED_OS_NAME
 900 COMPILE_TYPE
 901 OPENJDK_TARGET_CPU_ENDIAN
 902 OPENJDK_TARGET_CPU_BITS
 903 OPENJDK_TARGET_CPU_ARCH
 904 OPENJDK_TARGET_CPU
 905 OPENJDK_TARGET_OS_API
 906 OPENJDK_TARGET_OS
 907 OPENJDK_BUILD_CPU_ENDIAN
 908 OPENJDK_BUILD_CPU_BITS
 909 OPENJDK_BUILD_CPU_ARCH
 910 OPENJDK_BUILD_CPU
 911 OPENJDK_BUILD_OS_API
 912 OPENJDK_BUILD_OS
 913 OPENJDK_BUILD_AUTOCONF_NAME
 914 OPENJDK_TARGET_AUTOCONF_NAME
 915 target_os
 916 target_vendor
 917 target_cpu
 918 target
 919 host_os
 920 host_vendor
 921 host_cpu
 922 host
 923 build_os
 924 build_vendor
 925 build_cpu
 926 build
 927 SETFILE
 928 DF
 929 READLINK
 930 CYGPATH
 931 SED
 932 FGREP
 933 EGREP
 934 GREP
 935 AWK
 936 XARGS
 937 WHICH
 938 WC
 939 UNIQ
 940 UNAME
 941 TR
 942 TOUCH
 943 TEE
 944 TAR
 945 TAIL
 946 SORT
 947 SH
 948 RM
 949 PRINTF
 950 NAWK
 951 MV
 952 MKTEMP
 953 MKDIR
 954 LS
 955 LN
 956 HEAD
 957 FIND
 958 FILE
 959 EXPR
 960 ECHO
 961 DIRNAME
 962 DIFF
 963 DATE
 964 CUT
 965 CPIO
 966 CP
 967 COMM
 968 CMP
 969 CHMOD
 970 CAT
 971 BASH
 972 BASENAME
 973 DATE_WHEN_CONFIGURED
 974 CONFIGURE_COMMAND_LINE
 975 target_alias
 976 host_alias
 977 build_alias
 978 LIBS
 979 ECHO_T
 980 ECHO_N
 981 ECHO_C
 982 DEFS
 983 mandir
 984 localedir
 985 libdir
 986 psdir
 987 pdfdir
 988 dvidir
 989 htmldir
 990 infodir
 991 docdir
 992 oldincludedir
 993 includedir
 994 localstatedir
 995 sharedstatedir
 996 sysconfdir
 997 datadir
 998 datarootdir
 999 libexecdir
1000 sbindir
1001 bindir
1002 program_transform_name
1003 prefix
1004 exec_prefix
1005 PACKAGE_URL
1006 PACKAGE_BUGREPORT
1007 PACKAGE_STRING
1008 PACKAGE_VERSION
1009 PACKAGE_TARNAME
1010 PACKAGE_NAME
1011 PATH_SEPARATOR
1012 SHELL'
1013 ac_subst_files=''
1014 ac_user_opts='
1015 enable_option_checking
1016 with_target_bits
1017 with_sys_root
1018 with_tools_dir
1019 with_devkit
1020 enable_openjdk_only
1021 with_custom_make_dir
1022 with_jdk_variant
1023 with_jvm_interpreter
1024 with_jvm_variants
1025 enable_debug
1026 with_debug_level
1027 with_conf_name
1028 with_builddeps_conf
1029 with_builddeps_server
1030 with_builddeps_dir
1031 with_builddeps_group
1032 enable_headful
1033 enable_hotspot_test_in_build
1034 with_cacerts_file
1035 enable_unlimited_crypto
1036 enable_rmiconnector_iiop
1037 with_milestone
1038 with_update_version
1039 with_user_release_suffix
1040 with_build_number
1041 with_boot_jdk
1042 with_boot_jdk_jvmargs
1043 with_add_source_root
1044 with_override_source_root
1045 with_adds_and_overrides
1046 with_override_langtools
1047 with_override_corba
1048 with_override_jaxp
1049 with_override_jaxws
1050 with_override_hotspot
1051 with_override_nashorn
1052 with_override_jdk
1053 with_import_hotspot
1054 with_toolchain_type
1055 with_jtreg
1056 with_extra_cflags
1057 with_extra_cxxflags
1058 with_extra_ldflags
1059 enable_debug_symbols
1060 enable_zip_debug_info
1061 enable_macosx_runtime_support
1062 with_x
1063 with_cups
1064 with_cups_include
1065 with_freetype
1066 with_freetype_include
1067 with_freetype_lib
1068 enable_freetype_bundling
1069 with_alsa
1070 with_alsa_include
1071 with_alsa_lib
1072 with_giflib
1073 with_zlib
1074 with_stdc__lib
1075 with_msvcr_dll
1076 with_dxsdk
1077 with_dxsdk_lib
1078 with_dxsdk_include
1079 with_num_cores
1080 with_memory_size
1081 with_jobs
1082 with_sjavac_server_java
1083 enable_sjavac
1084 enable_precompiled_headers
1085 enable_ccache
1086 with_ccache_dir
1087 '
1088       ac_precious_vars='build_alias
1089 host_alias
1090 target_alias
1091 BASENAME
1092 BASH
1093 CAT
1094 CHMOD
1095 CMP
1096 COMM
1097 CP
1098 CPIO
1099 CUT
1100 DATE
1101 DIFF
1102 DIRNAME
1103 ECHO
1104 EXPR
1105 FILE
1106 FIND
1107 HEAD
1108 LN
1109 LS
1110 MKDIR
1111 MKTEMP
1112 MV
1113 NAWK
1114 PRINTF
1115 RM
1116 SH
1117 SORT
1118 TAIL
1119 TAR
1120 TEE
1121 TOUCH
1122 TR
1123 UNAME
1124 UNIQ
1125 WC
1126 WHICH
1127 XARGS
1128 AWK
1129 GREP
1130 EGREP
1131 FGREP
1132 SED
1133 CYGPATH
1134 READLINK
1135 DF
1136 SETFILE
1137 UNZIP
1138 ZIP
1139 LDD
1140 OTOOL
1141 READELF
1142 HG
1143 STAT
1144 TIME
1145 DSYMUTIL
1146 XATTR
1147 CODESIGN
1148 PKG_CONFIG
1149 JAVA
1150 JAVAC
1151 JAVAH
1152 JAR
1153 NATIVE2ASCII
1154 JARSIGNER
1155 CC
1156 CFLAGS
1157 LDFLAGS
1158 LIBS
1159 CPPFLAGS
1160 CXX
1161 CXXFLAGS
1162 CCC
1163 CPP
1164 CXXCPP
1165 AS
1166 AR
1167 OBJC
1168 OBJCFLAGS
1169 LIPO
1170 STRIP
1171 NM
1172 GNM
1173 MCS
1174 OBJCOPY
1175 OBJDUMP
1176 BUILD_CC
1177 BUILD_CXX
1178 BUILD_LD
1179 JTREGEXE
1180 XMKMF
1181 FREETYPE_CFLAGS
1182 FREETYPE_LIBS
1183 ALSA_CFLAGS
1184 ALSA_LIBS
1185 LIBFFI_CFLAGS
1186 LIBFFI_LIBS
1187 CCACHE'
1188 
1189 
1190 # Initialize some variables set by options.
1191 ac_init_help=
1192 ac_init_version=false
1193 ac_unrecognized_opts=
1194 ac_unrecognized_sep=
1195 # The variables have the same names as the options, with
1196 # dashes changed to underlines.
1197 cache_file=/dev/null
1198 exec_prefix=NONE
1199 no_create=
1200 no_recursion=
1201 prefix=NONE
1202 program_prefix=NONE
1203 program_suffix=NONE
1204 program_transform_name=s,x,x,
1205 silent=
1206 site=
1207 srcdir=
1208 verbose=
1209 x_includes=NONE
1210 x_libraries=NONE
1211 
1212 # Installation directory options.
1213 # These are left unexpanded so users can "make install exec_prefix=/foo"
1214 # and all the variables that are supposed to be based on exec_prefix
1215 # by default will actually change.
1216 # Use braces instead of parens because sh, perl, etc. also accept them.
1217 # (The list follows the same order as the GNU Coding Standards.)
1218 bindir='${exec_prefix}/bin'
1219 sbindir='${exec_prefix}/sbin'
1220 libexecdir='${exec_prefix}/libexec'
1221 datarootdir='${prefix}/share'
1222 datadir='${datarootdir}'
1223 sysconfdir='${prefix}/etc'
1224 sharedstatedir='${prefix}/com'
1225 localstatedir='${prefix}/var'
1226 includedir='${prefix}/include'
1227 oldincludedir='/usr/include'
1228 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1229 infodir='${datarootdir}/info'
1230 htmldir='${docdir}'
1231 dvidir='${docdir}'
1232 pdfdir='${docdir}'
1233 psdir='${docdir}'
1234 libdir='${exec_prefix}/lib'
1235 localedir='${datarootdir}/locale'
1236 mandir='${datarootdir}/man'
1237 
1238 ac_prev=
1239 ac_dashdash=
1240 for ac_option
1241 do
1242   # If the previous option needs an argument, assign it.
1243   if test -n "$ac_prev"; then
1244     eval $ac_prev=\$ac_option
1245     ac_prev=
1246     continue
1247   fi
1248 
1249   case $ac_option in
1250   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1251   *=)   ac_optarg= ;;
1252   *)    ac_optarg=yes ;;
1253   esac
1254 
1255   # Accept the important Cygnus configure options, so we can diagnose typos.
1256 
1257   case $ac_dashdash$ac_option in
1258   --)
1259     ac_dashdash=yes ;;
1260 
1261   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1262     ac_prev=bindir ;;
1263   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1264     bindir=$ac_optarg ;;
1265 
1266   -build | --build | --buil | --bui | --bu)
1267     ac_prev=build_alias ;;
1268   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1269     build_alias=$ac_optarg ;;
1270 
1271   -cache-file | --cache-file | --cache-fil | --cache-fi \
1272   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1273     ac_prev=cache_file ;;
1274   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1275   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1276     cache_file=$ac_optarg ;;
1277 
1278   --config-cache | -C)
1279     cache_file=config.cache ;;
1280 
1281   -datadir | --datadir | --datadi | --datad)
1282     ac_prev=datadir ;;
1283   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1284     datadir=$ac_optarg ;;
1285 
1286   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1287   | --dataroo | --dataro | --datar)
1288     ac_prev=datarootdir ;;
1289   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1290   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1291     datarootdir=$ac_optarg ;;
1292 
1293   -disable-* | --disable-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       as_fn_error $? "invalid feature name: $ac_useropt"
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "enable_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval enable_$ac_useropt=no ;;
1308 
1309   -docdir | --docdir | --docdi | --doc | --do)
1310     ac_prev=docdir ;;
1311   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312     docdir=$ac_optarg ;;
1313 
1314   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1315     ac_prev=dvidir ;;
1316   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317     dvidir=$ac_optarg ;;
1318 
1319   -enable-* | --enable-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       as_fn_error $? "invalid feature name: $ac_useropt"
1324     ac_useropt_orig=$ac_useropt
1325     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326     case $ac_user_opts in
1327       *"
1328 "enable_$ac_useropt"
1329 "*) ;;
1330       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1331          ac_unrecognized_sep=', ';;
1332     esac
1333     eval enable_$ac_useropt=\$ac_optarg ;;
1334 
1335   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1336   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1337   | --exec | --exe | --ex)
1338     ac_prev=exec_prefix ;;
1339   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1340   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1341   | --exec=* | --exe=* | --ex=*)
1342     exec_prefix=$ac_optarg ;;
1343 
1344   -gas | --gas | --ga | --g)
1345     # Obsolete; use --with-gas.
1346     with_gas=yes ;;
1347 
1348   -help | --help | --hel | --he | -h)
1349     ac_init_help=long ;;
1350   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1351     ac_init_help=recursive ;;
1352   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1353     ac_init_help=short ;;
1354 
1355   -host | --host | --hos | --ho)
1356     ac_prev=host_alias ;;
1357   -host=* | --host=* | --hos=* | --ho=*)
1358     host_alias=$ac_optarg ;;
1359 
1360   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1361     ac_prev=htmldir ;;
1362   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1363   | --ht=*)
1364     htmldir=$ac_optarg ;;
1365 
1366   -includedir | --includedir | --includedi | --included | --include \
1367   | --includ | --inclu | --incl | --inc)
1368     ac_prev=includedir ;;
1369   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1370   | --includ=* | --inclu=* | --incl=* | --inc=*)
1371     includedir=$ac_optarg ;;
1372 
1373   -infodir | --infodir | --infodi | --infod | --info | --inf)
1374     ac_prev=infodir ;;
1375   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1376     infodir=$ac_optarg ;;
1377 
1378   -libdir | --libdir | --libdi | --libd)
1379     ac_prev=libdir ;;
1380   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1381     libdir=$ac_optarg ;;
1382 
1383   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1384   | --libexe | --libex | --libe)
1385     ac_prev=libexecdir ;;
1386   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1387   | --libexe=* | --libex=* | --libe=*)
1388     libexecdir=$ac_optarg ;;
1389 
1390   -localedir | --localedir | --localedi | --localed | --locale)
1391     ac_prev=localedir ;;
1392   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1393     localedir=$ac_optarg ;;
1394 
1395   -localstatedir | --localstatedir | --localstatedi | --localstated \
1396   | --localstate | --localstat | --localsta | --localst | --locals)
1397     ac_prev=localstatedir ;;
1398   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1399   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1400     localstatedir=$ac_optarg ;;
1401 
1402   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1403     ac_prev=mandir ;;
1404   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1405     mandir=$ac_optarg ;;
1406 
1407   -nfp | --nfp | --nf)
1408     # Obsolete; use --without-fp.
1409     with_fp=no ;;
1410 
1411   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1412   | --no-cr | --no-c | -n)
1413     no_create=yes ;;
1414 
1415   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1416   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1417     no_recursion=yes ;;
1418 
1419   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1420   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1421   | --oldin | --oldi | --old | --ol | --o)
1422     ac_prev=oldincludedir ;;
1423   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1424   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1425   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1426     oldincludedir=$ac_optarg ;;
1427 
1428   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1429     ac_prev=prefix ;;
1430   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1431     prefix=$ac_optarg ;;
1432 
1433   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1434   | --program-pre | --program-pr | --program-p)
1435     ac_prev=program_prefix ;;
1436   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1437   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1438     program_prefix=$ac_optarg ;;
1439 
1440   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1441   | --program-suf | --program-su | --program-s)
1442     ac_prev=program_suffix ;;
1443   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1444   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1445     program_suffix=$ac_optarg ;;
1446 
1447   -program-transform-name | --program-transform-name \
1448   | --program-transform-nam | --program-transform-na \
1449   | --program-transform-n | --program-transform- \
1450   | --program-transform | --program-transfor \
1451   | --program-transfo | --program-transf \
1452   | --program-trans | --program-tran \
1453   | --progr-tra | --program-tr | --program-t)
1454     ac_prev=program_transform_name ;;
1455   -program-transform-name=* | --program-transform-name=* \
1456   | --program-transform-nam=* | --program-transform-na=* \
1457   | --program-transform-n=* | --program-transform-=* \
1458   | --program-transform=* | --program-transfor=* \
1459   | --program-transfo=* | --program-transf=* \
1460   | --program-trans=* | --program-tran=* \
1461   | --progr-tra=* | --program-tr=* | --program-t=*)
1462     program_transform_name=$ac_optarg ;;
1463 
1464   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1465     ac_prev=pdfdir ;;
1466   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1467     pdfdir=$ac_optarg ;;
1468 
1469   -psdir | --psdir | --psdi | --psd | --ps)
1470     ac_prev=psdir ;;
1471   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1472     psdir=$ac_optarg ;;
1473 
1474   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475   | -silent | --silent | --silen | --sile | --sil)
1476     silent=yes ;;
1477 
1478   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1479     ac_prev=sbindir ;;
1480   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1481   | --sbi=* | --sb=*)
1482     sbindir=$ac_optarg ;;
1483 
1484   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1485   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1486   | --sharedst | --shareds | --shared | --share | --shar \
1487   | --sha | --sh)
1488     ac_prev=sharedstatedir ;;
1489   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1490   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1491   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1492   | --sha=* | --sh=*)
1493     sharedstatedir=$ac_optarg ;;
1494 
1495   -site | --site | --sit)
1496     ac_prev=site ;;
1497   -site=* | --site=* | --sit=*)
1498     site=$ac_optarg ;;
1499 
1500   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1501     ac_prev=srcdir ;;
1502   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1503     srcdir=$ac_optarg ;;
1504 
1505   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1506   | --syscon | --sysco | --sysc | --sys | --sy)
1507     ac_prev=sysconfdir ;;
1508   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1509   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1510     sysconfdir=$ac_optarg ;;
1511 
1512   -target | --target | --targe | --targ | --tar | --ta | --t)
1513     ac_prev=target_alias ;;
1514   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1515     target_alias=$ac_optarg ;;
1516 
1517   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1518     verbose=yes ;;
1519 
1520   -version | --version | --versio | --versi | --vers | -V)
1521     ac_init_version=: ;;
1522 
1523   -with-* | --with-*)
1524     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1525     # Reject names that are not valid shell variable names.
1526     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1527       as_fn_error $? "invalid package name: $ac_useropt"
1528     ac_useropt_orig=$ac_useropt
1529     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530     case $ac_user_opts in
1531       *"
1532 "with_$ac_useropt"
1533 "*) ;;
1534       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1535          ac_unrecognized_sep=', ';;
1536     esac
1537     eval with_$ac_useropt=\$ac_optarg ;;
1538 
1539   -without-* | --without-*)
1540     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1541     # Reject names that are not valid shell variable names.
1542     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1543       as_fn_error $? "invalid package name: $ac_useropt"
1544     ac_useropt_orig=$ac_useropt
1545     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546     case $ac_user_opts in
1547       *"
1548 "with_$ac_useropt"
1549 "*) ;;
1550       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1551          ac_unrecognized_sep=', ';;
1552     esac
1553     eval with_$ac_useropt=no ;;
1554 
1555   --x)
1556     # Obsolete; use --with-x.
1557     with_x=yes ;;
1558 
1559   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1560   | --x-incl | --x-inc | --x-in | --x-i)
1561     ac_prev=x_includes ;;
1562   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1563   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1564     x_includes=$ac_optarg ;;
1565 
1566   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1567   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1568     ac_prev=x_libraries ;;
1569   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1570   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1571     x_libraries=$ac_optarg ;;
1572 
1573   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1574 Try \`$0 --help' for more information"
1575     ;;
1576 
1577   *=*)
1578     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1579     # Reject names that are not valid shell variable names.
1580     case $ac_envvar in #(
1581       '' | [0-9]* | *[!_$as_cr_alnum]* )
1582       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1583     esac
1584     eval $ac_envvar=\$ac_optarg
1585     export $ac_envvar ;;
1586 
1587   *)
1588     # FIXME: should be removed in autoconf 3.0.
1589     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1590     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1591       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1592     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1593     ;;
1594 
1595   esac
1596 done
1597 
1598 if test -n "$ac_prev"; then
1599   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1600   as_fn_error $? "missing argument to $ac_option"
1601 fi
1602 
1603 if test -n "$ac_unrecognized_opts"; then
1604   case $enable_option_checking in
1605     no) ;;
1606     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1607     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1608   esac
1609 fi
1610 
1611 # Check all directory arguments for consistency.
1612 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613                 datadir sysconfdir sharedstatedir localstatedir includedir \
1614                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615                 libdir localedir mandir
1616 do
1617   eval ac_val=\$$ac_var
1618   # Remove trailing slashes.
1619   case $ac_val in
1620     */ )
1621       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622       eval $ac_var=\$ac_val;;
1623   esac
1624   # Be sure to have absolute directory names.
1625   case $ac_val in
1626     [\\/$]* | ?:[\\/]* )  continue;;
1627     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1628   esac
1629   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1630 done
1631 
1632 # There might be people who depend on the old broken behavior: `$host'
1633 # used to hold the argument of --host etc.
1634 # FIXME: To remove some day.
1635 build=$build_alias
1636 host=$host_alias
1637 target=$target_alias
1638 
1639 # FIXME: To remove some day.
1640 if test "x$host_alias" != x; then
1641   if test "x$build_alias" = x; then
1642     cross_compiling=maybe
1643   elif test "x$build_alias" != "x$host_alias"; then
1644     cross_compiling=yes
1645   fi
1646 fi
1647 
1648 ac_tool_prefix=
1649 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1650 
1651 test "$silent" = yes && exec 6>/dev/null
1652 
1653 
1654 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1655 ac_ls_di=`ls -di .` &&
1656 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1657   as_fn_error $? "working directory cannot be determined"
1658 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1659   as_fn_error $? "pwd does not report name of working directory"
1660 
1661 
1662 # Find the source files, if location was not specified.
1663 if test -z "$srcdir"; then
1664   ac_srcdir_defaulted=yes
1665   # Try the directory containing this script, then the parent directory.
1666   ac_confdir=`$as_dirname -- "$as_myself" ||
1667 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1668          X"$as_myself" : 'X\(//\)[^/]' \| \
1669          X"$as_myself" : 'X\(//\)$' \| \
1670          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1671 $as_echo X"$as_myself" |
1672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1673             s//\1/
1674             q
1675           }
1676           /^X\(\/\/\)[^/].*/{
1677             s//\1/
1678             q
1679           }
1680           /^X\(\/\/\)$/{
1681             s//\1/
1682             q
1683           }
1684           /^X\(\/\).*/{
1685             s//\1/
1686             q
1687           }
1688           s/.*/./; q'`
1689   srcdir=$ac_confdir
1690   if test ! -r "$srcdir/$ac_unique_file"; then
1691     srcdir=..
1692   fi
1693 else
1694   ac_srcdir_defaulted=no
1695 fi
1696 if test ! -r "$srcdir/$ac_unique_file"; then
1697   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1698   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1699 fi
1700 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1701 ac_abs_confdir=`(
1702         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1703         pwd)`
1704 # When building in place, set srcdir=.
1705 if test "$ac_abs_confdir" = "$ac_pwd"; then
1706   srcdir=.
1707 fi
1708 # Remove unnecessary trailing slashes from srcdir.
1709 # Double slashes in file names in object file debugging info
1710 # mess up M-x gdb in Emacs.
1711 case $srcdir in
1712 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1713 esac
1714 for ac_var in $ac_precious_vars; do
1715   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1716   eval ac_env_${ac_var}_value=\$${ac_var}
1717   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1718   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1719 done
1720 
1721 #
1722 # Report the --help message.
1723 #
1724 if test "$ac_init_help" = "long"; then
1725   # Omit some internal or obsolete options to make the list less imposing.
1726   # This message is too long to be a string in the A/UX 3.1 sh.
1727   cat <<_ACEOF
1728 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1729 
1730 Usage: $0 [OPTION]... [VAR=VALUE]...
1731 
1732 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1733 VAR=VALUE.  See below for descriptions of some of the useful variables.
1734 
1735 Defaults for the options are specified in brackets.
1736 
1737 Configuration:
1738   -h, --help              display this help and exit
1739       --help=short        display options specific to this package
1740       --help=recursive    display the short help of all the included packages
1741   -V, --version           display version information and exit
1742   -q, --quiet, --silent   do not print \`checking ...' messages
1743       --cache-file=FILE   cache test results in FILE [disabled]
1744   -C, --config-cache      alias for \`--cache-file=config.cache'
1745   -n, --no-create         do not create output files
1746       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1747 
1748 Installation directories:
1749   --prefix=PREFIX         install architecture-independent files in PREFIX
1750                           [$ac_default_prefix]
1751   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1752                           [PREFIX]
1753 
1754 By default, \`make install' will install all the files in
1755 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1756 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1757 for instance \`--prefix=\$HOME'.
1758 
1759 For better control, use the options below.
1760 
1761 Fine tuning of the installation directories:
1762   --bindir=DIR            user executables [EPREFIX/bin]
1763   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1764   --libexecdir=DIR        program executables [EPREFIX/libexec]
1765   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1766   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1767   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1768   --libdir=DIR            object code libraries [EPREFIX/lib]
1769   --includedir=DIR        C header files [PREFIX/include]
1770   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1771   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1772   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1773   --infodir=DIR           info documentation [DATAROOTDIR/info]
1774   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1775   --mandir=DIR            man documentation [DATAROOTDIR/man]
1776   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1777   --htmldir=DIR           html documentation [DOCDIR]
1778   --dvidir=DIR            dvi documentation [DOCDIR]
1779   --pdfdir=DIR            pdf documentation [DOCDIR]
1780   --psdir=DIR             ps documentation [DOCDIR]
1781 _ACEOF
1782 
1783   cat <<\_ACEOF
1784 
1785 X features:
1786   --x-includes=DIR    X include files are in DIR
1787   --x-libraries=DIR   X library files are in DIR
1788 
1789 System types:
1790   --build=BUILD     configure for building on BUILD [guessed]
1791   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1792   --target=TARGET   configure for building compilers for TARGET [HOST]
1793 _ACEOF
1794 fi
1795 
1796 if test -n "$ac_init_help"; then
1797   case $ac_init_help in
1798      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1799    esac
1800   cat <<\_ACEOF
1801 
1802 Optional Features:
1803   --disable-option-checking  ignore unrecognized --enable/--with options
1804   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1805   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1806   --enable-openjdk-only   suppress building custom source even if present
1807                           [disabled]
1808   --enable-debug          set the debug level to fastdebug (shorthand for
1809                           --with-debug-level=fastdebug) [disabled]
1810   --disable-headful       disable building headful support (graphical UI
1811                           support) [enabled]
1812   --enable-hotspot-test-in-build
1813                           run the Queens test after Hotspot build [disabled]
1814   --enable-unlimited-crypto
1815                           Enable unlimited crypto policy [disabled]
1816   --enable-rmiconnector-iiop
1817                           enable the JMX RMIConnector iiop transport
1818                           [disabled]
1819   --disable-debug-symbols disable generation of debug symbols [enabled]
1820   --disable-zip-debug-info
1821                           disable zipping of debug-info files [enabled]
1822   --enable-macosx-runtime-support
1823                           Deprecated. Option is kept for backwards
1824                           compatibility and is ignored
1825   --disable-freetype-bundling
1826                           disable bundling of the freetype library with the
1827                           build result [enabled on Windows or when using
1828                           --with-freetype, disabled otherwise]
1829   --enable-sjavac         use sjavac to do fast incremental compiles
1830                           [disabled]
1831   --disable-precompiled-headers
1832                           disable using precompiled headers when compiling C++
1833                           [enabled]
1834   --enable-ccache         enable using ccache to speed up recompilations
1835                           [disabled]
1836 
1837 Optional Packages:
1838   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1839   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1840   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1841                           support it), e.g. --with-target-bits=32 [guessed]
1842   --with-sys-root         pass this sys-root to the compilers and tools (for
1843                           cross-compiling)
1844   --with-tools-dir        search this directory for compilers and tools (for
1845                           cross-compiling)
1846   --with-devkit           use this directory as base for tools-dir and
1847                           sys-root (for cross-compiling)
1848   --with-custom-make-dir  Deprecated. Option is kept for backwards
1849                           compatibility and is ignored
1850   --with-jdk-variant      JDK variant to build (normal) [normal]
1851   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1852   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1853                           client, minimal1, kernel, zero, zeroshark, core)
1854                           [server]
1855   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1856                           [release]
1857   --with-conf-name        use this as the name of the configuration [generated
1858                           from important configuration options]
1859   --with-builddeps-conf   use this configuration file for the builddeps
1860   --with-builddeps-server download and use build dependencies from this server
1861                           url
1862   --with-builddeps-dir    store downloaded build dependencies here
1863                           [/localhome/builddeps]
1864   --with-builddeps-group  chgrp the downloaded build dependencies to this
1865                           group
1866   --with-cacerts-file     specify alternative cacerts file
1867   --with-milestone        Set milestone value for build [internal]
1868   --with-update-version   Set update version value for build [b00]
1869   --with-user-release-suffix
1870                           Add a custom string to the version string if build
1871                           number is not set.[username_builddateb00]
1872   --with-build-number     Set build number value for build [b00]
1873   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1874   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1875                           invocations of the Boot JDK, overriding the default
1876                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1877                           -enableassertions"
1878   --with-add-source-root  for each and every source directory, look in this
1879                           additional source root for the same directory; if it
1880                           exists and have files in it, include it in the build
1881   --with-override-source-root
1882                           for each and every source directory, look in this
1883                           override source root for the same directory; if it
1884                           exists, use that directory instead and ignore the
1885                           directory in the original source root
1886   --with-adds-and-overrides
1887                           use the subdirs 'adds' and 'overrides' in the
1888                           specified directory as add-source-root and
1889                           override-source-root
1890   --with-override-langtools
1891                           use this langtools dir for the build
1892   --with-override-corba   use this corba dir for the build
1893   --with-override-jaxp    use this jaxp dir for the build
1894   --with-override-jaxws   use this jaxws dir for the build
1895   --with-override-hotspot use this hotspot dir for the build
1896   --with-override-nashorn use this nashorn dir for the build
1897   --with-override-jdk     use this jdk dir for the build
1898   --with-import-hotspot   import hotspot binaries from this jdk image or
1899                           hotspot build dist dir instead of building from
1900                           source
1901   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1902                           to show possible values [platform dependent]
1903   --with-jtreg            Regression Test Harness [probed]
1904   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1905   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1906   --with-extra-ldflags    extra flags to be used when linking jdk
1907   --with-x                use the X Window System
1908   --with-cups             specify prefix directory for the cups package
1909                           (expecting the headers under PATH/include)
1910   --with-cups-include     specify directory for the cups include files
1911   --with-freetype         specify prefix directory for the freetype package
1912                           (expecting the libraries under PATH/lib and the
1913                           headers under PATH/include)
1914   --with-freetype-include specify directory for the freetype include files
1915   --with-freetype-lib     specify directory for the freetype library
1916   --with-alsa             specify prefix directory for the alsa package
1917                           (expecting the libraries under PATH/lib and the
1918                           headers under PATH/include)
1919   --with-alsa-include     specify directory for the alsa include files
1920   --with-alsa-lib         specify directory for the alsa library
1921   --with-giflib           use giflib from build system or OpenJDK source
1922                           (system, bundled) [bundled]
1923   --with-zlib             use zlib from build system or OpenJDK source
1924                           (system, bundled) [bundled]
1925   --with-stdc++lib=<static>,<dynamic>,<default>
1926                           force linking of the C++ runtime on Linux to either
1927                           static or dynamic, default is static with dynamic as
1928                           fallback
1929   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1930                           only) [probed]
1931   --with-dxsdk            Deprecated. Option is kept for backwards
1932                           compatibility and is ignored
1933   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1934                           compatibility and is ignored
1935   --with-dxsdk-include    Deprecated. Option is kept for backwards
1936                           compatibility and is ignored
1937   --with-num-cores        number of cores in the build system, e.g.
1938                           --with-num-cores=8 [probed]
1939   --with-memory-size      memory (in MB) available in the build system, e.g.
1940                           --with-memory-size=1024 [probed]
1941   --with-jobs             number of parallel jobs to let make run [calculated
1942                           based on cores and memory]
1943   --with-sjavac-server-java
1944                           use this java binary for running the sjavac
1945                           background server [Boot JDK java]
1946   --with-ccache-dir       where to store ccache files [~/.ccache]
1947 
1948 Some influential environment variables:
1949   BASENAME    Override default value for BASENAME
1950   BASH        Override default value for BASH
1951   CAT         Override default value for CAT
1952   CHMOD       Override default value for CHMOD
1953   CMP         Override default value for CMP
1954   COMM        Override default value for COMM
1955   CP          Override default value for CP
1956   CPIO        Override default value for CPIO
1957   CUT         Override default value for CUT
1958   DATE        Override default value for DATE
1959   DIFF        Override default value for DIFF
1960   DIRNAME     Override default value for DIRNAME
1961   ECHO        Override default value for ECHO
1962   EXPR        Override default value for EXPR
1963   FILE        Override default value for FILE
1964   FIND        Override default value for FIND
1965   HEAD        Override default value for HEAD
1966   LN          Override default value for LN
1967   LS          Override default value for LS
1968   MKDIR       Override default value for MKDIR
1969   MKTEMP      Override default value for MKTEMP
1970   MV          Override default value for MV
1971   NAWK        Override default value for NAWK
1972   PRINTF      Override default value for PRINTF
1973   RM          Override default value for RM
1974   SH          Override default value for SH
1975   SORT        Override default value for SORT
1976   TAIL        Override default value for TAIL
1977   TAR         Override default value for TAR
1978   TEE         Override default value for TEE
1979   TOUCH       Override default value for TOUCH
1980   TR          Override default value for TR
1981   UNAME       Override default value for UNAME
1982   UNIQ        Override default value for UNIQ
1983   WC          Override default value for WC
1984   WHICH       Override default value for WHICH
1985   XARGS       Override default value for XARGS
1986   AWK         Override default value for AWK
1987   GREP        Override default value for GREP
1988   EGREP       Override default value for EGREP
1989   FGREP       Override default value for FGREP
1990   SED         Override default value for SED
1991   CYGPATH     Override default value for CYGPATH
1992   READLINK    Override default value for READLINK
1993   DF          Override default value for DF
1994   SETFILE     Override default value for SETFILE
1995   UNZIP       Override default value for UNZIP
1996   ZIP         Override default value for ZIP
1997   LDD         Override default value for LDD
1998   OTOOL       Override default value for OTOOL
1999   READELF     Override default value for READELF
2000   HG          Override default value for HG
2001   STAT        Override default value for STAT
2002   TIME        Override default value for TIME
2003   DSYMUTIL    Override default value for DSYMUTIL
2004   XATTR       Override default value for XATTR
2005   CODESIGN    Override default value for CODESIGN
2006   PKG_CONFIG  path to pkg-config utility
2007   JAVA        Override default value for JAVA
2008   JAVAC       Override default value for JAVAC
2009   JAVAH       Override default value for JAVAH
2010   JAR         Override default value for JAR
2011   NATIVE2ASCII
2012               Override default value for NATIVE2ASCII
2013   JARSIGNER   Override default value for JARSIGNER
2014   CC          C compiler command
2015   CFLAGS      C compiler flags
2016   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2017               nonstandard directory <lib dir>
2018   LIBS        libraries to pass to the linker, e.g. -l<library>
2019   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2020               you have headers in a nonstandard directory <include dir>
2021   CXX         C++ compiler command
2022   CXXFLAGS    C++ compiler flags
2023   CPP         C preprocessor
2024   CXXCPP      C++ preprocessor
2025   AS          Override default value for AS
2026   AR          Override default value for AR
2027   OBJC        Objective C compiler command
2028   OBJCFLAGS   Objective C compiler flags
2029   LIPO        Override default value for LIPO
2030   STRIP       Override default value for STRIP
2031   NM          Override default value for NM
2032   GNM         Override default value for GNM
2033   MCS         Override default value for MCS
2034   OBJCOPY     Override default value for OBJCOPY
2035   OBJDUMP     Override default value for OBJDUMP
2036   BUILD_CC    Override default value for BUILD_CC
2037   BUILD_CXX   Override default value for BUILD_CXX
2038   BUILD_LD    Override default value for BUILD_LD
2039   JTREGEXE    Override default value for JTREGEXE
2040   XMKMF       Path to xmkmf, Makefile generator for X Window System
2041   FREETYPE_CFLAGS
2042               C compiler flags for FREETYPE, overriding pkg-config
2043   FREETYPE_LIBS
2044               linker flags for FREETYPE, overriding pkg-config
2045   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2046   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2047   LIBFFI_CFLAGS
2048               C compiler flags for LIBFFI, overriding pkg-config
2049   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2050   CCACHE      Override default value for CCACHE
2051 
2052 Use these variables to override the choices made by `configure' or to help
2053 it to find libraries and programs with nonstandard names/locations.
2054 
2055 Report bugs to <build-dev@openjdk.java.net>.
2056 OpenJDK home page: <http://openjdk.java.net>.
2057 _ACEOF
2058 ac_status=$?
2059 fi
2060 
2061 if test "$ac_init_help" = "recursive"; then
2062   # If there are subdirs, report their specific --help.
2063   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2064     test -d "$ac_dir" ||
2065       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2066       continue
2067     ac_builddir=.
2068 
2069 case "$ac_dir" in
2070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2071 *)
2072   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2073   # A ".." for each directory in $ac_dir_suffix.
2074   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2075   case $ac_top_builddir_sub in
2076   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2077   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2078   esac ;;
2079 esac
2080 ac_abs_top_builddir=$ac_pwd
2081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2082 # for backward compatibility:
2083 ac_top_builddir=$ac_top_build_prefix
2084 
2085 case $srcdir in
2086   .)  # We are building in place.
2087     ac_srcdir=.
2088     ac_top_srcdir=$ac_top_builddir_sub
2089     ac_abs_top_srcdir=$ac_pwd ;;
2090   [\\/]* | ?:[\\/]* )  # Absolute name.
2091     ac_srcdir=$srcdir$ac_dir_suffix;
2092     ac_top_srcdir=$srcdir
2093     ac_abs_top_srcdir=$srcdir ;;
2094   *) # Relative name.
2095     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2096     ac_top_srcdir=$ac_top_build_prefix$srcdir
2097     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2098 esac
2099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2100 
2101     cd "$ac_dir" || { ac_status=$?; continue; }
2102     # Check for guested configure.
2103     if test -f "$ac_srcdir/configure.gnu"; then
2104       echo &&
2105       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2106     elif test -f "$ac_srcdir/configure"; then
2107       echo &&
2108       $SHELL "$ac_srcdir/configure" --help=recursive
2109     else
2110       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2111     fi || ac_status=$?
2112     cd "$ac_pwd" || { ac_status=$?; break; }
2113   done
2114 fi
2115 
2116 test -n "$ac_init_help" && exit $ac_status
2117 if $ac_init_version; then
2118   cat <<\_ACEOF
2119 OpenJDK configure jdk8
2120 generated by GNU Autoconf 2.69
2121 
2122 Copyright (C) 2012 Free Software Foundation, Inc.
2123 This configure script is free software; the Free Software Foundation
2124 gives unlimited permission to copy, distribute and modify it.
2125 _ACEOF
2126   exit
2127 fi
2128 
2129 ## ------------------------ ##
2130 ## Autoconf initialization. ##
2131 ## ------------------------ ##
2132 
2133 # ac_fn_c_try_compile LINENO
2134 # --------------------------
2135 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_compile ()
2137 {
2138   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139   rm -f conftest.$ac_objext
2140   if { { ac_try="$ac_compile"
2141 case "(($ac_try" in
2142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143   *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147   (eval "$ac_compile") 2>conftest.err
2148   ac_status=$?
2149   if test -s conftest.err; then
2150     grep -v '^ *+' conftest.err >conftest.er1
2151     cat conftest.er1 >&5
2152     mv -f conftest.er1 conftest.err
2153   fi
2154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155   test $ac_status = 0; } && {
2156          test -z "$ac_c_werror_flag" ||
2157          test ! -s conftest.err
2158        } && test -s conftest.$ac_objext; then :
2159   ac_retval=0
2160 else
2161   $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163 
2164         ac_retval=1
2165 fi
2166   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167   as_fn_set_status $ac_retval
2168 
2169 } # ac_fn_c_try_compile
2170 
2171 # ac_fn_cxx_try_compile LINENO
2172 # ----------------------------
2173 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_cxx_try_compile ()
2175 {
2176   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177   rm -f conftest.$ac_objext
2178   if { { ac_try="$ac_compile"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185   (eval "$ac_compile") 2>conftest.err
2186   ac_status=$?
2187   if test -s conftest.err; then
2188     grep -v '^ *+' conftest.err >conftest.er1
2189     cat conftest.er1 >&5
2190     mv -f conftest.er1 conftest.err
2191   fi
2192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193   test $ac_status = 0; } && {
2194          test -z "$ac_cxx_werror_flag" ||
2195          test ! -s conftest.err
2196        } && test -s conftest.$ac_objext; then :
2197   ac_retval=0
2198 else
2199   $as_echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201 
2202         ac_retval=1
2203 fi
2204   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205   as_fn_set_status $ac_retval
2206 
2207 } # ac_fn_cxx_try_compile
2208 
2209 # ac_fn_c_try_cpp LINENO
2210 # ----------------------
2211 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2212 ac_fn_c_try_cpp ()
2213 {
2214   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215   if { { ac_try="$ac_cpp conftest.$ac_ext"
2216 case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2223   ac_status=$?
2224   if test -s conftest.err; then
2225     grep -v '^ *+' conftest.err >conftest.er1
2226     cat conftest.er1 >&5
2227     mv -f conftest.er1 conftest.err
2228   fi
2229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230   test $ac_status = 0; } > conftest.i && {
2231          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2232          test ! -s conftest.err
2233        }; then :
2234   ac_retval=0
2235 else
2236   $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2238 
2239     ac_retval=1
2240 fi
2241   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242   as_fn_set_status $ac_retval
2243 
2244 } # ac_fn_c_try_cpp
2245 
2246 # ac_fn_cxx_try_cpp LINENO
2247 # ------------------------
2248 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2249 ac_fn_cxx_try_cpp ()
2250 {
2251   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252   if { { ac_try="$ac_cpp conftest.$ac_ext"
2253 case "(($ac_try" in
2254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255   *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 $as_echo "$ac_try_echo"; } >&5
2259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2260   ac_status=$?
2261   if test -s conftest.err; then
2262     grep -v '^ *+' conftest.err >conftest.er1
2263     cat conftest.er1 >&5
2264     mv -f conftest.er1 conftest.err
2265   fi
2266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267   test $ac_status = 0; } > conftest.i && {
2268          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2269          test ! -s conftest.err
2270        }; then :
2271   ac_retval=0
2272 else
2273   $as_echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2275 
2276     ac_retval=1
2277 fi
2278   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279   as_fn_set_status $ac_retval
2280 
2281 } # ac_fn_cxx_try_cpp
2282 
2283 # ac_fn_objc_try_compile LINENO
2284 # -----------------------------
2285 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2286 ac_fn_objc_try_compile ()
2287 {
2288   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289   rm -f conftest.$ac_objext
2290   if { { ac_try="$ac_compile"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 $as_echo "$ac_try_echo"; } >&5
2297   (eval "$ac_compile") 2>conftest.err
2298   ac_status=$?
2299   if test -s conftest.err; then
2300     grep -v '^ *+' conftest.err >conftest.er1
2301     cat conftest.er1 >&5
2302     mv -f conftest.er1 conftest.err
2303   fi
2304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305   test $ac_status = 0; } && {
2306          test -z "$ac_objc_werror_flag" ||
2307          test ! -s conftest.err
2308        } && test -s conftest.$ac_objext; then :
2309   ac_retval=0
2310 else
2311   $as_echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313 
2314         ac_retval=1
2315 fi
2316   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317   as_fn_set_status $ac_retval
2318 
2319 } # ac_fn_objc_try_compile
2320 
2321 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2322 # ---------------------------------------------------------
2323 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2324 # the include files in INCLUDES and setting the cache variable VAR
2325 # accordingly.
2326 ac_fn_cxx_check_header_mongrel ()
2327 {
2328   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329   if eval \${$3+:} false; then :
2330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331 $as_echo_n "checking for $2... " >&6; }
2332 if eval \${$3+:} false; then :
2333   $as_echo_n "(cached) " >&6
2334 fi
2335 eval ac_res=\$$3
2336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 else
2339   # Is the header compilable?
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2341 $as_echo_n "checking $2 usability... " >&6; }
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h.  */
2344 $4
2345 #include <$2>
2346 _ACEOF
2347 if ac_fn_cxx_try_compile "$LINENO"; then :
2348   ac_header_compiler=yes
2349 else
2350   ac_header_compiler=no
2351 fi
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2354 $as_echo "$ac_header_compiler" >&6; }
2355 
2356 # Is the header present?
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2358 $as_echo_n "checking $2 presence... " >&6; }
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h.  */
2361 #include <$2>
2362 _ACEOF
2363 if ac_fn_cxx_try_cpp "$LINENO"; then :
2364   ac_header_preproc=yes
2365 else
2366   ac_header_preproc=no
2367 fi
2368 rm -f conftest.err conftest.i conftest.$ac_ext
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2370 $as_echo "$ac_header_preproc" >&6; }
2371 
2372 # So?  What about this header?
2373 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2374   yes:no: )
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2376 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2378 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2379     ;;
2380   no:yes:* )
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2382 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2383     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2384 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2386 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2388 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2390 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2391 ( $as_echo "## ----------------------------------------- ##
2392 ## Report this to build-dev@openjdk.java.net ##
2393 ## ----------------------------------------- ##"
2394      ) | sed "s/^/$as_me: WARNING:     /" >&2
2395     ;;
2396 esac
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if eval \${$3+:} false; then :
2400   $as_echo_n "(cached) " >&6
2401 else
2402   eval "$3=\$ac_header_compiler"
2403 fi
2404 eval ac_res=\$$3
2405                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 fi
2408   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 
2410 } # ac_fn_cxx_check_header_mongrel
2411 
2412 # ac_fn_cxx_try_run LINENO
2413 # ------------------------
2414 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2415 # that executables *can* be run.
2416 ac_fn_cxx_try_run ()
2417 {
2418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419   if { { ac_try="$ac_link"
2420 case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 $as_echo "$ac_try_echo"; } >&5
2426   (eval "$ac_link") 2>&5
2427   ac_status=$?
2428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2430   { { case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435 $as_echo "$ac_try_echo"; } >&5
2436   (eval "$ac_try") 2>&5
2437   ac_status=$?
2438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439   test $ac_status = 0; }; }; then :
2440   ac_retval=0
2441 else
2442   $as_echo "$as_me: program exited with status $ac_status" >&5
2443        $as_echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445 
2446        ac_retval=$ac_status
2447 fi
2448   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2449   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450   as_fn_set_status $ac_retval
2451 
2452 } # ac_fn_cxx_try_run
2453 
2454 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2455 # ---------------------------------------------------------
2456 # Tests whether HEADER exists and can be compiled using the include files in
2457 # INCLUDES, setting the cache variable VAR accordingly.
2458 ac_fn_cxx_check_header_compile ()
2459 {
2460   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if eval \${$3+:} false; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h.  */
2468 $4
2469 #include <$2>
2470 _ACEOF
2471 if ac_fn_cxx_try_compile "$LINENO"; then :
2472   eval "$3=yes"
2473 else
2474   eval "$3=no"
2475 fi
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 fi
2478 eval ac_res=\$$3
2479                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2482 
2483 } # ac_fn_cxx_check_header_compile
2484 
2485 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2486 # ----------------------------------------------
2487 # Tries to find the compile-time value of EXPR in a program that includes
2488 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2489 # computed
2490 ac_fn_cxx_compute_int ()
2491 {
2492   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493   if test "$cross_compiling" = yes; then
2494     # Depending upon the size, compute the lo and hi bounds.
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h.  */
2497 $4
2498 int
2499 main ()
2500 {
2501 static int test_array [1 - 2 * !(($2) >= 0)];
2502 test_array [0] = 0;
2503 return test_array [0];
2504 
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_cxx_try_compile "$LINENO"; then :
2510   ac_lo=0 ac_mid=0
2511   while :; do
2512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h.  */
2514 $4
2515 int
2516 main ()
2517 {
2518 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2519 test_array [0] = 0;
2520 return test_array [0];
2521 
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_cxx_try_compile "$LINENO"; then :
2527   ac_hi=$ac_mid; break
2528 else
2529   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2530                         if test $ac_lo -le $ac_mid; then
2531                           ac_lo= ac_hi=
2532                           break
2533                         fi
2534                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2535 fi
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537   done
2538 else
2539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h.  */
2541 $4
2542 int
2543 main ()
2544 {
2545 static int test_array [1 - 2 * !(($2) < 0)];
2546 test_array [0] = 0;
2547 return test_array [0];
2548 
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554   ac_hi=-1 ac_mid=-1
2555   while :; do
2556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h.  */
2558 $4
2559 int
2560 main ()
2561 {
2562 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2563 test_array [0] = 0;
2564 return test_array [0];
2565 
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2571   ac_lo=$ac_mid; break
2572 else
2573   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2574                         if test $ac_mid -le $ac_hi; then
2575                           ac_lo= ac_hi=
2576                           break
2577                         fi
2578                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581   done
2582 else
2583   ac_lo= ac_hi=
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 # Binary search between lo and hi bounds.
2589 while test "x$ac_lo" != "x$ac_hi"; do
2590   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h.  */
2593 $4
2594 int
2595 main ()
2596 {
2597 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2598 test_array [0] = 0;
2599 return test_array [0];
2600 
2601   ;
2602   return 0;
2603 }
2604 _ACEOF
2605 if ac_fn_cxx_try_compile "$LINENO"; then :
2606   ac_hi=$ac_mid
2607 else
2608   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2609 fi
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 done
2612 case $ac_lo in #((
2613 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2614 '') ac_retval=1 ;;
2615 esac
2616   else
2617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h.  */
2619 $4
2620 static long int longval () { return $2; }
2621 static unsigned long int ulongval () { return $2; }
2622 #include <stdio.h>
2623 #include <stdlib.h>
2624 int
2625 main ()
2626 {
2627 
2628   FILE *f = fopen ("conftest.val", "w");
2629   if (! f)
2630     return 1;
2631   if (($2) < 0)
2632     {
2633       long int i = longval ();
2634       if (i != ($2))
2635         return 1;
2636       fprintf (f, "%ld", i);
2637     }
2638   else
2639     {
2640       unsigned long int i = ulongval ();
2641       if (i != ($2))
2642         return 1;
2643       fprintf (f, "%lu", i);
2644     }
2645   /* Do not output a trailing newline, as this causes \r\n confusion
2646      on some platforms.  */
2647   return ferror (f) || fclose (f) != 0;
2648 
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_cxx_try_run "$LINENO"; then :
2654   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2655 else
2656   ac_retval=1
2657 fi
2658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2659   conftest.$ac_objext conftest.beam conftest.$ac_ext
2660 rm -f conftest.val
2661 
2662   fi
2663   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664   as_fn_set_status $ac_retval
2665 
2666 } # ac_fn_cxx_compute_int
2667 
2668 # ac_fn_cxx_try_link LINENO
2669 # -------------------------
2670 # Try to link conftest.$ac_ext, and return whether this succeeded.
2671 ac_fn_cxx_try_link ()
2672 {
2673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674   rm -f conftest.$ac_objext conftest$ac_exeext
2675   if { { ac_try="$ac_link"
2676 case "(($ac_try" in
2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678   *) ac_try_echo=$ac_try;;
2679 esac
2680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2681 $as_echo "$ac_try_echo"; } >&5
2682   (eval "$ac_link") 2>conftest.err
2683   ac_status=$?
2684   if test -s conftest.err; then
2685     grep -v '^ *+' conftest.err >conftest.er1
2686     cat conftest.er1 >&5
2687     mv -f conftest.er1 conftest.err
2688   fi
2689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2690   test $ac_status = 0; } && {
2691          test -z "$ac_cxx_werror_flag" ||
2692          test ! -s conftest.err
2693        } && test -s conftest$ac_exeext && {
2694          test "$cross_compiling" = yes ||
2695          test -x conftest$ac_exeext
2696        }; then :
2697   ac_retval=0
2698 else
2699   $as_echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701 
2702         ac_retval=1
2703 fi
2704   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2705   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2706   # interfere with the next link command; also delete a directory that is
2707   # left behind by Apple's compiler.  We do this before executing the actions.
2708   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710   as_fn_set_status $ac_retval
2711 
2712 } # ac_fn_cxx_try_link
2713 
2714 # ac_fn_cxx_check_func LINENO FUNC VAR
2715 # ------------------------------------
2716 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2717 ac_fn_cxx_check_func ()
2718 {
2719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2721 $as_echo_n "checking for $2... " >&6; }
2722 if eval \${$3+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h.  */
2727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2729 #define $2 innocuous_$2
2730 
2731 /* System header to define __stub macros and hopefully few prototypes,
2732     which can conflict with char $2 (); below.
2733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2734     <limits.h> exists even on freestanding compilers.  */
2735 
2736 #ifdef __STDC__
2737 # include <limits.h>
2738 #else
2739 # include <assert.h>
2740 #endif
2741 
2742 #undef $2
2743 
2744 /* Override any GCC internal prototype to avoid an error.
2745    Use char because int might match the return type of a GCC
2746    builtin and then its argument prototype would still apply.  */
2747 #ifdef __cplusplus
2748 extern "C"
2749 #endif
2750 char $2 ();
2751 /* The GNU C library defines this for functions which it implements
2752     to always fail with ENOSYS.  Some functions are actually named
2753     something starting with __ and the normal name is an alias.  */
2754 #if defined __stub_$2 || defined __stub___$2
2755 choke me
2756 #endif
2757 
2758 int
2759 main ()
2760 {
2761 return $2 ();
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 if ac_fn_cxx_try_link "$LINENO"; then :
2767   eval "$3=yes"
2768 else
2769   eval "$3=no"
2770 fi
2771 rm -f core conftest.err conftest.$ac_objext \
2772     conftest$ac_exeext conftest.$ac_ext
2773 fi
2774 eval ac_res=\$$3
2775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2778 
2779 } # ac_fn_cxx_check_func
2780 
2781 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2782 # -------------------------------------------------------
2783 # Tests whether HEADER exists and can be compiled using the include files in
2784 # INCLUDES, setting the cache variable VAR accordingly.
2785 ac_fn_c_check_header_compile ()
2786 {
2787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2789 $as_echo_n "checking for $2... " >&6; }
2790 if eval \${$3+:} false; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h.  */
2795 $4
2796 #include <$2>
2797 _ACEOF
2798 if ac_fn_c_try_compile "$LINENO"; then :
2799   eval "$3=yes"
2800 else
2801   eval "$3=no"
2802 fi
2803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 fi
2805 eval ac_res=\$$3
2806                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2807 $as_echo "$ac_res" >&6; }
2808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2809 
2810 } # ac_fn_c_check_header_compile
2811 cat >config.log <<_ACEOF
2812 This file contains any messages produced by compilers while
2813 running configure, to aid debugging if configure makes a mistake.
2814 
2815 It was created by OpenJDK $as_me jdk8, which was
2816 generated by GNU Autoconf 2.69.  Invocation command line was
2817 
2818   $ $0 $@
2819 
2820 _ACEOF
2821 exec 5>>config.log
2822 {
2823 cat <<_ASUNAME
2824 ## --------- ##
2825 ## Platform. ##
2826 ## --------- ##
2827 
2828 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2829 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2830 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2831 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2832 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2833 
2834 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2835 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2836 
2837 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2838 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2839 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2840 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2841 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2842 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2843 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2844 
2845 _ASUNAME
2846 
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852     $as_echo "PATH: $as_dir"
2853   done
2854 IFS=$as_save_IFS
2855 
2856 } >&5
2857 
2858 cat >&5 <<_ACEOF
2859 
2860 
2861 ## ----------- ##
2862 ## Core tests. ##
2863 ## ----------- ##
2864 
2865 _ACEOF
2866 
2867 
2868 # Keep a trace of the command line.
2869 # Strip out --no-create and --no-recursion so they do not pile up.
2870 # Strip out --silent because we don't want to record it for future runs.
2871 # Also quote any args containing shell meta-characters.
2872 # Make two passes to allow for proper duplicate-argument suppression.
2873 ac_configure_args=
2874 ac_configure_args0=
2875 ac_configure_args1=
2876 ac_must_keep_next=false
2877 for ac_pass in 1 2
2878 do
2879   for ac_arg
2880   do
2881     case $ac_arg in
2882     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2883     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2884     | -silent | --silent | --silen | --sile | --sil)
2885       continue ;;
2886     *\'*)
2887       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2888     esac
2889     case $ac_pass in
2890     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2891     2)
2892       as_fn_append ac_configure_args1 " '$ac_arg'"
2893       if test $ac_must_keep_next = true; then
2894         ac_must_keep_next=false # Got value, back to normal.
2895       else
2896         case $ac_arg in
2897           *=* | --config-cache | -C | -disable-* | --disable-* \
2898           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2899           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2900           | -with-* | --with-* | -without-* | --without-* | --x)
2901             case "$ac_configure_args0 " in
2902               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2903             esac
2904             ;;
2905           -* ) ac_must_keep_next=true ;;
2906         esac
2907       fi
2908       as_fn_append ac_configure_args " '$ac_arg'"
2909       ;;
2910     esac
2911   done
2912 done
2913 { ac_configure_args0=; unset ac_configure_args0;}
2914 { ac_configure_args1=; unset ac_configure_args1;}
2915 
2916 # When interrupted or exit'd, cleanup temporary files, and complete
2917 # config.log.  We remove comments because anyway the quotes in there
2918 # would cause problems or look ugly.
2919 # WARNING: Use '\'' to represent an apostrophe within the trap.
2920 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2921 trap 'exit_status=$?
2922   # Save into config.log some information that might help in debugging.
2923   {
2924     echo
2925 
2926     $as_echo "## ---------------- ##
2927 ## Cache variables. ##
2928 ## ---------------- ##"
2929     echo
2930     # The following way of writing the cache mishandles newlines in values,
2931 (
2932   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2933     eval ac_val=\$$ac_var
2934     case $ac_val in #(
2935     *${as_nl}*)
2936       case $ac_var in #(
2937       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2939       esac
2940       case $ac_var in #(
2941       _ | IFS | as_nl) ;; #(
2942       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2943       *) { eval $ac_var=; unset $ac_var;} ;;
2944       esac ;;
2945     esac
2946   done
2947   (set) 2>&1 |
2948     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2949     *${as_nl}ac_space=\ *)
2950       sed -n \
2951         "s/'\''/'\''\\\\'\'''\''/g;
2952           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2953       ;; #(
2954     *)
2955       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2956       ;;
2957     esac |
2958     sort
2959 )
2960     echo
2961 
2962     $as_echo "## ----------------- ##
2963 ## Output variables. ##
2964 ## ----------------- ##"
2965     echo
2966     for ac_var in $ac_subst_vars
2967     do
2968       eval ac_val=\$$ac_var
2969       case $ac_val in
2970       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2971       esac
2972       $as_echo "$ac_var='\''$ac_val'\''"
2973     done | sort
2974     echo
2975 
2976     if test -n "$ac_subst_files"; then
2977       $as_echo "## ------------------- ##
2978 ## File substitutions. ##
2979 ## ------------------- ##"
2980       echo
2981       for ac_var in $ac_subst_files
2982       do
2983         eval ac_val=\$$ac_var
2984         case $ac_val in
2985         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986         esac
2987         $as_echo "$ac_var='\''$ac_val'\''"
2988       done | sort
2989       echo
2990     fi
2991 
2992     if test -s confdefs.h; then
2993       $as_echo "## ----------- ##
2994 ## confdefs.h. ##
2995 ## ----------- ##"
2996       echo
2997       cat confdefs.h
2998       echo
2999     fi
3000     test "$ac_signal" != 0 &&
3001       $as_echo "$as_me: caught signal $ac_signal"
3002     $as_echo "$as_me: exit $exit_status"
3003   } >&5
3004   rm -f core *.core core.conftest.* &&
3005     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3006     exit $exit_status
3007 ' 0
3008 for ac_signal in 1 2 13 15; do
3009   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3010 done
3011 ac_signal=0
3012 
3013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3014 rm -f -r conftest* confdefs.h
3015 
3016 $as_echo "/* confdefs.h */" > confdefs.h
3017 
3018 # Predefined preprocessor variables.
3019 
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_NAME "$PACKAGE_NAME"
3022 _ACEOF
3023 
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3026 _ACEOF
3027 
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3030 _ACEOF
3031 
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_STRING "$PACKAGE_STRING"
3034 _ACEOF
3035 
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3038 _ACEOF
3039 
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_URL "$PACKAGE_URL"
3042 _ACEOF
3043 
3044 
3045 # Let the site file select an alternate cache file if it wants to.
3046 # Prefer an explicitly selected file to automatically selected ones.
3047 ac_site_file1=NONE
3048 ac_site_file2=NONE
3049 if test -n "$CONFIG_SITE"; then
3050   # We do not want a PATH search for config.site.
3051   case $CONFIG_SITE in #((
3052     -*)  ac_site_file1=./$CONFIG_SITE;;
3053     */*) ac_site_file1=$CONFIG_SITE;;
3054     *)   ac_site_file1=./$CONFIG_SITE;;
3055   esac
3056 elif test "x$prefix" != xNONE; then
3057   ac_site_file1=$prefix/share/config.site
3058   ac_site_file2=$prefix/etc/config.site
3059 else
3060   ac_site_file1=$ac_default_prefix/share/config.site
3061   ac_site_file2=$ac_default_prefix/etc/config.site
3062 fi
3063 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3064 do
3065   test "x$ac_site_file" = xNONE && continue
3066   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3067     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3068 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3069     sed 's/^/| /' "$ac_site_file" >&5
3070     . "$ac_site_file" \
3071       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error $? "failed to load site script $ac_site_file
3074 See \`config.log' for more details" "$LINENO" 5; }
3075   fi
3076 done
3077 
3078 if test -r "$cache_file"; then
3079   # Some versions of bash will fail to source /dev/null (special files
3080   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3081   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3082     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3083 $as_echo "$as_me: loading cache $cache_file" >&6;}
3084     case $cache_file in
3085       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3086       *)                      . "./$cache_file";;
3087     esac
3088   fi
3089 else
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3091 $as_echo "$as_me: creating cache $cache_file" >&6;}
3092   >$cache_file
3093 fi
3094 
3095 # Check that the precious variables saved in the cache have kept the same
3096 # value.
3097 ac_cache_corrupted=false
3098 for ac_var in $ac_precious_vars; do
3099   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3100   eval ac_new_set=\$ac_env_${ac_var}_set
3101   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3102   eval ac_new_val=\$ac_env_${ac_var}_value
3103   case $ac_old_set,$ac_new_set in
3104     set,)
3105       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3106 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3107       ac_cache_corrupted=: ;;
3108     ,set)
3109       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3110 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3111       ac_cache_corrupted=: ;;
3112     ,);;
3113     *)
3114       if test "x$ac_old_val" != "x$ac_new_val"; then
3115         # differences in whitespace do not lead to failure.
3116         ac_old_val_w=`echo x $ac_old_val`
3117         ac_new_val_w=`echo x $ac_new_val`
3118         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3119           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3120 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3121           ac_cache_corrupted=:
3122         else
3123           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3124 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3125           eval $ac_var=\$ac_old_val
3126         fi
3127         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3128 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3129         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3130 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3131       fi;;
3132   esac
3133   # Pass precious variables to config.status.
3134   if test "$ac_new_set" = set; then
3135     case $ac_new_val in
3136     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3137     *) ac_arg=$ac_var=$ac_new_val ;;
3138     esac
3139     case " $ac_configure_args " in
3140       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3141       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3142     esac
3143   fi
3144 done
3145 if $ac_cache_corrupted; then
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3149 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3150   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3151 fi
3152 ## -------------------- ##
3153 ## Main body of script. ##
3154 ## -------------------- ##
3155 
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 
3162 
3163 
3164 ac_aux_dir=
3165 for ac_dir in common/autoconf/build-aux "$srcdir"/common/autoconf/build-aux; do
3166   if test -f "$ac_dir/install-sh"; then
3167     ac_aux_dir=$ac_dir
3168     ac_install_sh="$ac_aux_dir/install-sh -c"
3169     break
3170   elif test -f "$ac_dir/install.sh"; then
3171     ac_aux_dir=$ac_dir
3172     ac_install_sh="$ac_aux_dir/install.sh -c"
3173     break
3174   elif test -f "$ac_dir/shtool"; then
3175     ac_aux_dir=$ac_dir
3176     ac_install_sh="$ac_aux_dir/shtool install -c"
3177     break
3178   fi
3179 done
3180 if test -z "$ac_aux_dir"; then
3181   as_fn_error $? "cannot find install-sh, install.sh, or shtool in common/autoconf/build-aux \"$srcdir\"/common/autoconf/build-aux" "$LINENO" 5
3182 fi
3183 
3184 # These three variables are undocumented and unsupported,
3185 # and are intended to be withdrawn in a future Autoconf release.
3186 # They can cause serious problems if a builder's source tree is in a directory
3187 # whose full name contains unusual characters.
3188 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3189 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3190 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3191 
3192 
3193 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3194 
3195 #
3196 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3197 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3198 #
3199 # This code is free software; you can redistribute it and/or modify it
3200 # under the terms of the GNU General Public License version 2 only, as
3201 # published by the Free Software Foundation.  Oracle designates this
3202 # particular file as subject to the "Classpath" exception as provided
3203 # by Oracle in the LICENSE file that accompanied this code.
3204 #
3205 # This code is distributed in the hope that it will be useful, but WITHOUT
3206 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3207 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3208 # version 2 for more details (a copy is included in the LICENSE file that
3209 # accompanied this code).
3210 #
3211 # You should have received a copy of the GNU General Public License version
3212 # 2 along with this work; if not, write to the Free Software Foundation,
3213 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3214 #
3215 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3216 # or visit www.oracle.com if you need additional information or have any
3217 # questions.
3218 #
3219 
3220 #
3221 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3222 #
3223 # This program is free software; you can redistribute it and/or modify
3224 # it under the terms of the GNU General Public License as published by
3225 # the Free Software Foundation; either version 2 of the License, or
3226 # (at your option) any later version.
3227 #
3228 # This program is distributed in the hope that it will be useful, but
3229 # WITHOUT ANY WARRANTY; without even the implied warranty of
3230 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3231 # General Public License for more details.
3232 #
3233 # You should have received a copy of the GNU General Public License
3234 # along with this program; if not, write to the Free Software
3235 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3236 #
3237 # As a special exception to the GNU General Public License, if you
3238 # distribute this file as part of a program that contains a
3239 # configuration script generated by Autoconf, you may include it under
3240 # the same distribution terms that you use for the rest of that program.
3241 
3242 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3243 # ----------------------------------
3244 # PKG_PROG_PKG_CONFIG
3245 
3246 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3247 #
3248 # Check to see whether a particular set of modules exists.  Similar
3249 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3250 #
3251 #
3252 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3253 # this or PKG_CHECK_MODULES is called, or make sure to call
3254 # PKG_CHECK_EXISTS manually
3255 # --------------------------------------------------------------
3256 
3257 
3258 
3259 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3260 # ---------------------------------------------
3261 # _PKG_CONFIG
3262 
3263 # _PKG_SHORT_ERRORS_SUPPORTED
3264 # -----------------------------
3265 # _PKG_SHORT_ERRORS_SUPPORTED
3266 
3267 
3268 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3269 # [ACTION-IF-NOT-FOUND])
3270 #
3271 #
3272 # Note that if there is a possibility the first call to
3273 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3274 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3275 #
3276 #
3277 # --------------------------------------------------------------
3278 # PKG_CHECK_MODULES
3279 
3280 
3281 # Include these first...
3282 #
3283 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3284 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3285 #
3286 # This code is free software; you can redistribute it and/or modify it
3287 # under the terms of the GNU General Public License version 2 only, as
3288 # published by the Free Software Foundation.  Oracle designates this
3289 # particular file as subject to the "Classpath" exception as provided
3290 # by Oracle in the LICENSE file that accompanied this code.
3291 #
3292 # This code is distributed in the hope that it will be useful, but WITHOUT
3293 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3294 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3295 # version 2 for more details (a copy is included in the LICENSE file that
3296 # accompanied this code).
3297 #
3298 # You should have received a copy of the GNU General Public License version
3299 # 2 along with this work; if not, write to the Free Software Foundation,
3300 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3301 #
3302 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3303 # or visit www.oracle.com if you need additional information or have any
3304 # questions.
3305 #
3306 
3307 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3308 # If so, then append $1 to $2 \
3309 # Also set JVM_ARG_OK to true/false depending on outcome.
3310 
3311 
3312 # Appends a string to a path variable, only adding the : when needed.
3313 
3314 
3315 # This will make sure the given variable points to a full and proper
3316 # path. This means:
3317 # 1) There will be no spaces in the path. On posix platforms,
3318 #    spaces in the path will result in an error. On Windows,
3319 #    the path will be rewritten using short-style to be space-free.
3320 # 2) The path will be absolute, and it will be in unix-style (on
3321 #     cygwin).
3322 # $1: The name of the variable to fix
3323 
3324 
3325 # This will make sure the given variable points to a executable
3326 # with a full and proper path. This means:
3327 # 1) There will be no spaces in the path. On posix platforms,
3328 #    spaces in the path will result in an error. On Windows,
3329 #    the path will be rewritten using short-style to be space-free.
3330 # 2) The path will be absolute, and it will be in unix-style (on
3331 #     cygwin).
3332 # Any arguments given to the executable is preserved.
3333 # If the input variable does not have a directory specification, then
3334 # it need to be in the PATH.
3335 # $1: The name of the variable to fix
3336 
3337 
3338 
3339 
3340 # Register a --with argument but mark it as deprecated
3341 # $1: The name of the with argument to deprecate, not including --with-
3342 
3343 
3344 # Register a --enable argument but mark it as deprecated
3345 # $1: The name of the with argument to deprecate, not including --enable-
3346 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3347 
3348 
3349 
3350 
3351 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3352 # $1: variable to check
3353 
3354 
3355 # Check that there are no unprocessed overridden variables left.
3356 # If so, they are an incorrect argument and we will exit with an error.
3357 
3358 
3359 # Setup a tool for the given variable. If correctly specified by the user,
3360 # use that value, otherwise search for the tool using the supplied code snippet.
3361 # $1: variable to set
3362 # $2: code snippet to call to look for the tool
3363 
3364 
3365 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3366 # $1: variable to set
3367 # $2: executable name (or list of names) to look for
3368 
3369 
3370 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3371 # $1: variable to set
3372 # $2: executable name (or list of names) to look for
3373 
3374 
3375 # Like BASIC_PATH_PROGS but fails if no tool was found.
3376 # $1: variable to set
3377 # $2: executable name (or list of names) to look for
3378 
3379 
3380 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3381 # $1: variable to set
3382 # $2: autoconf macro to call to look for the special tool
3383 
3384 
3385 # Setup the most fundamental tools that relies on not much else to set up,
3386 # but is used by much of the early bootstrap code.
3387 
3388 
3389 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3390 
3391 
3392 
3393 
3394 
3395 
3396 
3397 #%%% Simple tools %%%
3398 
3399 # Check if we have found a usable version of make
3400 # $1: the path to a potential make binary (or empty)
3401 # $2: the description on how we found this
3402 
3403 
3404 # Goes looking for a usable version of GNU make.
3405 
3406 
3407 
3408 
3409 
3410 
3411 # Check if build directory is on local disk. If not possible to determine,
3412 # we prefer to claim it's local.
3413 # Argument 1: directory to test
3414 # Argument 2: what to do if it is on local disk
3415 # Argument 3: what to do otherwise (remote disk or failure)
3416 
3417 
3418 # Check that source files have basic read permissions set. This might
3419 # not be the case in cygwin in certain conditions.
3420 
3421 
3422 
3423 
3424 #
3425 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3426 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3427 #
3428 # This code is free software; you can redistribute it and/or modify it
3429 # under the terms of the GNU General Public License version 2 only, as
3430 # published by the Free Software Foundation.  Oracle designates this
3431 # particular file as subject to the "Classpath" exception as provided
3432 # by Oracle in the LICENSE file that accompanied this code.
3433 #
3434 # This code is distributed in the hope that it will be useful, but WITHOUT
3435 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3436 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3437 # version 2 for more details (a copy is included in the LICENSE file that
3438 # accompanied this code).
3439 #
3440 # You should have received a copy of the GNU General Public License version
3441 # 2 along with this work; if not, write to the Free Software Foundation,
3442 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3443 #
3444 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3445 # or visit www.oracle.com if you need additional information or have any
3446 # questions.
3447 #
3448 
3449 
3450 
3451 
3452 
3453 # Helper function which possibly converts a path using DOS-style short mode.
3454 # If so, the updated path is stored in $new_path.
3455 # $1: The path to check
3456 
3457 
3458 # Helper function which possibly converts a path using DOS-style short mode.
3459 # If so, the updated path is stored in $new_path.
3460 # $1: The path to check
3461 
3462 
3463 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3464 # and could probably be heavily simplified. However, all changes in this
3465 # area tend to need lot of testing in different scenarios, and in lack of
3466 # proper unit testing, cleaning this up has not been deemed worth the effort
3467 # at the moment.
3468 
3469 
3470 
3471 
3472 
3473 
3474 
3475 
3476 
3477 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3478 
3479 
3480 
3481 
3482 #
3483 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3484 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3485 #
3486 # This code is free software; you can redistribute it and/or modify it
3487 # under the terms of the GNU General Public License version 2 only, as
3488 # published by the Free Software Foundation.  Oracle designates this
3489 # particular file as subject to the "Classpath" exception as provided
3490 # by Oracle in the LICENSE file that accompanied this code.
3491 #
3492 # This code is distributed in the hope that it will be useful, but WITHOUT
3493 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3494 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3495 # version 2 for more details (a copy is included in the LICENSE file that
3496 # accompanied this code).
3497 #
3498 # You should have received a copy of the GNU General Public License version
3499 # 2 along with this work; if not, write to the Free Software Foundation,
3500 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3501 #
3502 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3503 # or visit www.oracle.com if you need additional information or have any
3504 # questions.
3505 #
3506 
3507 
3508 
3509 
3510 
3511 
3512 
3513 
3514 
3515 
3516 
3517 # ... then the rest
3518 #
3519 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3520 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3521 #
3522 # This code is free software; you can redistribute it and/or modify it
3523 # under the terms of the GNU General Public License version 2 only, as
3524 # published by the Free Software Foundation.  Oracle designates this
3525 # particular file as subject to the "Classpath" exception as provided
3526 # by Oracle in the LICENSE file that accompanied this code.
3527 #
3528 # This code is distributed in the hope that it will be useful, but WITHOUT
3529 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3530 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3531 # version 2 for more details (a copy is included in the LICENSE file that
3532 # accompanied this code).
3533 #
3534 # You should have received a copy of the GNU General Public License version
3535 # 2 along with this work; if not, write to the Free Software Foundation,
3536 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3537 #
3538 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3539 # or visit www.oracle.com if you need additional information or have any
3540 # questions.
3541 #
3542 
3543 ########################################################################
3544 # This file handles detection of the Boot JDK. The Boot JDK detection
3545 # process has been developed as a response to solve a complex real-world
3546 # problem. Initially, it was simple, but it has grown as platform after
3547 # platform, idiosyncracy after idiosyncracy has been supported.
3548 #
3549 # The basic idea is this:
3550 # 1) You need an acceptable *) JDK to use as a Boot JDK
3551 # 2) There are several ways to locate a JDK, that are mostly platform
3552 #    dependent **)
3553 # 3) You can have multiple JDKs installed
3554 # 4) If possible, configure should try to dig out an acceptable JDK
3555 #    automatically, without having to resort to command-line options
3556 #
3557 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3558 #     javac) and not a JRE, etc.
3559 #
3560 # **) On Windows we typically use a well-known path.
3561 #     On MacOSX we typically use the tool java_home.
3562 #     On Linux we typically find javac in the $PATH, and then follow a
3563 #     chain of symlinks that often ends up in a real JDK.
3564 #
3565 # This leads to the code where we check in different ways to locate a
3566 # JDK, and if one is found, check if it is acceptable. If not, we print
3567 # our reasons for rejecting it (useful when debugging non-working
3568 # configure situations) and continue checking the next one.
3569 ########################################################################
3570 
3571 # Execute the check given as argument, and verify the result
3572 # If the Boot JDK was previously found, do nothing
3573 # $1 A command line (typically autoconf macro) to execute
3574 
3575 
3576 # Test: Is bootjdk explicitely set by command line arguments?
3577 
3578 
3579 # Test: Is bootjdk available from builddeps?
3580 
3581 
3582 # Test: Is $JAVA_HOME set?
3583 
3584 
3585 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3586 
3587 
3588 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3589 # $1: Argument to the java_home binary (optional)
3590 
3591 
3592 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3593 
3594 
3595 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3596 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3597 # $1 = Path to directory containing jdk installations.
3598 # $2 = String to append to the found JDK directory to get the proper JDK home
3599 
3600 
3601 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3602 # environmental variable as base for where to look.
3603 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3604 
3605 
3606 # Test: Is there a JDK installed in default, well-known locations?
3607 
3608 
3609 # Check that a command-line tool in the Boot JDK is correct
3610 # $1 = name of variable to assign
3611 # $2 = name of binary
3612 
3613 
3614 ###############################################################################
3615 #
3616 # We need a Boot JDK to bootstrap the build.
3617 #
3618 
3619 
3620 
3621 
3622 
3623 #
3624 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3625 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3626 #
3627 # This code is free software; you can redistribute it and/or modify it
3628 # under the terms of the GNU General Public License version 2 only, as
3629 # published by the Free Software Foundation.  Oracle designates this
3630 # particular file as subject to the "Classpath" exception as provided
3631 # by Oracle in the LICENSE file that accompanied this code.
3632 #
3633 # This code is distributed in the hope that it will be useful, but WITHOUT
3634 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3635 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3636 # version 2 for more details (a copy is included in the LICENSE file that
3637 # accompanied this code).
3638 #
3639 # You should have received a copy of the GNU General Public License version
3640 # 2 along with this work; if not, write to the Free Software Foundation,
3641 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3642 #
3643 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3644 # or visit www.oracle.com if you need additional information or have any
3645 # questions.
3646 #
3647 
3648 
3649 
3650 
3651 
3652 
3653 
3654 
3655 
3656 
3657 
3658 
3659 
3660 
3661 
3662 
3663 
3664 
3665 
3666 
3667 #
3668 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3669 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3670 #
3671 # This code is free software; you can redistribute it and/or modify it
3672 # under the terms of the GNU General Public License version 2 only, as
3673 # published by the Free Software Foundation.  Oracle designates this
3674 # particular file as subject to the "Classpath" exception as provided
3675 # by Oracle in the LICENSE file that accompanied this code.
3676 #
3677 # This code is distributed in the hope that it will be useful, but WITHOUT
3678 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3679 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3680 # version 2 for more details (a copy is included in the LICENSE file that
3681 # accompanied this code).
3682 #
3683 # You should have received a copy of the GNU General Public License version
3684 # 2 along with this work; if not, write to the Free Software Foundation,
3685 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3686 #
3687 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3688 # or visit www.oracle.com if you need additional information or have any
3689 # questions.
3690 #
3691 
3692 
3693 
3694 
3695 
3696 # Documentation on common flags used for solstudio in HIGHEST.
3697 #
3698 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3699 #          done with care, there are some assumptions below that need to
3700 #          be understood about the use of pointers, and IEEE behavior.
3701 #
3702 # -fns: Use non-standard floating point mode (not IEEE 754)
3703 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3704 # -fsingle: Use single precision floating point with 'float'
3705 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3706 #   (Source with excessing pointer casting and data access with mixed
3707 #    pointer types are not recommended)
3708 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3709 #   (If you expect perfect errno behavior, do not use this)
3710 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3711 # -xrestrict: Pointer parameters to functions do not overlap
3712 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3713 #    If you pass in multiple pointers to the same data, do not use this)
3714 # -xlibmil: Inline some library routines
3715 #   (If you expect perfect errno behavior, do not use this)
3716 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3717 #   (If you expect perfect errno behavior, do not use this)
3718 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3719 
3720     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3721     # Bug?
3722     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3723     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3724     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3725     #fi
3726 
3727 
3728 
3729 
3730 
3731 
3732 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3733 #                                   [RUN-IF-FALSE])
3734 # ------------------------------------------------------------
3735 # Check that the c and c++ compilers support an argument
3736 
3737 
3738 
3739 
3740 #
3741 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3742 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3743 #
3744 # This code is free software; you can redistribute it and/or modify it
3745 # under the terms of the GNU General Public License version 2 only, as
3746 # published by the Free Software Foundation.  Oracle designates this
3747 # particular file as subject to the "Classpath" exception as provided
3748 # by Oracle in the LICENSE file that accompanied this code.
3749 #
3750 # This code is distributed in the hope that it will be useful, but WITHOUT
3751 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3752 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3753 # version 2 for more details (a copy is included in the LICENSE file that
3754 # accompanied this code).
3755 #
3756 # You should have received a copy of the GNU General Public License version
3757 # 2 along with this work; if not, write to the Free Software Foundation,
3758 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3759 #
3760 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3761 # or visit www.oracle.com if you need additional information or have any
3762 # questions.
3763 #
3764 
3765 
3766 
3767 
3768 
3769 cygwin_help() {
3770   case $1 in
3771     unzip)
3772       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3773       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3774       ;;
3775     zip)
3776       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3777       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3778       ;;
3779     make)
3780       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3781       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3782       ;;
3783     freetype)
3784       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3785         HELP_MSG="To install freetype, run:
3786 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3787 chmod +x /tmp/freetype-setup.exe
3788 /tmp/freetype-setup.exe
3789 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3790 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3791       else
3792         HELP_MSG="You need to build a 64-bit version of freetype.
3793 This is not readily available.
3794 You can find source code and build instructions on
3795 http://www.freetype.org/
3796 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3797       fi
3798       ;;
3799   esac
3800 }
3801 
3802 msys_help() {
3803   PKGHANDLER_COMMAND=""
3804 }
3805 
3806 apt_help() {
3807   case $1 in
3808     devkit)
3809       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3810     openjdk)
3811       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3812     alsa)
3813       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3814     cups)
3815       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3816     freetype)
3817       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3818     pulse)
3819       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3820     x11)
3821       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3822     ccache)
3823       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3824   esac
3825 }
3826 
3827 yum_help() {
3828   case $1 in
3829     devkit)
3830       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3831     openjdk)
3832       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3833     alsa)
3834       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3835     cups)
3836       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3837     freetype)
3838       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3839     pulse)
3840       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3841     x11)
3842       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3843     ccache)
3844       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3845   esac
3846 }
3847 
3848 port_help() {
3849   PKGHANDLER_COMMAND=""
3850 }
3851 
3852 pkgutil_help() {
3853   PKGHANDLER_COMMAND=""
3854 }
3855 
3856 pkgadd_help() {
3857   PKGHANDLER_COMMAND=""
3858 }
3859 
3860 # This function will check if we're called from the "configure" wrapper while
3861 # printing --help. If so, we will print out additional information that can
3862 # only be extracted within the autoconf script, and then exit. This must be
3863 # called at the very beginning in configure.ac.
3864 
3865 
3866 
3867 
3868 #
3869 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3870 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3871 #
3872 # This code is free software; you can redistribute it and/or modify it
3873 # under the terms of the GNU General Public License version 2 only, as
3874 # published by the Free Software Foundation.  Oracle designates this
3875 # particular file as subject to the "Classpath" exception as provided
3876 # by Oracle in the LICENSE file that accompanied this code.
3877 #
3878 # This code is distributed in the hope that it will be useful, but WITHOUT
3879 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3880 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3881 # version 2 for more details (a copy is included in the LICENSE file that
3882 # accompanied this code).
3883 #
3884 # You should have received a copy of the GNU General Public License version
3885 # 2 along with this work; if not, write to the Free Software Foundation,
3886 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3887 #
3888 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3889 # or visit www.oracle.com if you need additional information or have any
3890 # questions.
3891 #
3892 
3893 
3894 
3895 
3896 
3897 
3898 
3899 
3900 
3901 
3902 ###############################################################################
3903 #
3904 # Should we build only OpenJDK even if closed sources are present?
3905 #
3906 
3907 
3908 
3909 
3910 ###############################################################################
3911 #
3912 # Setup version numbers
3913 #
3914 
3915 
3916 
3917 
3918 
3919 
3920 #
3921 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3922 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3923 #
3924 # This code is free software; you can redistribute it and/or modify it
3925 # under the terms of the GNU General Public License version 2 only, as
3926 # published by the Free Software Foundation.  Oracle designates this
3927 # particular file as subject to the "Classpath" exception as provided
3928 # by Oracle in the LICENSE file that accompanied this code.
3929 #
3930 # This code is distributed in the hope that it will be useful, but WITHOUT
3931 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3932 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3933 # version 2 for more details (a copy is included in the LICENSE file that
3934 # accompanied this code).
3935 #
3936 # You should have received a copy of the GNU General Public License version
3937 # 2 along with this work; if not, write to the Free Software Foundation,
3938 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3939 #
3940 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3941 # or visit www.oracle.com if you need additional information or have any
3942 # questions.
3943 #
3944 
3945 
3946 
3947 
3948 
3949 
3950 
3951 
3952 
3953 
3954 
3955 
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 #
3964 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3965 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3966 #
3967 # This code is free software; you can redistribute it and/or modify it
3968 # under the terms of the GNU General Public License version 2 only, as
3969 # published by the Free Software Foundation.  Oracle designates this
3970 # particular file as subject to the "Classpath" exception as provided
3971 # by Oracle in the LICENSE file that accompanied this code.
3972 #
3973 # This code is distributed in the hope that it will be useful, but WITHOUT
3974 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3975 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3976 # version 2 for more details (a copy is included in the LICENSE file that
3977 # accompanied this code).
3978 #
3979 # You should have received a copy of the GNU General Public License version
3980 # 2 along with this work; if not, write to the Free Software Foundation,
3981 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3982 #
3983 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3984 # or visit www.oracle.com if you need additional information or have any
3985 # questions.
3986 #
3987 
3988 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3989 # Converts autoconf style CPU name to OpenJDK style, into
3990 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
3991 
3992 
3993 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3994 # Converts autoconf style OS name to OpenJDK style, into
3995 # VAR_OS and VAR_OS_API.
3996 
3997 
3998 # Expects $host_os $host_cpu $build_os and $build_cpu
3999 # and $with_target_bits to have been setup!
4000 #
4001 # Translate the standard triplet(quadruplet) definition
4002 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4003 # OPENJDK_BUILD_OS, etc.
4004 
4005 
4006 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4007 # accordingly. Must be done after setting up build and target system, but before
4008 # doing anything else with these values.
4009 
4010 
4011 # Setup the legacy variables, for controlling the old makefiles.
4012 #
4013 
4014 
4015 
4016 
4017 #%%% Build and target systems %%%
4018 
4019 
4020 
4021 
4022 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4023 # Add -mX to various FLAGS variables.
4024 
4025 
4026 
4027 
4028 
4029 
4030 #
4031 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4032 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4033 #
4034 # This code is free software; you can redistribute it and/or modify it
4035 # under the terms of the GNU General Public License version 2 only, as
4036 # published by the Free Software Foundation.  Oracle designates this
4037 # particular file as subject to the "Classpath" exception as provided
4038 # by Oracle in the LICENSE file that accompanied this code.
4039 #
4040 # This code is distributed in the hope that it will be useful, but WITHOUT
4041 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4042 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4043 # version 2 for more details (a copy is included in the LICENSE file that
4044 # accompanied this code).
4045 #
4046 # You should have received a copy of the GNU General Public License version
4047 # 2 along with this work; if not, write to the Free Software Foundation,
4048 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4049 #
4050 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4051 # or visit www.oracle.com if you need additional information or have any
4052 # questions.
4053 #
4054 
4055 
4056 
4057 
4058 
4059 
4060 
4061 
4062 #
4063 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4064 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4065 #
4066 # This code is free software; you can redistribute it and/or modify it
4067 # under the terms of the GNU General Public License version 2 only, as
4068 # published by the Free Software Foundation.  Oracle designates this
4069 # particular file as subject to the "Classpath" exception as provided
4070 # by Oracle in the LICENSE file that accompanied this code.
4071 #
4072 # This code is distributed in the hope that it will be useful, but WITHOUT
4073 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4074 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4075 # version 2 for more details (a copy is included in the LICENSE file that
4076 # accompanied this code).
4077 #
4078 # You should have received a copy of the GNU General Public License version
4079 # 2 along with this work; if not, write to the Free Software Foundation,
4080 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4081 #
4082 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4083 # or visit www.oracle.com if you need additional information or have any
4084 # questions.
4085 #
4086 
4087 ########################################################################
4088 # This file is responsible for detecting, verifying and setting up the
4089 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4090 # proper paths to the binaries, but it will not setup any flags.
4091 #
4092 # The binaries used is determined by the toolchain type, which is the family of
4093 # compilers and related tools that are used.
4094 ########################################################################
4095 
4096 
4097 # All valid toolchains, regardless of platform (used by help.m4)
4098 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4099 
4100 # These toolchains are valid on different platforms
4101 VALID_TOOLCHAINS_linux="gcc clang"
4102 VALID_TOOLCHAINS_solaris="solstudio"
4103 VALID_TOOLCHAINS_macosx="gcc clang"
4104 VALID_TOOLCHAINS_aix="xlc"
4105 VALID_TOOLCHAINS_windows="microsoft"
4106 
4107 # Toolchain descriptions
4108 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4109 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4110 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4111 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4112 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4113 
4114 # Setup a number of variables describing how native output files are
4115 # named on this platform/toolchain.
4116 
4117 
4118 # Determine which toolchain type to use, and make sure it is valid for this
4119 # platform. Setup various information about the selected toolchain.
4120 
4121 
4122 # Before we start detecting the toolchain executables, we might need some
4123 # special setup, e.g. additional paths etc.
4124 
4125 
4126 # Restore path, etc
4127 
4128 
4129 # Check if a compiler is of the toolchain type we expect, and save the version
4130 # information from it. If the compiler does not match the expected type,
4131 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4132 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4133 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4134 #
4135 # $1 = compiler to test (CC or CXX)
4136 # $2 = human readable name of compiler (C or C++)
4137 
4138 
4139 # Try to locate the given C or C++ compiler in the path, or otherwise.
4140 #
4141 # $1 = compiler to test (CC or CXX)
4142 # $2 = human readable name of compiler (C or C++)
4143 # $3 = list of compiler names to search for
4144 
4145 
4146 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4147 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4148 # archiver (AR). Verify that the compilers are correct according to the
4149 # toolchain type.
4150 
4151 
4152 # Setup additional tools that is considered a part of the toolchain, but not the
4153 # core part. Many of these are highly platform-specific and do not exist,
4154 # and/or are not needed on all platforms.
4155 
4156 
4157 # Setup the build tools (i.e, the compiler and linker used to build programs
4158 # that should be run on the build platform, not the target platform, as a build
4159 # helper). Since the non-cross-compile case uses the normal, target compilers
4160 # for this, we can only do this after these have been setup.
4161 
4162 
4163 # Setup legacy variables that are still needed as alternative ways to refer to
4164 # parts of the toolchain.
4165 
4166 
4167 # Do some additional checks on the detected tools.
4168 
4169 
4170 # Setup the JTReg Regression Test Harness.
4171 
4172 
4173 #
4174 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4175 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4176 #
4177 # This code is free software; you can redistribute it and/or modify it
4178 # under the terms of the GNU General Public License version 2 only, as
4179 # published by the Free Software Foundation.  Oracle designates this
4180 # particular file as subject to the "Classpath" exception as provided
4181 # by Oracle in the LICENSE file that accompanied this code.
4182 #
4183 # This code is distributed in the hope that it will be useful, but WITHOUT
4184 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4185 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4186 # version 2 for more details (a copy is included in the LICENSE file that
4187 # accompanied this code).
4188 #
4189 # You should have received a copy of the GNU General Public License version
4190 # 2 along with this work; if not, write to the Free Software Foundation,
4191 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4192 #
4193 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4194 # or visit www.oracle.com if you need additional information or have any
4195 # questions.
4196 #
4197 
4198 
4199 
4200 
4201 
4202 
4203 
4204 # Check if the VS env variables were setup prior to running configure.
4205 # If not, then find vcvarsall.bat and run it automatically, and integrate
4206 # the set env variables into the spec file.
4207 
4208 
4209 
4210 
4211 
4212 
4213 
4214 
4215 
4216 
4217 # This line needs to be here, verbatim, after all includes and the dummy hook
4218 # definitions. It is replaced with custom functionality when building
4219 # custom sources.
4220 #CUSTOM_AUTOCONF_INCLUDE
4221 
4222 # Do not change or remove the following line, it is needed for consistency checks:
4223 DATE_WHEN_GENERATED=1393327380
4224 
4225 ###############################################################################
4226 #
4227 # Initialization / Boot-strapping
4228 #
4229 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4230 # thus it jumps back and forth, each time gaining something needed later on.
4231 #
4232 ###############################################################################
4233 
4234 # If we are requested to print additional help, do that and then exit.
4235 # This must be the very first call.
4236 
4237   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4238     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4239     $PRINTF "Which are valid to use depends on the build platform.\n"
4240     for toolchain in $VALID_TOOLCHAINS_all; do
4241       # Use indirect variable referencing
4242       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4243       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4244       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4245     done
4246 
4247     # And now exit directly
4248     exit 0
4249   fi
4250 
4251 
4252 # Basic initialization that must happen first of all in the normal process.
4253 
4254   # Save the original command line. This is passed to us by the wrapper configure script.
4255 
4256   DATE_WHEN_CONFIGURED=`LANG=C date`
4257 
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4259 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4260   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4261 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4262 
4263 
4264   # Start with tools that do not need have cross compilation support
4265   # and can be expected to be found in the default PATH. These tools are
4266   # used by configure. Nor are these tools expected to be found in the
4267   # devkit from the builddeps server either, since they are
4268   # needed to download the devkit.
4269 
4270   # First are all the simple required tools.
4271 
4272 
4273 
4274   # Publish this variable in the help.
4275 
4276 
4277   if test "x$BASENAME" = x; then
4278     # The variable is not set by user, try to locate tool using the code snippet
4279     for ac_prog in basename
4280 do
4281   # Extract the first word of "$ac_prog", so it can be a program name with args.
4282 set dummy $ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_path_BASENAME+:} false; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   case $BASENAME in
4289   [\\/]* | ?:[\\/]*)
4290   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4291   ;;
4292   *)
4293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298     for ac_exec_ext in '' $ac_executable_extensions; do
4299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305   done
4306 IFS=$as_save_IFS
4307 
4308   ;;
4309 esac
4310 fi
4311 BASENAME=$ac_cv_path_BASENAME
4312 if test -n "$BASENAME"; then
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4314 $as_echo "$BASENAME" >&6; }
4315 else
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 fi
4319 
4320 
4321   test -n "$BASENAME" && break
4322 done
4323 
4324   else
4325     # The variable is set, but is it from the command line or the environment?
4326 
4327     # Try to remove the string !BASENAME! from our list.
4328     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4329     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4330       # If it failed, the variable was not from the command line. Ignore it,
4331       # but warn the user (except for BASH, which is always set by the calling BASH).
4332       if test "xBASENAME" != xBASH; then
4333         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4334 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4335       fi
4336       # Try to locate tool using the code snippet
4337       for ac_prog in basename
4338 do
4339   # Extract the first word of "$ac_prog", so it can be a program name with args.
4340 set dummy $ac_prog; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_path_BASENAME+:} false; then :
4344   $as_echo_n "(cached) " >&6
4345 else
4346   case $BASENAME in
4347   [\\/]* | ?:[\\/]*)
4348   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4349   ;;
4350   *)
4351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356     for ac_exec_ext in '' $ac_executable_extensions; do
4357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363   done
4364 IFS=$as_save_IFS
4365 
4366   ;;
4367 esac
4368 fi
4369 BASENAME=$ac_cv_path_BASENAME
4370 if test -n "$BASENAME"; then
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4372 $as_echo "$BASENAME" >&6; }
4373 else
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377 
4378 
4379   test -n "$BASENAME" && break
4380 done
4381 
4382     else
4383       # If it succeeded, then it was overridden by the user. We will use it
4384       # for the tool.
4385 
4386       # First remove it from the list of overridden variables, so we can test
4387       # for unknown variables in the end.
4388       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4389 
4390       # Check if the provided tool contains a complete path.
4391       tool_specified="$BASENAME"
4392       tool_basename="${tool_specified##*/}"
4393       if test "x$tool_basename" = "x$tool_specified"; then
4394         # A command without a complete path is provided, search $PATH.
4395         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4396 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4397         # Extract the first word of "$tool_basename", so it can be a program name with args.
4398 set dummy $tool_basename; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if ${ac_cv_path_BASENAME+:} false; then :
4402   $as_echo_n "(cached) " >&6
4403 else
4404   case $BASENAME in
4405   [\\/]* | ?:[\\/]*)
4406   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4407   ;;
4408   *)
4409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412   IFS=$as_save_IFS
4413   test -z "$as_dir" && as_dir=.
4414     for ac_exec_ext in '' $ac_executable_extensions; do
4415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418     break 2
4419   fi
4420 done
4421   done
4422 IFS=$as_save_IFS
4423 
4424   ;;
4425 esac
4426 fi
4427 BASENAME=$ac_cv_path_BASENAME
4428 if test -n "$BASENAME"; then
4429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4430 $as_echo "$BASENAME" >&6; }
4431 else
4432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4434 fi
4435 
4436 
4437         if test "x$BASENAME" = x; then
4438           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4439         fi
4440       else
4441         # Otherwise we believe it is a complete path. Use it as it is.
4442         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4443 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4445 $as_echo_n "checking for BASENAME... " >&6; }
4446         if test ! -x "$tool_specified"; then
4447           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4448 $as_echo "not found" >&6; }
4449           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4450         fi
4451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4452 $as_echo "$tool_specified" >&6; }
4453       fi
4454     fi
4455   fi
4456 
4457 
4458 
4459   if test "x$BASENAME" = x; then
4460     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4461   fi
4462 
4463 
4464 
4465 
4466 
4467   # Publish this variable in the help.
4468 
4469 
4470   if test "x$BASH" = x; then
4471     # The variable is not set by user, try to locate tool using the code snippet
4472     for ac_prog in bash
4473 do
4474   # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_path_BASH+:} false; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   case $BASH in
4482   [\\/]* | ?:[\\/]*)
4483   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4484   ;;
4485   *)
4486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491     for ac_exec_ext in '' $ac_executable_extensions; do
4492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498   done
4499 IFS=$as_save_IFS
4500 
4501   ;;
4502 esac
4503 fi
4504 BASH=$ac_cv_path_BASH
4505 if test -n "$BASH"; then
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4507 $as_echo "$BASH" >&6; }
4508 else
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 fi
4512 
4513 
4514   test -n "$BASH" && break
4515 done
4516 
4517   else
4518     # The variable is set, but is it from the command line or the environment?
4519 
4520     # Try to remove the string !BASH! from our list.
4521     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4522     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4523       # If it failed, the variable was not from the command line. Ignore it,
4524       # but warn the user (except for BASH, which is always set by the calling BASH).
4525       if test "xBASH" != xBASH; then
4526         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4527 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4528       fi
4529       # Try to locate tool using the code snippet
4530       for ac_prog in bash
4531 do
4532   # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_path_BASH+:} false; then :
4537   $as_echo_n "(cached) " >&6
4538 else
4539   case $BASH in
4540   [\\/]* | ?:[\\/]*)
4541   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4542   ;;
4543   *)
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_exec_ext in '' $ac_executable_extensions; do
4550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556   done
4557 IFS=$as_save_IFS
4558 
4559   ;;
4560 esac
4561 fi
4562 BASH=$ac_cv_path_BASH
4563 if test -n "$BASH"; then
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4565 $as_echo "$BASH" >&6; }
4566 else
4567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570 
4571 
4572   test -n "$BASH" && break
4573 done
4574 
4575     else
4576       # If it succeeded, then it was overridden by the user. We will use it
4577       # for the tool.
4578 
4579       # First remove it from the list of overridden variables, so we can test
4580       # for unknown variables in the end.
4581       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4582 
4583       # Check if the provided tool contains a complete path.
4584       tool_specified="$BASH"
4585       tool_basename="${tool_specified##*/}"
4586       if test "x$tool_basename" = "x$tool_specified"; then
4587         # A command without a complete path is provided, search $PATH.
4588         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4589 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4590         # Extract the first word of "$tool_basename", so it can be a program name with args.
4591 set dummy $tool_basename; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_path_BASH+:} false; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597   case $BASH in
4598   [\\/]* | ?:[\\/]*)
4599   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4600   ;;
4601   *)
4602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607     for ac_exec_ext in '' $ac_executable_extensions; do
4608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611     break 2
4612   fi
4613 done
4614   done
4615 IFS=$as_save_IFS
4616 
4617   ;;
4618 esac
4619 fi
4620 BASH=$ac_cv_path_BASH
4621 if test -n "$BASH"; then
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4623 $as_echo "$BASH" >&6; }
4624 else
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628 
4629 
4630         if test "x$BASH" = x; then
4631           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4632         fi
4633       else
4634         # Otherwise we believe it is a complete path. Use it as it is.
4635         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4636 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4637         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4638 $as_echo_n "checking for BASH... " >&6; }
4639         if test ! -x "$tool_specified"; then
4640           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4641 $as_echo "not found" >&6; }
4642           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4643         fi
4644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4645 $as_echo "$tool_specified" >&6; }
4646       fi
4647     fi
4648   fi
4649 
4650 
4651 
4652   if test "x$BASH" = x; then
4653     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4654   fi
4655 
4656 
4657 
4658 
4659 
4660   # Publish this variable in the help.
4661 
4662 
4663   if test "x$CAT" = x; then
4664     # The variable is not set by user, try to locate tool using the code snippet
4665     for ac_prog in cat
4666 do
4667   # Extract the first word of "$ac_prog", so it can be a program name with args.
4668 set dummy $ac_prog; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if ${ac_cv_path_CAT+:} false; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674   case $CAT in
4675   [\\/]* | ?:[\\/]*)
4676   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4677   ;;
4678   *)
4679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682   IFS=$as_save_IFS
4683   test -z "$as_dir" && as_dir=.
4684     for ac_exec_ext in '' $ac_executable_extensions; do
4685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688     break 2
4689   fi
4690 done
4691   done
4692 IFS=$as_save_IFS
4693 
4694   ;;
4695 esac
4696 fi
4697 CAT=$ac_cv_path_CAT
4698 if test -n "$CAT"; then
4699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4700 $as_echo "$CAT" >&6; }
4701 else
4702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705 
4706 
4707   test -n "$CAT" && break
4708 done
4709 
4710   else
4711     # The variable is set, but is it from the command line or the environment?
4712 
4713     # Try to remove the string !CAT! from our list.
4714     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4715     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4716       # If it failed, the variable was not from the command line. Ignore it,
4717       # but warn the user (except for BASH, which is always set by the calling BASH).
4718       if test "xCAT" != xBASH; then
4719         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4720 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4721       fi
4722       # Try to locate tool using the code snippet
4723       for ac_prog in cat
4724 do
4725   # Extract the first word of "$ac_prog", so it can be a program name with args.
4726 set dummy $ac_prog; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if ${ac_cv_path_CAT+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   case $CAT in
4733   [\\/]* | ?:[\\/]*)
4734   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4735   ;;
4736   *)
4737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742     for ac_exec_ext in '' $ac_executable_extensions; do
4743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749   done
4750 IFS=$as_save_IFS
4751 
4752   ;;
4753 esac
4754 fi
4755 CAT=$ac_cv_path_CAT
4756 if test -n "$CAT"; then
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4758 $as_echo "$CAT" >&6; }
4759 else
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4762 fi
4763 
4764 
4765   test -n "$CAT" && break
4766 done
4767 
4768     else
4769       # If it succeeded, then it was overridden by the user. We will use it
4770       # for the tool.
4771 
4772       # First remove it from the list of overridden variables, so we can test
4773       # for unknown variables in the end.
4774       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4775 
4776       # Check if the provided tool contains a complete path.
4777       tool_specified="$CAT"
4778       tool_basename="${tool_specified##*/}"
4779       if test "x$tool_basename" = "x$tool_specified"; then
4780         # A command without a complete path is provided, search $PATH.
4781         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4782 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4783         # Extract the first word of "$tool_basename", so it can be a program name with args.
4784 set dummy $tool_basename; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if ${ac_cv_path_CAT+:} false; then :
4788   $as_echo_n "(cached) " >&6
4789 else
4790   case $CAT in
4791   [\\/]* | ?:[\\/]*)
4792   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4793   ;;
4794   *)
4795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800     for ac_exec_ext in '' $ac_executable_extensions; do
4801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807   done
4808 IFS=$as_save_IFS
4809 
4810   ;;
4811 esac
4812 fi
4813 CAT=$ac_cv_path_CAT
4814 if test -n "$CAT"; then
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4816 $as_echo "$CAT" >&6; }
4817 else
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821 
4822 
4823         if test "x$CAT" = x; then
4824           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4825         fi
4826       else
4827         # Otherwise we believe it is a complete path. Use it as it is.
4828         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4829 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4830         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4831 $as_echo_n "checking for CAT... " >&6; }
4832         if test ! -x "$tool_specified"; then
4833           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4834 $as_echo "not found" >&6; }
4835           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4836         fi
4837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4838 $as_echo "$tool_specified" >&6; }
4839       fi
4840     fi
4841   fi
4842 
4843 
4844 
4845   if test "x$CAT" = x; then
4846     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4847   fi
4848 
4849 
4850 
4851 
4852 
4853   # Publish this variable in the help.
4854 
4855 
4856   if test "x$CHMOD" = x; then
4857     # The variable is not set by user, try to locate tool using the code snippet
4858     for ac_prog in chmod
4859 do
4860   # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy $ac_prog; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_path_CHMOD+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   case $CHMOD in
4868   [\\/]* | ?:[\\/]*)
4869   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4870   ;;
4871   *)
4872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877     for ac_exec_ext in '' $ac_executable_extensions; do
4878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884   done
4885 IFS=$as_save_IFS
4886 
4887   ;;
4888 esac
4889 fi
4890 CHMOD=$ac_cv_path_CHMOD
4891 if test -n "$CHMOD"; then
4892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4893 $as_echo "$CHMOD" >&6; }
4894 else
4895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898 
4899 
4900   test -n "$CHMOD" && break
4901 done
4902 
4903   else
4904     # The variable is set, but is it from the command line or the environment?
4905 
4906     # Try to remove the string !CHMOD! from our list.
4907     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4908     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4909       # If it failed, the variable was not from the command line. Ignore it,
4910       # but warn the user (except for BASH, which is always set by the calling BASH).
4911       if test "xCHMOD" != xBASH; then
4912         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4913 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4914       fi
4915       # Try to locate tool using the code snippet
4916       for ac_prog in chmod
4917 do
4918   # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_path_CHMOD+:} false; then :
4923   $as_echo_n "(cached) " >&6
4924 else
4925   case $CHMOD in
4926   [\\/]* | ?:[\\/]*)
4927   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4928   ;;
4929   *)
4930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935     for ac_exec_ext in '' $ac_executable_extensions; do
4936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942   done
4943 IFS=$as_save_IFS
4944 
4945   ;;
4946 esac
4947 fi
4948 CHMOD=$ac_cv_path_CHMOD
4949 if test -n "$CHMOD"; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4951 $as_echo "$CHMOD" >&6; }
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956 
4957 
4958   test -n "$CHMOD" && break
4959 done
4960 
4961     else
4962       # If it succeeded, then it was overridden by the user. We will use it
4963       # for the tool.
4964 
4965       # First remove it from the list of overridden variables, so we can test
4966       # for unknown variables in the end.
4967       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4968 
4969       # Check if the provided tool contains a complete path.
4970       tool_specified="$CHMOD"
4971       tool_basename="${tool_specified##*/}"
4972       if test "x$tool_basename" = "x$tool_specified"; then
4973         # A command without a complete path is provided, search $PATH.
4974         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4975 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4976         # Extract the first word of "$tool_basename", so it can be a program name with args.
4977 set dummy $tool_basename; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_path_CHMOD+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   case $CHMOD in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993     for ac_exec_ext in '' $ac_executable_extensions; do
4994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000   done
5001 IFS=$as_save_IFS
5002 
5003   ;;
5004 esac
5005 fi
5006 CHMOD=$ac_cv_path_CHMOD
5007 if test -n "$CHMOD"; then
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5009 $as_echo "$CHMOD" >&6; }
5010 else
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014 
5015 
5016         if test "x$CHMOD" = x; then
5017           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5018         fi
5019       else
5020         # Otherwise we believe it is a complete path. Use it as it is.
5021         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5022 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5024 $as_echo_n "checking for CHMOD... " >&6; }
5025         if test ! -x "$tool_specified"; then
5026           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5027 $as_echo "not found" >&6; }
5028           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5029         fi
5030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5031 $as_echo "$tool_specified" >&6; }
5032       fi
5033     fi
5034   fi
5035 
5036 
5037 
5038   if test "x$CHMOD" = x; then
5039     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5040   fi
5041 
5042 
5043 
5044 
5045 
5046   # Publish this variable in the help.
5047 
5048 
5049   if test "x$CMP" = x; then
5050     # The variable is not set by user, try to locate tool using the code snippet
5051     for ac_prog in cmp
5052 do
5053   # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_path_CMP+:} false; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   case $CMP in
5061   [\\/]* | ?:[\\/]*)
5062   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5063   ;;
5064   *)
5065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070     for ac_exec_ext in '' $ac_executable_extensions; do
5071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074     break 2
5075   fi
5076 done
5077   done
5078 IFS=$as_save_IFS
5079 
5080   ;;
5081 esac
5082 fi
5083 CMP=$ac_cv_path_CMP
5084 if test -n "$CMP"; then
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5086 $as_echo "$CMP" >&6; }
5087 else
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5090 fi
5091 
5092 
5093   test -n "$CMP" && break
5094 done
5095 
5096   else
5097     # The variable is set, but is it from the command line or the environment?
5098 
5099     # Try to remove the string !CMP! from our list.
5100     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5101     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5102       # If it failed, the variable was not from the command line. Ignore it,
5103       # but warn the user (except for BASH, which is always set by the calling BASH).
5104       if test "xCMP" != xBASH; then
5105         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5106 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5107       fi
5108       # Try to locate tool using the code snippet
5109       for ac_prog in cmp
5110 do
5111   # Extract the first word of "$ac_prog", so it can be a program name with args.
5112 set dummy $ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_CMP+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   case $CMP in
5119   [\\/]* | ?:[\\/]*)
5120   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5121   ;;
5122   *)
5123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135   done
5136 IFS=$as_save_IFS
5137 
5138   ;;
5139 esac
5140 fi
5141 CMP=$ac_cv_path_CMP
5142 if test -n "$CMP"; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5144 $as_echo "$CMP" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149 
5150 
5151   test -n "$CMP" && break
5152 done
5153 
5154     else
5155       # If it succeeded, then it was overridden by the user. We will use it
5156       # for the tool.
5157 
5158       # First remove it from the list of overridden variables, so we can test
5159       # for unknown variables in the end.
5160       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5161 
5162       # Check if the provided tool contains a complete path.
5163       tool_specified="$CMP"
5164       tool_basename="${tool_specified##*/}"
5165       if test "x$tool_basename" = "x$tool_specified"; then
5166         # A command without a complete path is provided, search $PATH.
5167         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5168 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5169         # Extract the first word of "$tool_basename", so it can be a program name with args.
5170 set dummy $tool_basename; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_path_CMP+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   case $CMP in
5177   [\\/]* | ?:[\\/]*)
5178   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5179   ;;
5180   *)
5181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186     for ac_exec_ext in '' $ac_executable_extensions; do
5187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193   done
5194 IFS=$as_save_IFS
5195 
5196   ;;
5197 esac
5198 fi
5199 CMP=$ac_cv_path_CMP
5200 if test -n "$CMP"; then
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5202 $as_echo "$CMP" >&6; }
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207 
5208 
5209         if test "x$CMP" = x; then
5210           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5211         fi
5212       else
5213         # Otherwise we believe it is a complete path. Use it as it is.
5214         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5215 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5217 $as_echo_n "checking for CMP... " >&6; }
5218         if test ! -x "$tool_specified"; then
5219           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5220 $as_echo "not found" >&6; }
5221           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5222         fi
5223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5224 $as_echo "$tool_specified" >&6; }
5225       fi
5226     fi
5227   fi
5228 
5229 
5230 
5231   if test "x$CMP" = x; then
5232     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5233   fi
5234 
5235 
5236 
5237 
5238 
5239   # Publish this variable in the help.
5240 
5241 
5242   if test "x$COMM" = x; then
5243     # The variable is not set by user, try to locate tool using the code snippet
5244     for ac_prog in comm
5245 do
5246   # Extract the first word of "$ac_prog", so it can be a program name with args.
5247 set dummy $ac_prog; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_path_COMM+:} false; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   case $COMM in
5254   [\\/]* | ?:[\\/]*)
5255   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5256   ;;
5257   *)
5258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263     for ac_exec_ext in '' $ac_executable_extensions; do
5264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267     break 2
5268   fi
5269 done
5270   done
5271 IFS=$as_save_IFS
5272 
5273   ;;
5274 esac
5275 fi
5276 COMM=$ac_cv_path_COMM
5277 if test -n "$COMM"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5279 $as_echo "$COMM" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284 
5285 
5286   test -n "$COMM" && break
5287 done
5288 
5289   else
5290     # The variable is set, but is it from the command line or the environment?
5291 
5292     # Try to remove the string !COMM! from our list.
5293     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5294     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5295       # If it failed, the variable was not from the command line. Ignore it,
5296       # but warn the user (except for BASH, which is always set by the calling BASH).
5297       if test "xCOMM" != xBASH; then
5298         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5299 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5300       fi
5301       # Try to locate tool using the code snippet
5302       for ac_prog in comm
5303 do
5304   # Extract the first word of "$ac_prog", so it can be a program name with args.
5305 set dummy $ac_prog; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_path_COMM+:} false; then :
5309   $as_echo_n "(cached) " >&6
5310 else
5311   case $COMM in
5312   [\\/]* | ?:[\\/]*)
5313   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5314   ;;
5315   *)
5316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319   IFS=$as_save_IFS
5320   test -z "$as_dir" && as_dir=.
5321     for ac_exec_ext in '' $ac_executable_extensions; do
5322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325     break 2
5326   fi
5327 done
5328   done
5329 IFS=$as_save_IFS
5330 
5331   ;;
5332 esac
5333 fi
5334 COMM=$ac_cv_path_COMM
5335 if test -n "$COMM"; then
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5337 $as_echo "$COMM" >&6; }
5338 else
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341 fi
5342 
5343 
5344   test -n "$COMM" && break
5345 done
5346 
5347     else
5348       # If it succeeded, then it was overridden by the user. We will use it
5349       # for the tool.
5350 
5351       # First remove it from the list of overridden variables, so we can test
5352       # for unknown variables in the end.
5353       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5354 
5355       # Check if the provided tool contains a complete path.
5356       tool_specified="$COMM"
5357       tool_basename="${tool_specified##*/}"
5358       if test "x$tool_basename" = "x$tool_specified"; then
5359         # A command without a complete path is provided, search $PATH.
5360         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5361 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5362         # Extract the first word of "$tool_basename", so it can be a program name with args.
5363 set dummy $tool_basename; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_path_COMM+:} false; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   case $COMM in
5370   [\\/]* | ?:[\\/]*)
5371   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5372   ;;
5373   *)
5374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377   IFS=$as_save_IFS
5378   test -z "$as_dir" && as_dir=.
5379     for ac_exec_ext in '' $ac_executable_extensions; do
5380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383     break 2
5384   fi
5385 done
5386   done
5387 IFS=$as_save_IFS
5388 
5389   ;;
5390 esac
5391 fi
5392 COMM=$ac_cv_path_COMM
5393 if test -n "$COMM"; then
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5395 $as_echo "$COMM" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400 
5401 
5402         if test "x$COMM" = x; then
5403           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5404         fi
5405       else
5406         # Otherwise we believe it is a complete path. Use it as it is.
5407         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5408 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5409         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5410 $as_echo_n "checking for COMM... " >&6; }
5411         if test ! -x "$tool_specified"; then
5412           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5413 $as_echo "not found" >&6; }
5414           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5415         fi
5416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5417 $as_echo "$tool_specified" >&6; }
5418       fi
5419     fi
5420   fi
5421 
5422 
5423 
5424   if test "x$COMM" = x; then
5425     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5426   fi
5427 
5428 
5429 
5430 
5431 
5432   # Publish this variable in the help.
5433 
5434 
5435   if test "x$CP" = x; then
5436     # The variable is not set by user, try to locate tool using the code snippet
5437     for ac_prog in cp
5438 do
5439   # Extract the first word of "$ac_prog", so it can be a program name with args.
5440 set dummy $ac_prog; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_path_CP+:} false; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   case $CP in
5447   [\\/]* | ?:[\\/]*)
5448   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5449   ;;
5450   *)
5451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465 
5466   ;;
5467 esac
5468 fi
5469 CP=$ac_cv_path_CP
5470 if test -n "$CP"; then
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5472 $as_echo "$CP" >&6; }
5473 else
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477 
5478 
5479   test -n "$CP" && break
5480 done
5481 
5482   else
5483     # The variable is set, but is it from the command line or the environment?
5484 
5485     # Try to remove the string !CP! from our list.
5486     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5487     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5488       # If it failed, the variable was not from the command line. Ignore it,
5489       # but warn the user (except for BASH, which is always set by the calling BASH).
5490       if test "xCP" != xBASH; then
5491         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5492 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5493       fi
5494       # Try to locate tool using the code snippet
5495       for ac_prog in cp
5496 do
5497   # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_path_CP+:} false; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   case $CP in
5505   [\\/]* | ?:[\\/]*)
5506   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5507   ;;
5508   *)
5509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514     for ac_exec_ext in '' $ac_executable_extensions; do
5515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518     break 2
5519   fi
5520 done
5521   done
5522 IFS=$as_save_IFS
5523 
5524   ;;
5525 esac
5526 fi
5527 CP=$ac_cv_path_CP
5528 if test -n "$CP"; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5530 $as_echo "$CP" >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535 
5536 
5537   test -n "$CP" && break
5538 done
5539 
5540     else
5541       # If it succeeded, then it was overridden by the user. We will use it
5542       # for the tool.
5543 
5544       # First remove it from the list of overridden variables, so we can test
5545       # for unknown variables in the end.
5546       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5547 
5548       # Check if the provided tool contains a complete path.
5549       tool_specified="$CP"
5550       tool_basename="${tool_specified##*/}"
5551       if test "x$tool_basename" = "x$tool_specified"; then
5552         # A command without a complete path is provided, search $PATH.
5553         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5554 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5555         # Extract the first word of "$tool_basename", so it can be a program name with args.
5556 set dummy $tool_basename; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_path_CP+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   case $CP in
5563   [\\/]* | ?:[\\/]*)
5564   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5565   ;;
5566   *)
5567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570   IFS=$as_save_IFS
5571   test -z "$as_dir" && as_dir=.
5572     for ac_exec_ext in '' $ac_executable_extensions; do
5573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576     break 2
5577   fi
5578 done
5579   done
5580 IFS=$as_save_IFS
5581 
5582   ;;
5583 esac
5584 fi
5585 CP=$ac_cv_path_CP
5586 if test -n "$CP"; then
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5588 $as_echo "$CP" >&6; }
5589 else
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593 
5594 
5595         if test "x$CP" = x; then
5596           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5597         fi
5598       else
5599         # Otherwise we believe it is a complete path. Use it as it is.
5600         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5601 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5603 $as_echo_n "checking for CP... " >&6; }
5604         if test ! -x "$tool_specified"; then
5605           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5606 $as_echo "not found" >&6; }
5607           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5608         fi
5609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5610 $as_echo "$tool_specified" >&6; }
5611       fi
5612     fi
5613   fi
5614 
5615 
5616 
5617   if test "x$CP" = x; then
5618     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5619   fi
5620 
5621 
5622 
5623 
5624 
5625   # Publish this variable in the help.
5626 
5627 
5628   if test "x$CPIO" = x; then
5629     # The variable is not set by user, try to locate tool using the code snippet
5630     for ac_prog in cpio
5631 do
5632   # Extract the first word of "$ac_prog", so it can be a program name with args.
5633 set dummy $ac_prog; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_path_CPIO+:} false; then :
5637   $as_echo_n "(cached) " >&6
5638 else
5639   case $CPIO in
5640   [\\/]* | ?:[\\/]*)
5641   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5642   ;;
5643   *)
5644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649     for ac_exec_ext in '' $ac_executable_extensions; do
5650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656   done
5657 IFS=$as_save_IFS
5658 
5659   ;;
5660 esac
5661 fi
5662 CPIO=$ac_cv_path_CPIO
5663 if test -n "$CPIO"; then
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5665 $as_echo "$CPIO" >&6; }
5666 else
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670 
5671 
5672   test -n "$CPIO" && break
5673 done
5674 
5675   else
5676     # The variable is set, but is it from the command line or the environment?
5677 
5678     # Try to remove the string !CPIO! from our list.
5679     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5680     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5681       # If it failed, the variable was not from the command line. Ignore it,
5682       # but warn the user (except for BASH, which is always set by the calling BASH).
5683       if test "xCPIO" != xBASH; then
5684         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5685 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5686       fi
5687       # Try to locate tool using the code snippet
5688       for ac_prog in cpio
5689 do
5690   # Extract the first word of "$ac_prog", so it can be a program name with args.
5691 set dummy $ac_prog; ac_word=$2
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693 $as_echo_n "checking for $ac_word... " >&6; }
5694 if ${ac_cv_path_CPIO+:} false; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697   case $CPIO in
5698   [\\/]* | ?:[\\/]*)
5699   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5700   ;;
5701   *)
5702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707     for ac_exec_ext in '' $ac_executable_extensions; do
5708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711     break 2
5712   fi
5713 done
5714   done
5715 IFS=$as_save_IFS
5716 
5717   ;;
5718 esac
5719 fi
5720 CPIO=$ac_cv_path_CPIO
5721 if test -n "$CPIO"; then
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5723 $as_echo "$CPIO" >&6; }
5724 else
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728 
5729 
5730   test -n "$CPIO" && break
5731 done
5732 
5733     else
5734       # If it succeeded, then it was overridden by the user. We will use it
5735       # for the tool.
5736 
5737       # First remove it from the list of overridden variables, so we can test
5738       # for unknown variables in the end.
5739       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5740 
5741       # Check if the provided tool contains a complete path.
5742       tool_specified="$CPIO"
5743       tool_basename="${tool_specified##*/}"
5744       if test "x$tool_basename" = "x$tool_specified"; then
5745         # A command without a complete path is provided, search $PATH.
5746         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5747 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5748         # Extract the first word of "$tool_basename", so it can be a program name with args.
5749 set dummy $tool_basename; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_path_CPIO+:} false; then :
5753   $as_echo_n "(cached) " >&6
5754 else
5755   case $CPIO in
5756   [\\/]* | ?:[\\/]*)
5757   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5758   ;;
5759   *)
5760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763   IFS=$as_save_IFS
5764   test -z "$as_dir" && as_dir=.
5765     for ac_exec_ext in '' $ac_executable_extensions; do
5766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769     break 2
5770   fi
5771 done
5772   done
5773 IFS=$as_save_IFS
5774 
5775   ;;
5776 esac
5777 fi
5778 CPIO=$ac_cv_path_CPIO
5779 if test -n "$CPIO"; then
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5781 $as_echo "$CPIO" >&6; }
5782 else
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786 
5787 
5788         if test "x$CPIO" = x; then
5789           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5790         fi
5791       else
5792         # Otherwise we believe it is a complete path. Use it as it is.
5793         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5794 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5796 $as_echo_n "checking for CPIO... " >&6; }
5797         if test ! -x "$tool_specified"; then
5798           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5799 $as_echo "not found" >&6; }
5800           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5801         fi
5802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5803 $as_echo "$tool_specified" >&6; }
5804       fi
5805     fi
5806   fi
5807 
5808 
5809 
5810   if test "x$CPIO" = x; then
5811     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5812   fi
5813 
5814 
5815 
5816 
5817 
5818   # Publish this variable in the help.
5819 
5820 
5821   if test "x$CUT" = x; then
5822     # The variable is not set by user, try to locate tool using the code snippet
5823     for ac_prog in cut
5824 do
5825   # Extract the first word of "$ac_prog", so it can be a program name with args.
5826 set dummy $ac_prog; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_path_CUT+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   case $CUT in
5833   [\\/]* | ?:[\\/]*)
5834   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5835   ;;
5836   *)
5837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842     for ac_exec_ext in '' $ac_executable_extensions; do
5843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849   done
5850 IFS=$as_save_IFS
5851 
5852   ;;
5853 esac
5854 fi
5855 CUT=$ac_cv_path_CUT
5856 if test -n "$CUT"; then
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5858 $as_echo "$CUT" >&6; }
5859 else
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5862 fi
5863 
5864 
5865   test -n "$CUT" && break
5866 done
5867 
5868   else
5869     # The variable is set, but is it from the command line or the environment?
5870 
5871     # Try to remove the string !CUT! from our list.
5872     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5873     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5874       # If it failed, the variable was not from the command line. Ignore it,
5875       # but warn the user (except for BASH, which is always set by the calling BASH).
5876       if test "xCUT" != xBASH; then
5877         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5878 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5879       fi
5880       # Try to locate tool using the code snippet
5881       for ac_prog in cut
5882 do
5883   # Extract the first word of "$ac_prog", so it can be a program name with args.
5884 set dummy $ac_prog; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_path_CUT+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   case $CUT in
5891   [\\/]* | ?:[\\/]*)
5892   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5893   ;;
5894   *)
5895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900     for ac_exec_ext in '' $ac_executable_extensions; do
5901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907   done
5908 IFS=$as_save_IFS
5909 
5910   ;;
5911 esac
5912 fi
5913 CUT=$ac_cv_path_CUT
5914 if test -n "$CUT"; then
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5916 $as_echo "$CUT" >&6; }
5917 else
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921 
5922 
5923   test -n "$CUT" && break
5924 done
5925 
5926     else
5927       # If it succeeded, then it was overridden by the user. We will use it
5928       # for the tool.
5929 
5930       # First remove it from the list of overridden variables, so we can test
5931       # for unknown variables in the end.
5932       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5933 
5934       # Check if the provided tool contains a complete path.
5935       tool_specified="$CUT"
5936       tool_basename="${tool_specified##*/}"
5937       if test "x$tool_basename" = "x$tool_specified"; then
5938         # A command without a complete path is provided, search $PATH.
5939         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5940 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5941         # Extract the first word of "$tool_basename", so it can be a program name with args.
5942 set dummy $tool_basename; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_path_CUT+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   case $CUT in
5949   [\\/]* | ?:[\\/]*)
5950   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5951   ;;
5952   *)
5953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958     for ac_exec_ext in '' $ac_executable_extensions; do
5959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965   done
5966 IFS=$as_save_IFS
5967 
5968   ;;
5969 esac
5970 fi
5971 CUT=$ac_cv_path_CUT
5972 if test -n "$CUT"; then
5973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5974 $as_echo "$CUT" >&6; }
5975 else
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979 
5980 
5981         if test "x$CUT" = x; then
5982           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5983         fi
5984       else
5985         # Otherwise we believe it is a complete path. Use it as it is.
5986         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5987 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5988         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5989 $as_echo_n "checking for CUT... " >&6; }
5990         if test ! -x "$tool_specified"; then
5991           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5992 $as_echo "not found" >&6; }
5993           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5994         fi
5995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5996 $as_echo "$tool_specified" >&6; }
5997       fi
5998     fi
5999   fi
6000 
6001 
6002 
6003   if test "x$CUT" = x; then
6004     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6005   fi
6006 
6007 
6008 
6009 
6010 
6011   # Publish this variable in the help.
6012 
6013 
6014   if test "x$DATE" = x; then
6015     # The variable is not set by user, try to locate tool using the code snippet
6016     for ac_prog in date
6017 do
6018   # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_path_DATE+:} false; then :
6023   $as_echo_n "(cached) " >&6
6024 else
6025   case $DATE in
6026   [\\/]* | ?:[\\/]*)
6027   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6028   ;;
6029   *)
6030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035     for ac_exec_ext in '' $ac_executable_extensions; do
6036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042   done
6043 IFS=$as_save_IFS
6044 
6045   ;;
6046 esac
6047 fi
6048 DATE=$ac_cv_path_DATE
6049 if test -n "$DATE"; then
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6051 $as_echo "$DATE" >&6; }
6052 else
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6055 fi
6056 
6057 
6058   test -n "$DATE" && break
6059 done
6060 
6061   else
6062     # The variable is set, but is it from the command line or the environment?
6063 
6064     # Try to remove the string !DATE! from our list.
6065     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6066     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6067       # If it failed, the variable was not from the command line. Ignore it,
6068       # but warn the user (except for BASH, which is always set by the calling BASH).
6069       if test "xDATE" != xBASH; then
6070         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6071 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6072       fi
6073       # Try to locate tool using the code snippet
6074       for ac_prog in date
6075 do
6076   # Extract the first word of "$ac_prog", so it can be a program name with args.
6077 set dummy $ac_prog; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if ${ac_cv_path_DATE+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   case $DATE in
6084   [\\/]* | ?:[\\/]*)
6085   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6086   ;;
6087   *)
6088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102 
6103   ;;
6104 esac
6105 fi
6106 DATE=$ac_cv_path_DATE
6107 if test -n "$DATE"; then
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6109 $as_echo "$DATE" >&6; }
6110 else
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114 
6115 
6116   test -n "$DATE" && break
6117 done
6118 
6119     else
6120       # If it succeeded, then it was overridden by the user. We will use it
6121       # for the tool.
6122 
6123       # First remove it from the list of overridden variables, so we can test
6124       # for unknown variables in the end.
6125       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6126 
6127       # Check if the provided tool contains a complete path.
6128       tool_specified="$DATE"
6129       tool_basename="${tool_specified##*/}"
6130       if test "x$tool_basename" = "x$tool_specified"; then
6131         # A command without a complete path is provided, search $PATH.
6132         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6133 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6134         # Extract the first word of "$tool_basename", so it can be a program name with args.
6135 set dummy $tool_basename; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_path_DATE+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   case $DATE in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6144   ;;
6145   *)
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160 
6161   ;;
6162 esac
6163 fi
6164 DATE=$ac_cv_path_DATE
6165 if test -n "$DATE"; then
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6167 $as_echo "$DATE" >&6; }
6168 else
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172 
6173 
6174         if test "x$DATE" = x; then
6175           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6176         fi
6177       else
6178         # Otherwise we believe it is a complete path. Use it as it is.
6179         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6180 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6182 $as_echo_n "checking for DATE... " >&6; }
6183         if test ! -x "$tool_specified"; then
6184           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6185 $as_echo "not found" >&6; }
6186           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6187         fi
6188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6189 $as_echo "$tool_specified" >&6; }
6190       fi
6191     fi
6192   fi
6193 
6194 
6195 
6196   if test "x$DATE" = x; then
6197     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6198   fi
6199 
6200 
6201 
6202 
6203 
6204   # Publish this variable in the help.
6205 
6206 
6207   if test "x$DIFF" = x; then
6208     # The variable is not set by user, try to locate tool using the code snippet
6209     for ac_prog in gdiff diff
6210 do
6211   # Extract the first word of "$ac_prog", so it can be a program name with args.
6212 set dummy $ac_prog; ac_word=$2
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if ${ac_cv_path_DIFF+:} false; then :
6216   $as_echo_n "(cached) " >&6
6217 else
6218   case $DIFF in
6219   [\\/]* | ?:[\\/]*)
6220   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6221   ;;
6222   *)
6223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228     for ac_exec_ext in '' $ac_executable_extensions; do
6229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235   done
6236 IFS=$as_save_IFS
6237 
6238   ;;
6239 esac
6240 fi
6241 DIFF=$ac_cv_path_DIFF
6242 if test -n "$DIFF"; then
6243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6244 $as_echo "$DIFF" >&6; }
6245 else
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6248 fi
6249 
6250 
6251   test -n "$DIFF" && break
6252 done
6253 
6254   else
6255     # The variable is set, but is it from the command line or the environment?
6256 
6257     # Try to remove the string !DIFF! from our list.
6258     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6259     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6260       # If it failed, the variable was not from the command line. Ignore it,
6261       # but warn the user (except for BASH, which is always set by the calling BASH).
6262       if test "xDIFF" != xBASH; then
6263         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6264 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6265       fi
6266       # Try to locate tool using the code snippet
6267       for ac_prog in gdiff diff
6268 do
6269   # Extract the first word of "$ac_prog", so it can be a program name with args.
6270 set dummy $ac_prog; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if ${ac_cv_path_DIFF+:} false; then :
6274   $as_echo_n "(cached) " >&6
6275 else
6276   case $DIFF in
6277   [\\/]* | ?:[\\/]*)
6278   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6279   ;;
6280   *)
6281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286     for ac_exec_ext in '' $ac_executable_extensions; do
6287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293   done
6294 IFS=$as_save_IFS
6295 
6296   ;;
6297 esac
6298 fi
6299 DIFF=$ac_cv_path_DIFF
6300 if test -n "$DIFF"; then
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6302 $as_echo "$DIFF" >&6; }
6303 else
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307 
6308 
6309   test -n "$DIFF" && break
6310 done
6311 
6312     else
6313       # If it succeeded, then it was overridden by the user. We will use it
6314       # for the tool.
6315 
6316       # First remove it from the list of overridden variables, so we can test
6317       # for unknown variables in the end.
6318       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6319 
6320       # Check if the provided tool contains a complete path.
6321       tool_specified="$DIFF"
6322       tool_basename="${tool_specified##*/}"
6323       if test "x$tool_basename" = "x$tool_specified"; then
6324         # A command without a complete path is provided, search $PATH.
6325         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6326 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6327         # Extract the first word of "$tool_basename", so it can be a program name with args.
6328 set dummy $tool_basename; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_path_DIFF+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   case $DIFF in
6335   [\\/]* | ?:[\\/]*)
6336   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6337   ;;
6338   *)
6339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344     for ac_exec_ext in '' $ac_executable_extensions; do
6345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351   done
6352 IFS=$as_save_IFS
6353 
6354   ;;
6355 esac
6356 fi
6357 DIFF=$ac_cv_path_DIFF
6358 if test -n "$DIFF"; then
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6360 $as_echo "$DIFF" >&6; }
6361 else
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365 
6366 
6367         if test "x$DIFF" = x; then
6368           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6369         fi
6370       else
6371         # Otherwise we believe it is a complete path. Use it as it is.
6372         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6373 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6374         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6375 $as_echo_n "checking for DIFF... " >&6; }
6376         if test ! -x "$tool_specified"; then
6377           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6378 $as_echo "not found" >&6; }
6379           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6380         fi
6381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6382 $as_echo "$tool_specified" >&6; }
6383       fi
6384     fi
6385   fi
6386 
6387 
6388 
6389   if test "x$DIFF" = x; then
6390     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6391   fi
6392 
6393 
6394 
6395 
6396 
6397   # Publish this variable in the help.
6398 
6399 
6400   if test "x$DIRNAME" = x; then
6401     # The variable is not set by user, try to locate tool using the code snippet
6402     for ac_prog in dirname
6403 do
6404   # Extract the first word of "$ac_prog", so it can be a program name with args.
6405 set dummy $ac_prog; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_path_DIRNAME+:} false; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   case $DIRNAME in
6412   [\\/]* | ?:[\\/]*)
6413   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6414   ;;
6415   *)
6416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430 
6431   ;;
6432 esac
6433 fi
6434 DIRNAME=$ac_cv_path_DIRNAME
6435 if test -n "$DIRNAME"; then
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6437 $as_echo "$DIRNAME" >&6; }
6438 else
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442 
6443 
6444   test -n "$DIRNAME" && break
6445 done
6446 
6447   else
6448     # The variable is set, but is it from the command line or the environment?
6449 
6450     # Try to remove the string !DIRNAME! from our list.
6451     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6452     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6453       # If it failed, the variable was not from the command line. Ignore it,
6454       # but warn the user (except for BASH, which is always set by the calling BASH).
6455       if test "xDIRNAME" != xBASH; then
6456         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6457 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6458       fi
6459       # Try to locate tool using the code snippet
6460       for ac_prog in dirname
6461 do
6462   # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy $ac_prog; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_path_DIRNAME+:} false; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469   case $DIRNAME in
6470   [\\/]* | ?:[\\/]*)
6471   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6472   ;;
6473   *)
6474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477   IFS=$as_save_IFS
6478   test -z "$as_dir" && as_dir=.
6479     for ac_exec_ext in '' $ac_executable_extensions; do
6480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483     break 2
6484   fi
6485 done
6486   done
6487 IFS=$as_save_IFS
6488 
6489   ;;
6490 esac
6491 fi
6492 DIRNAME=$ac_cv_path_DIRNAME
6493 if test -n "$DIRNAME"; then
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6495 $as_echo "$DIRNAME" >&6; }
6496 else
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 fi
6500 
6501 
6502   test -n "$DIRNAME" && break
6503 done
6504 
6505     else
6506       # If it succeeded, then it was overridden by the user. We will use it
6507       # for the tool.
6508 
6509       # First remove it from the list of overridden variables, so we can test
6510       # for unknown variables in the end.
6511       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6512 
6513       # Check if the provided tool contains a complete path.
6514       tool_specified="$DIRNAME"
6515       tool_basename="${tool_specified##*/}"
6516       if test "x$tool_basename" = "x$tool_specified"; then
6517         # A command without a complete path is provided, search $PATH.
6518         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6519 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6520         # Extract the first word of "$tool_basename", so it can be a program name with args.
6521 set dummy $tool_basename; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_path_DIRNAME+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   case $DIRNAME in
6528   [\\/]* | ?:[\\/]*)
6529   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6530   ;;
6531   *)
6532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537     for ac_exec_ext in '' $ac_executable_extensions; do
6538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544   done
6545 IFS=$as_save_IFS
6546 
6547   ;;
6548 esac
6549 fi
6550 DIRNAME=$ac_cv_path_DIRNAME
6551 if test -n "$DIRNAME"; then
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6553 $as_echo "$DIRNAME" >&6; }
6554 else
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558 
6559 
6560         if test "x$DIRNAME" = x; then
6561           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6562         fi
6563       else
6564         # Otherwise we believe it is a complete path. Use it as it is.
6565         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6566 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6568 $as_echo_n "checking for DIRNAME... " >&6; }
6569         if test ! -x "$tool_specified"; then
6570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6571 $as_echo "not found" >&6; }
6572           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6573         fi
6574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6575 $as_echo "$tool_specified" >&6; }
6576       fi
6577     fi
6578   fi
6579 
6580 
6581 
6582   if test "x$DIRNAME" = x; then
6583     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6584   fi
6585 
6586 
6587 
6588 
6589 
6590   # Publish this variable in the help.
6591 
6592 
6593   if test "x$ECHO" = x; then
6594     # The variable is not set by user, try to locate tool using the code snippet
6595     for ac_prog in echo
6596 do
6597   # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_path_ECHO+:} false; then :
6602   $as_echo_n "(cached) " >&6
6603 else
6604   case $ECHO in
6605   [\\/]* | ?:[\\/]*)
6606   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6607   ;;
6608   *)
6609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614     for ac_exec_ext in '' $ac_executable_extensions; do
6615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621   done
6622 IFS=$as_save_IFS
6623 
6624   ;;
6625 esac
6626 fi
6627 ECHO=$ac_cv_path_ECHO
6628 if test -n "$ECHO"; then
6629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6630 $as_echo "$ECHO" >&6; }
6631 else
6632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635 
6636 
6637   test -n "$ECHO" && break
6638 done
6639 
6640   else
6641     # The variable is set, but is it from the command line or the environment?
6642 
6643     # Try to remove the string !ECHO! from our list.
6644     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6645     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6646       # If it failed, the variable was not from the command line. Ignore it,
6647       # but warn the user (except for BASH, which is always set by the calling BASH).
6648       if test "xECHO" != xBASH; then
6649         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6650 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6651       fi
6652       # Try to locate tool using the code snippet
6653       for ac_prog in echo
6654 do
6655   # Extract the first word of "$ac_prog", so it can be a program name with args.
6656 set dummy $ac_prog; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_path_ECHO+:} false; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   case $ECHO in
6663   [\\/]* | ?:[\\/]*)
6664   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6665   ;;
6666   *)
6667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672     for ac_exec_ext in '' $ac_executable_extensions; do
6673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679   done
6680 IFS=$as_save_IFS
6681 
6682   ;;
6683 esac
6684 fi
6685 ECHO=$ac_cv_path_ECHO
6686 if test -n "$ECHO"; then
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6688 $as_echo "$ECHO" >&6; }
6689 else
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6692 fi
6693 
6694 
6695   test -n "$ECHO" && break
6696 done
6697 
6698     else
6699       # If it succeeded, then it was overridden by the user. We will use it
6700       # for the tool.
6701 
6702       # First remove it from the list of overridden variables, so we can test
6703       # for unknown variables in the end.
6704       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6705 
6706       # Check if the provided tool contains a complete path.
6707       tool_specified="$ECHO"
6708       tool_basename="${tool_specified##*/}"
6709       if test "x$tool_basename" = "x$tool_specified"; then
6710         # A command without a complete path is provided, search $PATH.
6711         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6712 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6713         # Extract the first word of "$tool_basename", so it can be a program name with args.
6714 set dummy $tool_basename; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_path_ECHO+:} false; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   case $ECHO in
6721   [\\/]* | ?:[\\/]*)
6722   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6723   ;;
6724   *)
6725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730     for ac_exec_ext in '' $ac_executable_extensions; do
6731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737   done
6738 IFS=$as_save_IFS
6739 
6740   ;;
6741 esac
6742 fi
6743 ECHO=$ac_cv_path_ECHO
6744 if test -n "$ECHO"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6746 $as_echo "$ECHO" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751 
6752 
6753         if test "x$ECHO" = x; then
6754           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6755         fi
6756       else
6757         # Otherwise we believe it is a complete path. Use it as it is.
6758         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6759 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6760         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6761 $as_echo_n "checking for ECHO... " >&6; }
6762         if test ! -x "$tool_specified"; then
6763           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6764 $as_echo "not found" >&6; }
6765           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6766         fi
6767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6768 $as_echo "$tool_specified" >&6; }
6769       fi
6770     fi
6771   fi
6772 
6773 
6774 
6775   if test "x$ECHO" = x; then
6776     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6777   fi
6778 
6779 
6780 
6781 
6782 
6783   # Publish this variable in the help.
6784 
6785 
6786   if test "x$EXPR" = x; then
6787     # The variable is not set by user, try to locate tool using the code snippet
6788     for ac_prog in expr
6789 do
6790   # Extract the first word of "$ac_prog", so it can be a program name with args.
6791 set dummy $ac_prog; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_path_EXPR+:} false; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   case $EXPR in
6798   [\\/]* | ?:[\\/]*)
6799   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6800   ;;
6801   *)
6802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807     for ac_exec_ext in '' $ac_executable_extensions; do
6808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814   done
6815 IFS=$as_save_IFS
6816 
6817   ;;
6818 esac
6819 fi
6820 EXPR=$ac_cv_path_EXPR
6821 if test -n "$EXPR"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6823 $as_echo "$EXPR" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828 
6829 
6830   test -n "$EXPR" && break
6831 done
6832 
6833   else
6834     # The variable is set, but is it from the command line or the environment?
6835 
6836     # Try to remove the string !EXPR! from our list.
6837     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6838     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6839       # If it failed, the variable was not from the command line. Ignore it,
6840       # but warn the user (except for BASH, which is always set by the calling BASH).
6841       if test "xEXPR" != xBASH; then
6842         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6843 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6844       fi
6845       # Try to locate tool using the code snippet
6846       for ac_prog in expr
6847 do
6848   # Extract the first word of "$ac_prog", so it can be a program name with args.
6849 set dummy $ac_prog; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if ${ac_cv_path_EXPR+:} false; then :
6853   $as_echo_n "(cached) " >&6
6854 else
6855   case $EXPR in
6856   [\\/]* | ?:[\\/]*)
6857   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6858   ;;
6859   *)
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865     for ac_exec_ext in '' $ac_executable_extensions; do
6866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872   done
6873 IFS=$as_save_IFS
6874 
6875   ;;
6876 esac
6877 fi
6878 EXPR=$ac_cv_path_EXPR
6879 if test -n "$EXPR"; then
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6881 $as_echo "$EXPR" >&6; }
6882 else
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886 
6887 
6888   test -n "$EXPR" && break
6889 done
6890 
6891     else
6892       # If it succeeded, then it was overridden by the user. We will use it
6893       # for the tool.
6894 
6895       # First remove it from the list of overridden variables, so we can test
6896       # for unknown variables in the end.
6897       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6898 
6899       # Check if the provided tool contains a complete path.
6900       tool_specified="$EXPR"
6901       tool_basename="${tool_specified##*/}"
6902       if test "x$tool_basename" = "x$tool_specified"; then
6903         # A command without a complete path is provided, search $PATH.
6904         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6905 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6906         # Extract the first word of "$tool_basename", so it can be a program name with args.
6907 set dummy $tool_basename; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_path_EXPR+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   case $EXPR in
6914   [\\/]* | ?:[\\/]*)
6915   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6916   ;;
6917   *)
6918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923     for ac_exec_ext in '' $ac_executable_extensions; do
6924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930   done
6931 IFS=$as_save_IFS
6932 
6933   ;;
6934 esac
6935 fi
6936 EXPR=$ac_cv_path_EXPR
6937 if test -n "$EXPR"; then
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6939 $as_echo "$EXPR" >&6; }
6940 else
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944 
6945 
6946         if test "x$EXPR" = x; then
6947           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6948         fi
6949       else
6950         # Otherwise we believe it is a complete path. Use it as it is.
6951         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6952 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6954 $as_echo_n "checking for EXPR... " >&6; }
6955         if test ! -x "$tool_specified"; then
6956           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6957 $as_echo "not found" >&6; }
6958           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6959         fi
6960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6961 $as_echo "$tool_specified" >&6; }
6962       fi
6963     fi
6964   fi
6965 
6966 
6967 
6968   if test "x$EXPR" = x; then
6969     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6970   fi
6971 
6972 
6973 
6974 
6975 
6976   # Publish this variable in the help.
6977 
6978 
6979   if test "x$FILE" = x; then
6980     # The variable is not set by user, try to locate tool using the code snippet
6981     for ac_prog in file
6982 do
6983   # Extract the first word of "$ac_prog", so it can be a program name with args.
6984 set dummy $ac_prog; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_path_FILE+:} false; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   case $FILE in
6991   [\\/]* | ?:[\\/]*)
6992   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6993   ;;
6994   *)
6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000     for ac_exec_ext in '' $ac_executable_extensions; do
7001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007   done
7008 IFS=$as_save_IFS
7009 
7010   ;;
7011 esac
7012 fi
7013 FILE=$ac_cv_path_FILE
7014 if test -n "$FILE"; then
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7016 $as_echo "$FILE" >&6; }
7017 else
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021 
7022 
7023   test -n "$FILE" && break
7024 done
7025 
7026   else
7027     # The variable is set, but is it from the command line or the environment?
7028 
7029     # Try to remove the string !FILE! from our list.
7030     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7031     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7032       # If it failed, the variable was not from the command line. Ignore it,
7033       # but warn the user (except for BASH, which is always set by the calling BASH).
7034       if test "xFILE" != xBASH; then
7035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7036 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7037       fi
7038       # Try to locate tool using the code snippet
7039       for ac_prog in file
7040 do
7041   # Extract the first word of "$ac_prog", so it can be a program name with args.
7042 set dummy $ac_prog; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_path_FILE+:} false; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   case $FILE in
7049   [\\/]* | ?:[\\/]*)
7050   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7051   ;;
7052   *)
7053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067 
7068   ;;
7069 esac
7070 fi
7071 FILE=$ac_cv_path_FILE
7072 if test -n "$FILE"; then
7073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7074 $as_echo "$FILE" >&6; }
7075 else
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079 
7080 
7081   test -n "$FILE" && break
7082 done
7083 
7084     else
7085       # If it succeeded, then it was overridden by the user. We will use it
7086       # for the tool.
7087 
7088       # First remove it from the list of overridden variables, so we can test
7089       # for unknown variables in the end.
7090       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7091 
7092       # Check if the provided tool contains a complete path.
7093       tool_specified="$FILE"
7094       tool_basename="${tool_specified##*/}"
7095       if test "x$tool_basename" = "x$tool_specified"; then
7096         # A command without a complete path is provided, search $PATH.
7097         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7098 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7099         # Extract the first word of "$tool_basename", so it can be a program name with args.
7100 set dummy $tool_basename; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_path_FILE+:} false; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   case $FILE in
7107   [\\/]* | ?:[\\/]*)
7108   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7109   ;;
7110   *)
7111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116     for ac_exec_ext in '' $ac_executable_extensions; do
7117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123   done
7124 IFS=$as_save_IFS
7125 
7126   ;;
7127 esac
7128 fi
7129 FILE=$ac_cv_path_FILE
7130 if test -n "$FILE"; then
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7132 $as_echo "$FILE" >&6; }
7133 else
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137 
7138 
7139         if test "x$FILE" = x; then
7140           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7141         fi
7142       else
7143         # Otherwise we believe it is a complete path. Use it as it is.
7144         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7145 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7147 $as_echo_n "checking for FILE... " >&6; }
7148         if test ! -x "$tool_specified"; then
7149           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7150 $as_echo "not found" >&6; }
7151           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7152         fi
7153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7154 $as_echo "$tool_specified" >&6; }
7155       fi
7156     fi
7157   fi
7158 
7159 
7160 
7161   if test "x$FILE" = x; then
7162     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7163   fi
7164 
7165 
7166 
7167 
7168 
7169   # Publish this variable in the help.
7170 
7171 
7172   if test "x$FIND" = x; then
7173     # The variable is not set by user, try to locate tool using the code snippet
7174     for ac_prog in find
7175 do
7176   # Extract the first word of "$ac_prog", so it can be a program name with args.
7177 set dummy $ac_prog; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_path_FIND+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   case $FIND in
7184   [\\/]* | ?:[\\/]*)
7185   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7186   ;;
7187   *)
7188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193     for ac_exec_ext in '' $ac_executable_extensions; do
7194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200   done
7201 IFS=$as_save_IFS
7202 
7203   ;;
7204 esac
7205 fi
7206 FIND=$ac_cv_path_FIND
7207 if test -n "$FIND"; then
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7209 $as_echo "$FIND" >&6; }
7210 else
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214 
7215 
7216   test -n "$FIND" && break
7217 done
7218 
7219   else
7220     # The variable is set, but is it from the command line or the environment?
7221 
7222     # Try to remove the string !FIND! from our list.
7223     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7224     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7225       # If it failed, the variable was not from the command line. Ignore it,
7226       # but warn the user (except for BASH, which is always set by the calling BASH).
7227       if test "xFIND" != xBASH; then
7228         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7229 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7230       fi
7231       # Try to locate tool using the code snippet
7232       for ac_prog in find
7233 do
7234   # Extract the first word of "$ac_prog", so it can be a program name with args.
7235 set dummy $ac_prog; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_path_FIND+:} false; then :
7239   $as_echo_n "(cached) " >&6
7240 else
7241   case $FIND in
7242   [\\/]* | ?:[\\/]*)
7243   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7244   ;;
7245   *)
7246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251     for ac_exec_ext in '' $ac_executable_extensions; do
7252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258   done
7259 IFS=$as_save_IFS
7260 
7261   ;;
7262 esac
7263 fi
7264 FIND=$ac_cv_path_FIND
7265 if test -n "$FIND"; then
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7267 $as_echo "$FIND" >&6; }
7268 else
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272 
7273 
7274   test -n "$FIND" && break
7275 done
7276 
7277     else
7278       # If it succeeded, then it was overridden by the user. We will use it
7279       # for the tool.
7280 
7281       # First remove it from the list of overridden variables, so we can test
7282       # for unknown variables in the end.
7283       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7284 
7285       # Check if the provided tool contains a complete path.
7286       tool_specified="$FIND"
7287       tool_basename="${tool_specified##*/}"
7288       if test "x$tool_basename" = "x$tool_specified"; then
7289         # A command without a complete path is provided, search $PATH.
7290         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7291 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7292         # Extract the first word of "$tool_basename", so it can be a program name with args.
7293 set dummy $tool_basename; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_path_FIND+:} false; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   case $FIND in
7300   [\\/]* | ?:[\\/]*)
7301   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7302   ;;
7303   *)
7304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318 
7319   ;;
7320 esac
7321 fi
7322 FIND=$ac_cv_path_FIND
7323 if test -n "$FIND"; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7325 $as_echo "$FIND" >&6; }
7326 else
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330 
7331 
7332         if test "x$FIND" = x; then
7333           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7334         fi
7335       else
7336         # Otherwise we believe it is a complete path. Use it as it is.
7337         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7338 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7340 $as_echo_n "checking for FIND... " >&6; }
7341         if test ! -x "$tool_specified"; then
7342           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7343 $as_echo "not found" >&6; }
7344           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7345         fi
7346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7347 $as_echo "$tool_specified" >&6; }
7348       fi
7349     fi
7350   fi
7351 
7352 
7353 
7354   if test "x$FIND" = x; then
7355     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7356   fi
7357 
7358 
7359 
7360 
7361 
7362   # Publish this variable in the help.
7363 
7364 
7365   if test "x$HEAD" = x; then
7366     # The variable is not set by user, try to locate tool using the code snippet
7367     for ac_prog in head
7368 do
7369   # Extract the first word of "$ac_prog", so it can be a program name with args.
7370 set dummy $ac_prog; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_path_HEAD+:} false; then :
7374   $as_echo_n "(cached) " >&6
7375 else
7376   case $HEAD in
7377   [\\/]* | ?:[\\/]*)
7378   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7379   ;;
7380   *)
7381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384   IFS=$as_save_IFS
7385   test -z "$as_dir" && as_dir=.
7386     for ac_exec_ext in '' $ac_executable_extensions; do
7387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390     break 2
7391   fi
7392 done
7393   done
7394 IFS=$as_save_IFS
7395 
7396   ;;
7397 esac
7398 fi
7399 HEAD=$ac_cv_path_HEAD
7400 if test -n "$HEAD"; then
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7402 $as_echo "$HEAD" >&6; }
7403 else
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407 
7408 
7409   test -n "$HEAD" && break
7410 done
7411 
7412   else
7413     # The variable is set, but is it from the command line or the environment?
7414 
7415     # Try to remove the string !HEAD! from our list.
7416     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7417     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7418       # If it failed, the variable was not from the command line. Ignore it,
7419       # but warn the user (except for BASH, which is always set by the calling BASH).
7420       if test "xHEAD" != xBASH; then
7421         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7422 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7423       fi
7424       # Try to locate tool using the code snippet
7425       for ac_prog in head
7426 do
7427   # Extract the first word of "$ac_prog", so it can be a program name with args.
7428 set dummy $ac_prog; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_path_HEAD+:} false; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   case $HEAD in
7435   [\\/]* | ?:[\\/]*)
7436   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7437   ;;
7438   *)
7439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451   done
7452 IFS=$as_save_IFS
7453 
7454   ;;
7455 esac
7456 fi
7457 HEAD=$ac_cv_path_HEAD
7458 if test -n "$HEAD"; then
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7460 $as_echo "$HEAD" >&6; }
7461 else
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465 
7466 
7467   test -n "$HEAD" && break
7468 done
7469 
7470     else
7471       # If it succeeded, then it was overridden by the user. We will use it
7472       # for the tool.
7473 
7474       # First remove it from the list of overridden variables, so we can test
7475       # for unknown variables in the end.
7476       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7477 
7478       # Check if the provided tool contains a complete path.
7479       tool_specified="$HEAD"
7480       tool_basename="${tool_specified##*/}"
7481       if test "x$tool_basename" = "x$tool_specified"; then
7482         # A command without a complete path is provided, search $PATH.
7483         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7484 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7485         # Extract the first word of "$tool_basename", so it can be a program name with args.
7486 set dummy $tool_basename; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_path_HEAD+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   case $HEAD in
7493   [\\/]* | ?:[\\/]*)
7494   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7495   ;;
7496   *)
7497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502     for ac_exec_ext in '' $ac_executable_extensions; do
7503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509   done
7510 IFS=$as_save_IFS
7511 
7512   ;;
7513 esac
7514 fi
7515 HEAD=$ac_cv_path_HEAD
7516 if test -n "$HEAD"; then
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7518 $as_echo "$HEAD" >&6; }
7519 else
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7522 fi
7523 
7524 
7525         if test "x$HEAD" = x; then
7526           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7527         fi
7528       else
7529         # Otherwise we believe it is a complete path. Use it as it is.
7530         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7531 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7532         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7533 $as_echo_n "checking for HEAD... " >&6; }
7534         if test ! -x "$tool_specified"; then
7535           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7536 $as_echo "not found" >&6; }
7537           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7538         fi
7539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7540 $as_echo "$tool_specified" >&6; }
7541       fi
7542     fi
7543   fi
7544 
7545 
7546 
7547   if test "x$HEAD" = x; then
7548     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7549   fi
7550 
7551 
7552 
7553 
7554 
7555   # Publish this variable in the help.
7556 
7557 
7558   if test "x$LN" = x; then
7559     # The variable is not set by user, try to locate tool using the code snippet
7560     for ac_prog in ln
7561 do
7562   # Extract the first word of "$ac_prog", so it can be a program name with args.
7563 set dummy $ac_prog; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_path_LN+:} false; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   case $LN in
7570   [\\/]* | ?:[\\/]*)
7571   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7572   ;;
7573   *)
7574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579     for ac_exec_ext in '' $ac_executable_extensions; do
7580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583     break 2
7584   fi
7585 done
7586   done
7587 IFS=$as_save_IFS
7588 
7589   ;;
7590 esac
7591 fi
7592 LN=$ac_cv_path_LN
7593 if test -n "$LN"; then
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7595 $as_echo "$LN" >&6; }
7596 else
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600 
7601 
7602   test -n "$LN" && break
7603 done
7604 
7605   else
7606     # The variable is set, but is it from the command line or the environment?
7607 
7608     # Try to remove the string !LN! from our list.
7609     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7610     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7611       # If it failed, the variable was not from the command line. Ignore it,
7612       # but warn the user (except for BASH, which is always set by the calling BASH).
7613       if test "xLN" != xBASH; then
7614         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7615 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7616       fi
7617       # Try to locate tool using the code snippet
7618       for ac_prog in ln
7619 do
7620   # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_path_LN+:} false; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   case $LN in
7628   [\\/]* | ?:[\\/]*)
7629   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7630   ;;
7631   *)
7632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7634 do
7635   IFS=$as_save_IFS
7636   test -z "$as_dir" && as_dir=.
7637     for ac_exec_ext in '' $ac_executable_extensions; do
7638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641     break 2
7642   fi
7643 done
7644   done
7645 IFS=$as_save_IFS
7646 
7647   ;;
7648 esac
7649 fi
7650 LN=$ac_cv_path_LN
7651 if test -n "$LN"; then
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7653 $as_echo "$LN" >&6; }
7654 else
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658 
7659 
7660   test -n "$LN" && break
7661 done
7662 
7663     else
7664       # If it succeeded, then it was overridden by the user. We will use it
7665       # for the tool.
7666 
7667       # First remove it from the list of overridden variables, so we can test
7668       # for unknown variables in the end.
7669       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7670 
7671       # Check if the provided tool contains a complete path.
7672       tool_specified="$LN"
7673       tool_basename="${tool_specified##*/}"
7674       if test "x$tool_basename" = "x$tool_specified"; then
7675         # A command without a complete path is provided, search $PATH.
7676         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7677 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7678         # Extract the first word of "$tool_basename", so it can be a program name with args.
7679 set dummy $tool_basename; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_path_LN+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   case $LN in
7686   [\\/]* | ?:[\\/]*)
7687   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7688   ;;
7689   *)
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695     for ac_exec_ext in '' $ac_executable_extensions; do
7696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702   done
7703 IFS=$as_save_IFS
7704 
7705   ;;
7706 esac
7707 fi
7708 LN=$ac_cv_path_LN
7709 if test -n "$LN"; then
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7711 $as_echo "$LN" >&6; }
7712 else
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7715 fi
7716 
7717 
7718         if test "x$LN" = x; then
7719           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7720         fi
7721       else
7722         # Otherwise we believe it is a complete path. Use it as it is.
7723         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7724 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7726 $as_echo_n "checking for LN... " >&6; }
7727         if test ! -x "$tool_specified"; then
7728           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7729 $as_echo "not found" >&6; }
7730           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7731         fi
7732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7733 $as_echo "$tool_specified" >&6; }
7734       fi
7735     fi
7736   fi
7737 
7738 
7739 
7740   if test "x$LN" = x; then
7741     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7742   fi
7743 
7744 
7745 
7746 
7747 
7748   # Publish this variable in the help.
7749 
7750 
7751   if test "x$LS" = x; then
7752     # The variable is not set by user, try to locate tool using the code snippet
7753     for ac_prog in ls
7754 do
7755   # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_path_LS+:} false; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   case $LS in
7763   [\\/]* | ?:[\\/]*)
7764   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7765   ;;
7766   *)
7767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770   IFS=$as_save_IFS
7771   test -z "$as_dir" && as_dir=.
7772     for ac_exec_ext in '' $ac_executable_extensions; do
7773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776     break 2
7777   fi
7778 done
7779   done
7780 IFS=$as_save_IFS
7781 
7782   ;;
7783 esac
7784 fi
7785 LS=$ac_cv_path_LS
7786 if test -n "$LS"; then
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7788 $as_echo "$LS" >&6; }
7789 else
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793 
7794 
7795   test -n "$LS" && break
7796 done
7797 
7798   else
7799     # The variable is set, but is it from the command line or the environment?
7800 
7801     # Try to remove the string !LS! from our list.
7802     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7803     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7804       # If it failed, the variable was not from the command line. Ignore it,
7805       # but warn the user (except for BASH, which is always set by the calling BASH).
7806       if test "xLS" != xBASH; then
7807         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7808 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7809       fi
7810       # Try to locate tool using the code snippet
7811       for ac_prog in ls
7812 do
7813   # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_path_LS+:} false; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   case $LS in
7821   [\\/]* | ?:[\\/]*)
7822   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7823   ;;
7824   *)
7825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7827 do
7828   IFS=$as_save_IFS
7829   test -z "$as_dir" && as_dir=.
7830     for ac_exec_ext in '' $ac_executable_extensions; do
7831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834     break 2
7835   fi
7836 done
7837   done
7838 IFS=$as_save_IFS
7839 
7840   ;;
7841 esac
7842 fi
7843 LS=$ac_cv_path_LS
7844 if test -n "$LS"; then
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7846 $as_echo "$LS" >&6; }
7847 else
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851 
7852 
7853   test -n "$LS" && break
7854 done
7855 
7856     else
7857       # If it succeeded, then it was overridden by the user. We will use it
7858       # for the tool.
7859 
7860       # First remove it from the list of overridden variables, so we can test
7861       # for unknown variables in the end.
7862       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7863 
7864       # Check if the provided tool contains a complete path.
7865       tool_specified="$LS"
7866       tool_basename="${tool_specified##*/}"
7867       if test "x$tool_basename" = "x$tool_specified"; then
7868         # A command without a complete path is provided, search $PATH.
7869         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7870 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7871         # Extract the first word of "$tool_basename", so it can be a program name with args.
7872 set dummy $tool_basename; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_path_LS+:} false; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878   case $LS in
7879   [\\/]* | ?:[\\/]*)
7880   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7881   ;;
7882   *)
7883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886   IFS=$as_save_IFS
7887   test -z "$as_dir" && as_dir=.
7888     for ac_exec_ext in '' $ac_executable_extensions; do
7889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892     break 2
7893   fi
7894 done
7895   done
7896 IFS=$as_save_IFS
7897 
7898   ;;
7899 esac
7900 fi
7901 LS=$ac_cv_path_LS
7902 if test -n "$LS"; then
7903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7904 $as_echo "$LS" >&6; }
7905 else
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909 
7910 
7911         if test "x$LS" = x; then
7912           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7913         fi
7914       else
7915         # Otherwise we believe it is a complete path. Use it as it is.
7916         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7917 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7918         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7919 $as_echo_n "checking for LS... " >&6; }
7920         if test ! -x "$tool_specified"; then
7921           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7922 $as_echo "not found" >&6; }
7923           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7924         fi
7925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7926 $as_echo "$tool_specified" >&6; }
7927       fi
7928     fi
7929   fi
7930 
7931 
7932 
7933   if test "x$LS" = x; then
7934     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7935   fi
7936 
7937 
7938 
7939 
7940 
7941   # Publish this variable in the help.
7942 
7943 
7944   if test "x$MKDIR" = x; then
7945     # The variable is not set by user, try to locate tool using the code snippet
7946     for ac_prog in mkdir
7947 do
7948   # Extract the first word of "$ac_prog", so it can be a program name with args.
7949 set dummy $ac_prog; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_path_MKDIR+:} false; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   case $MKDIR in
7956   [\\/]* | ?:[\\/]*)
7957   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7958   ;;
7959   *)
7960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965     for ac_exec_ext in '' $ac_executable_extensions; do
7966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972   done
7973 IFS=$as_save_IFS
7974 
7975   ;;
7976 esac
7977 fi
7978 MKDIR=$ac_cv_path_MKDIR
7979 if test -n "$MKDIR"; then
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7981 $as_echo "$MKDIR" >&6; }
7982 else
7983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 fi
7986 
7987 
7988   test -n "$MKDIR" && break
7989 done
7990 
7991   else
7992     # The variable is set, but is it from the command line or the environment?
7993 
7994     # Try to remove the string !MKDIR! from our list.
7995     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7996     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7997       # If it failed, the variable was not from the command line. Ignore it,
7998       # but warn the user (except for BASH, which is always set by the calling BASH).
7999       if test "xMKDIR" != xBASH; then
8000         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8001 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8002       fi
8003       # Try to locate tool using the code snippet
8004       for ac_prog in mkdir
8005 do
8006   # Extract the first word of "$ac_prog", so it can be a program name with args.
8007 set dummy $ac_prog; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if ${ac_cv_path_MKDIR+:} false; then :
8011   $as_echo_n "(cached) " >&6
8012 else
8013   case $MKDIR in
8014   [\\/]* | ?:[\\/]*)
8015   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8016   ;;
8017   *)
8018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023     for ac_exec_ext in '' $ac_executable_extensions; do
8024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030   done
8031 IFS=$as_save_IFS
8032 
8033   ;;
8034 esac
8035 fi
8036 MKDIR=$ac_cv_path_MKDIR
8037 if test -n "$MKDIR"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8039 $as_echo "$MKDIR" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044 
8045 
8046   test -n "$MKDIR" && break
8047 done
8048 
8049     else
8050       # If it succeeded, then it was overridden by the user. We will use it
8051       # for the tool.
8052 
8053       # First remove it from the list of overridden variables, so we can test
8054       # for unknown variables in the end.
8055       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8056 
8057       # Check if the provided tool contains a complete path.
8058       tool_specified="$MKDIR"
8059       tool_basename="${tool_specified##*/}"
8060       if test "x$tool_basename" = "x$tool_specified"; then
8061         # A command without a complete path is provided, search $PATH.
8062         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8063 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8064         # Extract the first word of "$tool_basename", so it can be a program name with args.
8065 set dummy $tool_basename; ac_word=$2
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 $as_echo_n "checking for $ac_word... " >&6; }
8068 if ${ac_cv_path_MKDIR+:} false; then :
8069   $as_echo_n "(cached) " >&6
8070 else
8071   case $MKDIR in
8072   [\\/]* | ?:[\\/]*)
8073   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8074   ;;
8075   *)
8076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079   IFS=$as_save_IFS
8080   test -z "$as_dir" && as_dir=.
8081     for ac_exec_ext in '' $ac_executable_extensions; do
8082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085     break 2
8086   fi
8087 done
8088   done
8089 IFS=$as_save_IFS
8090 
8091   ;;
8092 esac
8093 fi
8094 MKDIR=$ac_cv_path_MKDIR
8095 if test -n "$MKDIR"; then
8096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8097 $as_echo "$MKDIR" >&6; }
8098 else
8099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8101 fi
8102 
8103 
8104         if test "x$MKDIR" = x; then
8105           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8106         fi
8107       else
8108         # Otherwise we believe it is a complete path. Use it as it is.
8109         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8110 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8111         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8112 $as_echo_n "checking for MKDIR... " >&6; }
8113         if test ! -x "$tool_specified"; then
8114           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8115 $as_echo "not found" >&6; }
8116           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8117         fi
8118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8119 $as_echo "$tool_specified" >&6; }
8120       fi
8121     fi
8122   fi
8123 
8124 
8125 
8126   if test "x$MKDIR" = x; then
8127     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8128   fi
8129 
8130 
8131 
8132 
8133 
8134   # Publish this variable in the help.
8135 
8136 
8137   if test "x$MKTEMP" = x; then
8138     # The variable is not set by user, try to locate tool using the code snippet
8139     for ac_prog in mktemp
8140 do
8141   # Extract the first word of "$ac_prog", so it can be a program name with args.
8142 set dummy $ac_prog; ac_word=$2
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if ${ac_cv_path_MKTEMP+:} false; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   case $MKTEMP in
8149   [\\/]* | ?:[\\/]*)
8150   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8151   ;;
8152   *)
8153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156   IFS=$as_save_IFS
8157   test -z "$as_dir" && as_dir=.
8158     for ac_exec_ext in '' $ac_executable_extensions; do
8159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162     break 2
8163   fi
8164 done
8165   done
8166 IFS=$as_save_IFS
8167 
8168   ;;
8169 esac
8170 fi
8171 MKTEMP=$ac_cv_path_MKTEMP
8172 if test -n "$MKTEMP"; then
8173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8174 $as_echo "$MKTEMP" >&6; }
8175 else
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8178 fi
8179 
8180 
8181   test -n "$MKTEMP" && break
8182 done
8183 
8184   else
8185     # The variable is set, but is it from the command line or the environment?
8186 
8187     # Try to remove the string !MKTEMP! from our list.
8188     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8189     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8190       # If it failed, the variable was not from the command line. Ignore it,
8191       # but warn the user (except for BASH, which is always set by the calling BASH).
8192       if test "xMKTEMP" != xBASH; then
8193         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8194 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8195       fi
8196       # Try to locate tool using the code snippet
8197       for ac_prog in mktemp
8198 do
8199   # Extract the first word of "$ac_prog", so it can be a program name with args.
8200 set dummy $ac_prog; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if ${ac_cv_path_MKTEMP+:} false; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   case $MKTEMP in
8207   [\\/]* | ?:[\\/]*)
8208   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8209   ;;
8210   *)
8211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214   IFS=$as_save_IFS
8215   test -z "$as_dir" && as_dir=.
8216     for ac_exec_ext in '' $ac_executable_extensions; do
8217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220     break 2
8221   fi
8222 done
8223   done
8224 IFS=$as_save_IFS
8225 
8226   ;;
8227 esac
8228 fi
8229 MKTEMP=$ac_cv_path_MKTEMP
8230 if test -n "$MKTEMP"; then
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8232 $as_echo "$MKTEMP" >&6; }
8233 else
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237 
8238 
8239   test -n "$MKTEMP" && break
8240 done
8241 
8242     else
8243       # If it succeeded, then it was overridden by the user. We will use it
8244       # for the tool.
8245 
8246       # First remove it from the list of overridden variables, so we can test
8247       # for unknown variables in the end.
8248       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8249 
8250       # Check if the provided tool contains a complete path.
8251       tool_specified="$MKTEMP"
8252       tool_basename="${tool_specified##*/}"
8253       if test "x$tool_basename" = "x$tool_specified"; then
8254         # A command without a complete path is provided, search $PATH.
8255         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8256 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8257         # Extract the first word of "$tool_basename", so it can be a program name with args.
8258 set dummy $tool_basename; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_path_MKTEMP+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   case $MKTEMP in
8265   [\\/]* | ?:[\\/]*)
8266   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8267   ;;
8268   *)
8269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272   IFS=$as_save_IFS
8273   test -z "$as_dir" && as_dir=.
8274     for ac_exec_ext in '' $ac_executable_extensions; do
8275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278     break 2
8279   fi
8280 done
8281   done
8282 IFS=$as_save_IFS
8283 
8284   ;;
8285 esac
8286 fi
8287 MKTEMP=$ac_cv_path_MKTEMP
8288 if test -n "$MKTEMP"; then
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8290 $as_echo "$MKTEMP" >&6; }
8291 else
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295 
8296 
8297         if test "x$MKTEMP" = x; then
8298           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8299         fi
8300       else
8301         # Otherwise we believe it is a complete path. Use it as it is.
8302         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8303 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8305 $as_echo_n "checking for MKTEMP... " >&6; }
8306         if test ! -x "$tool_specified"; then
8307           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8308 $as_echo "not found" >&6; }
8309           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8310         fi
8311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8312 $as_echo "$tool_specified" >&6; }
8313       fi
8314     fi
8315   fi
8316 
8317 
8318 
8319   if test "x$MKTEMP" = x; then
8320     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8321   fi
8322 
8323 
8324 
8325 
8326 
8327   # Publish this variable in the help.
8328 
8329 
8330   if test "x$MV" = x; then
8331     # The variable is not set by user, try to locate tool using the code snippet
8332     for ac_prog in mv
8333 do
8334   # Extract the first word of "$ac_prog", so it can be a program name with args.
8335 set dummy $ac_prog; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if ${ac_cv_path_MV+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   case $MV in
8342   [\\/]* | ?:[\\/]*)
8343   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8344   ;;
8345   *)
8346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349   IFS=$as_save_IFS
8350   test -z "$as_dir" && as_dir=.
8351     for ac_exec_ext in '' $ac_executable_extensions; do
8352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355     break 2
8356   fi
8357 done
8358   done
8359 IFS=$as_save_IFS
8360 
8361   ;;
8362 esac
8363 fi
8364 MV=$ac_cv_path_MV
8365 if test -n "$MV"; then
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8367 $as_echo "$MV" >&6; }
8368 else
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8372 
8373 
8374   test -n "$MV" && break
8375 done
8376 
8377   else
8378     # The variable is set, but is it from the command line or the environment?
8379 
8380     # Try to remove the string !MV! from our list.
8381     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8382     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8383       # If it failed, the variable was not from the command line. Ignore it,
8384       # but warn the user (except for BASH, which is always set by the calling BASH).
8385       if test "xMV" != xBASH; then
8386         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8387 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8388       fi
8389       # Try to locate tool using the code snippet
8390       for ac_prog in mv
8391 do
8392   # Extract the first word of "$ac_prog", so it can be a program name with args.
8393 set dummy $ac_prog; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_path_MV+:} false; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   case $MV in
8400   [\\/]* | ?:[\\/]*)
8401   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8402   ;;
8403   *)
8404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409     for ac_exec_ext in '' $ac_executable_extensions; do
8410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416   done
8417 IFS=$as_save_IFS
8418 
8419   ;;
8420 esac
8421 fi
8422 MV=$ac_cv_path_MV
8423 if test -n "$MV"; then
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8425 $as_echo "$MV" >&6; }
8426 else
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430 
8431 
8432   test -n "$MV" && break
8433 done
8434 
8435     else
8436       # If it succeeded, then it was overridden by the user. We will use it
8437       # for the tool.
8438 
8439       # First remove it from the list of overridden variables, so we can test
8440       # for unknown variables in the end.
8441       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8442 
8443       # Check if the provided tool contains a complete path.
8444       tool_specified="$MV"
8445       tool_basename="${tool_specified##*/}"
8446       if test "x$tool_basename" = "x$tool_specified"; then
8447         # A command without a complete path is provided, search $PATH.
8448         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8449 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8450         # Extract the first word of "$tool_basename", so it can be a program name with args.
8451 set dummy $tool_basename; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if ${ac_cv_path_MV+:} false; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457   case $MV in
8458   [\\/]* | ?:[\\/]*)
8459   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8460   ;;
8461   *)
8462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8464 do
8465   IFS=$as_save_IFS
8466   test -z "$as_dir" && as_dir=.
8467     for ac_exec_ext in '' $ac_executable_extensions; do
8468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471     break 2
8472   fi
8473 done
8474   done
8475 IFS=$as_save_IFS
8476 
8477   ;;
8478 esac
8479 fi
8480 MV=$ac_cv_path_MV
8481 if test -n "$MV"; then
8482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8483 $as_echo "$MV" >&6; }
8484 else
8485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 fi
8488 
8489 
8490         if test "x$MV" = x; then
8491           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8492         fi
8493       else
8494         # Otherwise we believe it is a complete path. Use it as it is.
8495         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8496 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8498 $as_echo_n "checking for MV... " >&6; }
8499         if test ! -x "$tool_specified"; then
8500           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8501 $as_echo "not found" >&6; }
8502           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8503         fi
8504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8505 $as_echo "$tool_specified" >&6; }
8506       fi
8507     fi
8508   fi
8509 
8510 
8511 
8512   if test "x$MV" = x; then
8513     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8514   fi
8515 
8516 
8517 
8518 
8519 
8520   # Publish this variable in the help.
8521 
8522 
8523   if test "x$NAWK" = x; then
8524     # The variable is not set by user, try to locate tool using the code snippet
8525     for ac_prog in nawk gawk awk
8526 do
8527   # Extract the first word of "$ac_prog", so it can be a program name with args.
8528 set dummy $ac_prog; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_path_NAWK+:} false; then :
8532   $as_echo_n "(cached) " >&6
8533 else
8534   case $NAWK in
8535   [\\/]* | ?:[\\/]*)
8536   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8537   ;;
8538   *)
8539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542   IFS=$as_save_IFS
8543   test -z "$as_dir" && as_dir=.
8544     for ac_exec_ext in '' $ac_executable_extensions; do
8545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548     break 2
8549   fi
8550 done
8551   done
8552 IFS=$as_save_IFS
8553 
8554   ;;
8555 esac
8556 fi
8557 NAWK=$ac_cv_path_NAWK
8558 if test -n "$NAWK"; then
8559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8560 $as_echo "$NAWK" >&6; }
8561 else
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8564 fi
8565 
8566 
8567   test -n "$NAWK" && break
8568 done
8569 
8570   else
8571     # The variable is set, but is it from the command line or the environment?
8572 
8573     # Try to remove the string !NAWK! from our list.
8574     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8575     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8576       # If it failed, the variable was not from the command line. Ignore it,
8577       # but warn the user (except for BASH, which is always set by the calling BASH).
8578       if test "xNAWK" != xBASH; then
8579         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8580 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8581       fi
8582       # Try to locate tool using the code snippet
8583       for ac_prog in nawk gawk awk
8584 do
8585   # Extract the first word of "$ac_prog", so it can be a program name with args.
8586 set dummy $ac_prog; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_path_NAWK+:} false; then :
8590   $as_echo_n "(cached) " >&6
8591 else
8592   case $NAWK in
8593   [\\/]* | ?:[\\/]*)
8594   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8595   ;;
8596   *)
8597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8599 do
8600   IFS=$as_save_IFS
8601   test -z "$as_dir" && as_dir=.
8602     for ac_exec_ext in '' $ac_executable_extensions; do
8603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606     break 2
8607   fi
8608 done
8609   done
8610 IFS=$as_save_IFS
8611 
8612   ;;
8613 esac
8614 fi
8615 NAWK=$ac_cv_path_NAWK
8616 if test -n "$NAWK"; then
8617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8618 $as_echo "$NAWK" >&6; }
8619 else
8620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8622 fi
8623 
8624 
8625   test -n "$NAWK" && break
8626 done
8627 
8628     else
8629       # If it succeeded, then it was overridden by the user. We will use it
8630       # for the tool.
8631 
8632       # First remove it from the list of overridden variables, so we can test
8633       # for unknown variables in the end.
8634       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8635 
8636       # Check if the provided tool contains a complete path.
8637       tool_specified="$NAWK"
8638       tool_basename="${tool_specified##*/}"
8639       if test "x$tool_basename" = "x$tool_specified"; then
8640         # A command without a complete path is provided, search $PATH.
8641         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8642 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8643         # Extract the first word of "$tool_basename", so it can be a program name with args.
8644 set dummy $tool_basename; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_path_NAWK+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   case $NAWK in
8651   [\\/]* | ?:[\\/]*)
8652   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8653   ;;
8654   *)
8655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658   IFS=$as_save_IFS
8659   test -z "$as_dir" && as_dir=.
8660     for ac_exec_ext in '' $ac_executable_extensions; do
8661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664     break 2
8665   fi
8666 done
8667   done
8668 IFS=$as_save_IFS
8669 
8670   ;;
8671 esac
8672 fi
8673 NAWK=$ac_cv_path_NAWK
8674 if test -n "$NAWK"; then
8675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8676 $as_echo "$NAWK" >&6; }
8677 else
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 fi
8681 
8682 
8683         if test "x$NAWK" = x; then
8684           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8685         fi
8686       else
8687         # Otherwise we believe it is a complete path. Use it as it is.
8688         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8689 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8691 $as_echo_n "checking for NAWK... " >&6; }
8692         if test ! -x "$tool_specified"; then
8693           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8694 $as_echo "not found" >&6; }
8695           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8696         fi
8697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8698 $as_echo "$tool_specified" >&6; }
8699       fi
8700     fi
8701   fi
8702 
8703 
8704 
8705   if test "x$NAWK" = x; then
8706     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8707   fi
8708 
8709 
8710 
8711 
8712 
8713   # Publish this variable in the help.
8714 
8715 
8716   if test "x$PRINTF" = x; then
8717     # The variable is not set by user, try to locate tool using the code snippet
8718     for ac_prog in printf
8719 do
8720   # Extract the first word of "$ac_prog", so it can be a program name with args.
8721 set dummy $ac_prog; ac_word=$2
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 $as_echo_n "checking for $ac_word... " >&6; }
8724 if ${ac_cv_path_PRINTF+:} false; then :
8725   $as_echo_n "(cached) " >&6
8726 else
8727   case $PRINTF in
8728   [\\/]* | ?:[\\/]*)
8729   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8730   ;;
8731   *)
8732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735   IFS=$as_save_IFS
8736   test -z "$as_dir" && as_dir=.
8737     for ac_exec_ext in '' $ac_executable_extensions; do
8738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741     break 2
8742   fi
8743 done
8744   done
8745 IFS=$as_save_IFS
8746 
8747   ;;
8748 esac
8749 fi
8750 PRINTF=$ac_cv_path_PRINTF
8751 if test -n "$PRINTF"; then
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8753 $as_echo "$PRINTF" >&6; }
8754 else
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 fi
8758 
8759 
8760   test -n "$PRINTF" && break
8761 done
8762 
8763   else
8764     # The variable is set, but is it from the command line or the environment?
8765 
8766     # Try to remove the string !PRINTF! from our list.
8767     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8768     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8769       # If it failed, the variable was not from the command line. Ignore it,
8770       # but warn the user (except for BASH, which is always set by the calling BASH).
8771       if test "xPRINTF" != xBASH; then
8772         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8773 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8774       fi
8775       # Try to locate tool using the code snippet
8776       for ac_prog in printf
8777 do
8778   # Extract the first word of "$ac_prog", so it can be a program name with args.
8779 set dummy $ac_prog; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if ${ac_cv_path_PRINTF+:} false; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   case $PRINTF in
8786   [\\/]* | ?:[\\/]*)
8787   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8788   ;;
8789   *)
8790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8792 do
8793   IFS=$as_save_IFS
8794   test -z "$as_dir" && as_dir=.
8795     for ac_exec_ext in '' $ac_executable_extensions; do
8796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799     break 2
8800   fi
8801 done
8802   done
8803 IFS=$as_save_IFS
8804 
8805   ;;
8806 esac
8807 fi
8808 PRINTF=$ac_cv_path_PRINTF
8809 if test -n "$PRINTF"; then
8810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8811 $as_echo "$PRINTF" >&6; }
8812 else
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8815 fi
8816 
8817 
8818   test -n "$PRINTF" && break
8819 done
8820 
8821     else
8822       # If it succeeded, then it was overridden by the user. We will use it
8823       # for the tool.
8824 
8825       # First remove it from the list of overridden variables, so we can test
8826       # for unknown variables in the end.
8827       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8828 
8829       # Check if the provided tool contains a complete path.
8830       tool_specified="$PRINTF"
8831       tool_basename="${tool_specified##*/}"
8832       if test "x$tool_basename" = "x$tool_specified"; then
8833         # A command without a complete path is provided, search $PATH.
8834         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8835 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8836         # Extract the first word of "$tool_basename", so it can be a program name with args.
8837 set dummy $tool_basename; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if ${ac_cv_path_PRINTF+:} false; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   case $PRINTF in
8844   [\\/]* | ?:[\\/]*)
8845   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8846   ;;
8847   *)
8848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8850 do
8851   IFS=$as_save_IFS
8852   test -z "$as_dir" && as_dir=.
8853     for ac_exec_ext in '' $ac_executable_extensions; do
8854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857     break 2
8858   fi
8859 done
8860   done
8861 IFS=$as_save_IFS
8862 
8863   ;;
8864 esac
8865 fi
8866 PRINTF=$ac_cv_path_PRINTF
8867 if test -n "$PRINTF"; then
8868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8869 $as_echo "$PRINTF" >&6; }
8870 else
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 fi
8874 
8875 
8876         if test "x$PRINTF" = x; then
8877           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8878         fi
8879       else
8880         # Otherwise we believe it is a complete path. Use it as it is.
8881         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8882 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8884 $as_echo_n "checking for PRINTF... " >&6; }
8885         if test ! -x "$tool_specified"; then
8886           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8887 $as_echo "not found" >&6; }
8888           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8889         fi
8890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8891 $as_echo "$tool_specified" >&6; }
8892       fi
8893     fi
8894   fi
8895 
8896 
8897 
8898   if test "x$PRINTF" = x; then
8899     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8900   fi
8901 
8902 
8903 
8904 
8905 
8906   # Publish this variable in the help.
8907 
8908 
8909   if test "x$RM" = x; then
8910     # The variable is not set by user, try to locate tool using the code snippet
8911     for ac_prog in rm
8912 do
8913   # Extract the first word of "$ac_prog", so it can be a program name with args.
8914 set dummy $ac_prog; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if ${ac_cv_path_RM+:} false; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   case $RM in
8921   [\\/]* | ?:[\\/]*)
8922   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8923   ;;
8924   *)
8925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8927 do
8928   IFS=$as_save_IFS
8929   test -z "$as_dir" && as_dir=.
8930     for ac_exec_ext in '' $ac_executable_extensions; do
8931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934     break 2
8935   fi
8936 done
8937   done
8938 IFS=$as_save_IFS
8939 
8940   ;;
8941 esac
8942 fi
8943 RM=$ac_cv_path_RM
8944 if test -n "$RM"; then
8945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8946 $as_echo "$RM" >&6; }
8947 else
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8950 fi
8951 
8952 
8953   test -n "$RM" && break
8954 done
8955 
8956   else
8957     # The variable is set, but is it from the command line or the environment?
8958 
8959     # Try to remove the string !RM! from our list.
8960     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8961     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8962       # If it failed, the variable was not from the command line. Ignore it,
8963       # but warn the user (except for BASH, which is always set by the calling BASH).
8964       if test "xRM" != xBASH; then
8965         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8966 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8967       fi
8968       # Try to locate tool using the code snippet
8969       for ac_prog in rm
8970 do
8971   # Extract the first word of "$ac_prog", so it can be a program name with args.
8972 set dummy $ac_prog; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if ${ac_cv_path_RM+:} false; then :
8976   $as_echo_n "(cached) " >&6
8977 else
8978   case $RM in
8979   [\\/]* | ?:[\\/]*)
8980   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8981   ;;
8982   *)
8983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8985 do
8986   IFS=$as_save_IFS
8987   test -z "$as_dir" && as_dir=.
8988     for ac_exec_ext in '' $ac_executable_extensions; do
8989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8990     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992     break 2
8993   fi
8994 done
8995   done
8996 IFS=$as_save_IFS
8997 
8998   ;;
8999 esac
9000 fi
9001 RM=$ac_cv_path_RM
9002 if test -n "$RM"; then
9003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9004 $as_echo "$RM" >&6; }
9005 else
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9008 fi
9009 
9010 
9011   test -n "$RM" && break
9012 done
9013 
9014     else
9015       # If it succeeded, then it was overridden by the user. We will use it
9016       # for the tool.
9017 
9018       # First remove it from the list of overridden variables, so we can test
9019       # for unknown variables in the end.
9020       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9021 
9022       # Check if the provided tool contains a complete path.
9023       tool_specified="$RM"
9024       tool_basename="${tool_specified##*/}"
9025       if test "x$tool_basename" = "x$tool_specified"; then
9026         # A command without a complete path is provided, search $PATH.
9027         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9028 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9029         # Extract the first word of "$tool_basename", so it can be a program name with args.
9030 set dummy $tool_basename; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_path_RM+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   case $RM in
9037   [\\/]* | ?:[\\/]*)
9038   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9039   ;;
9040   *)
9041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9043 do
9044   IFS=$as_save_IFS
9045   test -z "$as_dir" && as_dir=.
9046     for ac_exec_ext in '' $ac_executable_extensions; do
9047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9048     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050     break 2
9051   fi
9052 done
9053   done
9054 IFS=$as_save_IFS
9055 
9056   ;;
9057 esac
9058 fi
9059 RM=$ac_cv_path_RM
9060 if test -n "$RM"; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9062 $as_echo "$RM" >&6; }
9063 else
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9066 fi
9067 
9068 
9069         if test "x$RM" = x; then
9070           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9071         fi
9072       else
9073         # Otherwise we believe it is a complete path. Use it as it is.
9074         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9075 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9077 $as_echo_n "checking for RM... " >&6; }
9078         if test ! -x "$tool_specified"; then
9079           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9080 $as_echo "not found" >&6; }
9081           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9082         fi
9083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9084 $as_echo "$tool_specified" >&6; }
9085       fi
9086     fi
9087   fi
9088 
9089 
9090 
9091   if test "x$RM" = x; then
9092     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9093   fi
9094 
9095 
9096 
9097 
9098 
9099   # Publish this variable in the help.
9100 
9101 
9102   if test "x$SH" = x; then
9103     # The variable is not set by user, try to locate tool using the code snippet
9104     for ac_prog in sh
9105 do
9106   # Extract the first word of "$ac_prog", so it can be a program name with args.
9107 set dummy $ac_prog; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if ${ac_cv_path_SH+:} false; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   case $SH in
9114   [\\/]* | ?:[\\/]*)
9115   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9116   ;;
9117   *)
9118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9120 do
9121   IFS=$as_save_IFS
9122   test -z "$as_dir" && as_dir=.
9123     for ac_exec_ext in '' $ac_executable_extensions; do
9124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127     break 2
9128   fi
9129 done
9130   done
9131 IFS=$as_save_IFS
9132 
9133   ;;
9134 esac
9135 fi
9136 SH=$ac_cv_path_SH
9137 if test -n "$SH"; then
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9139 $as_echo "$SH" >&6; }
9140 else
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 fi
9144 
9145 
9146   test -n "$SH" && break
9147 done
9148 
9149   else
9150     # The variable is set, but is it from the command line or the environment?
9151 
9152     # Try to remove the string !SH! from our list.
9153     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9154     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9155       # If it failed, the variable was not from the command line. Ignore it,
9156       # but warn the user (except for BASH, which is always set by the calling BASH).
9157       if test "xSH" != xBASH; then
9158         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9159 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9160       fi
9161       # Try to locate tool using the code snippet
9162       for ac_prog in sh
9163 do
9164   # Extract the first word of "$ac_prog", so it can be a program name with args.
9165 set dummy $ac_prog; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if ${ac_cv_path_SH+:} false; then :
9169   $as_echo_n "(cached) " >&6
9170 else
9171   case $SH in
9172   [\\/]* | ?:[\\/]*)
9173   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9174   ;;
9175   *)
9176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9178 do
9179   IFS=$as_save_IFS
9180   test -z "$as_dir" && as_dir=.
9181     for ac_exec_ext in '' $ac_executable_extensions; do
9182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9183     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185     break 2
9186   fi
9187 done
9188   done
9189 IFS=$as_save_IFS
9190 
9191   ;;
9192 esac
9193 fi
9194 SH=$ac_cv_path_SH
9195 if test -n "$SH"; then
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9197 $as_echo "$SH" >&6; }
9198 else
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202 
9203 
9204   test -n "$SH" && break
9205 done
9206 
9207     else
9208       # If it succeeded, then it was overridden by the user. We will use it
9209       # for the tool.
9210 
9211       # First remove it from the list of overridden variables, so we can test
9212       # for unknown variables in the end.
9213       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9214 
9215       # Check if the provided tool contains a complete path.
9216       tool_specified="$SH"
9217       tool_basename="${tool_specified##*/}"
9218       if test "x$tool_basename" = "x$tool_specified"; then
9219         # A command without a complete path is provided, search $PATH.
9220         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9221 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9222         # Extract the first word of "$tool_basename", so it can be a program name with args.
9223 set dummy $tool_basename; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if ${ac_cv_path_SH+:} false; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   case $SH in
9230   [\\/]* | ?:[\\/]*)
9231   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9232   ;;
9233   *)
9234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9236 do
9237   IFS=$as_save_IFS
9238   test -z "$as_dir" && as_dir=.
9239     for ac_exec_ext in '' $ac_executable_extensions; do
9240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243     break 2
9244   fi
9245 done
9246   done
9247 IFS=$as_save_IFS
9248 
9249   ;;
9250 esac
9251 fi
9252 SH=$ac_cv_path_SH
9253 if test -n "$SH"; then
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9255 $as_echo "$SH" >&6; }
9256 else
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9259 fi
9260 
9261 
9262         if test "x$SH" = x; then
9263           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9264         fi
9265       else
9266         # Otherwise we believe it is a complete path. Use it as it is.
9267         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9268 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9270 $as_echo_n "checking for SH... " >&6; }
9271         if test ! -x "$tool_specified"; then
9272           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9273 $as_echo "not found" >&6; }
9274           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9275         fi
9276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9277 $as_echo "$tool_specified" >&6; }
9278       fi
9279     fi
9280   fi
9281 
9282 
9283 
9284   if test "x$SH" = x; then
9285     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9286   fi
9287 
9288 
9289 
9290 
9291 
9292   # Publish this variable in the help.
9293 
9294 
9295   if test "x$SORT" = x; then
9296     # The variable is not set by user, try to locate tool using the code snippet
9297     for ac_prog in sort
9298 do
9299   # Extract the first word of "$ac_prog", so it can be a program name with args.
9300 set dummy $ac_prog; ac_word=$2
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9302 $as_echo_n "checking for $ac_word... " >&6; }
9303 if ${ac_cv_path_SORT+:} false; then :
9304   $as_echo_n "(cached) " >&6
9305 else
9306   case $SORT in
9307   [\\/]* | ?:[\\/]*)
9308   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9309   ;;
9310   *)
9311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312 for as_dir in $PATH
9313 do
9314   IFS=$as_save_IFS
9315   test -z "$as_dir" && as_dir=.
9316     for ac_exec_ext in '' $ac_executable_extensions; do
9317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320     break 2
9321   fi
9322 done
9323   done
9324 IFS=$as_save_IFS
9325 
9326   ;;
9327 esac
9328 fi
9329 SORT=$ac_cv_path_SORT
9330 if test -n "$SORT"; then
9331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9332 $as_echo "$SORT" >&6; }
9333 else
9334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 $as_echo "no" >&6; }
9336 fi
9337 
9338 
9339   test -n "$SORT" && break
9340 done
9341 
9342   else
9343     # The variable is set, but is it from the command line or the environment?
9344 
9345     # Try to remove the string !SORT! from our list.
9346     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9347     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9348       # If it failed, the variable was not from the command line. Ignore it,
9349       # but warn the user (except for BASH, which is always set by the calling BASH).
9350       if test "xSORT" != xBASH; then
9351         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9352 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9353       fi
9354       # Try to locate tool using the code snippet
9355       for ac_prog in sort
9356 do
9357   # Extract the first word of "$ac_prog", so it can be a program name with args.
9358 set dummy $ac_prog; ac_word=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if ${ac_cv_path_SORT+:} false; then :
9362   $as_echo_n "(cached) " >&6
9363 else
9364   case $SORT in
9365   [\\/]* | ?:[\\/]*)
9366   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9367   ;;
9368   *)
9369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 for as_dir in $PATH
9371 do
9372   IFS=$as_save_IFS
9373   test -z "$as_dir" && as_dir=.
9374     for ac_exec_ext in '' $ac_executable_extensions; do
9375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9376     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378     break 2
9379   fi
9380 done
9381   done
9382 IFS=$as_save_IFS
9383 
9384   ;;
9385 esac
9386 fi
9387 SORT=$ac_cv_path_SORT
9388 if test -n "$SORT"; then
9389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9390 $as_echo "$SORT" >&6; }
9391 else
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 $as_echo "no" >&6; }
9394 fi
9395 
9396 
9397   test -n "$SORT" && break
9398 done
9399 
9400     else
9401       # If it succeeded, then it was overridden by the user. We will use it
9402       # for the tool.
9403 
9404       # First remove it from the list of overridden variables, so we can test
9405       # for unknown variables in the end.
9406       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9407 
9408       # Check if the provided tool contains a complete path.
9409       tool_specified="$SORT"
9410       tool_basename="${tool_specified##*/}"
9411       if test "x$tool_basename" = "x$tool_specified"; then
9412         # A command without a complete path is provided, search $PATH.
9413         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9414 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9415         # Extract the first word of "$tool_basename", so it can be a program name with args.
9416 set dummy $tool_basename; ac_word=$2
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418 $as_echo_n "checking for $ac_word... " >&6; }
9419 if ${ac_cv_path_SORT+:} false; then :
9420   $as_echo_n "(cached) " >&6
9421 else
9422   case $SORT in
9423   [\\/]* | ?:[\\/]*)
9424   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9425   ;;
9426   *)
9427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 for as_dir in $PATH
9429 do
9430   IFS=$as_save_IFS
9431   test -z "$as_dir" && as_dir=.
9432     for ac_exec_ext in '' $ac_executable_extensions; do
9433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9434     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436     break 2
9437   fi
9438 done
9439   done
9440 IFS=$as_save_IFS
9441 
9442   ;;
9443 esac
9444 fi
9445 SORT=$ac_cv_path_SORT
9446 if test -n "$SORT"; then
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9448 $as_echo "$SORT" >&6; }
9449 else
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 fi
9453 
9454 
9455         if test "x$SORT" = x; then
9456           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9457         fi
9458       else
9459         # Otherwise we believe it is a complete path. Use it as it is.
9460         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9461 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9463 $as_echo_n "checking for SORT... " >&6; }
9464         if test ! -x "$tool_specified"; then
9465           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9466 $as_echo "not found" >&6; }
9467           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9468         fi
9469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9470 $as_echo "$tool_specified" >&6; }
9471       fi
9472     fi
9473   fi
9474 
9475 
9476 
9477   if test "x$SORT" = x; then
9478     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9479   fi
9480 
9481 
9482 
9483 
9484 
9485   # Publish this variable in the help.
9486 
9487 
9488   if test "x$TAIL" = x; then
9489     # The variable is not set by user, try to locate tool using the code snippet
9490     for ac_prog in tail
9491 do
9492   # Extract the first word of "$ac_prog", so it can be a program name with args.
9493 set dummy $ac_prog; ac_word=$2
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495 $as_echo_n "checking for $ac_word... " >&6; }
9496 if ${ac_cv_path_TAIL+:} false; then :
9497   $as_echo_n "(cached) " >&6
9498 else
9499   case $TAIL in
9500   [\\/]* | ?:[\\/]*)
9501   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9502   ;;
9503   *)
9504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505 for as_dir in $PATH
9506 do
9507   IFS=$as_save_IFS
9508   test -z "$as_dir" && as_dir=.
9509     for ac_exec_ext in '' $ac_executable_extensions; do
9510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9511     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513     break 2
9514   fi
9515 done
9516   done
9517 IFS=$as_save_IFS
9518 
9519   ;;
9520 esac
9521 fi
9522 TAIL=$ac_cv_path_TAIL
9523 if test -n "$TAIL"; then
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9525 $as_echo "$TAIL" >&6; }
9526 else
9527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529 fi
9530 
9531 
9532   test -n "$TAIL" && break
9533 done
9534 
9535   else
9536     # The variable is set, but is it from the command line or the environment?
9537 
9538     # Try to remove the string !TAIL! from our list.
9539     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9540     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9541       # If it failed, the variable was not from the command line. Ignore it,
9542       # but warn the user (except for BASH, which is always set by the calling BASH).
9543       if test "xTAIL" != xBASH; then
9544         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9545 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9546       fi
9547       # Try to locate tool using the code snippet
9548       for ac_prog in tail
9549 do
9550   # Extract the first word of "$ac_prog", so it can be a program name with args.
9551 set dummy $ac_prog; ac_word=$2
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9553 $as_echo_n "checking for $ac_word... " >&6; }
9554 if ${ac_cv_path_TAIL+:} false; then :
9555   $as_echo_n "(cached) " >&6
9556 else
9557   case $TAIL in
9558   [\\/]* | ?:[\\/]*)
9559   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9560   ;;
9561   *)
9562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9564 do
9565   IFS=$as_save_IFS
9566   test -z "$as_dir" && as_dir=.
9567     for ac_exec_ext in '' $ac_executable_extensions; do
9568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9569     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571     break 2
9572   fi
9573 done
9574   done
9575 IFS=$as_save_IFS
9576 
9577   ;;
9578 esac
9579 fi
9580 TAIL=$ac_cv_path_TAIL
9581 if test -n "$TAIL"; then
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9583 $as_echo "$TAIL" >&6; }
9584 else
9585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9587 fi
9588 
9589 
9590   test -n "$TAIL" && break
9591 done
9592 
9593     else
9594       # If it succeeded, then it was overridden by the user. We will use it
9595       # for the tool.
9596 
9597       # First remove it from the list of overridden variables, so we can test
9598       # for unknown variables in the end.
9599       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9600 
9601       # Check if the provided tool contains a complete path.
9602       tool_specified="$TAIL"
9603       tool_basename="${tool_specified##*/}"
9604       if test "x$tool_basename" = "x$tool_specified"; then
9605         # A command without a complete path is provided, search $PATH.
9606         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9607 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9608         # Extract the first word of "$tool_basename", so it can be a program name with args.
9609 set dummy $tool_basename; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if ${ac_cv_path_TAIL+:} false; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   case $TAIL in
9616   [\\/]* | ?:[\\/]*)
9617   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9618   ;;
9619   *)
9620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $PATH
9622 do
9623   IFS=$as_save_IFS
9624   test -z "$as_dir" && as_dir=.
9625     for ac_exec_ext in '' $ac_executable_extensions; do
9626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9627     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9629     break 2
9630   fi
9631 done
9632   done
9633 IFS=$as_save_IFS
9634 
9635   ;;
9636 esac
9637 fi
9638 TAIL=$ac_cv_path_TAIL
9639 if test -n "$TAIL"; then
9640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9641 $as_echo "$TAIL" >&6; }
9642 else
9643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9645 fi
9646 
9647 
9648         if test "x$TAIL" = x; then
9649           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9650         fi
9651       else
9652         # Otherwise we believe it is a complete path. Use it as it is.
9653         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9654 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9656 $as_echo_n "checking for TAIL... " >&6; }
9657         if test ! -x "$tool_specified"; then
9658           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9659 $as_echo "not found" >&6; }
9660           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9661         fi
9662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9663 $as_echo "$tool_specified" >&6; }
9664       fi
9665     fi
9666   fi
9667 
9668 
9669 
9670   if test "x$TAIL" = x; then
9671     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9672   fi
9673 
9674 
9675 
9676 
9677 
9678   # Publish this variable in the help.
9679 
9680 
9681   if test "x$TAR" = x; then
9682     # The variable is not set by user, try to locate tool using the code snippet
9683     for ac_prog in tar
9684 do
9685   # Extract the first word of "$ac_prog", so it can be a program name with args.
9686 set dummy $ac_prog; ac_word=$2
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 $as_echo_n "checking for $ac_word... " >&6; }
9689 if ${ac_cv_path_TAR+:} false; then :
9690   $as_echo_n "(cached) " >&6
9691 else
9692   case $TAR in
9693   [\\/]* | ?:[\\/]*)
9694   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9695   ;;
9696   *)
9697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698 for as_dir in $PATH
9699 do
9700   IFS=$as_save_IFS
9701   test -z "$as_dir" && as_dir=.
9702     for ac_exec_ext in '' $ac_executable_extensions; do
9703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9704     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706     break 2
9707   fi
9708 done
9709   done
9710 IFS=$as_save_IFS
9711 
9712   ;;
9713 esac
9714 fi
9715 TAR=$ac_cv_path_TAR
9716 if test -n "$TAR"; then
9717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9718 $as_echo "$TAR" >&6; }
9719 else
9720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721 $as_echo "no" >&6; }
9722 fi
9723 
9724 
9725   test -n "$TAR" && break
9726 done
9727 
9728   else
9729     # The variable is set, but is it from the command line or the environment?
9730 
9731     # Try to remove the string !TAR! from our list.
9732     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9733     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9734       # If it failed, the variable was not from the command line. Ignore it,
9735       # but warn the user (except for BASH, which is always set by the calling BASH).
9736       if test "xTAR" != xBASH; then
9737         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9738 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9739       fi
9740       # Try to locate tool using the code snippet
9741       for ac_prog in tar
9742 do
9743   # Extract the first word of "$ac_prog", so it can be a program name with args.
9744 set dummy $ac_prog; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if ${ac_cv_path_TAR+:} false; then :
9748   $as_echo_n "(cached) " >&6
9749 else
9750   case $TAR in
9751   [\\/]* | ?:[\\/]*)
9752   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9753   ;;
9754   *)
9755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756 for as_dir in $PATH
9757 do
9758   IFS=$as_save_IFS
9759   test -z "$as_dir" && as_dir=.
9760     for ac_exec_ext in '' $ac_executable_extensions; do
9761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9762     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9764     break 2
9765   fi
9766 done
9767   done
9768 IFS=$as_save_IFS
9769 
9770   ;;
9771 esac
9772 fi
9773 TAR=$ac_cv_path_TAR
9774 if test -n "$TAR"; then
9775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9776 $as_echo "$TAR" >&6; }
9777 else
9778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9779 $as_echo "no" >&6; }
9780 fi
9781 
9782 
9783   test -n "$TAR" && break
9784 done
9785 
9786     else
9787       # If it succeeded, then it was overridden by the user. We will use it
9788       # for the tool.
9789 
9790       # First remove it from the list of overridden variables, so we can test
9791       # for unknown variables in the end.
9792       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9793 
9794       # Check if the provided tool contains a complete path.
9795       tool_specified="$TAR"
9796       tool_basename="${tool_specified##*/}"
9797       if test "x$tool_basename" = "x$tool_specified"; then
9798         # A command without a complete path is provided, search $PATH.
9799         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9800 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9801         # Extract the first word of "$tool_basename", so it can be a program name with args.
9802 set dummy $tool_basename; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if ${ac_cv_path_TAR+:} false; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   case $TAR in
9809   [\\/]* | ?:[\\/]*)
9810   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9811   ;;
9812   *)
9813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816   IFS=$as_save_IFS
9817   test -z "$as_dir" && as_dir=.
9818     for ac_exec_ext in '' $ac_executable_extensions; do
9819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822     break 2
9823   fi
9824 done
9825   done
9826 IFS=$as_save_IFS
9827 
9828   ;;
9829 esac
9830 fi
9831 TAR=$ac_cv_path_TAR
9832 if test -n "$TAR"; then
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9834 $as_echo "$TAR" >&6; }
9835 else
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839 
9840 
9841         if test "x$TAR" = x; then
9842           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9843         fi
9844       else
9845         # Otherwise we believe it is a complete path. Use it as it is.
9846         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9847 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9848         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9849 $as_echo_n "checking for TAR... " >&6; }
9850         if test ! -x "$tool_specified"; then
9851           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9852 $as_echo "not found" >&6; }
9853           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9854         fi
9855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9856 $as_echo "$tool_specified" >&6; }
9857       fi
9858     fi
9859   fi
9860 
9861 
9862 
9863   if test "x$TAR" = x; then
9864     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9865   fi
9866 
9867 
9868 
9869 
9870 
9871   # Publish this variable in the help.
9872 
9873 
9874   if test "x$TEE" = x; then
9875     # The variable is not set by user, try to locate tool using the code snippet
9876     for ac_prog in tee
9877 do
9878   # Extract the first word of "$ac_prog", so it can be a program name with args.
9879 set dummy $ac_prog; ac_word=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if ${ac_cv_path_TEE+:} false; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   case $TEE in
9886   [\\/]* | ?:[\\/]*)
9887   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9888   ;;
9889   *)
9890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9892 do
9893   IFS=$as_save_IFS
9894   test -z "$as_dir" && as_dir=.
9895     for ac_exec_ext in '' $ac_executable_extensions; do
9896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9897     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899     break 2
9900   fi
9901 done
9902   done
9903 IFS=$as_save_IFS
9904 
9905   ;;
9906 esac
9907 fi
9908 TEE=$ac_cv_path_TEE
9909 if test -n "$TEE"; then
9910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9911 $as_echo "$TEE" >&6; }
9912 else
9913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 $as_echo "no" >&6; }
9915 fi
9916 
9917 
9918   test -n "$TEE" && break
9919 done
9920 
9921   else
9922     # The variable is set, but is it from the command line or the environment?
9923 
9924     # Try to remove the string !TEE! from our list.
9925     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9926     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9927       # If it failed, the variable was not from the command line. Ignore it,
9928       # but warn the user (except for BASH, which is always set by the calling BASH).
9929       if test "xTEE" != xBASH; then
9930         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9931 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9932       fi
9933       # Try to locate tool using the code snippet
9934       for ac_prog in tee
9935 do
9936   # Extract the first word of "$ac_prog", so it can be a program name with args.
9937 set dummy $ac_prog; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if ${ac_cv_path_TEE+:} false; then :
9941   $as_echo_n "(cached) " >&6
9942 else
9943   case $TEE in
9944   [\\/]* | ?:[\\/]*)
9945   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9946   ;;
9947   *)
9948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949 for as_dir in $PATH
9950 do
9951   IFS=$as_save_IFS
9952   test -z "$as_dir" && as_dir=.
9953     for ac_exec_ext in '' $ac_executable_extensions; do
9954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9955     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9957     break 2
9958   fi
9959 done
9960   done
9961 IFS=$as_save_IFS
9962 
9963   ;;
9964 esac
9965 fi
9966 TEE=$ac_cv_path_TEE
9967 if test -n "$TEE"; then
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9969 $as_echo "$TEE" >&6; }
9970 else
9971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9973 fi
9974 
9975 
9976   test -n "$TEE" && break
9977 done
9978 
9979     else
9980       # If it succeeded, then it was overridden by the user. We will use it
9981       # for the tool.
9982 
9983       # First remove it from the list of overridden variables, so we can test
9984       # for unknown variables in the end.
9985       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9986 
9987       # Check if the provided tool contains a complete path.
9988       tool_specified="$TEE"
9989       tool_basename="${tool_specified##*/}"
9990       if test "x$tool_basename" = "x$tool_specified"; then
9991         # A command without a complete path is provided, search $PATH.
9992         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9993 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9994         # Extract the first word of "$tool_basename", so it can be a program name with args.
9995 set dummy $tool_basename; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if ${ac_cv_path_TEE+:} false; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   case $TEE in
10002   [\\/]* | ?:[\\/]*)
10003   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10004   ;;
10005   *)
10006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009   IFS=$as_save_IFS
10010   test -z "$as_dir" && as_dir=.
10011     for ac_exec_ext in '' $ac_executable_extensions; do
10012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10013     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015     break 2
10016   fi
10017 done
10018   done
10019 IFS=$as_save_IFS
10020 
10021   ;;
10022 esac
10023 fi
10024 TEE=$ac_cv_path_TEE
10025 if test -n "$TEE"; then
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10027 $as_echo "$TEE" >&6; }
10028 else
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10031 fi
10032 
10033 
10034         if test "x$TEE" = x; then
10035           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10036         fi
10037       else
10038         # Otherwise we believe it is a complete path. Use it as it is.
10039         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10040 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10042 $as_echo_n "checking for TEE... " >&6; }
10043         if test ! -x "$tool_specified"; then
10044           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10045 $as_echo "not found" >&6; }
10046           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10047         fi
10048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10049 $as_echo "$tool_specified" >&6; }
10050       fi
10051     fi
10052   fi
10053 
10054 
10055 
10056   if test "x$TEE" = x; then
10057     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10058   fi
10059 
10060 
10061 
10062 
10063 
10064   # Publish this variable in the help.
10065 
10066 
10067   if test "x$TOUCH" = x; then
10068     # The variable is not set by user, try to locate tool using the code snippet
10069     for ac_prog in touch
10070 do
10071   # Extract the first word of "$ac_prog", so it can be a program name with args.
10072 set dummy $ac_prog; ac_word=$2
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074 $as_echo_n "checking for $ac_word... " >&6; }
10075 if ${ac_cv_path_TOUCH+:} false; then :
10076   $as_echo_n "(cached) " >&6
10077 else
10078   case $TOUCH in
10079   [\\/]* | ?:[\\/]*)
10080   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10081   ;;
10082   *)
10083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10085 do
10086   IFS=$as_save_IFS
10087   test -z "$as_dir" && as_dir=.
10088     for ac_exec_ext in '' $ac_executable_extensions; do
10089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092     break 2
10093   fi
10094 done
10095   done
10096 IFS=$as_save_IFS
10097 
10098   ;;
10099 esac
10100 fi
10101 TOUCH=$ac_cv_path_TOUCH
10102 if test -n "$TOUCH"; then
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10104 $as_echo "$TOUCH" >&6; }
10105 else
10106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10108 fi
10109 
10110 
10111   test -n "$TOUCH" && break
10112 done
10113 
10114   else
10115     # The variable is set, but is it from the command line or the environment?
10116 
10117     # Try to remove the string !TOUCH! from our list.
10118     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10119     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10120       # If it failed, the variable was not from the command line. Ignore it,
10121       # but warn the user (except for BASH, which is always set by the calling BASH).
10122       if test "xTOUCH" != xBASH; then
10123         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10124 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10125       fi
10126       # Try to locate tool using the code snippet
10127       for ac_prog in touch
10128 do
10129   # Extract the first word of "$ac_prog", so it can be a program name with args.
10130 set dummy $ac_prog; ac_word=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if ${ac_cv_path_TOUCH+:} false; then :
10134   $as_echo_n "(cached) " >&6
10135 else
10136   case $TOUCH in
10137   [\\/]* | ?:[\\/]*)
10138   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10139   ;;
10140   *)
10141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144   IFS=$as_save_IFS
10145   test -z "$as_dir" && as_dir=.
10146     for ac_exec_ext in '' $ac_executable_extensions; do
10147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150     break 2
10151   fi
10152 done
10153   done
10154 IFS=$as_save_IFS
10155 
10156   ;;
10157 esac
10158 fi
10159 TOUCH=$ac_cv_path_TOUCH
10160 if test -n "$TOUCH"; then
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10162 $as_echo "$TOUCH" >&6; }
10163 else
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10166 fi
10167 
10168 
10169   test -n "$TOUCH" && break
10170 done
10171 
10172     else
10173       # If it succeeded, then it was overridden by the user. We will use it
10174       # for the tool.
10175 
10176       # First remove it from the list of overridden variables, so we can test
10177       # for unknown variables in the end.
10178       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10179 
10180       # Check if the provided tool contains a complete path.
10181       tool_specified="$TOUCH"
10182       tool_basename="${tool_specified##*/}"
10183       if test "x$tool_basename" = "x$tool_specified"; then
10184         # A command without a complete path is provided, search $PATH.
10185         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10186 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10187         # Extract the first word of "$tool_basename", so it can be a program name with args.
10188 set dummy $tool_basename; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_path_TOUCH+:} false; then :
10192   $as_echo_n "(cached) " >&6
10193 else
10194   case $TOUCH in
10195   [\\/]* | ?:[\\/]*)
10196   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10197   ;;
10198   *)
10199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202   IFS=$as_save_IFS
10203   test -z "$as_dir" && as_dir=.
10204     for ac_exec_ext in '' $ac_executable_extensions; do
10205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208     break 2
10209   fi
10210 done
10211   done
10212 IFS=$as_save_IFS
10213 
10214   ;;
10215 esac
10216 fi
10217 TOUCH=$ac_cv_path_TOUCH
10218 if test -n "$TOUCH"; then
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10220 $as_echo "$TOUCH" >&6; }
10221 else
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225 
10226 
10227         if test "x$TOUCH" = x; then
10228           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10229         fi
10230       else
10231         # Otherwise we believe it is a complete path. Use it as it is.
10232         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10233 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10235 $as_echo_n "checking for TOUCH... " >&6; }
10236         if test ! -x "$tool_specified"; then
10237           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10238 $as_echo "not found" >&6; }
10239           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10240         fi
10241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10242 $as_echo "$tool_specified" >&6; }
10243       fi
10244     fi
10245   fi
10246 
10247 
10248 
10249   if test "x$TOUCH" = x; then
10250     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10251   fi
10252 
10253 
10254 
10255 
10256 
10257   # Publish this variable in the help.
10258 
10259 
10260   if test "x$TR" = x; then
10261     # The variable is not set by user, try to locate tool using the code snippet
10262     for ac_prog in tr
10263 do
10264   # Extract the first word of "$ac_prog", so it can be a program name with args.
10265 set dummy $ac_prog; ac_word=$2
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267 $as_echo_n "checking for $ac_word... " >&6; }
10268 if ${ac_cv_path_TR+:} false; then :
10269   $as_echo_n "(cached) " >&6
10270 else
10271   case $TR in
10272   [\\/]* | ?:[\\/]*)
10273   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10274   ;;
10275   *)
10276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10278 do
10279   IFS=$as_save_IFS
10280   test -z "$as_dir" && as_dir=.
10281     for ac_exec_ext in '' $ac_executable_extensions; do
10282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285     break 2
10286   fi
10287 done
10288   done
10289 IFS=$as_save_IFS
10290 
10291   ;;
10292 esac
10293 fi
10294 TR=$ac_cv_path_TR
10295 if test -n "$TR"; then
10296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10297 $as_echo "$TR" >&6; }
10298 else
10299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10301 fi
10302 
10303 
10304   test -n "$TR" && break
10305 done
10306 
10307   else
10308     # The variable is set, but is it from the command line or the environment?
10309 
10310     # Try to remove the string !TR! from our list.
10311     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10312     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10313       # If it failed, the variable was not from the command line. Ignore it,
10314       # but warn the user (except for BASH, which is always set by the calling BASH).
10315       if test "xTR" != xBASH; then
10316         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10317 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10318       fi
10319       # Try to locate tool using the code snippet
10320       for ac_prog in tr
10321 do
10322   # Extract the first word of "$ac_prog", so it can be a program name with args.
10323 set dummy $ac_prog; ac_word=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if ${ac_cv_path_TR+:} false; then :
10327   $as_echo_n "(cached) " >&6
10328 else
10329   case $TR in
10330   [\\/]* | ?:[\\/]*)
10331   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10332   ;;
10333   *)
10334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10336 do
10337   IFS=$as_save_IFS
10338   test -z "$as_dir" && as_dir=.
10339     for ac_exec_ext in '' $ac_executable_extensions; do
10340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10343     break 2
10344   fi
10345 done
10346   done
10347 IFS=$as_save_IFS
10348 
10349   ;;
10350 esac
10351 fi
10352 TR=$ac_cv_path_TR
10353 if test -n "$TR"; then
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10355 $as_echo "$TR" >&6; }
10356 else
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360 
10361 
10362   test -n "$TR" && break
10363 done
10364 
10365     else
10366       # If it succeeded, then it was overridden by the user. We will use it
10367       # for the tool.
10368 
10369       # First remove it from the list of overridden variables, so we can test
10370       # for unknown variables in the end.
10371       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10372 
10373       # Check if the provided tool contains a complete path.
10374       tool_specified="$TR"
10375       tool_basename="${tool_specified##*/}"
10376       if test "x$tool_basename" = "x$tool_specified"; then
10377         # A command without a complete path is provided, search $PATH.
10378         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10379 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10380         # Extract the first word of "$tool_basename", so it can be a program name with args.
10381 set dummy $tool_basename; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_path_TR+:} false; then :
10385   $as_echo_n "(cached) " >&6
10386 else
10387   case $TR in
10388   [\\/]* | ?:[\\/]*)
10389   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10390   ;;
10391   *)
10392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10394 do
10395   IFS=$as_save_IFS
10396   test -z "$as_dir" && as_dir=.
10397     for ac_exec_ext in '' $ac_executable_extensions; do
10398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10399     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401     break 2
10402   fi
10403 done
10404   done
10405 IFS=$as_save_IFS
10406 
10407   ;;
10408 esac
10409 fi
10410 TR=$ac_cv_path_TR
10411 if test -n "$TR"; then
10412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10413 $as_echo "$TR" >&6; }
10414 else
10415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 $as_echo "no" >&6; }
10417 fi
10418 
10419 
10420         if test "x$TR" = x; then
10421           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10422         fi
10423       else
10424         # Otherwise we believe it is a complete path. Use it as it is.
10425         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10426 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10427         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10428 $as_echo_n "checking for TR... " >&6; }
10429         if test ! -x "$tool_specified"; then
10430           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10431 $as_echo "not found" >&6; }
10432           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10433         fi
10434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10435 $as_echo "$tool_specified" >&6; }
10436       fi
10437     fi
10438   fi
10439 
10440 
10441 
10442   if test "x$TR" = x; then
10443     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10444   fi
10445 
10446 
10447 
10448 
10449 
10450   # Publish this variable in the help.
10451 
10452 
10453   if test "x$UNAME" = x; then
10454     # The variable is not set by user, try to locate tool using the code snippet
10455     for ac_prog in uname
10456 do
10457   # Extract the first word of "$ac_prog", so it can be a program name with args.
10458 set dummy $ac_prog; ac_word=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if ${ac_cv_path_UNAME+:} false; then :
10462   $as_echo_n "(cached) " >&6
10463 else
10464   case $UNAME in
10465   [\\/]* | ?:[\\/]*)
10466   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10467   ;;
10468   *)
10469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472   IFS=$as_save_IFS
10473   test -z "$as_dir" && as_dir=.
10474     for ac_exec_ext in '' $ac_executable_extensions; do
10475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10476     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478     break 2
10479   fi
10480 done
10481   done
10482 IFS=$as_save_IFS
10483 
10484   ;;
10485 esac
10486 fi
10487 UNAME=$ac_cv_path_UNAME
10488 if test -n "$UNAME"; then
10489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10490 $as_echo "$UNAME" >&6; }
10491 else
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10494 fi
10495 
10496 
10497   test -n "$UNAME" && break
10498 done
10499 
10500   else
10501     # The variable is set, but is it from the command line or the environment?
10502 
10503     # Try to remove the string !UNAME! from our list.
10504     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10505     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10506       # If it failed, the variable was not from the command line. Ignore it,
10507       # but warn the user (except for BASH, which is always set by the calling BASH).
10508       if test "xUNAME" != xBASH; then
10509         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10510 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10511       fi
10512       # Try to locate tool using the code snippet
10513       for ac_prog in uname
10514 do
10515   # Extract the first word of "$ac_prog", so it can be a program name with args.
10516 set dummy $ac_prog; ac_word=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if ${ac_cv_path_UNAME+:} false; then :
10520   $as_echo_n "(cached) " >&6
10521 else
10522   case $UNAME in
10523   [\\/]* | ?:[\\/]*)
10524   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10525   ;;
10526   *)
10527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10529 do
10530   IFS=$as_save_IFS
10531   test -z "$as_dir" && as_dir=.
10532     for ac_exec_ext in '' $ac_executable_extensions; do
10533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536     break 2
10537   fi
10538 done
10539   done
10540 IFS=$as_save_IFS
10541 
10542   ;;
10543 esac
10544 fi
10545 UNAME=$ac_cv_path_UNAME
10546 if test -n "$UNAME"; then
10547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10548 $as_echo "$UNAME" >&6; }
10549 else
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10552 fi
10553 
10554 
10555   test -n "$UNAME" && break
10556 done
10557 
10558     else
10559       # If it succeeded, then it was overridden by the user. We will use it
10560       # for the tool.
10561 
10562       # First remove it from the list of overridden variables, so we can test
10563       # for unknown variables in the end.
10564       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10565 
10566       # Check if the provided tool contains a complete path.
10567       tool_specified="$UNAME"
10568       tool_basename="${tool_specified##*/}"
10569       if test "x$tool_basename" = "x$tool_specified"; then
10570         # A command without a complete path is provided, search $PATH.
10571         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10572 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10573         # Extract the first word of "$tool_basename", so it can be a program name with args.
10574 set dummy $tool_basename; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if ${ac_cv_path_UNAME+:} false; then :
10578   $as_echo_n "(cached) " >&6
10579 else
10580   case $UNAME in
10581   [\\/]* | ?:[\\/]*)
10582   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10583   ;;
10584   *)
10585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10587 do
10588   IFS=$as_save_IFS
10589   test -z "$as_dir" && as_dir=.
10590     for ac_exec_ext in '' $ac_executable_extensions; do
10591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10592     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594     break 2
10595   fi
10596 done
10597   done
10598 IFS=$as_save_IFS
10599 
10600   ;;
10601 esac
10602 fi
10603 UNAME=$ac_cv_path_UNAME
10604 if test -n "$UNAME"; then
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10606 $as_echo "$UNAME" >&6; }
10607 else
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 fi
10611 
10612 
10613         if test "x$UNAME" = x; then
10614           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10615         fi
10616       else
10617         # Otherwise we believe it is a complete path. Use it as it is.
10618         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10619 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10620         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10621 $as_echo_n "checking for UNAME... " >&6; }
10622         if test ! -x "$tool_specified"; then
10623           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10624 $as_echo "not found" >&6; }
10625           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10626         fi
10627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10628 $as_echo "$tool_specified" >&6; }
10629       fi
10630     fi
10631   fi
10632 
10633 
10634 
10635   if test "x$UNAME" = x; then
10636     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10637   fi
10638 
10639 
10640 
10641 
10642 
10643   # Publish this variable in the help.
10644 
10645 
10646   if test "x$UNIQ" = x; then
10647     # The variable is not set by user, try to locate tool using the code snippet
10648     for ac_prog in uniq
10649 do
10650   # Extract the first word of "$ac_prog", so it can be a program name with args.
10651 set dummy $ac_prog; ac_word=$2
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if ${ac_cv_path_UNIQ+:} false; then :
10655   $as_echo_n "(cached) " >&6
10656 else
10657   case $UNIQ in
10658   [\\/]* | ?:[\\/]*)
10659   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10660   ;;
10661   *)
10662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665   IFS=$as_save_IFS
10666   test -z "$as_dir" && as_dir=.
10667     for ac_exec_ext in '' $ac_executable_extensions; do
10668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671     break 2
10672   fi
10673 done
10674   done
10675 IFS=$as_save_IFS
10676 
10677   ;;
10678 esac
10679 fi
10680 UNIQ=$ac_cv_path_UNIQ
10681 if test -n "$UNIQ"; then
10682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10683 $as_echo "$UNIQ" >&6; }
10684 else
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10687 fi
10688 
10689 
10690   test -n "$UNIQ" && break
10691 done
10692 
10693   else
10694     # The variable is set, but is it from the command line or the environment?
10695 
10696     # Try to remove the string !UNIQ! from our list.
10697     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10698     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10699       # If it failed, the variable was not from the command line. Ignore it,
10700       # but warn the user (except for BASH, which is always set by the calling BASH).
10701       if test "xUNIQ" != xBASH; then
10702         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10703 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10704       fi
10705       # Try to locate tool using the code snippet
10706       for ac_prog in uniq
10707 do
10708   # Extract the first word of "$ac_prog", so it can be a program name with args.
10709 set dummy $ac_prog; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_path_UNIQ+:} false; then :
10713   $as_echo_n "(cached) " >&6
10714 else
10715   case $UNIQ in
10716   [\\/]* | ?:[\\/]*)
10717   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10718   ;;
10719   *)
10720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10722 do
10723   IFS=$as_save_IFS
10724   test -z "$as_dir" && as_dir=.
10725     for ac_exec_ext in '' $ac_executable_extensions; do
10726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729     break 2
10730   fi
10731 done
10732   done
10733 IFS=$as_save_IFS
10734 
10735   ;;
10736 esac
10737 fi
10738 UNIQ=$ac_cv_path_UNIQ
10739 if test -n "$UNIQ"; then
10740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10741 $as_echo "$UNIQ" >&6; }
10742 else
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 fi
10746 
10747 
10748   test -n "$UNIQ" && break
10749 done
10750 
10751     else
10752       # If it succeeded, then it was overridden by the user. We will use it
10753       # for the tool.
10754 
10755       # First remove it from the list of overridden variables, so we can test
10756       # for unknown variables in the end.
10757       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10758 
10759       # Check if the provided tool contains a complete path.
10760       tool_specified="$UNIQ"
10761       tool_basename="${tool_specified##*/}"
10762       if test "x$tool_basename" = "x$tool_specified"; then
10763         # A command without a complete path is provided, search $PATH.
10764         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10765 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10766         # Extract the first word of "$tool_basename", so it can be a program name with args.
10767 set dummy $tool_basename; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_path_UNIQ+:} false; then :
10771   $as_echo_n "(cached) " >&6
10772 else
10773   case $UNIQ in
10774   [\\/]* | ?:[\\/]*)
10775   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10776   ;;
10777   *)
10778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781   IFS=$as_save_IFS
10782   test -z "$as_dir" && as_dir=.
10783     for ac_exec_ext in '' $ac_executable_extensions; do
10784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787     break 2
10788   fi
10789 done
10790   done
10791 IFS=$as_save_IFS
10792 
10793   ;;
10794 esac
10795 fi
10796 UNIQ=$ac_cv_path_UNIQ
10797 if test -n "$UNIQ"; then
10798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10799 $as_echo "$UNIQ" >&6; }
10800 else
10801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10803 fi
10804 
10805 
10806         if test "x$UNIQ" = x; then
10807           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10808         fi
10809       else
10810         # Otherwise we believe it is a complete path. Use it as it is.
10811         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10812 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10814 $as_echo_n "checking for UNIQ... " >&6; }
10815         if test ! -x "$tool_specified"; then
10816           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10817 $as_echo "not found" >&6; }
10818           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10819         fi
10820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10821 $as_echo "$tool_specified" >&6; }
10822       fi
10823     fi
10824   fi
10825 
10826 
10827 
10828   if test "x$UNIQ" = x; then
10829     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10830   fi
10831 
10832 
10833 
10834 
10835 
10836   # Publish this variable in the help.
10837 
10838 
10839   if test "x$WC" = x; then
10840     # The variable is not set by user, try to locate tool using the code snippet
10841     for ac_prog in wc
10842 do
10843   # Extract the first word of "$ac_prog", so it can be a program name with args.
10844 set dummy $ac_prog; ac_word=$2
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846 $as_echo_n "checking for $ac_word... " >&6; }
10847 if ${ac_cv_path_WC+:} false; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   case $WC in
10851   [\\/]* | ?:[\\/]*)
10852   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10853   ;;
10854   *)
10855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10857 do
10858   IFS=$as_save_IFS
10859   test -z "$as_dir" && as_dir=.
10860     for ac_exec_ext in '' $ac_executable_extensions; do
10861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10862     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864     break 2
10865   fi
10866 done
10867   done
10868 IFS=$as_save_IFS
10869 
10870   ;;
10871 esac
10872 fi
10873 WC=$ac_cv_path_WC
10874 if test -n "$WC"; then
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10876 $as_echo "$WC" >&6; }
10877 else
10878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10880 fi
10881 
10882 
10883   test -n "$WC" && break
10884 done
10885 
10886   else
10887     # The variable is set, but is it from the command line or the environment?
10888 
10889     # Try to remove the string !WC! from our list.
10890     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10891     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10892       # If it failed, the variable was not from the command line. Ignore it,
10893       # but warn the user (except for BASH, which is always set by the calling BASH).
10894       if test "xWC" != xBASH; then
10895         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10896 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10897       fi
10898       # Try to locate tool using the code snippet
10899       for ac_prog in wc
10900 do
10901   # Extract the first word of "$ac_prog", so it can be a program name with args.
10902 set dummy $ac_prog; ac_word=$2
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904 $as_echo_n "checking for $ac_word... " >&6; }
10905 if ${ac_cv_path_WC+:} false; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908   case $WC in
10909   [\\/]* | ?:[\\/]*)
10910   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10911   ;;
10912   *)
10913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10915 do
10916   IFS=$as_save_IFS
10917   test -z "$as_dir" && as_dir=.
10918     for ac_exec_ext in '' $ac_executable_extensions; do
10919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10920     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922     break 2
10923   fi
10924 done
10925   done
10926 IFS=$as_save_IFS
10927 
10928   ;;
10929 esac
10930 fi
10931 WC=$ac_cv_path_WC
10932 if test -n "$WC"; then
10933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10934 $as_echo "$WC" >&6; }
10935 else
10936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10938 fi
10939 
10940 
10941   test -n "$WC" && break
10942 done
10943 
10944     else
10945       # If it succeeded, then it was overridden by the user. We will use it
10946       # for the tool.
10947 
10948       # First remove it from the list of overridden variables, so we can test
10949       # for unknown variables in the end.
10950       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10951 
10952       # Check if the provided tool contains a complete path.
10953       tool_specified="$WC"
10954       tool_basename="${tool_specified##*/}"
10955       if test "x$tool_basename" = "x$tool_specified"; then
10956         # A command without a complete path is provided, search $PATH.
10957         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10958 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10959         # Extract the first word of "$tool_basename", so it can be a program name with args.
10960 set dummy $tool_basename; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if ${ac_cv_path_WC+:} false; then :
10964   $as_echo_n "(cached) " >&6
10965 else
10966   case $WC in
10967   [\\/]* | ?:[\\/]*)
10968   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10969   ;;
10970   *)
10971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10973 do
10974   IFS=$as_save_IFS
10975   test -z "$as_dir" && as_dir=.
10976     for ac_exec_ext in '' $ac_executable_extensions; do
10977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980     break 2
10981   fi
10982 done
10983   done
10984 IFS=$as_save_IFS
10985 
10986   ;;
10987 esac
10988 fi
10989 WC=$ac_cv_path_WC
10990 if test -n "$WC"; then
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10992 $as_echo "$WC" >&6; }
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997 
10998 
10999         if test "x$WC" = x; then
11000           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11001         fi
11002       else
11003         # Otherwise we believe it is a complete path. Use it as it is.
11004         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11005 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11006         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11007 $as_echo_n "checking for WC... " >&6; }
11008         if test ! -x "$tool_specified"; then
11009           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11010 $as_echo "not found" >&6; }
11011           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11012         fi
11013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11014 $as_echo "$tool_specified" >&6; }
11015       fi
11016     fi
11017   fi
11018 
11019 
11020 
11021   if test "x$WC" = x; then
11022     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11023   fi
11024 
11025 
11026 
11027 
11028 
11029   # Publish this variable in the help.
11030 
11031 
11032   if test "x$WHICH" = x; then
11033     # The variable is not set by user, try to locate tool using the code snippet
11034     for ac_prog in which
11035 do
11036   # Extract the first word of "$ac_prog", so it can be a program name with args.
11037 set dummy $ac_prog; ac_word=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if ${ac_cv_path_WHICH+:} false; then :
11041   $as_echo_n "(cached) " >&6
11042 else
11043   case $WHICH in
11044   [\\/]* | ?:[\\/]*)
11045   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11046   ;;
11047   *)
11048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11050 do
11051   IFS=$as_save_IFS
11052   test -z "$as_dir" && as_dir=.
11053     for ac_exec_ext in '' $ac_executable_extensions; do
11054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057     break 2
11058   fi
11059 done
11060   done
11061 IFS=$as_save_IFS
11062 
11063   ;;
11064 esac
11065 fi
11066 WHICH=$ac_cv_path_WHICH
11067 if test -n "$WHICH"; then
11068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11069 $as_echo "$WHICH" >&6; }
11070 else
11071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11073 fi
11074 
11075 
11076   test -n "$WHICH" && break
11077 done
11078 
11079   else
11080     # The variable is set, but is it from the command line or the environment?
11081 
11082     # Try to remove the string !WHICH! from our list.
11083     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11084     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11085       # If it failed, the variable was not from the command line. Ignore it,
11086       # but warn the user (except for BASH, which is always set by the calling BASH).
11087       if test "xWHICH" != xBASH; then
11088         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11089 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11090       fi
11091       # Try to locate tool using the code snippet
11092       for ac_prog in which
11093 do
11094   # Extract the first word of "$ac_prog", so it can be a program name with args.
11095 set dummy $ac_prog; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if ${ac_cv_path_WHICH+:} false; then :
11099   $as_echo_n "(cached) " >&6
11100 else
11101   case $WHICH in
11102   [\\/]* | ?:[\\/]*)
11103   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11104   ;;
11105   *)
11106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109   IFS=$as_save_IFS
11110   test -z "$as_dir" && as_dir=.
11111     for ac_exec_ext in '' $ac_executable_extensions; do
11112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115     break 2
11116   fi
11117 done
11118   done
11119 IFS=$as_save_IFS
11120 
11121   ;;
11122 esac
11123 fi
11124 WHICH=$ac_cv_path_WHICH
11125 if test -n "$WHICH"; then
11126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11127 $as_echo "$WHICH" >&6; }
11128 else
11129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11131 fi
11132 
11133 
11134   test -n "$WHICH" && break
11135 done
11136 
11137     else
11138       # If it succeeded, then it was overridden by the user. We will use it
11139       # for the tool.
11140 
11141       # First remove it from the list of overridden variables, so we can test
11142       # for unknown variables in the end.
11143       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11144 
11145       # Check if the provided tool contains a complete path.
11146       tool_specified="$WHICH"
11147       tool_basename="${tool_specified##*/}"
11148       if test "x$tool_basename" = "x$tool_specified"; then
11149         # A command without a complete path is provided, search $PATH.
11150         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11151 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11152         # Extract the first word of "$tool_basename", so it can be a program name with args.
11153 set dummy $tool_basename; ac_word=$2
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155 $as_echo_n "checking for $ac_word... " >&6; }
11156 if ${ac_cv_path_WHICH+:} false; then :
11157   $as_echo_n "(cached) " >&6
11158 else
11159   case $WHICH in
11160   [\\/]* | ?:[\\/]*)
11161   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11162   ;;
11163   *)
11164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167   IFS=$as_save_IFS
11168   test -z "$as_dir" && as_dir=.
11169     for ac_exec_ext in '' $ac_executable_extensions; do
11170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173     break 2
11174   fi
11175 done
11176   done
11177 IFS=$as_save_IFS
11178 
11179   ;;
11180 esac
11181 fi
11182 WHICH=$ac_cv_path_WHICH
11183 if test -n "$WHICH"; then
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11185 $as_echo "$WHICH" >&6; }
11186 else
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11189 fi
11190 
11191 
11192         if test "x$WHICH" = x; then
11193           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11194         fi
11195       else
11196         # Otherwise we believe it is a complete path. Use it as it is.
11197         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11198 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11200 $as_echo_n "checking for WHICH... " >&6; }
11201         if test ! -x "$tool_specified"; then
11202           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11203 $as_echo "not found" >&6; }
11204           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11205         fi
11206         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11207 $as_echo "$tool_specified" >&6; }
11208       fi
11209     fi
11210   fi
11211 
11212 
11213 
11214   if test "x$WHICH" = x; then
11215     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11216   fi
11217 
11218 
11219 
11220 
11221 
11222   # Publish this variable in the help.
11223 
11224 
11225   if test "x$XARGS" = x; then
11226     # The variable is not set by user, try to locate tool using the code snippet
11227     for ac_prog in xargs
11228 do
11229   # Extract the first word of "$ac_prog", so it can be a program name with args.
11230 set dummy $ac_prog; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_path_XARGS+:} false; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236   case $XARGS in
11237   [\\/]* | ?:[\\/]*)
11238   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11239   ;;
11240   *)
11241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11243 do
11244   IFS=$as_save_IFS
11245   test -z "$as_dir" && as_dir=.
11246     for ac_exec_ext in '' $ac_executable_extensions; do
11247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11250     break 2
11251   fi
11252 done
11253   done
11254 IFS=$as_save_IFS
11255 
11256   ;;
11257 esac
11258 fi
11259 XARGS=$ac_cv_path_XARGS
11260 if test -n "$XARGS"; then
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11262 $as_echo "$XARGS" >&6; }
11263 else
11264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11266 fi
11267 
11268 
11269   test -n "$XARGS" && break
11270 done
11271 
11272   else
11273     # The variable is set, but is it from the command line or the environment?
11274 
11275     # Try to remove the string !XARGS! from our list.
11276     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11277     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11278       # If it failed, the variable was not from the command line. Ignore it,
11279       # but warn the user (except for BASH, which is always set by the calling BASH).
11280       if test "xXARGS" != xBASH; then
11281         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11282 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11283       fi
11284       # Try to locate tool using the code snippet
11285       for ac_prog in xargs
11286 do
11287   # Extract the first word of "$ac_prog", so it can be a program name with args.
11288 set dummy $ac_prog; ac_word=$2
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 $as_echo_n "checking for $ac_word... " >&6; }
11291 if ${ac_cv_path_XARGS+:} false; then :
11292   $as_echo_n "(cached) " >&6
11293 else
11294   case $XARGS in
11295   [\\/]* | ?:[\\/]*)
11296   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11297   ;;
11298   *)
11299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302   IFS=$as_save_IFS
11303   test -z "$as_dir" && as_dir=.
11304     for ac_exec_ext in '' $ac_executable_extensions; do
11305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308     break 2
11309   fi
11310 done
11311   done
11312 IFS=$as_save_IFS
11313 
11314   ;;
11315 esac
11316 fi
11317 XARGS=$ac_cv_path_XARGS
11318 if test -n "$XARGS"; then
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11320 $as_echo "$XARGS" >&6; }
11321 else
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11324 fi
11325 
11326 
11327   test -n "$XARGS" && break
11328 done
11329 
11330     else
11331       # If it succeeded, then it was overridden by the user. We will use it
11332       # for the tool.
11333 
11334       # First remove it from the list of overridden variables, so we can test
11335       # for unknown variables in the end.
11336       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11337 
11338       # Check if the provided tool contains a complete path.
11339       tool_specified="$XARGS"
11340       tool_basename="${tool_specified##*/}"
11341       if test "x$tool_basename" = "x$tool_specified"; then
11342         # A command without a complete path is provided, search $PATH.
11343         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11344 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11345         # Extract the first word of "$tool_basename", so it can be a program name with args.
11346 set dummy $tool_basename; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if ${ac_cv_path_XARGS+:} false; then :
11350   $as_echo_n "(cached) " >&6
11351 else
11352   case $XARGS in
11353   [\\/]* | ?:[\\/]*)
11354   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11355   ;;
11356   *)
11357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
11359 do
11360   IFS=$as_save_IFS
11361   test -z "$as_dir" && as_dir=.
11362     for ac_exec_ext in '' $ac_executable_extensions; do
11363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366     break 2
11367   fi
11368 done
11369   done
11370 IFS=$as_save_IFS
11371 
11372   ;;
11373 esac
11374 fi
11375 XARGS=$ac_cv_path_XARGS
11376 if test -n "$XARGS"; then
11377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11378 $as_echo "$XARGS" >&6; }
11379 else
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11382 fi
11383 
11384 
11385         if test "x$XARGS" = x; then
11386           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11387         fi
11388       else
11389         # Otherwise we believe it is a complete path. Use it as it is.
11390         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11391 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11392         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11393 $as_echo_n "checking for XARGS... " >&6; }
11394         if test ! -x "$tool_specified"; then
11395           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11396 $as_echo "not found" >&6; }
11397           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11398         fi
11399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11400 $as_echo "$tool_specified" >&6; }
11401       fi
11402     fi
11403   fi
11404 
11405 
11406 
11407   if test "x$XARGS" = x; then
11408     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11409   fi
11410 
11411 
11412 
11413   # Then required tools that require some special treatment.
11414 
11415 
11416   # Publish this variable in the help.
11417 
11418 
11419   if test "x$AWK" = x; then
11420     # The variable is not set by user, try to locate tool using the code snippet
11421     for ac_prog in gawk mawk nawk awk
11422 do
11423   # Extract the first word of "$ac_prog", so it can be a program name with args.
11424 set dummy $ac_prog; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_prog_AWK+:} false; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   if test -n "$AWK"; then
11431   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436   IFS=$as_save_IFS
11437   test -z "$as_dir" && as_dir=.
11438     for ac_exec_ext in '' $ac_executable_extensions; do
11439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440     ac_cv_prog_AWK="$ac_prog"
11441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442     break 2
11443   fi
11444 done
11445   done
11446 IFS=$as_save_IFS
11447 
11448 fi
11449 fi
11450 AWK=$ac_cv_prog_AWK
11451 if test -n "$AWK"; then
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11453 $as_echo "$AWK" >&6; }
11454 else
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458 
11459 
11460   test -n "$AWK" && break
11461 done
11462 
11463   else
11464     # The variable is set, but is it from the command line or the environment?
11465 
11466     # Try to remove the string !AWK! from our list.
11467     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11468     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11469       # If it failed, the variable was not from the command line. Ignore it,
11470       # but warn the user (except for BASH, which is always set by the calling BASH).
11471       if test "xAWK" != xBASH; then
11472         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11473 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11474       fi
11475       # Try to locate tool using the code snippet
11476       for ac_prog in gawk mawk nawk awk
11477 do
11478   # Extract the first word of "$ac_prog", so it can be a program name with args.
11479 set dummy $ac_prog; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if ${ac_cv_prog_AWK+:} false; then :
11483   $as_echo_n "(cached) " >&6
11484 else
11485   if test -n "$AWK"; then
11486   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11487 else
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11490 do
11491   IFS=$as_save_IFS
11492   test -z "$as_dir" && as_dir=.
11493     for ac_exec_ext in '' $ac_executable_extensions; do
11494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11495     ac_cv_prog_AWK="$ac_prog"
11496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497     break 2
11498   fi
11499 done
11500   done
11501 IFS=$as_save_IFS
11502 
11503 fi
11504 fi
11505 AWK=$ac_cv_prog_AWK
11506 if test -n "$AWK"; then
11507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11508 $as_echo "$AWK" >&6; }
11509 else
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11512 fi
11513 
11514 
11515   test -n "$AWK" && break
11516 done
11517 
11518     else
11519       # If it succeeded, then it was overridden by the user. We will use it
11520       # for the tool.
11521 
11522       # First remove it from the list of overridden variables, so we can test
11523       # for unknown variables in the end.
11524       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11525 
11526       # Check if the provided tool contains a complete path.
11527       tool_specified="$AWK"
11528       tool_basename="${tool_specified##*/}"
11529       if test "x$tool_basename" = "x$tool_specified"; then
11530         # A command without a complete path is provided, search $PATH.
11531         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11532 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11533         # Extract the first word of "$tool_basename", so it can be a program name with args.
11534 set dummy $tool_basename; ac_word=$2
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if ${ac_cv_path_AWK+:} false; then :
11538   $as_echo_n "(cached) " >&6
11539 else
11540   case $AWK in
11541   [\\/]* | ?:[\\/]*)
11542   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11543   ;;
11544   *)
11545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548   IFS=$as_save_IFS
11549   test -z "$as_dir" && as_dir=.
11550     for ac_exec_ext in '' $ac_executable_extensions; do
11551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554     break 2
11555   fi
11556 done
11557   done
11558 IFS=$as_save_IFS
11559 
11560   ;;
11561 esac
11562 fi
11563 AWK=$ac_cv_path_AWK
11564 if test -n "$AWK"; then
11565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11566 $as_echo "$AWK" >&6; }
11567 else
11568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570 fi
11571 
11572 
11573         if test "x$AWK" = x; then
11574           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11575         fi
11576       else
11577         # Otherwise we believe it is a complete path. Use it as it is.
11578         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11579 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11581 $as_echo_n "checking for AWK... " >&6; }
11582         if test ! -x "$tool_specified"; then
11583           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11584 $as_echo "not found" >&6; }
11585           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11586         fi
11587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11588 $as_echo "$tool_specified" >&6; }
11589       fi
11590     fi
11591   fi
11592 
11593 
11594   if test "x$AWK" = x; then
11595     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11596   fi
11597 
11598 
11599 
11600 
11601   # Publish this variable in the help.
11602 
11603 
11604   if test "x$GREP" = x; then
11605     # The variable is not set by user, try to locate tool using the code snippet
11606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11607 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11608 if ${ac_cv_path_GREP+:} false; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   if test -z "$GREP"; then
11612   ac_path_GREP_found=false
11613   # Loop through the user's path and test for each of PROGNAME-LIST
11614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11616 do
11617   IFS=$as_save_IFS
11618   test -z "$as_dir" && as_dir=.
11619     for ac_prog in grep ggrep; do
11620     for ac_exec_ext in '' $ac_executable_extensions; do
11621       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11622       as_fn_executable_p "$ac_path_GREP" || continue
11623 # Check for GNU ac_path_GREP and select it if it is found.
11624   # Check for GNU $ac_path_GREP
11625 case `"$ac_path_GREP" --version 2>&1` in
11626 *GNU*)
11627   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11628 *)
11629   ac_count=0
11630   $as_echo_n 0123456789 >"conftest.in"
11631   while :
11632   do
11633     cat "conftest.in" "conftest.in" >"conftest.tmp"
11634     mv "conftest.tmp" "conftest.in"
11635     cp "conftest.in" "conftest.nl"
11636     $as_echo 'GREP' >> "conftest.nl"
11637     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11639     as_fn_arith $ac_count + 1 && ac_count=$as_val
11640     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11641       # Best one so far, save it but keep looking for a better one
11642       ac_cv_path_GREP="$ac_path_GREP"
11643       ac_path_GREP_max=$ac_count
11644     fi
11645     # 10*(2^10) chars as input seems more than enough
11646     test $ac_count -gt 10 && break
11647   done
11648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11649 esac
11650 
11651       $ac_path_GREP_found && break 3
11652     done
11653   done
11654   done
11655 IFS=$as_save_IFS
11656   if test -z "$ac_cv_path_GREP"; then
11657     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11658   fi
11659 else
11660   ac_cv_path_GREP=$GREP
11661 fi
11662 
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11665 $as_echo "$ac_cv_path_GREP" >&6; }
11666  GREP="$ac_cv_path_GREP"
11667 
11668 
11669   else
11670     # The variable is set, but is it from the command line or the environment?
11671 
11672     # Try to remove the string !GREP! from our list.
11673     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11674     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11675       # If it failed, the variable was not from the command line. Ignore it,
11676       # but warn the user (except for BASH, which is always set by the calling BASH).
11677       if test "xGREP" != xBASH; then
11678         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11679 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11680       fi
11681       # Try to locate tool using the code snippet
11682       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11683 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11684 if ${ac_cv_path_GREP+:} false; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   if test -z "$GREP"; then
11688   ac_path_GREP_found=false
11689   # Loop through the user's path and test for each of PROGNAME-LIST
11690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11692 do
11693   IFS=$as_save_IFS
11694   test -z "$as_dir" && as_dir=.
11695     for ac_prog in grep ggrep; do
11696     for ac_exec_ext in '' $ac_executable_extensions; do
11697       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11698       as_fn_executable_p "$ac_path_GREP" || continue
11699 # Check for GNU ac_path_GREP and select it if it is found.
11700   # Check for GNU $ac_path_GREP
11701 case `"$ac_path_GREP" --version 2>&1` in
11702 *GNU*)
11703   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11704 *)
11705   ac_count=0
11706   $as_echo_n 0123456789 >"conftest.in"
11707   while :
11708   do
11709     cat "conftest.in" "conftest.in" >"conftest.tmp"
11710     mv "conftest.tmp" "conftest.in"
11711     cp "conftest.in" "conftest.nl"
11712     $as_echo 'GREP' >> "conftest.nl"
11713     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11714     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11715     as_fn_arith $ac_count + 1 && ac_count=$as_val
11716     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11717       # Best one so far, save it but keep looking for a better one
11718       ac_cv_path_GREP="$ac_path_GREP"
11719       ac_path_GREP_max=$ac_count
11720     fi
11721     # 10*(2^10) chars as input seems more than enough
11722     test $ac_count -gt 10 && break
11723   done
11724   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11725 esac
11726 
11727       $ac_path_GREP_found && break 3
11728     done
11729   done
11730   done
11731 IFS=$as_save_IFS
11732   if test -z "$ac_cv_path_GREP"; then
11733     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11734   fi
11735 else
11736   ac_cv_path_GREP=$GREP
11737 fi
11738 
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11741 $as_echo "$ac_cv_path_GREP" >&6; }
11742  GREP="$ac_cv_path_GREP"
11743 
11744 
11745     else
11746       # If it succeeded, then it was overridden by the user. We will use it
11747       # for the tool.
11748 
11749       # First remove it from the list of overridden variables, so we can test
11750       # for unknown variables in the end.
11751       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11752 
11753       # Check if the provided tool contains a complete path.
11754       tool_specified="$GREP"
11755       tool_basename="${tool_specified##*/}"
11756       if test "x$tool_basename" = "x$tool_specified"; then
11757         # A command without a complete path is provided, search $PATH.
11758         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11759 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11760         # Extract the first word of "$tool_basename", so it can be a program name with args.
11761 set dummy $tool_basename; ac_word=$2
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763 $as_echo_n "checking for $ac_word... " >&6; }
11764 if ${ac_cv_path_GREP+:} false; then :
11765   $as_echo_n "(cached) " >&6
11766 else
11767   case $GREP in
11768   [\\/]* | ?:[\\/]*)
11769   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11770   ;;
11771   *)
11772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11774 do
11775   IFS=$as_save_IFS
11776   test -z "$as_dir" && as_dir=.
11777     for ac_exec_ext in '' $ac_executable_extensions; do
11778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11779     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781     break 2
11782   fi
11783 done
11784   done
11785 IFS=$as_save_IFS
11786 
11787   ;;
11788 esac
11789 fi
11790 GREP=$ac_cv_path_GREP
11791 if test -n "$GREP"; then
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11793 $as_echo "$GREP" >&6; }
11794 else
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 fi
11798 
11799 
11800         if test "x$GREP" = x; then
11801           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11802         fi
11803       else
11804         # Otherwise we believe it is a complete path. Use it as it is.
11805         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11806 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11808 $as_echo_n "checking for GREP... " >&6; }
11809         if test ! -x "$tool_specified"; then
11810           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11811 $as_echo "not found" >&6; }
11812           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11813         fi
11814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11815 $as_echo "$tool_specified" >&6; }
11816       fi
11817     fi
11818   fi
11819 
11820 
11821   if test "x$GREP" = x; then
11822     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11823   fi
11824 
11825 
11826 
11827 
11828   # Publish this variable in the help.
11829 
11830 
11831   if test "x$EGREP" = x; then
11832     # The variable is not set by user, try to locate tool using the code snippet
11833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11834 $as_echo_n "checking for egrep... " >&6; }
11835 if ${ac_cv_path_EGREP+:} false; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11839    then ac_cv_path_EGREP="$GREP -E"
11840    else
11841      if test -z "$EGREP"; then
11842   ac_path_EGREP_found=false
11843   # Loop through the user's path and test for each of PROGNAME-LIST
11844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11846 do
11847   IFS=$as_save_IFS
11848   test -z "$as_dir" && as_dir=.
11849     for ac_prog in egrep; do
11850     for ac_exec_ext in '' $ac_executable_extensions; do
11851       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11852       as_fn_executable_p "$ac_path_EGREP" || continue
11853 # Check for GNU ac_path_EGREP and select it if it is found.
11854   # Check for GNU $ac_path_EGREP
11855 case `"$ac_path_EGREP" --version 2>&1` in
11856 *GNU*)
11857   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11858 *)
11859   ac_count=0
11860   $as_echo_n 0123456789 >"conftest.in"
11861   while :
11862   do
11863     cat "conftest.in" "conftest.in" >"conftest.tmp"
11864     mv "conftest.tmp" "conftest.in"
11865     cp "conftest.in" "conftest.nl"
11866     $as_echo 'EGREP' >> "conftest.nl"
11867     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11868     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11869     as_fn_arith $ac_count + 1 && ac_count=$as_val
11870     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11871       # Best one so far, save it but keep looking for a better one
11872       ac_cv_path_EGREP="$ac_path_EGREP"
11873       ac_path_EGREP_max=$ac_count
11874     fi
11875     # 10*(2^10) chars as input seems more than enough
11876     test $ac_count -gt 10 && break
11877   done
11878   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11879 esac
11880 
11881       $ac_path_EGREP_found && break 3
11882     done
11883   done
11884   done
11885 IFS=$as_save_IFS
11886   if test -z "$ac_cv_path_EGREP"; then
11887     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11888   fi
11889 else
11890   ac_cv_path_EGREP=$EGREP
11891 fi
11892 
11893    fi
11894 fi
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11896 $as_echo "$ac_cv_path_EGREP" >&6; }
11897  EGREP="$ac_cv_path_EGREP"
11898 
11899 
11900   else
11901     # The variable is set, but is it from the command line or the environment?
11902 
11903     # Try to remove the string !EGREP! from our list.
11904     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11905     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11906       # If it failed, the variable was not from the command line. Ignore it,
11907       # but warn the user (except for BASH, which is always set by the calling BASH).
11908       if test "xEGREP" != xBASH; then
11909         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11910 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11911       fi
11912       # Try to locate tool using the code snippet
11913       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11914 $as_echo_n "checking for egrep... " >&6; }
11915 if ${ac_cv_path_EGREP+:} false; then :
11916   $as_echo_n "(cached) " >&6
11917 else
11918   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11919    then ac_cv_path_EGREP="$GREP -E"
11920    else
11921      if test -z "$EGREP"; then
11922   ac_path_EGREP_found=false
11923   # Loop through the user's path and test for each of PROGNAME-LIST
11924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11926 do
11927   IFS=$as_save_IFS
11928   test -z "$as_dir" && as_dir=.
11929     for ac_prog in egrep; do
11930     for ac_exec_ext in '' $ac_executable_extensions; do
11931       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11932       as_fn_executable_p "$ac_path_EGREP" || continue
11933 # Check for GNU ac_path_EGREP and select it if it is found.
11934   # Check for GNU $ac_path_EGREP
11935 case `"$ac_path_EGREP" --version 2>&1` in
11936 *GNU*)
11937   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11938 *)
11939   ac_count=0
11940   $as_echo_n 0123456789 >"conftest.in"
11941   while :
11942   do
11943     cat "conftest.in" "conftest.in" >"conftest.tmp"
11944     mv "conftest.tmp" "conftest.in"
11945     cp "conftest.in" "conftest.nl"
11946     $as_echo 'EGREP' >> "conftest.nl"
11947     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11948     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11949     as_fn_arith $ac_count + 1 && ac_count=$as_val
11950     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11951       # Best one so far, save it but keep looking for a better one
11952       ac_cv_path_EGREP="$ac_path_EGREP"
11953       ac_path_EGREP_max=$ac_count
11954     fi
11955     # 10*(2^10) chars as input seems more than enough
11956     test $ac_count -gt 10 && break
11957   done
11958   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11959 esac
11960 
11961       $ac_path_EGREP_found && break 3
11962     done
11963   done
11964   done
11965 IFS=$as_save_IFS
11966   if test -z "$ac_cv_path_EGREP"; then
11967     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11968   fi
11969 else
11970   ac_cv_path_EGREP=$EGREP
11971 fi
11972 
11973    fi
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11976 $as_echo "$ac_cv_path_EGREP" >&6; }
11977  EGREP="$ac_cv_path_EGREP"
11978 
11979 
11980     else
11981       # If it succeeded, then it was overridden by the user. We will use it
11982       # for the tool.
11983 
11984       # First remove it from the list of overridden variables, so we can test
11985       # for unknown variables in the end.
11986       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11987 
11988       # Check if the provided tool contains a complete path.
11989       tool_specified="$EGREP"
11990       tool_basename="${tool_specified##*/}"
11991       if test "x$tool_basename" = "x$tool_specified"; then
11992         # A command without a complete path is provided, search $PATH.
11993         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11994 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11995         # Extract the first word of "$tool_basename", so it can be a program name with args.
11996 set dummy $tool_basename; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if ${ac_cv_path_EGREP+:} false; then :
12000   $as_echo_n "(cached) " >&6
12001 else
12002   case $EGREP in
12003   [\\/]* | ?:[\\/]*)
12004   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12005   ;;
12006   *)
12007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12009 do
12010   IFS=$as_save_IFS
12011   test -z "$as_dir" && as_dir=.
12012     for ac_exec_ext in '' $ac_executable_extensions; do
12013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016     break 2
12017   fi
12018 done
12019   done
12020 IFS=$as_save_IFS
12021 
12022   ;;
12023 esac
12024 fi
12025 EGREP=$ac_cv_path_EGREP
12026 if test -n "$EGREP"; then
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12028 $as_echo "$EGREP" >&6; }
12029 else
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033 
12034 
12035         if test "x$EGREP" = x; then
12036           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12037         fi
12038       else
12039         # Otherwise we believe it is a complete path. Use it as it is.
12040         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12041 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12042         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12043 $as_echo_n "checking for EGREP... " >&6; }
12044         if test ! -x "$tool_specified"; then
12045           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12046 $as_echo "not found" >&6; }
12047           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12048         fi
12049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12050 $as_echo "$tool_specified" >&6; }
12051       fi
12052     fi
12053   fi
12054 
12055 
12056   if test "x$EGREP" = x; then
12057     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12058   fi
12059 
12060 
12061 
12062 
12063   # Publish this variable in the help.
12064 
12065 
12066   if test "x$FGREP" = x; then
12067     # The variable is not set by user, try to locate tool using the code snippet
12068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12069 $as_echo_n "checking for fgrep... " >&6; }
12070 if ${ac_cv_path_FGREP+:} false; then :
12071   $as_echo_n "(cached) " >&6
12072 else
12073   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12074    then ac_cv_path_FGREP="$GREP -F"
12075    else
12076      if test -z "$FGREP"; then
12077   ac_path_FGREP_found=false
12078   # Loop through the user's path and test for each of PROGNAME-LIST
12079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12081 do
12082   IFS=$as_save_IFS
12083   test -z "$as_dir" && as_dir=.
12084     for ac_prog in fgrep; do
12085     for ac_exec_ext in '' $ac_executable_extensions; do
12086       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12087       as_fn_executable_p "$ac_path_FGREP" || continue
12088 # Check for GNU ac_path_FGREP and select it if it is found.
12089   # Check for GNU $ac_path_FGREP
12090 case `"$ac_path_FGREP" --version 2>&1` in
12091 *GNU*)
12092   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12093 *)
12094   ac_count=0
12095   $as_echo_n 0123456789 >"conftest.in"
12096   while :
12097   do
12098     cat "conftest.in" "conftest.in" >"conftest.tmp"
12099     mv "conftest.tmp" "conftest.in"
12100     cp "conftest.in" "conftest.nl"
12101     $as_echo 'FGREP' >> "conftest.nl"
12102     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12103     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12104     as_fn_arith $ac_count + 1 && ac_count=$as_val
12105     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12106       # Best one so far, save it but keep looking for a better one
12107       ac_cv_path_FGREP="$ac_path_FGREP"
12108       ac_path_FGREP_max=$ac_count
12109     fi
12110     # 10*(2^10) chars as input seems more than enough
12111     test $ac_count -gt 10 && break
12112   done
12113   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12114 esac
12115 
12116       $ac_path_FGREP_found && break 3
12117     done
12118   done
12119   done
12120 IFS=$as_save_IFS
12121   if test -z "$ac_cv_path_FGREP"; then
12122     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12123   fi
12124 else
12125   ac_cv_path_FGREP=$FGREP
12126 fi
12127 
12128    fi
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12131 $as_echo "$ac_cv_path_FGREP" >&6; }
12132  FGREP="$ac_cv_path_FGREP"
12133 
12134 
12135   else
12136     # The variable is set, but is it from the command line or the environment?
12137 
12138     # Try to remove the string !FGREP! from our list.
12139     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12140     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12141       # If it failed, the variable was not from the command line. Ignore it,
12142       # but warn the user (except for BASH, which is always set by the calling BASH).
12143       if test "xFGREP" != xBASH; then
12144         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12145 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12146       fi
12147       # Try to locate tool using the code snippet
12148       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12149 $as_echo_n "checking for fgrep... " >&6; }
12150 if ${ac_cv_path_FGREP+:} false; then :
12151   $as_echo_n "(cached) " >&6
12152 else
12153   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12154    then ac_cv_path_FGREP="$GREP -F"
12155    else
12156      if test -z "$FGREP"; then
12157   ac_path_FGREP_found=false
12158   # Loop through the user's path and test for each of PROGNAME-LIST
12159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12161 do
12162   IFS=$as_save_IFS
12163   test -z "$as_dir" && as_dir=.
12164     for ac_prog in fgrep; do
12165     for ac_exec_ext in '' $ac_executable_extensions; do
12166       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12167       as_fn_executable_p "$ac_path_FGREP" || continue
12168 # Check for GNU ac_path_FGREP and select it if it is found.
12169   # Check for GNU $ac_path_FGREP
12170 case `"$ac_path_FGREP" --version 2>&1` in
12171 *GNU*)
12172   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12173 *)
12174   ac_count=0
12175   $as_echo_n 0123456789 >"conftest.in"
12176   while :
12177   do
12178     cat "conftest.in" "conftest.in" >"conftest.tmp"
12179     mv "conftest.tmp" "conftest.in"
12180     cp "conftest.in" "conftest.nl"
12181     $as_echo 'FGREP' >> "conftest.nl"
12182     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12184     as_fn_arith $ac_count + 1 && ac_count=$as_val
12185     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12186       # Best one so far, save it but keep looking for a better one
12187       ac_cv_path_FGREP="$ac_path_FGREP"
12188       ac_path_FGREP_max=$ac_count
12189     fi
12190     # 10*(2^10) chars as input seems more than enough
12191     test $ac_count -gt 10 && break
12192   done
12193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12194 esac
12195 
12196       $ac_path_FGREP_found && break 3
12197     done
12198   done
12199   done
12200 IFS=$as_save_IFS
12201   if test -z "$ac_cv_path_FGREP"; then
12202     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12203   fi
12204 else
12205   ac_cv_path_FGREP=$FGREP
12206 fi
12207 
12208    fi
12209 fi
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12211 $as_echo "$ac_cv_path_FGREP" >&6; }
12212  FGREP="$ac_cv_path_FGREP"
12213 
12214 
12215     else
12216       # If it succeeded, then it was overridden by the user. We will use it
12217       # for the tool.
12218 
12219       # First remove it from the list of overridden variables, so we can test
12220       # for unknown variables in the end.
12221       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12222 
12223       # Check if the provided tool contains a complete path.
12224       tool_specified="$FGREP"
12225       tool_basename="${tool_specified##*/}"
12226       if test "x$tool_basename" = "x$tool_specified"; then
12227         # A command without a complete path is provided, search $PATH.
12228         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12229 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12230         # Extract the first word of "$tool_basename", so it can be a program name with args.
12231 set dummy $tool_basename; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if ${ac_cv_path_FGREP+:} false; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   case $FGREP in
12238   [\\/]* | ?:[\\/]*)
12239   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12240   ;;
12241   *)
12242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in $PATH
12244 do
12245   IFS=$as_save_IFS
12246   test -z "$as_dir" && as_dir=.
12247     for ac_exec_ext in '' $ac_executable_extensions; do
12248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251     break 2
12252   fi
12253 done
12254   done
12255 IFS=$as_save_IFS
12256 
12257   ;;
12258 esac
12259 fi
12260 FGREP=$ac_cv_path_FGREP
12261 if test -n "$FGREP"; then
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12263 $as_echo "$FGREP" >&6; }
12264 else
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268 
12269 
12270         if test "x$FGREP" = x; then
12271           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12272         fi
12273       else
12274         # Otherwise we believe it is a complete path. Use it as it is.
12275         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12276 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12278 $as_echo_n "checking for FGREP... " >&6; }
12279         if test ! -x "$tool_specified"; then
12280           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12281 $as_echo "not found" >&6; }
12282           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12283         fi
12284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12285 $as_echo "$tool_specified" >&6; }
12286       fi
12287     fi
12288   fi
12289 
12290 
12291   if test "x$FGREP" = x; then
12292     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12293   fi
12294 
12295 
12296 
12297 
12298   # Publish this variable in the help.
12299 
12300 
12301   if test "x$SED" = x; then
12302     # The variable is not set by user, try to locate tool using the code snippet
12303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12304 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12305 if ${ac_cv_path_SED+:} false; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12309      for ac_i in 1 2 3 4 5 6 7; do
12310        ac_script="$ac_script$as_nl$ac_script"
12311      done
12312      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12313      { ac_script=; unset ac_script;}
12314      if test -z "$SED"; then
12315   ac_path_SED_found=false
12316   # Loop through the user's path and test for each of PROGNAME-LIST
12317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12319 do
12320   IFS=$as_save_IFS
12321   test -z "$as_dir" && as_dir=.
12322     for ac_prog in sed gsed; do
12323     for ac_exec_ext in '' $ac_executable_extensions; do
12324       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12325       as_fn_executable_p "$ac_path_SED" || continue
12326 # Check for GNU ac_path_SED and select it if it is found.
12327   # Check for GNU $ac_path_SED
12328 case `"$ac_path_SED" --version 2>&1` in
12329 *GNU*)
12330   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12331 *)
12332   ac_count=0
12333   $as_echo_n 0123456789 >"conftest.in"
12334   while :
12335   do
12336     cat "conftest.in" "conftest.in" >"conftest.tmp"
12337     mv "conftest.tmp" "conftest.in"
12338     cp "conftest.in" "conftest.nl"
12339     $as_echo '' >> "conftest.nl"
12340     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12341     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12342     as_fn_arith $ac_count + 1 && ac_count=$as_val
12343     if test $ac_count -gt ${ac_path_SED_max-0}; then
12344       # Best one so far, save it but keep looking for a better one
12345       ac_cv_path_SED="$ac_path_SED"
12346       ac_path_SED_max=$ac_count
12347     fi
12348     # 10*(2^10) chars as input seems more than enough
12349     test $ac_count -gt 10 && break
12350   done
12351   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12352 esac
12353 
12354       $ac_path_SED_found && break 3
12355     done
12356   done
12357   done
12358 IFS=$as_save_IFS
12359   if test -z "$ac_cv_path_SED"; then
12360     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12361   fi
12362 else
12363   ac_cv_path_SED=$SED
12364 fi
12365 
12366 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12368 $as_echo "$ac_cv_path_SED" >&6; }
12369  SED="$ac_cv_path_SED"
12370   rm -f conftest.sed
12371 
12372   else
12373     # The variable is set, but is it from the command line or the environment?
12374 
12375     # Try to remove the string !SED! from our list.
12376     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12377     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12378       # If it failed, the variable was not from the command line. Ignore it,
12379       # but warn the user (except for BASH, which is always set by the calling BASH).
12380       if test "xSED" != xBASH; then
12381         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12382 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12383       fi
12384       # Try to locate tool using the code snippet
12385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12386 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12387 if ${ac_cv_path_SED+:} false; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12391      for ac_i in 1 2 3 4 5 6 7; do
12392        ac_script="$ac_script$as_nl$ac_script"
12393      done
12394      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12395      { ac_script=; unset ac_script;}
12396      if test -z "$SED"; then
12397   ac_path_SED_found=false
12398   # Loop through the user's path and test for each of PROGNAME-LIST
12399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404     for ac_prog in sed gsed; do
12405     for ac_exec_ext in '' $ac_executable_extensions; do
12406       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12407       as_fn_executable_p "$ac_path_SED" || continue
12408 # Check for GNU ac_path_SED and select it if it is found.
12409   # Check for GNU $ac_path_SED
12410 case `"$ac_path_SED" --version 2>&1` in
12411 *GNU*)
12412   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12413 *)
12414   ac_count=0
12415   $as_echo_n 0123456789 >"conftest.in"
12416   while :
12417   do
12418     cat "conftest.in" "conftest.in" >"conftest.tmp"
12419     mv "conftest.tmp" "conftest.in"
12420     cp "conftest.in" "conftest.nl"
12421     $as_echo '' >> "conftest.nl"
12422     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12423     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12424     as_fn_arith $ac_count + 1 && ac_count=$as_val
12425     if test $ac_count -gt ${ac_path_SED_max-0}; then
12426       # Best one so far, save it but keep looking for a better one
12427       ac_cv_path_SED="$ac_path_SED"
12428       ac_path_SED_max=$ac_count
12429     fi
12430     # 10*(2^10) chars as input seems more than enough
12431     test $ac_count -gt 10 && break
12432   done
12433   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12434 esac
12435 
12436       $ac_path_SED_found && break 3
12437     done
12438   done
12439   done
12440 IFS=$as_save_IFS
12441   if test -z "$ac_cv_path_SED"; then
12442     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12443   fi
12444 else
12445   ac_cv_path_SED=$SED
12446 fi
12447 
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12450 $as_echo "$ac_cv_path_SED" >&6; }
12451  SED="$ac_cv_path_SED"
12452   rm -f conftest.sed
12453 
12454     else
12455       # If it succeeded, then it was overridden by the user. We will use it
12456       # for the tool.
12457 
12458       # First remove it from the list of overridden variables, so we can test
12459       # for unknown variables in the end.
12460       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12461 
12462       # Check if the provided tool contains a complete path.
12463       tool_specified="$SED"
12464       tool_basename="${tool_specified##*/}"
12465       if test "x$tool_basename" = "x$tool_specified"; then
12466         # A command without a complete path is provided, search $PATH.
12467         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12468 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12469         # Extract the first word of "$tool_basename", so it can be a program name with args.
12470 set dummy $tool_basename; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if ${ac_cv_path_SED+:} false; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   case $SED in
12477   [\\/]* | ?:[\\/]*)
12478   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12479   ;;
12480   *)
12481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12483 do
12484   IFS=$as_save_IFS
12485   test -z "$as_dir" && as_dir=.
12486     for ac_exec_ext in '' $ac_executable_extensions; do
12487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490     break 2
12491   fi
12492 done
12493   done
12494 IFS=$as_save_IFS
12495 
12496   ;;
12497 esac
12498 fi
12499 SED=$ac_cv_path_SED
12500 if test -n "$SED"; then
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12502 $as_echo "$SED" >&6; }
12503 else
12504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12506 fi
12507 
12508 
12509         if test "x$SED" = x; then
12510           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12511         fi
12512       else
12513         # Otherwise we believe it is a complete path. Use it as it is.
12514         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12515 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12516         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12517 $as_echo_n "checking for SED... " >&6; }
12518         if test ! -x "$tool_specified"; then
12519           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12520 $as_echo "not found" >&6; }
12521           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12522         fi
12523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12524 $as_echo "$tool_specified" >&6; }
12525       fi
12526     fi
12527   fi
12528 
12529 
12530   if test "x$SED" = x; then
12531     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12532   fi
12533 
12534 
12535 
12536   # Always force rm.
12537   RM="$RM -f"
12538 
12539   # pwd behaves differently on various platforms and some don't support the -L flag.
12540   # Always use the bash builtin pwd to get uniform behavior.
12541   THEPWDCMD=pwd
12542 
12543   # These are not required on all platforms
12544 
12545 
12546   # Publish this variable in the help.
12547 
12548 
12549   if test "x$CYGPATH" = x; then
12550     # The variable is not set by user, try to locate tool using the code snippet
12551     for ac_prog in cygpath
12552 do
12553   # Extract the first word of "$ac_prog", so it can be a program name with args.
12554 set dummy $ac_prog; ac_word=$2
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556 $as_echo_n "checking for $ac_word... " >&6; }
12557 if ${ac_cv_path_CYGPATH+:} false; then :
12558   $as_echo_n "(cached) " >&6
12559 else
12560   case $CYGPATH in
12561   [\\/]* | ?:[\\/]*)
12562   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12563   ;;
12564   *)
12565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12567 do
12568   IFS=$as_save_IFS
12569   test -z "$as_dir" && as_dir=.
12570     for ac_exec_ext in '' $ac_executable_extensions; do
12571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12572     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574     break 2
12575   fi
12576 done
12577   done
12578 IFS=$as_save_IFS
12579 
12580   ;;
12581 esac
12582 fi
12583 CYGPATH=$ac_cv_path_CYGPATH
12584 if test -n "$CYGPATH"; then
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12586 $as_echo "$CYGPATH" >&6; }
12587 else
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12590 fi
12591 
12592 
12593   test -n "$CYGPATH" && break
12594 done
12595 
12596   else
12597     # The variable is set, but is it from the command line or the environment?
12598 
12599     # Try to remove the string !CYGPATH! from our list.
12600     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12601     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12602       # If it failed, the variable was not from the command line. Ignore it,
12603       # but warn the user (except for BASH, which is always set by the calling BASH).
12604       if test "xCYGPATH" != xBASH; then
12605         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12606 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12607       fi
12608       # Try to locate tool using the code snippet
12609       for ac_prog in cygpath
12610 do
12611   # Extract the first word of "$ac_prog", so it can be a program name with args.
12612 set dummy $ac_prog; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if ${ac_cv_path_CYGPATH+:} false; then :
12616   $as_echo_n "(cached) " >&6
12617 else
12618   case $CYGPATH in
12619   [\\/]* | ?:[\\/]*)
12620   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12621   ;;
12622   *)
12623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12625 do
12626   IFS=$as_save_IFS
12627   test -z "$as_dir" && as_dir=.
12628     for ac_exec_ext in '' $ac_executable_extensions; do
12629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12630     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632     break 2
12633   fi
12634 done
12635   done
12636 IFS=$as_save_IFS
12637 
12638   ;;
12639 esac
12640 fi
12641 CYGPATH=$ac_cv_path_CYGPATH
12642 if test -n "$CYGPATH"; then
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12644 $as_echo "$CYGPATH" >&6; }
12645 else
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649 
12650 
12651   test -n "$CYGPATH" && break
12652 done
12653 
12654     else
12655       # If it succeeded, then it was overridden by the user. We will use it
12656       # for the tool.
12657 
12658       # First remove it from the list of overridden variables, so we can test
12659       # for unknown variables in the end.
12660       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12661 
12662       # Check if the provided tool contains a complete path.
12663       tool_specified="$CYGPATH"
12664       tool_basename="${tool_specified##*/}"
12665       if test "x$tool_basename" = "x$tool_specified"; then
12666         # A command without a complete path is provided, search $PATH.
12667         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12668 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12669         # Extract the first word of "$tool_basename", so it can be a program name with args.
12670 set dummy $tool_basename; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if ${ac_cv_path_CYGPATH+:} false; then :
12674   $as_echo_n "(cached) " >&6
12675 else
12676   case $CYGPATH in
12677   [\\/]* | ?:[\\/]*)
12678   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12679   ;;
12680   *)
12681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12683 do
12684   IFS=$as_save_IFS
12685   test -z "$as_dir" && as_dir=.
12686     for ac_exec_ext in '' $ac_executable_extensions; do
12687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12688     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690     break 2
12691   fi
12692 done
12693   done
12694 IFS=$as_save_IFS
12695 
12696   ;;
12697 esac
12698 fi
12699 CYGPATH=$ac_cv_path_CYGPATH
12700 if test -n "$CYGPATH"; then
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12702 $as_echo "$CYGPATH" >&6; }
12703 else
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 fi
12707 
12708 
12709         if test "x$CYGPATH" = x; then
12710           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12711         fi
12712       else
12713         # Otherwise we believe it is a complete path. Use it as it is.
12714         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12715 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12716         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12717 $as_echo_n "checking for CYGPATH... " >&6; }
12718         if test ! -x "$tool_specified"; then
12719           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12720 $as_echo "not found" >&6; }
12721           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12722         fi
12723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12724 $as_echo "$tool_specified" >&6; }
12725       fi
12726     fi
12727   fi
12728 
12729 
12730 
12731 
12732   # Publish this variable in the help.
12733 
12734 
12735   if test "x$READLINK" = x; then
12736     # The variable is not set by user, try to locate tool using the code snippet
12737     for ac_prog in greadlink readlink
12738 do
12739   # Extract the first word of "$ac_prog", so it can be a program name with args.
12740 set dummy $ac_prog; ac_word=$2
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12742 $as_echo_n "checking for $ac_word... " >&6; }
12743 if ${ac_cv_path_READLINK+:} false; then :
12744   $as_echo_n "(cached) " >&6
12745 else
12746   case $READLINK in
12747   [\\/]* | ?:[\\/]*)
12748   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12749   ;;
12750   *)
12751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12752 for as_dir in $PATH
12753 do
12754   IFS=$as_save_IFS
12755   test -z "$as_dir" && as_dir=.
12756     for ac_exec_ext in '' $ac_executable_extensions; do
12757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12758     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12760     break 2
12761   fi
12762 done
12763   done
12764 IFS=$as_save_IFS
12765 
12766   ;;
12767 esac
12768 fi
12769 READLINK=$ac_cv_path_READLINK
12770 if test -n "$READLINK"; then
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12772 $as_echo "$READLINK" >&6; }
12773 else
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776 fi
12777 
12778 
12779   test -n "$READLINK" && break
12780 done
12781 
12782   else
12783     # The variable is set, but is it from the command line or the environment?
12784 
12785     # Try to remove the string !READLINK! from our list.
12786     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12787     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12788       # If it failed, the variable was not from the command line. Ignore it,
12789       # but warn the user (except for BASH, which is always set by the calling BASH).
12790       if test "xREADLINK" != xBASH; then
12791         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12792 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12793       fi
12794       # Try to locate tool using the code snippet
12795       for ac_prog in greadlink readlink
12796 do
12797   # Extract the first word of "$ac_prog", so it can be a program name with args.
12798 set dummy $ac_prog; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if ${ac_cv_path_READLINK+:} false; then :
12802   $as_echo_n "(cached) " >&6
12803 else
12804   case $READLINK in
12805   [\\/]* | ?:[\\/]*)
12806   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12807   ;;
12808   *)
12809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12811 do
12812   IFS=$as_save_IFS
12813   test -z "$as_dir" && as_dir=.
12814     for ac_exec_ext in '' $ac_executable_extensions; do
12815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12816     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818     break 2
12819   fi
12820 done
12821   done
12822 IFS=$as_save_IFS
12823 
12824   ;;
12825 esac
12826 fi
12827 READLINK=$ac_cv_path_READLINK
12828 if test -n "$READLINK"; then
12829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12830 $as_echo "$READLINK" >&6; }
12831 else
12832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12834 fi
12835 
12836 
12837   test -n "$READLINK" && break
12838 done
12839 
12840     else
12841       # If it succeeded, then it was overridden by the user. We will use it
12842       # for the tool.
12843 
12844       # First remove it from the list of overridden variables, so we can test
12845       # for unknown variables in the end.
12846       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12847 
12848       # Check if the provided tool contains a complete path.
12849       tool_specified="$READLINK"
12850       tool_basename="${tool_specified##*/}"
12851       if test "x$tool_basename" = "x$tool_specified"; then
12852         # A command without a complete path is provided, search $PATH.
12853         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12854 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12855         # Extract the first word of "$tool_basename", so it can be a program name with args.
12856 set dummy $tool_basename; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 $as_echo_n "checking for $ac_word... " >&6; }
12859 if ${ac_cv_path_READLINK+:} false; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   case $READLINK in
12863   [\\/]* | ?:[\\/]*)
12864   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12865   ;;
12866   *)
12867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870   IFS=$as_save_IFS
12871   test -z "$as_dir" && as_dir=.
12872     for ac_exec_ext in '' $ac_executable_extensions; do
12873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876     break 2
12877   fi
12878 done
12879   done
12880 IFS=$as_save_IFS
12881 
12882   ;;
12883 esac
12884 fi
12885 READLINK=$ac_cv_path_READLINK
12886 if test -n "$READLINK"; then
12887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12888 $as_echo "$READLINK" >&6; }
12889 else
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891 $as_echo "no" >&6; }
12892 fi
12893 
12894 
12895         if test "x$READLINK" = x; then
12896           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12897         fi
12898       else
12899         # Otherwise we believe it is a complete path. Use it as it is.
12900         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12901 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12903 $as_echo_n "checking for READLINK... " >&6; }
12904         if test ! -x "$tool_specified"; then
12905           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12906 $as_echo "not found" >&6; }
12907           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12908         fi
12909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12910 $as_echo "$tool_specified" >&6; }
12911       fi
12912     fi
12913   fi
12914 
12915 
12916 
12917 
12918   # Publish this variable in the help.
12919 
12920 
12921   if test "x$DF" = x; then
12922     # The variable is not set by user, try to locate tool using the code snippet
12923     for ac_prog in df
12924 do
12925   # Extract the first word of "$ac_prog", so it can be a program name with args.
12926 set dummy $ac_prog; ac_word=$2
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928 $as_echo_n "checking for $ac_word... " >&6; }
12929 if ${ac_cv_path_DF+:} false; then :
12930   $as_echo_n "(cached) " >&6
12931 else
12932   case $DF in
12933   [\\/]* | ?:[\\/]*)
12934   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12935   ;;
12936   *)
12937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938 for as_dir in $PATH
12939 do
12940   IFS=$as_save_IFS
12941   test -z "$as_dir" && as_dir=.
12942     for ac_exec_ext in '' $ac_executable_extensions; do
12943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12944     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946     break 2
12947   fi
12948 done
12949   done
12950 IFS=$as_save_IFS
12951 
12952   ;;
12953 esac
12954 fi
12955 DF=$ac_cv_path_DF
12956 if test -n "$DF"; then
12957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12958 $as_echo "$DF" >&6; }
12959 else
12960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12962 fi
12963 
12964 
12965   test -n "$DF" && break
12966 done
12967 
12968   else
12969     # The variable is set, but is it from the command line or the environment?
12970 
12971     # Try to remove the string !DF! from our list.
12972     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12973     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12974       # If it failed, the variable was not from the command line. Ignore it,
12975       # but warn the user (except for BASH, which is always set by the calling BASH).
12976       if test "xDF" != xBASH; then
12977         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12978 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12979       fi
12980       # Try to locate tool using the code snippet
12981       for ac_prog in df
12982 do
12983   # Extract the first word of "$ac_prog", so it can be a program name with args.
12984 set dummy $ac_prog; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if ${ac_cv_path_DF+:} false; then :
12988   $as_echo_n "(cached) " >&6
12989 else
12990   case $DF in
12991   [\\/]* | ?:[\\/]*)
12992   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12993   ;;
12994   *)
12995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12997 do
12998   IFS=$as_save_IFS
12999   test -z "$as_dir" && as_dir=.
13000     for ac_exec_ext in '' $ac_executable_extensions; do
13001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13002     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004     break 2
13005   fi
13006 done
13007   done
13008 IFS=$as_save_IFS
13009 
13010   ;;
13011 esac
13012 fi
13013 DF=$ac_cv_path_DF
13014 if test -n "$DF"; then
13015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13016 $as_echo "$DF" >&6; }
13017 else
13018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13020 fi
13021 
13022 
13023   test -n "$DF" && break
13024 done
13025 
13026     else
13027       # If it succeeded, then it was overridden by the user. We will use it
13028       # for the tool.
13029 
13030       # First remove it from the list of overridden variables, so we can test
13031       # for unknown variables in the end.
13032       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13033 
13034       # Check if the provided tool contains a complete path.
13035       tool_specified="$DF"
13036       tool_basename="${tool_specified##*/}"
13037       if test "x$tool_basename" = "x$tool_specified"; then
13038         # A command without a complete path is provided, search $PATH.
13039         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13040 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13041         # Extract the first word of "$tool_basename", so it can be a program name with args.
13042 set dummy $tool_basename; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if ${ac_cv_path_DF+:} false; then :
13046   $as_echo_n "(cached) " >&6
13047 else
13048   case $DF in
13049   [\\/]* | ?:[\\/]*)
13050   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13051   ;;
13052   *)
13053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13055 do
13056   IFS=$as_save_IFS
13057   test -z "$as_dir" && as_dir=.
13058     for ac_exec_ext in '' $ac_executable_extensions; do
13059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13060     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062     break 2
13063   fi
13064 done
13065   done
13066 IFS=$as_save_IFS
13067 
13068   ;;
13069 esac
13070 fi
13071 DF=$ac_cv_path_DF
13072 if test -n "$DF"; then
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13074 $as_echo "$DF" >&6; }
13075 else
13076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 fi
13079 
13080 
13081         if test "x$DF" = x; then
13082           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13083         fi
13084       else
13085         # Otherwise we believe it is a complete path. Use it as it is.
13086         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13087 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13089 $as_echo_n "checking for DF... " >&6; }
13090         if test ! -x "$tool_specified"; then
13091           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13092 $as_echo "not found" >&6; }
13093           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13094         fi
13095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13096 $as_echo "$tool_specified" >&6; }
13097       fi
13098     fi
13099   fi
13100 
13101 
13102 
13103 
13104   # Publish this variable in the help.
13105 
13106 
13107   if test "x$SETFILE" = x; then
13108     # The variable is not set by user, try to locate tool using the code snippet
13109     for ac_prog in SetFile
13110 do
13111   # Extract the first word of "$ac_prog", so it can be a program name with args.
13112 set dummy $ac_prog; ac_word=$2
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114 $as_echo_n "checking for $ac_word... " >&6; }
13115 if ${ac_cv_path_SETFILE+:} false; then :
13116   $as_echo_n "(cached) " >&6
13117 else
13118   case $SETFILE in
13119   [\\/]* | ?:[\\/]*)
13120   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13121   ;;
13122   *)
13123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13125 do
13126   IFS=$as_save_IFS
13127   test -z "$as_dir" && as_dir=.
13128     for ac_exec_ext in '' $ac_executable_extensions; do
13129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13130     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13132     break 2
13133   fi
13134 done
13135   done
13136 IFS=$as_save_IFS
13137 
13138   ;;
13139 esac
13140 fi
13141 SETFILE=$ac_cv_path_SETFILE
13142 if test -n "$SETFILE"; then
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13144 $as_echo "$SETFILE" >&6; }
13145 else
13146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148 fi
13149 
13150 
13151   test -n "$SETFILE" && break
13152 done
13153 
13154   else
13155     # The variable is set, but is it from the command line or the environment?
13156 
13157     # Try to remove the string !SETFILE! from our list.
13158     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13159     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13160       # If it failed, the variable was not from the command line. Ignore it,
13161       # but warn the user (except for BASH, which is always set by the calling BASH).
13162       if test "xSETFILE" != xBASH; then
13163         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13164 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13165       fi
13166       # Try to locate tool using the code snippet
13167       for ac_prog in SetFile
13168 do
13169   # Extract the first word of "$ac_prog", so it can be a program name with args.
13170 set dummy $ac_prog; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if ${ac_cv_path_SETFILE+:} false; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176   case $SETFILE in
13177   [\\/]* | ?:[\\/]*)
13178   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13179   ;;
13180   *)
13181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13183 do
13184   IFS=$as_save_IFS
13185   test -z "$as_dir" && as_dir=.
13186     for ac_exec_ext in '' $ac_executable_extensions; do
13187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13188     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190     break 2
13191   fi
13192 done
13193   done
13194 IFS=$as_save_IFS
13195 
13196   ;;
13197 esac
13198 fi
13199 SETFILE=$ac_cv_path_SETFILE
13200 if test -n "$SETFILE"; then
13201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13202 $as_echo "$SETFILE" >&6; }
13203 else
13204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13206 fi
13207 
13208 
13209   test -n "$SETFILE" && break
13210 done
13211 
13212     else
13213       # If it succeeded, then it was overridden by the user. We will use it
13214       # for the tool.
13215 
13216       # First remove it from the list of overridden variables, so we can test
13217       # for unknown variables in the end.
13218       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13219 
13220       # Check if the provided tool contains a complete path.
13221       tool_specified="$SETFILE"
13222       tool_basename="${tool_specified##*/}"
13223       if test "x$tool_basename" = "x$tool_specified"; then
13224         # A command without a complete path is provided, search $PATH.
13225         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13226 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13227         # Extract the first word of "$tool_basename", so it can be a program name with args.
13228 set dummy $tool_basename; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if ${ac_cv_path_SETFILE+:} false; then :
13232   $as_echo_n "(cached) " >&6
13233 else
13234   case $SETFILE in
13235   [\\/]* | ?:[\\/]*)
13236   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13237   ;;
13238   *)
13239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13241 do
13242   IFS=$as_save_IFS
13243   test -z "$as_dir" && as_dir=.
13244     for ac_exec_ext in '' $ac_executable_extensions; do
13245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13246     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248     break 2
13249   fi
13250 done
13251   done
13252 IFS=$as_save_IFS
13253 
13254   ;;
13255 esac
13256 fi
13257 SETFILE=$ac_cv_path_SETFILE
13258 if test -n "$SETFILE"; then
13259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13260 $as_echo "$SETFILE" >&6; }
13261 else
13262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264 fi
13265 
13266 
13267         if test "x$SETFILE" = x; then
13268           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13269         fi
13270       else
13271         # Otherwise we believe it is a complete path. Use it as it is.
13272         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13273 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13275 $as_echo_n "checking for SETFILE... " >&6; }
13276         if test ! -x "$tool_specified"; then
13277           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13278 $as_echo "not found" >&6; }
13279           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13280         fi
13281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13282 $as_echo "$tool_specified" >&6; }
13283       fi
13284     fi
13285   fi
13286 
13287 
13288 
13289 
13290 # Now we can determine OpenJDK build and target platforms. This is required to
13291 # have early on.
13292 # Make sure we can run config.sub.
13293 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13294   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13295 
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13297 $as_echo_n "checking build system type... " >&6; }
13298 if ${ac_cv_build+:} false; then :
13299   $as_echo_n "(cached) " >&6
13300 else
13301   ac_build_alias=$build_alias
13302 test "x$ac_build_alias" = x &&
13303   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13304 test "x$ac_build_alias" = x &&
13305   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13306 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13307   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13308 
13309 fi
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13311 $as_echo "$ac_cv_build" >&6; }
13312 case $ac_cv_build in
13313 *-*-*) ;;
13314 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13315 esac
13316 build=$ac_cv_build
13317 ac_save_IFS=$IFS; IFS='-'
13318 set x $ac_cv_build
13319 shift
13320 build_cpu=$1
13321 build_vendor=$2
13322 shift; shift
13323 # Remember, the first character of IFS is used to create $*,
13324 # except with old shells:
13325 build_os=$*
13326 IFS=$ac_save_IFS
13327 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13328 
13329 
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13331 $as_echo_n "checking host system type... " >&6; }
13332 if ${ac_cv_host+:} false; then :
13333   $as_echo_n "(cached) " >&6
13334 else
13335   if test "x$host_alias" = x; then
13336   ac_cv_host=$ac_cv_build
13337 else
13338   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13339     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13340 fi
13341 
13342 fi
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13344 $as_echo "$ac_cv_host" >&6; }
13345 case $ac_cv_host in
13346 *-*-*) ;;
13347 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13348 esac
13349 host=$ac_cv_host
13350 ac_save_IFS=$IFS; IFS='-'
13351 set x $ac_cv_host
13352 shift
13353 host_cpu=$1
13354 host_vendor=$2
13355 shift; shift
13356 # Remember, the first character of IFS is used to create $*,
13357 # except with old shells:
13358 host_os=$*
13359 IFS=$ac_save_IFS
13360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13361 
13362 
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13364 $as_echo_n "checking target system type... " >&6; }
13365 if ${ac_cv_target+:} false; then :
13366   $as_echo_n "(cached) " >&6
13367 else
13368   if test "x$target_alias" = x; then
13369   ac_cv_target=$ac_cv_host
13370 else
13371   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13372     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13373 fi
13374 
13375 fi
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13377 $as_echo "$ac_cv_target" >&6; }
13378 case $ac_cv_target in
13379 *-*-*) ;;
13380 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13381 esac
13382 target=$ac_cv_target
13383 ac_save_IFS=$IFS; IFS='-'
13384 set x $ac_cv_target
13385 shift
13386 target_cpu=$1
13387 target_vendor=$2
13388 shift; shift
13389 # Remember, the first character of IFS is used to create $*,
13390 # except with old shells:
13391 target_os=$*
13392 IFS=$ac_save_IFS
13393 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13394 
13395 
13396 # The aliases save the names the user supplied, while $host etc.
13397 # will get canonicalized.
13398 test -n "$target_alias" &&
13399   test "$program_prefix$program_suffix$program_transform_name" = \
13400     NONENONEs,x,x, &&
13401   program_prefix=${target_alias}-
13402 
13403   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13404   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13405   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13406   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13407   # to use the configure naming style.
13408 
13409 
13410 
13411 
13412 
13413   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13414   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13415   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13416   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13417   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13418   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13419 
13420 
13421 
13422   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13423 
13424   case "$build_os" in
13425     *linux*)
13426       VAR_OS=linux
13427       VAR_OS_API=posix
13428       VAR_OS_ENV=linux
13429       ;;
13430     *solaris*)
13431       VAR_OS=solaris
13432       VAR_OS_API=posix
13433       VAR_OS_ENV=solaris
13434       ;;
13435     *darwin*)
13436       VAR_OS=macosx
13437       VAR_OS_API=posix
13438       VAR_OS_ENV=macosx
13439       ;;
13440     *bsd*)
13441       VAR_OS=bsd
13442       VAR_OS_API=posix
13443       VAR_OS_ENV=bsd
13444       ;;
13445     *cygwin*)
13446       VAR_OS=windows
13447       VAR_OS_API=winapi
13448       VAR_OS_ENV=windows.cygwin
13449       ;;
13450     *mingw*)
13451       VAR_OS=windows
13452       VAR_OS_API=winapi
13453       VAR_OS_ENV=windows.msys
13454       ;;
13455     *aix*)
13456       VAR_OS=aix
13457       VAR_OS_API=posix
13458       VAR_OS_ENV=aix
13459       ;;
13460     *)
13461       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13462       ;;
13463   esac
13464 
13465 
13466   # First argument is the cpu name from the trip/quad
13467   case "$build_cpu" in
13468     x86_64)
13469       VAR_CPU=x86_64
13470       VAR_CPU_ARCH=x86
13471       VAR_CPU_BITS=64
13472       VAR_CPU_ENDIAN=little
13473       ;;
13474     i?86)
13475       VAR_CPU=x86
13476       VAR_CPU_ARCH=x86
13477       VAR_CPU_BITS=32
13478       VAR_CPU_ENDIAN=little
13479       ;;
13480     arm*)
13481       VAR_CPU=arm
13482       VAR_CPU_ARCH=arm
13483       VAR_CPU_BITS=32
13484       VAR_CPU_ENDIAN=little
13485       ;;
13486     powerpc)
13487       VAR_CPU=ppc
13488       VAR_CPU_ARCH=ppc
13489       VAR_CPU_BITS=32
13490       VAR_CPU_ENDIAN=big
13491       ;;
13492     powerpc64)
13493       VAR_CPU=ppc64
13494       VAR_CPU_ARCH=ppc
13495       VAR_CPU_BITS=64
13496       VAR_CPU_ENDIAN=big
13497       ;;
13498     s390)
13499       VAR_CPU=s390
13500       VAR_CPU_ARCH=s390
13501       VAR_CPU_BITS=32
13502       VAR_CPU_ENDIAN=big
13503       ;;
13504     s390x)
13505       VAR_CPU=s390x
13506       VAR_CPU_ARCH=s390
13507       VAR_CPU_BITS=64
13508       VAR_CPU_ENDIAN=big
13509       ;;
13510     sparc)
13511       VAR_CPU=sparc
13512       VAR_CPU_ARCH=sparc
13513       VAR_CPU_BITS=32
13514       VAR_CPU_ENDIAN=big
13515       ;;
13516     sparcv9)
13517       VAR_CPU=sparcv9
13518       VAR_CPU_ARCH=sparc
13519       VAR_CPU_BITS=64
13520       VAR_CPU_ENDIAN=big
13521       ;;
13522     *)
13523       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13524       ;;
13525   esac
13526 
13527   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13528   OPENJDK_BUILD_OS="$VAR_OS"
13529   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13530   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13531   OPENJDK_BUILD_CPU="$VAR_CPU"
13532   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13533   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13534   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13535 
13536 
13537 
13538 
13539 
13540 
13541 
13542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13543 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13545 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13546 
13547   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13548 
13549   case "$host_os" in
13550     *linux*)
13551       VAR_OS=linux
13552       VAR_OS_API=posix
13553       VAR_OS_ENV=linux
13554       ;;
13555     *solaris*)
13556       VAR_OS=solaris
13557       VAR_OS_API=posix
13558       VAR_OS_ENV=solaris
13559       ;;
13560     *darwin*)
13561       VAR_OS=macosx
13562       VAR_OS_API=posix
13563       VAR_OS_ENV=macosx
13564       ;;
13565     *bsd*)
13566       VAR_OS=bsd
13567       VAR_OS_API=posix
13568       VAR_OS_ENV=bsd
13569       ;;
13570     *cygwin*)
13571       VAR_OS=windows
13572       VAR_OS_API=winapi
13573       VAR_OS_ENV=windows.cygwin
13574       ;;
13575     *mingw*)
13576       VAR_OS=windows
13577       VAR_OS_API=winapi
13578       VAR_OS_ENV=windows.msys
13579       ;;
13580     *aix*)
13581       VAR_OS=aix
13582       VAR_OS_API=posix
13583       VAR_OS_ENV=aix
13584       ;;
13585     *)
13586       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13587       ;;
13588   esac
13589 
13590 
13591   # First argument is the cpu name from the trip/quad
13592   case "$host_cpu" in
13593     x86_64)
13594       VAR_CPU=x86_64
13595       VAR_CPU_ARCH=x86
13596       VAR_CPU_BITS=64
13597       VAR_CPU_ENDIAN=little
13598       ;;
13599     i?86)
13600       VAR_CPU=x86
13601       VAR_CPU_ARCH=x86
13602       VAR_CPU_BITS=32
13603       VAR_CPU_ENDIAN=little
13604       ;;
13605     arm*)
13606       VAR_CPU=arm
13607       VAR_CPU_ARCH=arm
13608       VAR_CPU_BITS=32
13609       VAR_CPU_ENDIAN=little
13610       ;;
13611     powerpc)
13612       VAR_CPU=ppc
13613       VAR_CPU_ARCH=ppc
13614       VAR_CPU_BITS=32
13615       VAR_CPU_ENDIAN=big
13616       ;;
13617     powerpc64)
13618       VAR_CPU=ppc64
13619       VAR_CPU_ARCH=ppc
13620       VAR_CPU_BITS=64
13621       VAR_CPU_ENDIAN=big
13622       ;;
13623     s390)
13624       VAR_CPU=s390
13625       VAR_CPU_ARCH=s390
13626       VAR_CPU_BITS=32
13627       VAR_CPU_ENDIAN=big
13628       ;;
13629     s390x)
13630       VAR_CPU=s390x
13631       VAR_CPU_ARCH=s390
13632       VAR_CPU_BITS=64
13633       VAR_CPU_ENDIAN=big
13634       ;;
13635     sparc)
13636       VAR_CPU=sparc
13637       VAR_CPU_ARCH=sparc
13638       VAR_CPU_BITS=32
13639       VAR_CPU_ENDIAN=big
13640       ;;
13641     sparcv9)
13642       VAR_CPU=sparcv9
13643       VAR_CPU_ARCH=sparc
13644       VAR_CPU_BITS=64
13645       VAR_CPU_ENDIAN=big
13646       ;;
13647     *)
13648       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13649       ;;
13650   esac
13651 
13652   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13653   OPENJDK_TARGET_OS="$VAR_OS"
13654   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13655   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13656   OPENJDK_TARGET_CPU="$VAR_CPU"
13657   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13658   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13659   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13660 
13661 
13662 
13663 
13664 
13665 
13666 
13667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13668 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13670 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13671 
13672 
13673 
13674 # Check whether --with-target-bits was given.
13675 if test "${with_target_bits+set}" = set; then :
13676   withval=$with_target_bits;
13677 fi
13678 
13679 
13680   # We have three types of compiles:
13681   # native  == normal compilation, target system == build system
13682   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13683   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13684   #
13685   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13686     # We're doing a proper cross-compilation
13687     COMPILE_TYPE="cross"
13688   else
13689     COMPILE_TYPE="native"
13690   fi
13691 
13692   if test "x$with_target_bits" != x; then
13693     if test "x$COMPILE_TYPE" = "xcross"; then
13694       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13695     fi
13696 
13697     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13698       # A reduced build is requested
13699       COMPILE_TYPE="reduced"
13700       OPENJDK_TARGET_CPU_BITS=32
13701       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13702         OPENJDK_TARGET_CPU=x86
13703       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13704         OPENJDK_TARGET_CPU=sparc
13705       else
13706         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13707       fi
13708     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13709       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
13710     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13711       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13712 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13713     else
13714       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13715     fi
13716   fi
13717 
13718 
13719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13720 $as_echo_n "checking compilation type... " >&6; }
13721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13722 $as_echo "$COMPILE_TYPE" >&6; }
13723 
13724 
13725   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13726     REQUIRED_OS_NAME=SunOS
13727     REQUIRED_OS_VERSION=5.10
13728   fi
13729   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13730     REQUIRED_OS_NAME=Linux
13731     REQUIRED_OS_VERSION=2.6
13732   fi
13733   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13734     REQUIRED_OS_NAME=Windows
13735     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13736       REQUIRED_OS_VERSION=5.2
13737     else
13738       REQUIRED_OS_VERSION=5.1
13739     fi
13740   fi
13741   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13742     REQUIRED_OS_NAME=Darwin
13743     REQUIRED_OS_VERSION=11.2
13744   fi
13745 
13746 
13747 
13748 
13749 
13750   # Also store the legacy naming of the cpu.
13751   # Ie i586 and amd64 instead of x86 and x86_64
13752   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13753   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13754     OPENJDK_TARGET_CPU_LEGACY="i586"
13755   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13756     # On all platforms except MacOSX replace x86_64 with amd64.
13757     OPENJDK_TARGET_CPU_LEGACY="amd64"
13758   fi
13759 
13760 
13761   # And the second legacy naming of the cpu.
13762   # Ie i386 and amd64 instead of x86 and x86_64.
13763   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13764   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13765     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13766   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13767     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13768   fi
13769 
13770 
13771   # This is the name of the cpu (but using i386 and amd64 instead of
13772   # x86 and x86_64, respectively), preceeded by a /, to be used when
13773   # locating libraries. On macosx, it's empty, though.
13774   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13775   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13776     OPENJDK_TARGET_CPU_LIBDIR=""
13777   fi
13778 
13779 
13780   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13781   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13782   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13783   OPENJDK_TARGET_CPU_ISADIR=""
13784   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13785     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13786       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13787     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13788       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13789     fi
13790   fi
13791 
13792 
13793   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13794   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13795   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13796     # On linux only, we replace x86 with i386.
13797     OPENJDK_TARGET_CPU_OSARCH="i386"
13798   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13799     # On all platforms except macosx, we replace x86_64 with amd64.
13800     OPENJDK_TARGET_CPU_OSARCH="amd64"
13801   fi
13802 
13803 
13804   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13805   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13806     OPENJDK_TARGET_CPU_JLI="i386"
13807   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13808     # On all platforms except macosx, we replace x86_64 with amd64.
13809     OPENJDK_TARGET_CPU_JLI="amd64"
13810   fi
13811   # Now setup the -D flags for building libjli.
13812   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13813   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13814     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13815       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13816     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13817       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13818     fi
13819   fi
13820 
13821 
13822   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13823   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13824     OPENJDK_TARGET_OS_API_DIR="solaris"
13825   fi
13826   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13827     OPENJDK_TARGET_OS_API_DIR="windows"
13828   fi
13829 
13830 
13831   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13832       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13833   else
13834       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13835   fi
13836 
13837 
13838   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13839     A_LP64="LP64:="
13840     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13841     # unpack200.exe
13842     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13843       ADD_LP64="-D_LP64=1"
13844     fi
13845   fi
13846   LP64=$A_LP64
13847 
13848 
13849   if test "x$COMPILE_TYPE" = "xcross"; then
13850     # FIXME: ... or should this include reduced builds..?
13851     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13852   else
13853     DEFINE_CROSS_COMPILE_ARCH=""
13854   fi
13855 
13856 
13857   # ZERO_ARCHDEF is used to enable architecture-specific code
13858   case "${OPENJDK_TARGET_CPU}" in
13859     ppc*)    ZERO_ARCHDEF=PPC   ;;
13860     s390*)   ZERO_ARCHDEF=S390  ;;
13861     sparc*)  ZERO_ARCHDEF=SPARC ;;
13862     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13863     x86)     ZERO_ARCHDEF=IA32  ;;
13864     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13865   esac
13866 
13867 
13868 
13869 
13870 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13871 
13872   # We get the top-level directory from the supporting wrappers.
13873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
13874 $as_echo_n "checking for top-level directory... " >&6; }
13875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
13876 $as_echo "$TOPDIR" >&6; }
13877 
13878   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13879 
13880   # Input might be given as Windows format, start by converting to
13881   # unix format.
13882   path="$TOPDIR"
13883   new_path=`$CYGPATH -u "$path"`
13884 
13885   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13886   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13887   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13888   # "foo.exe" is OK but "foo" is an error.
13889   #
13890   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13891   # It is also a way to make sure we got the proper file name for the real test later on.
13892   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13893   if test "x$test_shortpath" = x; then
13894     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
13895 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
13896     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
13897   fi
13898 
13899   # Call helper function which possibly converts this using DOS-style short mode.
13900   # If so, the updated path is stored in $new_path.
13901 
13902   input_path="$new_path"
13903   # Check if we need to convert this using DOS-style short mode. If the path
13904   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13905   # take no chances and rewrite it.
13906   # Note: m4 eats our [], so we need to use [ and ] instead.
13907   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13908   if test "x$has_forbidden_chars" != x; then
13909     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13910     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13911     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13912     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13913       # Going to short mode and back again did indeed matter. Since short mode is
13914       # case insensitive, let's make it lowercase to improve readability.
13915       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13916       # Now convert it back to Unix-stile (cygpath)
13917       input_path=`$CYGPATH -u "$shortmode_path"`
13918       new_path="$input_path"
13919     fi
13920   fi
13921 
13922   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
13923   if test "x$test_cygdrive_prefix" = x; then
13924     # As a simple fix, exclude /usr/bin since it's not a real path.
13925     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
13926       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
13927       # a path prefixed by /cygdrive for fixpath to work.
13928       new_path="$CYGWIN_ROOT_PATH$input_path"
13929     fi
13930   fi
13931 
13932 
13933   if test "x$path" != "x$new_path"; then
13934     TOPDIR="$new_path"
13935     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
13936 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
13937   fi
13938 
13939   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13940 
13941   path="$TOPDIR"
13942   has_colon=`$ECHO $path | $GREP ^.:`
13943   new_path="$path"
13944   if test "x$has_colon" = x; then
13945     # Not in mixed or Windows style, start by that.
13946     new_path=`cmd //c echo $path`
13947   fi
13948 
13949 
13950   input_path="$new_path"
13951   # Check if we need to convert this using DOS-style short mode. If the path
13952   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13953   # take no chances and rewrite it.
13954   # Note: m4 eats our [], so we need to use [ and ] instead.
13955   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
13956   if test "x$has_forbidden_chars" != x; then
13957     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13958     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13959   fi
13960 
13961 
13962   windows_path="$new_path"
13963   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13964     unix_path=`$CYGPATH -u "$windows_path"`
13965     new_path="$unix_path"
13966   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13967     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13968     new_path="$unix_path"
13969   fi
13970 
13971   if test "x$path" != "x$new_path"; then
13972     TOPDIR="$new_path"
13973     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
13974 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
13975   fi
13976 
13977   # Save the first 10 bytes of this path to the storage, so fixpath can work.
13978   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
13979 
13980   else
13981     # We're on a posix platform. Hooray! :)
13982     path="$TOPDIR"
13983     has_space=`$ECHO "$path" | $GREP " "`
13984     if test "x$has_space" != x; then
13985       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
13986 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
13987       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
13988     fi
13989 
13990     # Use eval to expand a potential ~
13991     eval path="$path"
13992     if test ! -f "$path" && test ! -d "$path"; then
13993       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
13994     fi
13995 
13996     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
13997   fi
13998 
13999 
14000 
14001   # SRC_ROOT is a traditional alias for TOPDIR.
14002   SRC_ROOT=$TOPDIR
14003 
14004   # Locate the directory of this script.
14005   AUTOCONF_DIR=$TOPDIR/common/autoconf
14006 
14007   # Save the current directory this script was started from
14008   CURDIR="$PWD"
14009 
14010   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14011 
14012   # Input might be given as Windows format, start by converting to
14013   # unix format.
14014   path="$CURDIR"
14015   new_path=`$CYGPATH -u "$path"`
14016 
14017   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14018   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14019   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14020   # "foo.exe" is OK but "foo" is an error.
14021   #
14022   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14023   # It is also a way to make sure we got the proper file name for the real test later on.
14024   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14025   if test "x$test_shortpath" = x; then
14026     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14027 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14028     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14029   fi
14030 
14031   # Call helper function which possibly converts this using DOS-style short mode.
14032   # If so, the updated path is stored in $new_path.
14033 
14034   input_path="$new_path"
14035   # Check if we need to convert this using DOS-style short mode. If the path
14036   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14037   # take no chances and rewrite it.
14038   # Note: m4 eats our [], so we need to use [ and ] instead.
14039   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14040   if test "x$has_forbidden_chars" != x; then
14041     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14042     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14043     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14044     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14045       # Going to short mode and back again did indeed matter. Since short mode is
14046       # case insensitive, let's make it lowercase to improve readability.
14047       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14048       # Now convert it back to Unix-stile (cygpath)
14049       input_path=`$CYGPATH -u "$shortmode_path"`
14050       new_path="$input_path"
14051     fi
14052   fi
14053 
14054   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14055   if test "x$test_cygdrive_prefix" = x; then
14056     # As a simple fix, exclude /usr/bin since it's not a real path.
14057     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14058       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14059       # a path prefixed by /cygdrive for fixpath to work.
14060       new_path="$CYGWIN_ROOT_PATH$input_path"
14061     fi
14062   fi
14063 
14064 
14065   if test "x$path" != "x$new_path"; then
14066     CURDIR="$new_path"
14067     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14068 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14069   fi
14070 
14071   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14072 
14073   path="$CURDIR"
14074   has_colon=`$ECHO $path | $GREP ^.:`
14075   new_path="$path"
14076   if test "x$has_colon" = x; then
14077     # Not in mixed or Windows style, start by that.
14078     new_path=`cmd //c echo $path`
14079   fi
14080 
14081 
14082   input_path="$new_path"
14083   # Check if we need to convert this using DOS-style short mode. If the path
14084   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14085   # take no chances and rewrite it.
14086   # Note: m4 eats our [], so we need to use [ and ] instead.
14087   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14088   if test "x$has_forbidden_chars" != x; then
14089     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14090     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14091   fi
14092 
14093 
14094   windows_path="$new_path"
14095   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14096     unix_path=`$CYGPATH -u "$windows_path"`
14097     new_path="$unix_path"
14098   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14099     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14100     new_path="$unix_path"
14101   fi
14102 
14103   if test "x$path" != "x$new_path"; then
14104     CURDIR="$new_path"
14105     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14106 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14107   fi
14108 
14109   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14110   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14111 
14112   else
14113     # We're on a posix platform. Hooray! :)
14114     path="$CURDIR"
14115     has_space=`$ECHO "$path" | $GREP " "`
14116     if test "x$has_space" != x; then
14117       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14118 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14119       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14120     fi
14121 
14122     # Use eval to expand a potential ~
14123     eval path="$path"
14124     if test ! -f "$path" && test ! -d "$path"; then
14125       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14126     fi
14127 
14128     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14129   fi
14130 
14131 
14132   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14133     PATH_SEP=";"
14134 
14135   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14136   if test $SRC_ROOT_LENGTH -gt 100; then
14137     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14138   fi
14139 
14140   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14142 $as_echo_n "checking cygwin release... " >&6; }
14143     CYGWIN_VERSION=`$UNAME -r`
14144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14145 $as_echo "$CYGWIN_VERSION" >&6; }
14146     WINDOWS_ENV_VENDOR='cygwin'
14147     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14148 
14149     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
14150     if test "x$CYGWIN_VERSION_OK" = x; then
14151       { $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
14152 $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;}
14153       as_fn_error $? "Cannot continue" "$LINENO" 5
14154     fi
14155     if test "x$CYGPATH" = x; then
14156       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14157     fi
14158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14159 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14160     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14161     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
14162     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14163     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14165 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14166     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14167     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14168     if test "x$test_cygdrive_prefix" = x; then
14169       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14170     fi
14171   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14173 $as_echo_n "checking msys release... " >&6; }
14174     MSYS_VERSION=`$UNAME -r`
14175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14176 $as_echo "$MSYS_VERSION" >&6; }
14177 
14178     WINDOWS_ENV_VENDOR='msys'
14179     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14180 
14181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14182 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14183     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14184     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14185 
14186   windows_path="$MSYS_ROOT_PATH"
14187   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14188     unix_path=`$CYGPATH -u "$windows_path"`
14189     MSYS_ROOT_PATH="$unix_path"
14190   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14191     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14192     MSYS_ROOT_PATH="$unix_path"
14193   fi
14194 
14195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14196 $as_echo "$MSYS_ROOT_PATH" >&6; }
14197     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14198   else
14199     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14200   fi
14201 
14202   # Test if windows or unix (cygwin/msys) find is first in path.
14203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14204 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14205   FIND_BINARY_OUTPUT=`find --version 2>&1`
14206   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14208 $as_echo "unix style" >&6; }
14209   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14211 $as_echo "Windows" >&6; }
14212     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14213 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14214     { $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
14215 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14216     as_fn_error $? "Cannot continue" "$LINENO" 5
14217   else
14218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14219 $as_echo "unknown" >&6; }
14220     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14221 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14222   fi
14223 
14224   else
14225     PATH_SEP=":"
14226   fi
14227 
14228 
14229   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14230     # Add extra search paths on solaris for utilities like ar and as etc...
14231     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14232   fi
14233 
14234   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14235   # is not correct.
14236 
14237 # Check whether --with-sys-root was given.
14238 if test "${with_sys_root+set}" = set; then :
14239   withval=$with_sys_root;
14240 fi
14241 
14242 
14243   if test "x$with_sys_root" != x; then
14244     SYS_ROOT=$with_sys_root
14245   else
14246     SYS_ROOT=/
14247   fi
14248 
14249 
14250 
14251 # Check whether --with-tools-dir was given.
14252 if test "${with_tools_dir+set}" = set; then :
14253   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14254 
14255 fi
14256 
14257 
14258 
14259 # Check whether --with-devkit was given.
14260 if test "${with_devkit+set}" = set; then :
14261   withval=$with_devkit;
14262         if test "x$with_sys_root" != x; then
14263           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14264         fi
14265 
14266   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14267 
14268   # Input might be given as Windows format, start by converting to
14269   # unix format.
14270   path="$with_devkit"
14271   new_path=`$CYGPATH -u "$path"`
14272 
14273   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14274   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14275   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14276   # "foo.exe" is OK but "foo" is an error.
14277   #
14278   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14279   # It is also a way to make sure we got the proper file name for the real test later on.
14280   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14281   if test "x$test_shortpath" = x; then
14282     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14283 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14284     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14285   fi
14286 
14287   # Call helper function which possibly converts this using DOS-style short mode.
14288   # If so, the updated path is stored in $new_path.
14289 
14290   input_path="$new_path"
14291   # Check if we need to convert this using DOS-style short mode. If the path
14292   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14293   # take no chances and rewrite it.
14294   # Note: m4 eats our [], so we need to use [ and ] instead.
14295   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14296   if test "x$has_forbidden_chars" != x; then
14297     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14298     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14299     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14300     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14301       # Going to short mode and back again did indeed matter. Since short mode is
14302       # case insensitive, let's make it lowercase to improve readability.
14303       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14304       # Now convert it back to Unix-stile (cygpath)
14305       input_path=`$CYGPATH -u "$shortmode_path"`
14306       new_path="$input_path"
14307     fi
14308   fi
14309 
14310   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14311   if test "x$test_cygdrive_prefix" = x; then
14312     # As a simple fix, exclude /usr/bin since it's not a real path.
14313     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14314       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14315       # a path prefixed by /cygdrive for fixpath to work.
14316       new_path="$CYGWIN_ROOT_PATH$input_path"
14317     fi
14318   fi
14319 
14320 
14321   if test "x$path" != "x$new_path"; then
14322     with_devkit="$new_path"
14323     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14324 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14325   fi
14326 
14327   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14328 
14329   path="$with_devkit"
14330   has_colon=`$ECHO $path | $GREP ^.:`
14331   new_path="$path"
14332   if test "x$has_colon" = x; then
14333     # Not in mixed or Windows style, start by that.
14334     new_path=`cmd //c echo $path`
14335   fi
14336 
14337 
14338   input_path="$new_path"
14339   # Check if we need to convert this using DOS-style short mode. If the path
14340   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14341   # take no chances and rewrite it.
14342   # Note: m4 eats our [], so we need to use [ and ] instead.
14343   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14344   if test "x$has_forbidden_chars" != x; then
14345     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14346     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14347   fi
14348 
14349 
14350   windows_path="$new_path"
14351   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14352     unix_path=`$CYGPATH -u "$windows_path"`
14353     new_path="$unix_path"
14354   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14355     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14356     new_path="$unix_path"
14357   fi
14358 
14359   if test "x$path" != "x$new_path"; then
14360     with_devkit="$new_path"
14361     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14362 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14363   fi
14364 
14365   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14366   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14367 
14368   else
14369     # We're on a posix platform. Hooray! :)
14370     path="$with_devkit"
14371     has_space=`$ECHO "$path" | $GREP " "`
14372     if test "x$has_space" != x; then
14373       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14374 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14375       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14376     fi
14377 
14378     # Use eval to expand a potential ~
14379     eval path="$path"
14380     if test ! -f "$path" && test ! -d "$path"; then
14381       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14382     fi
14383 
14384     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14385   fi
14386 
14387 
14388   if test "x$TOOLS_DIR" = x; then
14389     TOOLS_DIR="$with_devkit/bin"
14390   else
14391     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14392   fi
14393 
14394         if test -d "$with_devkit/$host_alias/libc"; then
14395           SYS_ROOT=$with_devkit/$host_alias/libc
14396         elif test -d "$with_devkit/$host/sys-root"; then
14397           SYS_ROOT=$with_devkit/$host/sys-root
14398         fi
14399 
14400 fi
14401 
14402 
14403 
14404   # Setup default logging of stdout and stderr to build.log in the output root.
14405   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14406   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14407   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14408 
14409 
14410 
14411 
14412 
14413 # Check if it's a pure open build or if custom sources are to be used.
14414 
14415   # Check whether --enable-openjdk-only was given.
14416 if test "${enable_openjdk_only+set}" = set; then :
14417   enableval=$enable_openjdk_only;
14418 else
14419   enable_openjdk_only="no"
14420 fi
14421 
14422 
14423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14424 $as_echo_n "checking for presence of closed sources... " >&6; }
14425   if test -d "$SRC_ROOT/jdk/src/closed"; then
14426     CLOSED_SOURCE_PRESENT=yes
14427   else
14428     CLOSED_SOURCE_PRESENT=no
14429   fi
14430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14431 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14432 
14433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14434 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14435   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14437 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14438 
14439   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14440     OPENJDK=true
14441     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14442       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14443 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14444     fi
14445   else
14446     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14447       OPENJDK=true
14448     else
14449       OPENJDK=false
14450     fi
14451   fi
14452 
14453   if test "x$OPENJDK" = "xtrue"; then
14454     SET_OPENJDK="OPENJDK=true"
14455   fi
14456 
14457 
14458 
14459   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14460   # the IncludeCustomExtension macro.
14461 
14462 
14463 # Check whether --with-custom-make-dir was given.
14464 if test "${with_custom_make_dir+set}" = set; then :
14465   withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
14466 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14467 fi
14468 
14469 
14470 
14471 
14472 # These are needed to be able to create a configuration name (and thus the output directory)
14473 
14474   ###############################################################################
14475   #
14476   # Check which variant of the JDK that we want to build.
14477   # Currently we have:
14478   #    normal:   standard edition
14479   # but the custom make system may add other variants
14480   #
14481   # Effectively the JDK variant gives a name to a specific set of
14482   # modules to compile into the JDK. In the future, these modules
14483   # might even be Jigsaw modules.
14484   #
14485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14486 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14487 
14488 # Check whether --with-jdk-variant was given.
14489 if test "${with_jdk_variant+set}" = set; then :
14490   withval=$with_jdk_variant;
14491 fi
14492 
14493 
14494   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14495     JDK_VARIANT="normal"
14496   else
14497     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14498   fi
14499 
14500 
14501 
14502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14503 $as_echo "$JDK_VARIANT" >&6; }
14504 
14505 
14506 ###############################################################################
14507 #
14508 # Check which interpreter of the JVM we want to build.
14509 # Currently we have:
14510 #    template: Template interpreter (the default)
14511 #    cpp     : C++ interpreter
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14513 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14514 
14515 # Check whether --with-jvm-interpreter was given.
14516 if test "${with_jvm_interpreter+set}" = set; then :
14517   withval=$with_jvm_interpreter;
14518 fi
14519 
14520 
14521 if test "x$with_jvm_interpreter" = x; then
14522      with_jvm_interpreter="template"
14523 fi
14524 
14525 JVM_INTERPRETER="$with_jvm_interpreter"
14526 
14527 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14528    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14529 fi
14530 
14531 
14532 
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14534 $as_echo "$with_jvm_interpreter" >&6; }
14535 
14536 
14537 
14538   ###############################################################################
14539   #
14540   # Check which variants of the JVM that we want to build.
14541   # Currently we have:
14542   #    server: normal interpreter and a tiered C1/C2 compiler
14543   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14544   #    minimal1: reduced form of client with optional VM services and features stripped out
14545   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14546   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14547   #    zero: no machine code interpreter, no compiler
14548   #    zeroshark: zero interpreter and shark/llvm compiler backend
14549 #    core: interpreter only, no compiler (only works on some platforms)
14550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14551 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14552 
14553 # Check whether --with-jvm-variants was given.
14554 if test "${with_jvm_variants+set}" = set; then :
14555   withval=$with_jvm_variants;
14556 fi
14557 
14558 
14559   if test "x$with_jvm_variants" = x; then
14560     with_jvm_variants="server"
14561   fi
14562 
14563   JVM_VARIANTS=",$with_jvm_variants,"
14564   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,//'`
14565 
14566   if test "x$TEST_VARIANTS" != "x,"; then
14567      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14568   fi
14569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14570 $as_echo "$with_jvm_variants" >&6; }
14571 
14572   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14573   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14574   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14575   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14576   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14577   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14578   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14579 
14580   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14581     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14582       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14583     fi
14584   fi
14585   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14586     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14587       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14588     fi
14589   fi
14590   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14591     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14592       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14593     fi
14594   fi
14595 
14596   # Replace the commas with AND for use in the build directory name.
14597   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14598   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/'`
14599   if test "x$COUNT_VARIANTS" != "x,1"; then
14600     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14601   else
14602     BUILDING_MULTIPLE_JVM_VARIANTS=no
14603   fi
14604 
14605 
14606 
14607 
14608 
14609 
14610 
14611 
14612 
14613 
14614   INCLUDE_SA=true
14615   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14616     INCLUDE_SA=false
14617   fi
14618   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14619     INCLUDE_SA=false
14620   fi
14621   if test "x$VAR_CPU" = xppc64 ; then
14622     INCLUDE_SA=false
14623   fi
14624 
14625 
14626   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14627     MACOSX_UNIVERSAL="true"
14628   fi
14629 
14630 
14631 
14632 
14633   ###############################################################################
14634   #
14635   # Set the debug level
14636   #    release: no debug information, all optimizations, no asserts.
14637   #    fastdebug: debug information (-g), all optimizations, all asserts
14638   #    slowdebug: debug information (-g), no optimizations, all asserts
14639   #
14640   DEBUG_LEVEL="release"
14641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14642 $as_echo_n "checking which debug level to use... " >&6; }
14643   # Check whether --enable-debug was given.
14644 if test "${enable_debug+set}" = set; then :
14645   enableval=$enable_debug;
14646         ENABLE_DEBUG="${enableval}"
14647         DEBUG_LEVEL="fastdebug"
14648 
14649 else
14650   ENABLE_DEBUG="no"
14651 fi
14652 
14653 
14654 
14655 # Check whether --with-debug-level was given.
14656 if test "${with_debug_level+set}" = set; then :
14657   withval=$with_debug_level;
14658         DEBUG_LEVEL="${withval}"
14659         if test "x$ENABLE_DEBUG" = xyes; then
14660           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14661         fi
14662 
14663 fi
14664 
14665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14666 $as_echo "$DEBUG_LEVEL" >&6; }
14667 
14668   if test "x$DEBUG_LEVEL" != xrelease && \
14669       test "x$DEBUG_LEVEL" != xfastdebug && \
14670       test "x$DEBUG_LEVEL" != xslowdebug; then
14671     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14672   fi
14673 
14674 
14675   ###############################################################################
14676   #
14677   # Setup legacy vars/targets and new vars to deal with different debug levels.
14678   #
14679 
14680   case $DEBUG_LEVEL in
14681     release )
14682       VARIANT="OPT"
14683       FASTDEBUG="false"
14684       DEBUG_CLASSFILES="false"
14685       BUILD_VARIANT_RELEASE=""
14686       HOTSPOT_DEBUG_LEVEL="product"
14687       HOTSPOT_EXPORT="product"
14688       ;;
14689     fastdebug )
14690       VARIANT="DBG"
14691       FASTDEBUG="true"
14692       DEBUG_CLASSFILES="true"
14693       BUILD_VARIANT_RELEASE="-fastdebug"
14694       HOTSPOT_DEBUG_LEVEL="fastdebug"
14695       HOTSPOT_EXPORT="fastdebug"
14696       ;;
14697     slowdebug )
14698       VARIANT="DBG"
14699       FASTDEBUG="false"
14700       DEBUG_CLASSFILES="true"
14701       BUILD_VARIANT_RELEASE="-debug"
14702       HOTSPOT_DEBUG_LEVEL="jvmg"
14703       HOTSPOT_EXPORT="debug"
14704       ;;
14705   esac
14706 
14707   #####
14708   # Generate the legacy makefile targets for hotspot.
14709   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14710   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14711   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14712   # But until then ...
14713   HOTSPOT_TARGET=""
14714 
14715   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14716     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14717   fi
14718 
14719   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14720     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14721   fi
14722 
14723   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14724     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14725   fi
14726 
14727   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14728     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14729   fi
14730 
14731   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14732     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14733   fi
14734 
14735   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14736     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14737   fi
14738 
14739   if test "x$JVM_VARIANT_CORE" = xtrue; then
14740     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14741   fi
14742 
14743   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14744 
14745   # On Macosx universal binaries are produced, but they only contain
14746   # 64 bit intel. This invalidates control of which jvms are built
14747   # from configure, but only server is valid anyway. Fix this
14748   # when hotspot makefiles are rewritten.
14749   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14750     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14751   fi
14752 
14753   #####
14754 
14755 
14756 
14757 
14758 
14759 
14760 
14761 
14762 # With basic setup done, call the custom early hook.
14763 
14764 
14765 # To properly create a configuration name, we need to have the OpenJDK target
14766 # and options (variants and debug level) parsed.
14767 
14768 
14769 
14770 # Check whether --with-conf-name was given.
14771 if test "${with_conf_name+set}" = set; then :
14772   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14773 fi
14774 
14775 
14776   # Test from where we are running configure, in or outside of src root.
14777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14778 $as_echo_n "checking where to store configuration... " >&6; }
14779   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14780       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14781       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14782     # We are running configure from the src root.
14783     # Create a default ./build/target-variant-debuglevel output root.
14784     if test "x${CONF_NAME}" = x; then
14785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14786 $as_echo "in default location" >&6; }
14787       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14788     else
14789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
14790 $as_echo "in build directory with custom name" >&6; }
14791     fi
14792     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14793     $MKDIR -p "$OUTPUT_ROOT"
14794     if test ! -d "$OUTPUT_ROOT"; then
14795       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14796     fi
14797   else
14798     # We are running configure from outside of the src dir.
14799     # Then use the current directory as output dir!
14800     # If configuration is situated in normal build directory, just use the build
14801     # directory name as configuration name, otherwise use the complete path.
14802     if test "x${CONF_NAME}" = x; then
14803       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14804     fi
14805     OUTPUT_ROOT="$CURDIR"
14806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
14807 $as_echo "in current directory" >&6; }
14808 
14809     # WARNING: This might be a bad thing to do. You need to be sure you want to
14810     # have a configuration in this directory. Do some sanity checks!
14811 
14812     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14813       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14814       # other files
14815       files_present=`$LS $OUTPUT_ROOT`
14816       # Configure has already touched config.log and confdefs.h in the current dir when this check
14817       # is performed.
14818       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14819       | $TR -d '\n'`
14820       if test "x$filtered_files" != x; then
14821         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14822 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14823         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14824 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14825         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14826 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14827         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14828 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14829         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14830 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14831         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14832 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14833         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14834 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14835         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14836       fi
14837     fi
14838   fi
14839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14840 $as_echo_n "checking what configuration name to use... " >&6; }
14841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14842 $as_echo "$CONF_NAME" >&6; }
14843 
14844 
14845   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14846 
14847   # Input might be given as Windows format, start by converting to
14848   # unix format.
14849   path="$OUTPUT_ROOT"
14850   new_path=`$CYGPATH -u "$path"`
14851 
14852   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14853   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14854   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14855   # "foo.exe" is OK but "foo" is an error.
14856   #
14857   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14858   # It is also a way to make sure we got the proper file name for the real test later on.
14859   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14860   if test "x$test_shortpath" = x; then
14861     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14862 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14863     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14864   fi
14865 
14866   # Call helper function which possibly converts this using DOS-style short mode.
14867   # If so, the updated path is stored in $new_path.
14868 
14869   input_path="$new_path"
14870   # Check if we need to convert this using DOS-style short mode. If the path
14871   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14872   # take no chances and rewrite it.
14873   # Note: m4 eats our [], so we need to use [ and ] instead.
14874   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14875   if test "x$has_forbidden_chars" != x; then
14876     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14877     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14878     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14879     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14880       # Going to short mode and back again did indeed matter. Since short mode is
14881       # case insensitive, let's make it lowercase to improve readability.
14882       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14883       # Now convert it back to Unix-stile (cygpath)
14884       input_path=`$CYGPATH -u "$shortmode_path"`
14885       new_path="$input_path"
14886     fi
14887   fi
14888 
14889   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14890   if test "x$test_cygdrive_prefix" = x; then
14891     # As a simple fix, exclude /usr/bin since it's not a real path.
14892     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14893       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14894       # a path prefixed by /cygdrive for fixpath to work.
14895       new_path="$CYGWIN_ROOT_PATH$input_path"
14896     fi
14897   fi
14898 
14899 
14900   if test "x$path" != "x$new_path"; then
14901     OUTPUT_ROOT="$new_path"
14902     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14903 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14904   fi
14905 
14906   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14907 
14908   path="$OUTPUT_ROOT"
14909   has_colon=`$ECHO $path | $GREP ^.:`
14910   new_path="$path"
14911   if test "x$has_colon" = x; then
14912     # Not in mixed or Windows style, start by that.
14913     new_path=`cmd //c echo $path`
14914   fi
14915 
14916 
14917   input_path="$new_path"
14918   # Check if we need to convert this using DOS-style short mode. If the path
14919   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14920   # take no chances and rewrite it.
14921   # Note: m4 eats our [], so we need to use [ and ] instead.
14922   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14923   if test "x$has_forbidden_chars" != x; then
14924     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14925     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14926   fi
14927 
14928 
14929   windows_path="$new_path"
14930   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14931     unix_path=`$CYGPATH -u "$windows_path"`
14932     new_path="$unix_path"
14933   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14934     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14935     new_path="$unix_path"
14936   fi
14937 
14938   if test "x$path" != "x$new_path"; then
14939     OUTPUT_ROOT="$new_path"
14940     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14941 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14942   fi
14943 
14944   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14945   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14946 
14947   else
14948     # We're on a posix platform. Hooray! :)
14949     path="$OUTPUT_ROOT"
14950     has_space=`$ECHO "$path" | $GREP " "`
14951     if test "x$has_space" != x; then
14952       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14953 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14954       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14955     fi
14956 
14957     # Use eval to expand a potential ~
14958     eval path="$path"
14959     if test ! -f "$path" && test ! -d "$path"; then
14960       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14961     fi
14962 
14963     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14964   fi
14965 
14966 
14967   SPEC=$OUTPUT_ROOT/spec.gmk
14968 
14969   CONF_NAME=$CONF_NAME
14970 
14971   OUTPUT_ROOT=$OUTPUT_ROOT
14972 
14973 
14974   # Most of the probed defines are put into config.h
14975   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14976 
14977   # The spec.gmk file contains all variables for the make system.
14978   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14979 
14980   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14981   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14982 
14983   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14984   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14985 
14986   # The compare.sh is used to compare the build output to other builds.
14987   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
14988 
14989   # Spec.sh is currently used by compare-objects.sh
14990   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
14991 
14992   # The generated Makefile knows where the spec.gmk is and where the source is.
14993   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
14994   # which will look for generated configurations
14995   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
14996 
14997 
14998 
14999 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15000 
15001   for ac_prog in apt-get yum port pkgutil pkgadd
15002 do
15003   # Extract the first word of "$ac_prog", so it can be a program name with args.
15004 set dummy $ac_prog; ac_word=$2
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15006 $as_echo_n "checking for $ac_word... " >&6; }
15007 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15008   $as_echo_n "(cached) " >&6
15009 else
15010   if test -n "$PKGHANDLER"; then
15011   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15012 else
15013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15014 for as_dir in $PATH
15015 do
15016   IFS=$as_save_IFS
15017   test -z "$as_dir" && as_dir=.
15018     for ac_exec_ext in '' $ac_executable_extensions; do
15019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15020     ac_cv_prog_PKGHANDLER="$ac_prog"
15021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15022     break 2
15023   fi
15024 done
15025   done
15026 IFS=$as_save_IFS
15027 
15028 fi
15029 fi
15030 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15031 if test -n "$PKGHANDLER"; then
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15033 $as_echo "$PKGHANDLER" >&6; }
15034 else
15035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15036 $as_echo "no" >&6; }
15037 fi
15038 
15039 
15040   test -n "$PKGHANDLER" && break
15041 done
15042 
15043 
15044 
15045 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15046 
15047 
15048   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15049   if test "x$MAKE" != x; then
15050     # User has supplied a make, test it.
15051     if test ! -f "$MAKE"; then
15052       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15053     fi
15054 
15055   MAKE_CANDIDATE=""$MAKE""
15056   DESCRIPTION="user supplied MAKE=$MAKE"
15057   if test "x$MAKE_CANDIDATE" != x; then
15058     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15059 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15060     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15061     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15062     if test "x$IS_GNU_MAKE" = x; then
15063       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15064 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15065     else
15066       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15067       if test "x$IS_MODERN_MAKE" = x; then
15068         { $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
15069 $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;}
15070       else
15071         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15072           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15073             MAKE_EXPECTED_ENV='cygwin'
15074           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15075             MAKE_EXPECTED_ENV='msys'
15076           else
15077             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15078           fi
15079           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15080           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15081         else
15082           # Not relevant for non-Windows
15083           IS_MAKE_CORRECT_ENV=true
15084         fi
15085         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15086           { $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
15087 $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;}
15088         else
15089           FOUND_MAKE=$MAKE_CANDIDATE
15090 
15091   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15092 
15093   # First separate the path from the arguments. This will split at the first
15094   # space.
15095   complete="$FOUND_MAKE"
15096   path="${complete%% *}"
15097   tmp="$complete EOL"
15098   arguments="${tmp#* }"
15099 
15100   # Input might be given as Windows format, start by converting to
15101   # unix format.
15102   new_path=`$CYGPATH -u "$path"`
15103 
15104   # Now try to locate executable using which
15105   new_path=`$WHICH "$new_path" 2> /dev/null`
15106   # bat and cmd files are not always considered executable in cygwin causing which
15107   # to not find them
15108   if test "x$new_path" = x \
15109       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15110       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15111     new_path=`$CYGPATH -u "$path"`
15112   fi
15113   if test "x$new_path" = x; then
15114     # Oops. Which didn't find the executable.
15115     # The splitting of arguments from the executable at a space might have been incorrect,
15116     # since paths with space are more likely in Windows. Give it another try with the whole
15117     # argument.
15118     path="$complete"
15119     arguments="EOL"
15120     new_path=`$CYGPATH -u "$path"`
15121     new_path=`$WHICH "$new_path" 2> /dev/null`
15122     # bat and cmd files are not always considered executable in cygwin causing which
15123     # to not find them
15124     if test "x$new_path" = x \
15125         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15126         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15127       new_path=`$CYGPATH -u "$path"`
15128     fi
15129     if test "x$new_path" = x; then
15130       # It's still not found. Now this is an unrecoverable error.
15131       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15132 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15133       has_space=`$ECHO "$complete" | $GREP " "`
15134       if test "x$has_space" != x; then
15135         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15136 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15137       fi
15138       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15139     fi
15140   fi
15141 
15142   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15143   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15144   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15145   # "foo.exe" is OK but "foo" is an error.
15146   #
15147   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15148   # It is also a way to make sure we got the proper file name for the real test later on.
15149   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15150   if test "x$test_shortpath" = x; then
15151     # Short path failed, file does not exist as specified.
15152     # Try adding .exe or .cmd
15153     if test -f "${new_path}.exe"; then
15154       input_to_shortpath="${new_path}.exe"
15155     elif test -f "${new_path}.cmd"; then
15156       input_to_shortpath="${new_path}.cmd"
15157     else
15158       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15159 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15160       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15161 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15162       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15163     fi
15164   else
15165     input_to_shortpath="$new_path"
15166   fi
15167 
15168   # Call helper function which possibly converts this using DOS-style short mode.
15169   # If so, the updated path is stored in $new_path.
15170   new_path="$input_to_shortpath"
15171 
15172   input_path="$input_to_shortpath"
15173   # Check if we need to convert this using DOS-style short mode. If the path
15174   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15175   # take no chances and rewrite it.
15176   # Note: m4 eats our [], so we need to use [ and ] instead.
15177   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15178   if test "x$has_forbidden_chars" != x; then
15179     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15180     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15181     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15182     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15183       # Going to short mode and back again did indeed matter. Since short mode is
15184       # case insensitive, let's make it lowercase to improve readability.
15185       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15186       # Now convert it back to Unix-stile (cygpath)
15187       input_path=`$CYGPATH -u "$shortmode_path"`
15188       new_path="$input_path"
15189     fi
15190   fi
15191 
15192   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15193   if test "x$test_cygdrive_prefix" = x; then
15194     # As a simple fix, exclude /usr/bin since it's not a real path.
15195     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15196       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15197       # a path prefixed by /cygdrive for fixpath to work.
15198       new_path="$CYGWIN_ROOT_PATH$input_path"
15199     fi
15200   fi
15201 
15202   # remove trailing .exe if any
15203   new_path="${new_path/%.exe/}"
15204 
15205   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15206 
15207   # First separate the path from the arguments. This will split at the first
15208   # space.
15209   complete="$FOUND_MAKE"
15210   path="${complete%% *}"
15211   tmp="$complete EOL"
15212   arguments="${tmp#* }"
15213 
15214   # Input might be given as Windows format, start by converting to
15215   # unix format.
15216   new_path="$path"
15217 
15218   windows_path="$new_path"
15219   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15220     unix_path=`$CYGPATH -u "$windows_path"`
15221     new_path="$unix_path"
15222   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15223     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15224     new_path="$unix_path"
15225   fi
15226 
15227 
15228   # Now try to locate executable using which
15229   new_path=`$WHICH "$new_path" 2> /dev/null`
15230 
15231   if test "x$new_path" = x; then
15232     # Oops. Which didn't find the executable.
15233     # The splitting of arguments from the executable at a space might have been incorrect,
15234     # since paths with space are more likely in Windows. Give it another try with the whole
15235     # argument.
15236     path="$complete"
15237     arguments="EOL"
15238     new_path="$path"
15239 
15240   windows_path="$new_path"
15241   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15242     unix_path=`$CYGPATH -u "$windows_path"`
15243     new_path="$unix_path"
15244   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15245     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15246     new_path="$unix_path"
15247   fi
15248 
15249 
15250     new_path=`$WHICH "$new_path" 2> /dev/null`
15251 
15252     if test "x$new_path" = x; then
15253       # It's still not found. Now this is an unrecoverable error.
15254       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15255 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15256       has_space=`$ECHO "$complete" | $GREP " "`
15257       if test "x$has_space" != x; then
15258         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15259 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15260       fi
15261       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15262     fi
15263   fi
15264 
15265   # Now new_path has a complete unix path to the binary
15266   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15267     # Keep paths in /bin as-is, but remove trailing .exe if any
15268     new_path="${new_path/%.exe/}"
15269     # Do not save /bin paths to all_fixpath_prefixes!
15270   else
15271     # Not in mixed or Windows style, start by that.
15272     new_path=`cmd //c echo $new_path`
15273 
15274   input_path="$new_path"
15275   # Check if we need to convert this using DOS-style short mode. If the path
15276   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15277   # take no chances and rewrite it.
15278   # Note: m4 eats our [], so we need to use [ and ] instead.
15279   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15280   if test "x$has_forbidden_chars" != x; then
15281     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15282     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15283   fi
15284 
15285     # Output is in $new_path
15286 
15287   windows_path="$new_path"
15288   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15289     unix_path=`$CYGPATH -u "$windows_path"`
15290     new_path="$unix_path"
15291   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15292     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15293     new_path="$unix_path"
15294   fi
15295 
15296     # remove trailing .exe if any
15297     new_path="${new_path/%.exe/}"
15298 
15299     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15300     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15301   fi
15302 
15303   else
15304     # We're on a posix platform. Hooray! :)
15305     # First separate the path from the arguments. This will split at the first
15306     # space.
15307     complete="$FOUND_MAKE"
15308     path="${complete%% *}"
15309     tmp="$complete EOL"
15310     arguments="${tmp#* }"
15311 
15312     # Cannot rely on the command "which" here since it doesn't always work.
15313     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15314     if test -z "$is_absolute_path"; then
15315       # Path to executable is not absolute. Find it.
15316       IFS_save="$IFS"
15317       IFS=:
15318       for p in $PATH; do
15319         if test -f "$p/$path" && test -x "$p/$path"; then
15320           new_path="$p/$path"
15321           break
15322         fi
15323       done
15324       IFS="$IFS_save"
15325     else
15326       # This is an absolute path, we can use it without further modifications.
15327       new_path="$path"
15328     fi
15329 
15330     if test "x$new_path" = x; then
15331       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15332 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15333       has_space=`$ECHO "$complete" | $GREP " "`
15334       if test "x$has_space" != x; then
15335         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15336 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15337       fi
15338       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15339     fi
15340   fi
15341 
15342   # Now join together the path and the arguments once again
15343   if test "x$arguments" != xEOL; then
15344     new_complete="$new_path ${arguments% *}"
15345   else
15346     new_complete="$new_path"
15347   fi
15348 
15349   if test "x$complete" != "x$new_complete"; then
15350     FOUND_MAKE="$new_complete"
15351     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15352 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15353   fi
15354 
15355         fi
15356       fi
15357     fi
15358   fi
15359 
15360     if test "x$FOUND_MAKE" = x; then
15361       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15362     fi
15363   else
15364     # Try our hardest to locate a correct version of GNU make
15365     for ac_prog in gmake
15366 do
15367   # Extract the first word of "$ac_prog", so it can be a program name with args.
15368 set dummy $ac_prog; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15370 $as_echo_n "checking for $ac_word... " >&6; }
15371 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15372   $as_echo_n "(cached) " >&6
15373 else
15374   case $CHECK_GMAKE in
15375   [\\/]* | ?:[\\/]*)
15376   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15377   ;;
15378   *)
15379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380 for as_dir in $PATH
15381 do
15382   IFS=$as_save_IFS
15383   test -z "$as_dir" && as_dir=.
15384     for ac_exec_ext in '' $ac_executable_extensions; do
15385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15386     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15388     break 2
15389   fi
15390 done
15391   done
15392 IFS=$as_save_IFS
15393 
15394   ;;
15395 esac
15396 fi
15397 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15398 if test -n "$CHECK_GMAKE"; then
15399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15400 $as_echo "$CHECK_GMAKE" >&6; }
15401 else
15402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15404 fi
15405 
15406 
15407   test -n "$CHECK_GMAKE" && break
15408 done
15409 
15410 
15411   MAKE_CANDIDATE=""$CHECK_GMAKE""
15412   DESCRIPTION="gmake in PATH"
15413   if test "x$MAKE_CANDIDATE" != x; then
15414     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15415 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15416     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15417     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15418     if test "x$IS_GNU_MAKE" = x; then
15419       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15420 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15421     else
15422       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15423       if test "x$IS_MODERN_MAKE" = x; then
15424         { $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
15425 $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;}
15426       else
15427         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15428           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15429             MAKE_EXPECTED_ENV='cygwin'
15430           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15431             MAKE_EXPECTED_ENV='msys'
15432           else
15433             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15434           fi
15435           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15436           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15437         else
15438           # Not relevant for non-Windows
15439           IS_MAKE_CORRECT_ENV=true
15440         fi
15441         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15442           { $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
15443 $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;}
15444         else
15445           FOUND_MAKE=$MAKE_CANDIDATE
15446 
15447   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15448 
15449   # First separate the path from the arguments. This will split at the first
15450   # space.
15451   complete="$FOUND_MAKE"
15452   path="${complete%% *}"
15453   tmp="$complete EOL"
15454   arguments="${tmp#* }"
15455 
15456   # Input might be given as Windows format, start by converting to
15457   # unix format.
15458   new_path=`$CYGPATH -u "$path"`
15459 
15460   # Now try to locate executable using which
15461   new_path=`$WHICH "$new_path" 2> /dev/null`
15462   # bat and cmd files are not always considered executable in cygwin causing which
15463   # to not find them
15464   if test "x$new_path" = x \
15465       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15466       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15467     new_path=`$CYGPATH -u "$path"`
15468   fi
15469   if test "x$new_path" = x; then
15470     # Oops. Which didn't find the executable.
15471     # The splitting of arguments from the executable at a space might have been incorrect,
15472     # since paths with space are more likely in Windows. Give it another try with the whole
15473     # argument.
15474     path="$complete"
15475     arguments="EOL"
15476     new_path=`$CYGPATH -u "$path"`
15477     new_path=`$WHICH "$new_path" 2> /dev/null`
15478     # bat and cmd files are not always considered executable in cygwin causing which
15479     # to not find them
15480     if test "x$new_path" = x \
15481         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15482         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15483       new_path=`$CYGPATH -u "$path"`
15484     fi
15485     if test "x$new_path" = x; then
15486       # It's still not found. Now this is an unrecoverable error.
15487       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15488 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15489       has_space=`$ECHO "$complete" | $GREP " "`
15490       if test "x$has_space" != x; then
15491         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15492 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15493       fi
15494       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15495     fi
15496   fi
15497 
15498   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15499   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15500   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15501   # "foo.exe" is OK but "foo" is an error.
15502   #
15503   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15504   # It is also a way to make sure we got the proper file name for the real test later on.
15505   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15506   if test "x$test_shortpath" = x; then
15507     # Short path failed, file does not exist as specified.
15508     # Try adding .exe or .cmd
15509     if test -f "${new_path}.exe"; then
15510       input_to_shortpath="${new_path}.exe"
15511     elif test -f "${new_path}.cmd"; then
15512       input_to_shortpath="${new_path}.cmd"
15513     else
15514       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15515 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15516       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15517 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15518       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15519     fi
15520   else
15521     input_to_shortpath="$new_path"
15522   fi
15523 
15524   # Call helper function which possibly converts this using DOS-style short mode.
15525   # If so, the updated path is stored in $new_path.
15526   new_path="$input_to_shortpath"
15527 
15528   input_path="$input_to_shortpath"
15529   # Check if we need to convert this using DOS-style short mode. If the path
15530   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15531   # take no chances and rewrite it.
15532   # Note: m4 eats our [], so we need to use [ and ] instead.
15533   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15534   if test "x$has_forbidden_chars" != x; then
15535     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15536     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15537     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15538     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15539       # Going to short mode and back again did indeed matter. Since short mode is
15540       # case insensitive, let's make it lowercase to improve readability.
15541       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15542       # Now convert it back to Unix-stile (cygpath)
15543       input_path=`$CYGPATH -u "$shortmode_path"`
15544       new_path="$input_path"
15545     fi
15546   fi
15547 
15548   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15549   if test "x$test_cygdrive_prefix" = x; then
15550     # As a simple fix, exclude /usr/bin since it's not a real path.
15551     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15552       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15553       # a path prefixed by /cygdrive for fixpath to work.
15554       new_path="$CYGWIN_ROOT_PATH$input_path"
15555     fi
15556   fi
15557 
15558   # remove trailing .exe if any
15559   new_path="${new_path/%.exe/}"
15560 
15561   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15562 
15563   # First separate the path from the arguments. This will split at the first
15564   # space.
15565   complete="$FOUND_MAKE"
15566   path="${complete%% *}"
15567   tmp="$complete EOL"
15568   arguments="${tmp#* }"
15569 
15570   # Input might be given as Windows format, start by converting to
15571   # unix format.
15572   new_path="$path"
15573 
15574   windows_path="$new_path"
15575   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15576     unix_path=`$CYGPATH -u "$windows_path"`
15577     new_path="$unix_path"
15578   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15579     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15580     new_path="$unix_path"
15581   fi
15582 
15583 
15584   # Now try to locate executable using which
15585   new_path=`$WHICH "$new_path" 2> /dev/null`
15586 
15587   if test "x$new_path" = x; then
15588     # Oops. Which didn't find the executable.
15589     # The splitting of arguments from the executable at a space might have been incorrect,
15590     # since paths with space are more likely in Windows. Give it another try with the whole
15591     # argument.
15592     path="$complete"
15593     arguments="EOL"
15594     new_path="$path"
15595 
15596   windows_path="$new_path"
15597   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15598     unix_path=`$CYGPATH -u "$windows_path"`
15599     new_path="$unix_path"
15600   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15601     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15602     new_path="$unix_path"
15603   fi
15604 
15605 
15606     new_path=`$WHICH "$new_path" 2> /dev/null`
15607 
15608     if test "x$new_path" = x; then
15609       # It's still not found. Now this is an unrecoverable error.
15610       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15611 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15612       has_space=`$ECHO "$complete" | $GREP " "`
15613       if test "x$has_space" != x; then
15614         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15615 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15616       fi
15617       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15618     fi
15619   fi
15620 
15621   # Now new_path has a complete unix path to the binary
15622   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15623     # Keep paths in /bin as-is, but remove trailing .exe if any
15624     new_path="${new_path/%.exe/}"
15625     # Do not save /bin paths to all_fixpath_prefixes!
15626   else
15627     # Not in mixed or Windows style, start by that.
15628     new_path=`cmd //c echo $new_path`
15629 
15630   input_path="$new_path"
15631   # Check if we need to convert this using DOS-style short mode. If the path
15632   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15633   # take no chances and rewrite it.
15634   # Note: m4 eats our [], so we need to use [ and ] instead.
15635   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15636   if test "x$has_forbidden_chars" != x; then
15637     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15638     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15639   fi
15640 
15641     # Output is in $new_path
15642 
15643   windows_path="$new_path"
15644   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15645     unix_path=`$CYGPATH -u "$windows_path"`
15646     new_path="$unix_path"
15647   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15648     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15649     new_path="$unix_path"
15650   fi
15651 
15652     # remove trailing .exe if any
15653     new_path="${new_path/%.exe/}"
15654 
15655     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15656     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15657   fi
15658 
15659   else
15660     # We're on a posix platform. Hooray! :)
15661     # First separate the path from the arguments. This will split at the first
15662     # space.
15663     complete="$FOUND_MAKE"
15664     path="${complete%% *}"
15665     tmp="$complete EOL"
15666     arguments="${tmp#* }"
15667 
15668     # Cannot rely on the command "which" here since it doesn't always work.
15669     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15670     if test -z "$is_absolute_path"; then
15671       # Path to executable is not absolute. Find it.
15672       IFS_save="$IFS"
15673       IFS=:
15674       for p in $PATH; do
15675         if test -f "$p/$path" && test -x "$p/$path"; then
15676           new_path="$p/$path"
15677           break
15678         fi
15679       done
15680       IFS="$IFS_save"
15681     else
15682       # This is an absolute path, we can use it without further modifications.
15683       new_path="$path"
15684     fi
15685 
15686     if test "x$new_path" = x; then
15687       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15688 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15689       has_space=`$ECHO "$complete" | $GREP " "`
15690       if test "x$has_space" != x; then
15691         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15692 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15693       fi
15694       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15695     fi
15696   fi
15697 
15698   # Now join together the path and the arguments once again
15699   if test "x$arguments" != xEOL; then
15700     new_complete="$new_path ${arguments% *}"
15701   else
15702     new_complete="$new_path"
15703   fi
15704 
15705   if test "x$complete" != "x$new_complete"; then
15706     FOUND_MAKE="$new_complete"
15707     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15708 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15709   fi
15710 
15711         fi
15712       fi
15713     fi
15714   fi
15715 
15716 
15717     if test "x$FOUND_MAKE" = x; then
15718       for ac_prog in make
15719 do
15720   # Extract the first word of "$ac_prog", so it can be a program name with args.
15721 set dummy $ac_prog; ac_word=$2
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15723 $as_echo_n "checking for $ac_word... " >&6; }
15724 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15725   $as_echo_n "(cached) " >&6
15726 else
15727   case $CHECK_MAKE in
15728   [\\/]* | ?:[\\/]*)
15729   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15730   ;;
15731   *)
15732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15733 for as_dir in $PATH
15734 do
15735   IFS=$as_save_IFS
15736   test -z "$as_dir" && as_dir=.
15737     for ac_exec_ext in '' $ac_executable_extensions; do
15738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15739     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15741     break 2
15742   fi
15743 done
15744   done
15745 IFS=$as_save_IFS
15746 
15747   ;;
15748 esac
15749 fi
15750 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15751 if test -n "$CHECK_MAKE"; then
15752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15753 $as_echo "$CHECK_MAKE" >&6; }
15754 else
15755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15757 fi
15758 
15759 
15760   test -n "$CHECK_MAKE" && break
15761 done
15762 
15763 
15764   MAKE_CANDIDATE=""$CHECK_MAKE""
15765   DESCRIPTION="make in PATH"
15766   if test "x$MAKE_CANDIDATE" != x; then
15767     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15768 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15769     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15770     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15771     if test "x$IS_GNU_MAKE" = x; then
15772       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15773 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15774     else
15775       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15776       if test "x$IS_MODERN_MAKE" = x; then
15777         { $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
15778 $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;}
15779       else
15780         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15781           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15782             MAKE_EXPECTED_ENV='cygwin'
15783           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15784             MAKE_EXPECTED_ENV='msys'
15785           else
15786             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15787           fi
15788           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15789           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15790         else
15791           # Not relevant for non-Windows
15792           IS_MAKE_CORRECT_ENV=true
15793         fi
15794         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15795           { $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
15796 $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;}
15797         else
15798           FOUND_MAKE=$MAKE_CANDIDATE
15799 
15800   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15801 
15802   # First separate the path from the arguments. This will split at the first
15803   # space.
15804   complete="$FOUND_MAKE"
15805   path="${complete%% *}"
15806   tmp="$complete EOL"
15807   arguments="${tmp#* }"
15808 
15809   # Input might be given as Windows format, start by converting to
15810   # unix format.
15811   new_path=`$CYGPATH -u "$path"`
15812 
15813   # Now try to locate executable using which
15814   new_path=`$WHICH "$new_path" 2> /dev/null`
15815   # bat and cmd files are not always considered executable in cygwin causing which
15816   # to not find them
15817   if test "x$new_path" = x \
15818       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15819       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15820     new_path=`$CYGPATH -u "$path"`
15821   fi
15822   if test "x$new_path" = x; then
15823     # Oops. Which didn't find the executable.
15824     # The splitting of arguments from the executable at a space might have been incorrect,
15825     # since paths with space are more likely in Windows. Give it another try with the whole
15826     # argument.
15827     path="$complete"
15828     arguments="EOL"
15829     new_path=`$CYGPATH -u "$path"`
15830     new_path=`$WHICH "$new_path" 2> /dev/null`
15831     # bat and cmd files are not always considered executable in cygwin causing which
15832     # to not find them
15833     if test "x$new_path" = x \
15834         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15835         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15836       new_path=`$CYGPATH -u "$path"`
15837     fi
15838     if test "x$new_path" = x; then
15839       # It's still not found. Now this is an unrecoverable error.
15840       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15841 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15842       has_space=`$ECHO "$complete" | $GREP " "`
15843       if test "x$has_space" != x; then
15844         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15845 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15846       fi
15847       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15848     fi
15849   fi
15850 
15851   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15852   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15853   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15854   # "foo.exe" is OK but "foo" is an error.
15855   #
15856   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15857   # It is also a way to make sure we got the proper file name for the real test later on.
15858   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15859   if test "x$test_shortpath" = x; then
15860     # Short path failed, file does not exist as specified.
15861     # Try adding .exe or .cmd
15862     if test -f "${new_path}.exe"; then
15863       input_to_shortpath="${new_path}.exe"
15864     elif test -f "${new_path}.cmd"; then
15865       input_to_shortpath="${new_path}.cmd"
15866     else
15867       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15868 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15869       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15870 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15871       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15872     fi
15873   else
15874     input_to_shortpath="$new_path"
15875   fi
15876 
15877   # Call helper function which possibly converts this using DOS-style short mode.
15878   # If so, the updated path is stored in $new_path.
15879   new_path="$input_to_shortpath"
15880 
15881   input_path="$input_to_shortpath"
15882   # Check if we need to convert this using DOS-style short mode. If the path
15883   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15884   # take no chances and rewrite it.
15885   # Note: m4 eats our [], so we need to use [ and ] instead.
15886   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15887   if test "x$has_forbidden_chars" != x; then
15888     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15889     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15890     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15891     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15892       # Going to short mode and back again did indeed matter. Since short mode is
15893       # case insensitive, let's make it lowercase to improve readability.
15894       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15895       # Now convert it back to Unix-stile (cygpath)
15896       input_path=`$CYGPATH -u "$shortmode_path"`
15897       new_path="$input_path"
15898     fi
15899   fi
15900 
15901   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15902   if test "x$test_cygdrive_prefix" = x; then
15903     # As a simple fix, exclude /usr/bin since it's not a real path.
15904     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15905       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15906       # a path prefixed by /cygdrive for fixpath to work.
15907       new_path="$CYGWIN_ROOT_PATH$input_path"
15908     fi
15909   fi
15910 
15911   # remove trailing .exe if any
15912   new_path="${new_path/%.exe/}"
15913 
15914   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15915 
15916   # First separate the path from the arguments. This will split at the first
15917   # space.
15918   complete="$FOUND_MAKE"
15919   path="${complete%% *}"
15920   tmp="$complete EOL"
15921   arguments="${tmp#* }"
15922 
15923   # Input might be given as Windows format, start by converting to
15924   # unix format.
15925   new_path="$path"
15926 
15927   windows_path="$new_path"
15928   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15929     unix_path=`$CYGPATH -u "$windows_path"`
15930     new_path="$unix_path"
15931   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15932     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15933     new_path="$unix_path"
15934   fi
15935 
15936 
15937   # Now try to locate executable using which
15938   new_path=`$WHICH "$new_path" 2> /dev/null`
15939 
15940   if test "x$new_path" = x; then
15941     # Oops. Which didn't find the executable.
15942     # The splitting of arguments from the executable at a space might have been incorrect,
15943     # since paths with space are more likely in Windows. Give it another try with the whole
15944     # argument.
15945     path="$complete"
15946     arguments="EOL"
15947     new_path="$path"
15948 
15949   windows_path="$new_path"
15950   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15951     unix_path=`$CYGPATH -u "$windows_path"`
15952     new_path="$unix_path"
15953   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15954     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15955     new_path="$unix_path"
15956   fi
15957 
15958 
15959     new_path=`$WHICH "$new_path" 2> /dev/null`
15960 
15961     if test "x$new_path" = x; then
15962       # It's still not found. Now this is an unrecoverable error.
15963       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15964 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15965       has_space=`$ECHO "$complete" | $GREP " "`
15966       if test "x$has_space" != x; then
15967         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15968 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15969       fi
15970       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15971     fi
15972   fi
15973 
15974   # Now new_path has a complete unix path to the binary
15975   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15976     # Keep paths in /bin as-is, but remove trailing .exe if any
15977     new_path="${new_path/%.exe/}"
15978     # Do not save /bin paths to all_fixpath_prefixes!
15979   else
15980     # Not in mixed or Windows style, start by that.
15981     new_path=`cmd //c echo $new_path`
15982 
15983   input_path="$new_path"
15984   # Check if we need to convert this using DOS-style short mode. If the path
15985   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15986   # take no chances and rewrite it.
15987   # Note: m4 eats our [], so we need to use [ and ] instead.
15988   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15989   if test "x$has_forbidden_chars" != x; then
15990     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15991     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15992   fi
15993 
15994     # Output is in $new_path
15995 
15996   windows_path="$new_path"
15997   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15998     unix_path=`$CYGPATH -u "$windows_path"`
15999     new_path="$unix_path"
16000   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16001     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16002     new_path="$unix_path"
16003   fi
16004 
16005     # remove trailing .exe if any
16006     new_path="${new_path/%.exe/}"
16007 
16008     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16009     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16010   fi
16011 
16012   else
16013     # We're on a posix platform. Hooray! :)
16014     # First separate the path from the arguments. This will split at the first
16015     # space.
16016     complete="$FOUND_MAKE"
16017     path="${complete%% *}"
16018     tmp="$complete EOL"
16019     arguments="${tmp#* }"
16020 
16021     # Cannot rely on the command "which" here since it doesn't always work.
16022     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16023     if test -z "$is_absolute_path"; then
16024       # Path to executable is not absolute. Find it.
16025       IFS_save="$IFS"
16026       IFS=:
16027       for p in $PATH; do
16028         if test -f "$p/$path" && test -x "$p/$path"; then
16029           new_path="$p/$path"
16030           break
16031         fi
16032       done
16033       IFS="$IFS_save"
16034     else
16035       # This is an absolute path, we can use it without further modifications.
16036       new_path="$path"
16037     fi
16038 
16039     if test "x$new_path" = x; then
16040       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16041 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16042       has_space=`$ECHO "$complete" | $GREP " "`
16043       if test "x$has_space" != x; then
16044         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16045 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16046       fi
16047       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16048     fi
16049   fi
16050 
16051   # Now join together the path and the arguments once again
16052   if test "x$arguments" != xEOL; then
16053     new_complete="$new_path ${arguments% *}"
16054   else
16055     new_complete="$new_path"
16056   fi
16057 
16058   if test "x$complete" != "x$new_complete"; then
16059     FOUND_MAKE="$new_complete"
16060     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16061 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16062   fi
16063 
16064         fi
16065       fi
16066     fi
16067   fi
16068 
16069     fi
16070 
16071     if test "x$FOUND_MAKE" = x; then
16072       if test "x$TOOLS_DIR" != x; then
16073         # We have a tools-dir, check that as well before giving up.
16074         OLD_PATH=$PATH
16075         PATH=$TOOLS_DIR:$PATH
16076         for ac_prog in gmake
16077 do
16078   # Extract the first word of "$ac_prog", so it can be a program name with args.
16079 set dummy $ac_prog; ac_word=$2
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16081 $as_echo_n "checking for $ac_word... " >&6; }
16082 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16083   $as_echo_n "(cached) " >&6
16084 else
16085   case $CHECK_TOOLSDIR_GMAKE in
16086   [\\/]* | ?:[\\/]*)
16087   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16088   ;;
16089   *)
16090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16091 for as_dir in $PATH
16092 do
16093   IFS=$as_save_IFS
16094   test -z "$as_dir" && as_dir=.
16095     for ac_exec_ext in '' $ac_executable_extensions; do
16096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16097     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16099     break 2
16100   fi
16101 done
16102   done
16103 IFS=$as_save_IFS
16104 
16105   ;;
16106 esac
16107 fi
16108 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16109 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16111 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16112 else
16113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 $as_echo "no" >&6; }
16115 fi
16116 
16117 
16118   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16119 done
16120 
16121 
16122   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16123   DESCRIPTION="gmake in tools-dir"
16124   if test "x$MAKE_CANDIDATE" != x; then
16125     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16126 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16127     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16128     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16129     if test "x$IS_GNU_MAKE" = x; then
16130       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16131 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16132     else
16133       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16134       if test "x$IS_MODERN_MAKE" = x; then
16135         { $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
16136 $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;}
16137       else
16138         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16139           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16140             MAKE_EXPECTED_ENV='cygwin'
16141           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16142             MAKE_EXPECTED_ENV='msys'
16143           else
16144             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16145           fi
16146           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16147           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16148         else
16149           # Not relevant for non-Windows
16150           IS_MAKE_CORRECT_ENV=true
16151         fi
16152         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16153           { $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
16154 $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;}
16155         else
16156           FOUND_MAKE=$MAKE_CANDIDATE
16157 
16158   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16159 
16160   # First separate the path from the arguments. This will split at the first
16161   # space.
16162   complete="$FOUND_MAKE"
16163   path="${complete%% *}"
16164   tmp="$complete EOL"
16165   arguments="${tmp#* }"
16166 
16167   # Input might be given as Windows format, start by converting to
16168   # unix format.
16169   new_path=`$CYGPATH -u "$path"`
16170 
16171   # Now try to locate executable using which
16172   new_path=`$WHICH "$new_path" 2> /dev/null`
16173   # bat and cmd files are not always considered executable in cygwin causing which
16174   # to not find them
16175   if test "x$new_path" = x \
16176       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16177       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16178     new_path=`$CYGPATH -u "$path"`
16179   fi
16180   if test "x$new_path" = x; then
16181     # Oops. Which didn't find the executable.
16182     # The splitting of arguments from the executable at a space might have been incorrect,
16183     # since paths with space are more likely in Windows. Give it another try with the whole
16184     # argument.
16185     path="$complete"
16186     arguments="EOL"
16187     new_path=`$CYGPATH -u "$path"`
16188     new_path=`$WHICH "$new_path" 2> /dev/null`
16189     # bat and cmd files are not always considered executable in cygwin causing which
16190     # to not find them
16191     if test "x$new_path" = x \
16192         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16193         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16194       new_path=`$CYGPATH -u "$path"`
16195     fi
16196     if test "x$new_path" = x; then
16197       # It's still not found. Now this is an unrecoverable error.
16198       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16200       has_space=`$ECHO "$complete" | $GREP " "`
16201       if test "x$has_space" != x; then
16202         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16203 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16204       fi
16205       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16206     fi
16207   fi
16208 
16209   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16210   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16211   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16212   # "foo.exe" is OK but "foo" is an error.
16213   #
16214   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16215   # It is also a way to make sure we got the proper file name for the real test later on.
16216   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16217   if test "x$test_shortpath" = x; then
16218     # Short path failed, file does not exist as specified.
16219     # Try adding .exe or .cmd
16220     if test -f "${new_path}.exe"; then
16221       input_to_shortpath="${new_path}.exe"
16222     elif test -f "${new_path}.cmd"; then
16223       input_to_shortpath="${new_path}.cmd"
16224     else
16225       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16226 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16227       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16228 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16229       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16230     fi
16231   else
16232     input_to_shortpath="$new_path"
16233   fi
16234 
16235   # Call helper function which possibly converts this using DOS-style short mode.
16236   # If so, the updated path is stored in $new_path.
16237   new_path="$input_to_shortpath"
16238 
16239   input_path="$input_to_shortpath"
16240   # Check if we need to convert this using DOS-style short mode. If the path
16241   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16242   # take no chances and rewrite it.
16243   # Note: m4 eats our [], so we need to use [ and ] instead.
16244   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16245   if test "x$has_forbidden_chars" != x; then
16246     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16247     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16248     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16249     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16250       # Going to short mode and back again did indeed matter. Since short mode is
16251       # case insensitive, let's make it lowercase to improve readability.
16252       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16253       # Now convert it back to Unix-stile (cygpath)
16254       input_path=`$CYGPATH -u "$shortmode_path"`
16255       new_path="$input_path"
16256     fi
16257   fi
16258 
16259   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16260   if test "x$test_cygdrive_prefix" = x; then
16261     # As a simple fix, exclude /usr/bin since it's not a real path.
16262     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16263       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16264       # a path prefixed by /cygdrive for fixpath to work.
16265       new_path="$CYGWIN_ROOT_PATH$input_path"
16266     fi
16267   fi
16268 
16269   # remove trailing .exe if any
16270   new_path="${new_path/%.exe/}"
16271 
16272   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16273 
16274   # First separate the path from the arguments. This will split at the first
16275   # space.
16276   complete="$FOUND_MAKE"
16277   path="${complete%% *}"
16278   tmp="$complete EOL"
16279   arguments="${tmp#* }"
16280 
16281   # Input might be given as Windows format, start by converting to
16282   # unix format.
16283   new_path="$path"
16284 
16285   windows_path="$new_path"
16286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16287     unix_path=`$CYGPATH -u "$windows_path"`
16288     new_path="$unix_path"
16289   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16290     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16291     new_path="$unix_path"
16292   fi
16293 
16294 
16295   # Now try to locate executable using which
16296   new_path=`$WHICH "$new_path" 2> /dev/null`
16297 
16298   if test "x$new_path" = x; then
16299     # Oops. Which didn't find the executable.
16300     # The splitting of arguments from the executable at a space might have been incorrect,
16301     # since paths with space are more likely in Windows. Give it another try with the whole
16302     # argument.
16303     path="$complete"
16304     arguments="EOL"
16305     new_path="$path"
16306 
16307   windows_path="$new_path"
16308   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16309     unix_path=`$CYGPATH -u "$windows_path"`
16310     new_path="$unix_path"
16311   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16312     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16313     new_path="$unix_path"
16314   fi
16315 
16316 
16317     new_path=`$WHICH "$new_path" 2> /dev/null`
16318 
16319     if test "x$new_path" = x; then
16320       # It's still not found. Now this is an unrecoverable error.
16321       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16322 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16323       has_space=`$ECHO "$complete" | $GREP " "`
16324       if test "x$has_space" != x; then
16325         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16326 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16327       fi
16328       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16329     fi
16330   fi
16331 
16332   # Now new_path has a complete unix path to the binary
16333   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16334     # Keep paths in /bin as-is, but remove trailing .exe if any
16335     new_path="${new_path/%.exe/}"
16336     # Do not save /bin paths to all_fixpath_prefixes!
16337   else
16338     # Not in mixed or Windows style, start by that.
16339     new_path=`cmd //c echo $new_path`
16340 
16341   input_path="$new_path"
16342   # Check if we need to convert this using DOS-style short mode. If the path
16343   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16344   # take no chances and rewrite it.
16345   # Note: m4 eats our [], so we need to use [ and ] instead.
16346   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16347   if test "x$has_forbidden_chars" != x; then
16348     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16349     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16350   fi
16351 
16352     # Output is in $new_path
16353 
16354   windows_path="$new_path"
16355   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16356     unix_path=`$CYGPATH -u "$windows_path"`
16357     new_path="$unix_path"
16358   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16359     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16360     new_path="$unix_path"
16361   fi
16362 
16363     # remove trailing .exe if any
16364     new_path="${new_path/%.exe/}"
16365 
16366     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16367     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16368   fi
16369 
16370   else
16371     # We're on a posix platform. Hooray! :)
16372     # First separate the path from the arguments. This will split at the first
16373     # space.
16374     complete="$FOUND_MAKE"
16375     path="${complete%% *}"
16376     tmp="$complete EOL"
16377     arguments="${tmp#* }"
16378 
16379     # Cannot rely on the command "which" here since it doesn't always work.
16380     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16381     if test -z "$is_absolute_path"; then
16382       # Path to executable is not absolute. Find it.
16383       IFS_save="$IFS"
16384       IFS=:
16385       for p in $PATH; do
16386         if test -f "$p/$path" && test -x "$p/$path"; then
16387           new_path="$p/$path"
16388           break
16389         fi
16390       done
16391       IFS="$IFS_save"
16392     else
16393       # This is an absolute path, we can use it without further modifications.
16394       new_path="$path"
16395     fi
16396 
16397     if test "x$new_path" = x; then
16398       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16399 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16400       has_space=`$ECHO "$complete" | $GREP " "`
16401       if test "x$has_space" != x; then
16402         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16403 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16404       fi
16405       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16406     fi
16407   fi
16408 
16409   # Now join together the path and the arguments once again
16410   if test "x$arguments" != xEOL; then
16411     new_complete="$new_path ${arguments% *}"
16412   else
16413     new_complete="$new_path"
16414   fi
16415 
16416   if test "x$complete" != "x$new_complete"; then
16417     FOUND_MAKE="$new_complete"
16418     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16419 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16420   fi
16421 
16422         fi
16423       fi
16424     fi
16425   fi
16426 
16427         if test "x$FOUND_MAKE" = x; then
16428           for ac_prog in make
16429 do
16430   # Extract the first word of "$ac_prog", so it can be a program name with args.
16431 set dummy $ac_prog; ac_word=$2
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16433 $as_echo_n "checking for $ac_word... " >&6; }
16434 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16435   $as_echo_n "(cached) " >&6
16436 else
16437   case $CHECK_TOOLSDIR_MAKE in
16438   [\\/]* | ?:[\\/]*)
16439   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16440   ;;
16441   *)
16442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16443 for as_dir in $PATH
16444 do
16445   IFS=$as_save_IFS
16446   test -z "$as_dir" && as_dir=.
16447     for ac_exec_ext in '' $ac_executable_extensions; do
16448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16449     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16451     break 2
16452   fi
16453 done
16454   done
16455 IFS=$as_save_IFS
16456 
16457   ;;
16458 esac
16459 fi
16460 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16461 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16463 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16464 else
16465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16466 $as_echo "no" >&6; }
16467 fi
16468 
16469 
16470   test -n "$CHECK_TOOLSDIR_MAKE" && break
16471 done
16472 
16473 
16474   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16475   DESCRIPTION="make in tools-dir"
16476   if test "x$MAKE_CANDIDATE" != x; then
16477     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16478 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16479     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16480     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16481     if test "x$IS_GNU_MAKE" = x; then
16482       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16483 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16484     else
16485       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16486       if test "x$IS_MODERN_MAKE" = x; then
16487         { $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
16488 $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;}
16489       else
16490         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16491           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16492             MAKE_EXPECTED_ENV='cygwin'
16493           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16494             MAKE_EXPECTED_ENV='msys'
16495           else
16496             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16497           fi
16498           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16499           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16500         else
16501           # Not relevant for non-Windows
16502           IS_MAKE_CORRECT_ENV=true
16503         fi
16504         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16505           { $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
16506 $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;}
16507         else
16508           FOUND_MAKE=$MAKE_CANDIDATE
16509 
16510   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16511 
16512   # First separate the path from the arguments. This will split at the first
16513   # space.
16514   complete="$FOUND_MAKE"
16515   path="${complete%% *}"
16516   tmp="$complete EOL"
16517   arguments="${tmp#* }"
16518 
16519   # Input might be given as Windows format, start by converting to
16520   # unix format.
16521   new_path=`$CYGPATH -u "$path"`
16522 
16523   # Now try to locate executable using which
16524   new_path=`$WHICH "$new_path" 2> /dev/null`
16525   # bat and cmd files are not always considered executable in cygwin causing which
16526   # to not find them
16527   if test "x$new_path" = x \
16528       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16529       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16530     new_path=`$CYGPATH -u "$path"`
16531   fi
16532   if test "x$new_path" = x; then
16533     # Oops. Which didn't find the executable.
16534     # The splitting of arguments from the executable at a space might have been incorrect,
16535     # since paths with space are more likely in Windows. Give it another try with the whole
16536     # argument.
16537     path="$complete"
16538     arguments="EOL"
16539     new_path=`$CYGPATH -u "$path"`
16540     new_path=`$WHICH "$new_path" 2> /dev/null`
16541     # bat and cmd files are not always considered executable in cygwin causing which
16542     # to not find them
16543     if test "x$new_path" = x \
16544         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16545         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16546       new_path=`$CYGPATH -u "$path"`
16547     fi
16548     if test "x$new_path" = x; then
16549       # It's still not found. Now this is an unrecoverable error.
16550       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16551 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16552       has_space=`$ECHO "$complete" | $GREP " "`
16553       if test "x$has_space" != x; then
16554         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16555 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16556       fi
16557       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16558     fi
16559   fi
16560 
16561   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16562   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16563   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16564   # "foo.exe" is OK but "foo" is an error.
16565   #
16566   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16567   # It is also a way to make sure we got the proper file name for the real test later on.
16568   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16569   if test "x$test_shortpath" = x; then
16570     # Short path failed, file does not exist as specified.
16571     # Try adding .exe or .cmd
16572     if test -f "${new_path}.exe"; then
16573       input_to_shortpath="${new_path}.exe"
16574     elif test -f "${new_path}.cmd"; then
16575       input_to_shortpath="${new_path}.cmd"
16576     else
16577       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16578 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16579       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16580 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16581       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16582     fi
16583   else
16584     input_to_shortpath="$new_path"
16585   fi
16586 
16587   # Call helper function which possibly converts this using DOS-style short mode.
16588   # If so, the updated path is stored in $new_path.
16589   new_path="$input_to_shortpath"
16590 
16591   input_path="$input_to_shortpath"
16592   # Check if we need to convert this using DOS-style short mode. If the path
16593   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16594   # take no chances and rewrite it.
16595   # Note: m4 eats our [], so we need to use [ and ] instead.
16596   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16597   if test "x$has_forbidden_chars" != x; then
16598     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16599     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16600     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16601     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16602       # Going to short mode and back again did indeed matter. Since short mode is
16603       # case insensitive, let's make it lowercase to improve readability.
16604       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16605       # Now convert it back to Unix-stile (cygpath)
16606       input_path=`$CYGPATH -u "$shortmode_path"`
16607       new_path="$input_path"
16608     fi
16609   fi
16610 
16611   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16612   if test "x$test_cygdrive_prefix" = x; then
16613     # As a simple fix, exclude /usr/bin since it's not a real path.
16614     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16615       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16616       # a path prefixed by /cygdrive for fixpath to work.
16617       new_path="$CYGWIN_ROOT_PATH$input_path"
16618     fi
16619   fi
16620 
16621   # remove trailing .exe if any
16622   new_path="${new_path/%.exe/}"
16623 
16624   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16625 
16626   # First separate the path from the arguments. This will split at the first
16627   # space.
16628   complete="$FOUND_MAKE"
16629   path="${complete%% *}"
16630   tmp="$complete EOL"
16631   arguments="${tmp#* }"
16632 
16633   # Input might be given as Windows format, start by converting to
16634   # unix format.
16635   new_path="$path"
16636 
16637   windows_path="$new_path"
16638   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16639     unix_path=`$CYGPATH -u "$windows_path"`
16640     new_path="$unix_path"
16641   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16642     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16643     new_path="$unix_path"
16644   fi
16645 
16646 
16647   # Now try to locate executable using which
16648   new_path=`$WHICH "$new_path" 2> /dev/null`
16649 
16650   if test "x$new_path" = x; then
16651     # Oops. Which didn't find the executable.
16652     # The splitting of arguments from the executable at a space might have been incorrect,
16653     # since paths with space are more likely in Windows. Give it another try with the whole
16654     # argument.
16655     path="$complete"
16656     arguments="EOL"
16657     new_path="$path"
16658 
16659   windows_path="$new_path"
16660   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16661     unix_path=`$CYGPATH -u "$windows_path"`
16662     new_path="$unix_path"
16663   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16664     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16665     new_path="$unix_path"
16666   fi
16667 
16668 
16669     new_path=`$WHICH "$new_path" 2> /dev/null`
16670 
16671     if test "x$new_path" = x; then
16672       # It's still not found. Now this is an unrecoverable error.
16673       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16674 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16675       has_space=`$ECHO "$complete" | $GREP " "`
16676       if test "x$has_space" != x; then
16677         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16678 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16679       fi
16680       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16681     fi
16682   fi
16683 
16684   # Now new_path has a complete unix path to the binary
16685   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16686     # Keep paths in /bin as-is, but remove trailing .exe if any
16687     new_path="${new_path/%.exe/}"
16688     # Do not save /bin paths to all_fixpath_prefixes!
16689   else
16690     # Not in mixed or Windows style, start by that.
16691     new_path=`cmd //c echo $new_path`
16692 
16693   input_path="$new_path"
16694   # Check if we need to convert this using DOS-style short mode. If the path
16695   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16696   # take no chances and rewrite it.
16697   # Note: m4 eats our [], so we need to use [ and ] instead.
16698   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16699   if test "x$has_forbidden_chars" != x; then
16700     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16701     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16702   fi
16703 
16704     # Output is in $new_path
16705 
16706   windows_path="$new_path"
16707   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16708     unix_path=`$CYGPATH -u "$windows_path"`
16709     new_path="$unix_path"
16710   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16711     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16712     new_path="$unix_path"
16713   fi
16714 
16715     # remove trailing .exe if any
16716     new_path="${new_path/%.exe/}"
16717 
16718     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16719     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16720   fi
16721 
16722   else
16723     # We're on a posix platform. Hooray! :)
16724     # First separate the path from the arguments. This will split at the first
16725     # space.
16726     complete="$FOUND_MAKE"
16727     path="${complete%% *}"
16728     tmp="$complete EOL"
16729     arguments="${tmp#* }"
16730 
16731     # Cannot rely on the command "which" here since it doesn't always work.
16732     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16733     if test -z "$is_absolute_path"; then
16734       # Path to executable is not absolute. Find it.
16735       IFS_save="$IFS"
16736       IFS=:
16737       for p in $PATH; do
16738         if test -f "$p/$path" && test -x "$p/$path"; then
16739           new_path="$p/$path"
16740           break
16741         fi
16742       done
16743       IFS="$IFS_save"
16744     else
16745       # This is an absolute path, we can use it without further modifications.
16746       new_path="$path"
16747     fi
16748 
16749     if test "x$new_path" = x; then
16750       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16751 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16752       has_space=`$ECHO "$complete" | $GREP " "`
16753       if test "x$has_space" != x; then
16754         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16755 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16756       fi
16757       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16758     fi
16759   fi
16760 
16761   # Now join together the path and the arguments once again
16762   if test "x$arguments" != xEOL; then
16763     new_complete="$new_path ${arguments% *}"
16764   else
16765     new_complete="$new_path"
16766   fi
16767 
16768   if test "x$complete" != "x$new_complete"; then
16769     FOUND_MAKE="$new_complete"
16770     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16771 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16772   fi
16773 
16774         fi
16775       fi
16776     fi
16777   fi
16778 
16779         fi
16780         PATH=$OLD_PATH
16781       fi
16782     fi
16783 
16784     if test "x$FOUND_MAKE" = x; then
16785       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
16786     fi
16787   fi
16788 
16789   MAKE=$FOUND_MAKE
16790 
16791   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16792 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16793 
16794 
16795 
16796   # Test if find supports -delete
16797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16798 $as_echo_n "checking if find supports -delete... " >&6; }
16799   FIND_DELETE="-delete"
16800 
16801   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16802 
16803   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16804 
16805   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16806   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16807     # No, it does not.
16808     rm $DELETEDIR/TestIfFindSupportsDelete
16809     FIND_DELETE="-exec rm \{\} \+"
16810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16811 $as_echo "no" >&6; }
16812   else
16813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814 $as_echo "yes" >&6; }
16815   fi
16816   rmdir $DELETEDIR
16817 
16818 
16819 
16820   # These tools might not be installed by default,
16821   # need hint on how to install them.
16822 
16823 
16824 
16825   # Publish this variable in the help.
16826 
16827 
16828   if test "x$UNZIP" = x; then
16829     # The variable is not set by user, try to locate tool using the code snippet
16830     for ac_prog in unzip
16831 do
16832   # Extract the first word of "$ac_prog", so it can be a program name with args.
16833 set dummy $ac_prog; ac_word=$2
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16835 $as_echo_n "checking for $ac_word... " >&6; }
16836 if ${ac_cv_path_UNZIP+:} false; then :
16837   $as_echo_n "(cached) " >&6
16838 else
16839   case $UNZIP in
16840   [\\/]* | ?:[\\/]*)
16841   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16842   ;;
16843   *)
16844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16845 for as_dir in $PATH
16846 do
16847   IFS=$as_save_IFS
16848   test -z "$as_dir" && as_dir=.
16849     for ac_exec_ext in '' $ac_executable_extensions; do
16850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16851     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16853     break 2
16854   fi
16855 done
16856   done
16857 IFS=$as_save_IFS
16858 
16859   ;;
16860 esac
16861 fi
16862 UNZIP=$ac_cv_path_UNZIP
16863 if test -n "$UNZIP"; then
16864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16865 $as_echo "$UNZIP" >&6; }
16866 else
16867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16868 $as_echo "no" >&6; }
16869 fi
16870 
16871 
16872   test -n "$UNZIP" && break
16873 done
16874 
16875   else
16876     # The variable is set, but is it from the command line or the environment?
16877 
16878     # Try to remove the string !UNZIP! from our list.
16879     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16880     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16881       # If it failed, the variable was not from the command line. Ignore it,
16882       # but warn the user (except for BASH, which is always set by the calling BASH).
16883       if test "xUNZIP" != xBASH; then
16884         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16885 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16886       fi
16887       # Try to locate tool using the code snippet
16888       for ac_prog in unzip
16889 do
16890   # Extract the first word of "$ac_prog", so it can be a program name with args.
16891 set dummy $ac_prog; ac_word=$2
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16893 $as_echo_n "checking for $ac_word... " >&6; }
16894 if ${ac_cv_path_UNZIP+:} false; then :
16895   $as_echo_n "(cached) " >&6
16896 else
16897   case $UNZIP in
16898   [\\/]* | ?:[\\/]*)
16899   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16900   ;;
16901   *)
16902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16903 for as_dir in $PATH
16904 do
16905   IFS=$as_save_IFS
16906   test -z "$as_dir" && as_dir=.
16907     for ac_exec_ext in '' $ac_executable_extensions; do
16908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16909     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16911     break 2
16912   fi
16913 done
16914   done
16915 IFS=$as_save_IFS
16916 
16917   ;;
16918 esac
16919 fi
16920 UNZIP=$ac_cv_path_UNZIP
16921 if test -n "$UNZIP"; then
16922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16923 $as_echo "$UNZIP" >&6; }
16924 else
16925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16926 $as_echo "no" >&6; }
16927 fi
16928 
16929 
16930   test -n "$UNZIP" && break
16931 done
16932 
16933     else
16934       # If it succeeded, then it was overridden by the user. We will use it
16935       # for the tool.
16936 
16937       # First remove it from the list of overridden variables, so we can test
16938       # for unknown variables in the end.
16939       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16940 
16941       # Check if the provided tool contains a complete path.
16942       tool_specified="$UNZIP"
16943       tool_basename="${tool_specified##*/}"
16944       if test "x$tool_basename" = "x$tool_specified"; then
16945         # A command without a complete path is provided, search $PATH.
16946         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16947 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16948         # Extract the first word of "$tool_basename", so it can be a program name with args.
16949 set dummy $tool_basename; ac_word=$2
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16951 $as_echo_n "checking for $ac_word... " >&6; }
16952 if ${ac_cv_path_UNZIP+:} false; then :
16953   $as_echo_n "(cached) " >&6
16954 else
16955   case $UNZIP in
16956   [\\/]* | ?:[\\/]*)
16957   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16958   ;;
16959   *)
16960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16961 for as_dir in $PATH
16962 do
16963   IFS=$as_save_IFS
16964   test -z "$as_dir" && as_dir=.
16965     for ac_exec_ext in '' $ac_executable_extensions; do
16966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16967     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16969     break 2
16970   fi
16971 done
16972   done
16973 IFS=$as_save_IFS
16974 
16975   ;;
16976 esac
16977 fi
16978 UNZIP=$ac_cv_path_UNZIP
16979 if test -n "$UNZIP"; then
16980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16981 $as_echo "$UNZIP" >&6; }
16982 else
16983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984 $as_echo "no" >&6; }
16985 fi
16986 
16987 
16988         if test "x$UNZIP" = x; then
16989           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
16990         fi
16991       else
16992         # Otherwise we believe it is a complete path. Use it as it is.
16993         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
16994 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
16995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
16996 $as_echo_n "checking for UNZIP... " >&6; }
16997         if test ! -x "$tool_specified"; then
16998           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16999 $as_echo "not found" >&6; }
17000           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17001         fi
17002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17003 $as_echo "$tool_specified" >&6; }
17004       fi
17005     fi
17006   fi
17007 
17008 
17009 
17010   if test "x$UNZIP" = x; then
17011     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17012   fi
17013 
17014 
17015 
17016 
17017 
17018   # Publish this variable in the help.
17019 
17020 
17021   if test "x$ZIP" = x; then
17022     # The variable is not set by user, try to locate tool using the code snippet
17023     for ac_prog in zip
17024 do
17025   # Extract the first word of "$ac_prog", so it can be a program name with args.
17026 set dummy $ac_prog; ac_word=$2
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17028 $as_echo_n "checking for $ac_word... " >&6; }
17029 if ${ac_cv_path_ZIP+:} false; then :
17030   $as_echo_n "(cached) " >&6
17031 else
17032   case $ZIP in
17033   [\\/]* | ?:[\\/]*)
17034   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17035   ;;
17036   *)
17037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17038 for as_dir in $PATH
17039 do
17040   IFS=$as_save_IFS
17041   test -z "$as_dir" && as_dir=.
17042     for ac_exec_ext in '' $ac_executable_extensions; do
17043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17044     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17046     break 2
17047   fi
17048 done
17049   done
17050 IFS=$as_save_IFS
17051 
17052   ;;
17053 esac
17054 fi
17055 ZIP=$ac_cv_path_ZIP
17056 if test -n "$ZIP"; then
17057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17058 $as_echo "$ZIP" >&6; }
17059 else
17060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17061 $as_echo "no" >&6; }
17062 fi
17063 
17064 
17065   test -n "$ZIP" && break
17066 done
17067 
17068   else
17069     # The variable is set, but is it from the command line or the environment?
17070 
17071     # Try to remove the string !ZIP! from our list.
17072     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17073     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17074       # If it failed, the variable was not from the command line. Ignore it,
17075       # but warn the user (except for BASH, which is always set by the calling BASH).
17076       if test "xZIP" != xBASH; then
17077         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17078 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17079       fi
17080       # Try to locate tool using the code snippet
17081       for ac_prog in zip
17082 do
17083   # Extract the first word of "$ac_prog", so it can be a program name with args.
17084 set dummy $ac_prog; ac_word=$2
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17086 $as_echo_n "checking for $ac_word... " >&6; }
17087 if ${ac_cv_path_ZIP+:} false; then :
17088   $as_echo_n "(cached) " >&6
17089 else
17090   case $ZIP in
17091   [\\/]* | ?:[\\/]*)
17092   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17093   ;;
17094   *)
17095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17096 for as_dir in $PATH
17097 do
17098   IFS=$as_save_IFS
17099   test -z "$as_dir" && as_dir=.
17100     for ac_exec_ext in '' $ac_executable_extensions; do
17101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17102     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17104     break 2
17105   fi
17106 done
17107   done
17108 IFS=$as_save_IFS
17109 
17110   ;;
17111 esac
17112 fi
17113 ZIP=$ac_cv_path_ZIP
17114 if test -n "$ZIP"; then
17115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17116 $as_echo "$ZIP" >&6; }
17117 else
17118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17119 $as_echo "no" >&6; }
17120 fi
17121 
17122 
17123   test -n "$ZIP" && break
17124 done
17125 
17126     else
17127       # If it succeeded, then it was overridden by the user. We will use it
17128       # for the tool.
17129 
17130       # First remove it from the list of overridden variables, so we can test
17131       # for unknown variables in the end.
17132       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17133 
17134       # Check if the provided tool contains a complete path.
17135       tool_specified="$ZIP"
17136       tool_basename="${tool_specified##*/}"
17137       if test "x$tool_basename" = "x$tool_specified"; then
17138         # A command without a complete path is provided, search $PATH.
17139         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17140 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17141         # Extract the first word of "$tool_basename", so it can be a program name with args.
17142 set dummy $tool_basename; ac_word=$2
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17144 $as_echo_n "checking for $ac_word... " >&6; }
17145 if ${ac_cv_path_ZIP+:} false; then :
17146   $as_echo_n "(cached) " >&6
17147 else
17148   case $ZIP in
17149   [\\/]* | ?:[\\/]*)
17150   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17151   ;;
17152   *)
17153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17154 for as_dir in $PATH
17155 do
17156   IFS=$as_save_IFS
17157   test -z "$as_dir" && as_dir=.
17158     for ac_exec_ext in '' $ac_executable_extensions; do
17159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17160     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17162     break 2
17163   fi
17164 done
17165   done
17166 IFS=$as_save_IFS
17167 
17168   ;;
17169 esac
17170 fi
17171 ZIP=$ac_cv_path_ZIP
17172 if test -n "$ZIP"; then
17173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17174 $as_echo "$ZIP" >&6; }
17175 else
17176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177 $as_echo "no" >&6; }
17178 fi
17179 
17180 
17181         if test "x$ZIP" = x; then
17182           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17183         fi
17184       else
17185         # Otherwise we believe it is a complete path. Use it as it is.
17186         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17187 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17189 $as_echo_n "checking for ZIP... " >&6; }
17190         if test ! -x "$tool_specified"; then
17191           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17192 $as_echo "not found" >&6; }
17193           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17194         fi
17195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17196 $as_echo "$tool_specified" >&6; }
17197       fi
17198     fi
17199   fi
17200 
17201 
17202 
17203   if test "x$ZIP" = x; then
17204     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17205   fi
17206 
17207 
17208 
17209   # Non-required basic tools
17210 
17211 
17212 
17213   # Publish this variable in the help.
17214 
17215 
17216   if test "x$LDD" = x; then
17217     # The variable is not set by user, try to locate tool using the code snippet
17218     for ac_prog in ldd
17219 do
17220   # Extract the first word of "$ac_prog", so it can be a program name with args.
17221 set dummy $ac_prog; ac_word=$2
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17223 $as_echo_n "checking for $ac_word... " >&6; }
17224 if ${ac_cv_path_LDD+:} false; then :
17225   $as_echo_n "(cached) " >&6
17226 else
17227   case $LDD in
17228   [\\/]* | ?:[\\/]*)
17229   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17230   ;;
17231   *)
17232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17233 for as_dir in $PATH
17234 do
17235   IFS=$as_save_IFS
17236   test -z "$as_dir" && as_dir=.
17237     for ac_exec_ext in '' $ac_executable_extensions; do
17238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17239     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17241     break 2
17242   fi
17243 done
17244   done
17245 IFS=$as_save_IFS
17246 
17247   ;;
17248 esac
17249 fi
17250 LDD=$ac_cv_path_LDD
17251 if test -n "$LDD"; then
17252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17253 $as_echo "$LDD" >&6; }
17254 else
17255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17256 $as_echo "no" >&6; }
17257 fi
17258 
17259 
17260   test -n "$LDD" && break
17261 done
17262 
17263   else
17264     # The variable is set, but is it from the command line or the environment?
17265 
17266     # Try to remove the string !LDD! from our list.
17267     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17268     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17269       # If it failed, the variable was not from the command line. Ignore it,
17270       # but warn the user (except for BASH, which is always set by the calling BASH).
17271       if test "xLDD" != xBASH; then
17272         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17273 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17274       fi
17275       # Try to locate tool using the code snippet
17276       for ac_prog in ldd
17277 do
17278   # Extract the first word of "$ac_prog", so it can be a program name with args.
17279 set dummy $ac_prog; ac_word=$2
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17281 $as_echo_n "checking for $ac_word... " >&6; }
17282 if ${ac_cv_path_LDD+:} false; then :
17283   $as_echo_n "(cached) " >&6
17284 else
17285   case $LDD in
17286   [\\/]* | ?:[\\/]*)
17287   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17288   ;;
17289   *)
17290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17291 for as_dir in $PATH
17292 do
17293   IFS=$as_save_IFS
17294   test -z "$as_dir" && as_dir=.
17295     for ac_exec_ext in '' $ac_executable_extensions; do
17296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17297     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17299     break 2
17300   fi
17301 done
17302   done
17303 IFS=$as_save_IFS
17304 
17305   ;;
17306 esac
17307 fi
17308 LDD=$ac_cv_path_LDD
17309 if test -n "$LDD"; then
17310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17311 $as_echo "$LDD" >&6; }
17312 else
17313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314 $as_echo "no" >&6; }
17315 fi
17316 
17317 
17318   test -n "$LDD" && break
17319 done
17320 
17321     else
17322       # If it succeeded, then it was overridden by the user. We will use it
17323       # for the tool.
17324 
17325       # First remove it from the list of overridden variables, so we can test
17326       # for unknown variables in the end.
17327       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17328 
17329       # Check if the provided tool contains a complete path.
17330       tool_specified="$LDD"
17331       tool_basename="${tool_specified##*/}"
17332       if test "x$tool_basename" = "x$tool_specified"; then
17333         # A command without a complete path is provided, search $PATH.
17334         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17335 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17336         # Extract the first word of "$tool_basename", so it can be a program name with args.
17337 set dummy $tool_basename; ac_word=$2
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17339 $as_echo_n "checking for $ac_word... " >&6; }
17340 if ${ac_cv_path_LDD+:} false; then :
17341   $as_echo_n "(cached) " >&6
17342 else
17343   case $LDD in
17344   [\\/]* | ?:[\\/]*)
17345   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17346   ;;
17347   *)
17348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17349 for as_dir in $PATH
17350 do
17351   IFS=$as_save_IFS
17352   test -z "$as_dir" && as_dir=.
17353     for ac_exec_ext in '' $ac_executable_extensions; do
17354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17355     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17357     break 2
17358   fi
17359 done
17360   done
17361 IFS=$as_save_IFS
17362 
17363   ;;
17364 esac
17365 fi
17366 LDD=$ac_cv_path_LDD
17367 if test -n "$LDD"; then
17368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17369 $as_echo "$LDD" >&6; }
17370 else
17371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17373 fi
17374 
17375 
17376         if test "x$LDD" = x; then
17377           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17378         fi
17379       else
17380         # Otherwise we believe it is a complete path. Use it as it is.
17381         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17382 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17384 $as_echo_n "checking for LDD... " >&6; }
17385         if test ! -x "$tool_specified"; then
17386           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17387 $as_echo "not found" >&6; }
17388           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17389         fi
17390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17391 $as_echo "$tool_specified" >&6; }
17392       fi
17393     fi
17394   fi
17395 
17396 
17397   if test "x$LDD" = "x"; then
17398     # List shared lib dependencies is used for
17399     # debug output and checking for forbidden dependencies.
17400     # We can build without it.
17401     LDD="true"
17402   fi
17403 
17404 
17405   # Publish this variable in the help.
17406 
17407 
17408   if test "x$OTOOL" = x; then
17409     # The variable is not set by user, try to locate tool using the code snippet
17410     for ac_prog in otool
17411 do
17412   # Extract the first word of "$ac_prog", so it can be a program name with args.
17413 set dummy $ac_prog; ac_word=$2
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17415 $as_echo_n "checking for $ac_word... " >&6; }
17416 if ${ac_cv_path_OTOOL+:} false; then :
17417   $as_echo_n "(cached) " >&6
17418 else
17419   case $OTOOL in
17420   [\\/]* | ?:[\\/]*)
17421   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17422   ;;
17423   *)
17424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17425 for as_dir in $PATH
17426 do
17427   IFS=$as_save_IFS
17428   test -z "$as_dir" && as_dir=.
17429     for ac_exec_ext in '' $ac_executable_extensions; do
17430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17431     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17433     break 2
17434   fi
17435 done
17436   done
17437 IFS=$as_save_IFS
17438 
17439   ;;
17440 esac
17441 fi
17442 OTOOL=$ac_cv_path_OTOOL
17443 if test -n "$OTOOL"; then
17444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17445 $as_echo "$OTOOL" >&6; }
17446 else
17447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17448 $as_echo "no" >&6; }
17449 fi
17450 
17451 
17452   test -n "$OTOOL" && break
17453 done
17454 
17455   else
17456     # The variable is set, but is it from the command line or the environment?
17457 
17458     # Try to remove the string !OTOOL! from our list.
17459     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17460     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17461       # If it failed, the variable was not from the command line. Ignore it,
17462       # but warn the user (except for BASH, which is always set by the calling BASH).
17463       if test "xOTOOL" != xBASH; then
17464         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17465 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17466       fi
17467       # Try to locate tool using the code snippet
17468       for ac_prog in otool
17469 do
17470   # Extract the first word of "$ac_prog", so it can be a program name with args.
17471 set dummy $ac_prog; ac_word=$2
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17473 $as_echo_n "checking for $ac_word... " >&6; }
17474 if ${ac_cv_path_OTOOL+:} false; then :
17475   $as_echo_n "(cached) " >&6
17476 else
17477   case $OTOOL in
17478   [\\/]* | ?:[\\/]*)
17479   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17480   ;;
17481   *)
17482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17483 for as_dir in $PATH
17484 do
17485   IFS=$as_save_IFS
17486   test -z "$as_dir" && as_dir=.
17487     for ac_exec_ext in '' $ac_executable_extensions; do
17488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17489     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17491     break 2
17492   fi
17493 done
17494   done
17495 IFS=$as_save_IFS
17496 
17497   ;;
17498 esac
17499 fi
17500 OTOOL=$ac_cv_path_OTOOL
17501 if test -n "$OTOOL"; then
17502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17503 $as_echo "$OTOOL" >&6; }
17504 else
17505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17506 $as_echo "no" >&6; }
17507 fi
17508 
17509 
17510   test -n "$OTOOL" && break
17511 done
17512 
17513     else
17514       # If it succeeded, then it was overridden by the user. We will use it
17515       # for the tool.
17516 
17517       # First remove it from the list of overridden variables, so we can test
17518       # for unknown variables in the end.
17519       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17520 
17521       # Check if the provided tool contains a complete path.
17522       tool_specified="$OTOOL"
17523       tool_basename="${tool_specified##*/}"
17524       if test "x$tool_basename" = "x$tool_specified"; then
17525         # A command without a complete path is provided, search $PATH.
17526         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17527 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17528         # Extract the first word of "$tool_basename", so it can be a program name with args.
17529 set dummy $tool_basename; ac_word=$2
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17531 $as_echo_n "checking for $ac_word... " >&6; }
17532 if ${ac_cv_path_OTOOL+:} false; then :
17533   $as_echo_n "(cached) " >&6
17534 else
17535   case $OTOOL in
17536   [\\/]* | ?:[\\/]*)
17537   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17538   ;;
17539   *)
17540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17541 for as_dir in $PATH
17542 do
17543   IFS=$as_save_IFS
17544   test -z "$as_dir" && as_dir=.
17545     for ac_exec_ext in '' $ac_executable_extensions; do
17546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17547     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17549     break 2
17550   fi
17551 done
17552   done
17553 IFS=$as_save_IFS
17554 
17555   ;;
17556 esac
17557 fi
17558 OTOOL=$ac_cv_path_OTOOL
17559 if test -n "$OTOOL"; then
17560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17561 $as_echo "$OTOOL" >&6; }
17562 else
17563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564 $as_echo "no" >&6; }
17565 fi
17566 
17567 
17568         if test "x$OTOOL" = x; then
17569           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17570         fi
17571       else
17572         # Otherwise we believe it is a complete path. Use it as it is.
17573         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17574 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17576 $as_echo_n "checking for OTOOL... " >&6; }
17577         if test ! -x "$tool_specified"; then
17578           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17579 $as_echo "not found" >&6; }
17580           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17581         fi
17582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17583 $as_echo "$tool_specified" >&6; }
17584       fi
17585     fi
17586   fi
17587 
17588 
17589   if test "x$OTOOL" = "x"; then
17590     OTOOL="true"
17591   fi
17592 
17593 
17594   # Publish this variable in the help.
17595 
17596 
17597   if test "x$READELF" = x; then
17598     # The variable is not set by user, try to locate tool using the code snippet
17599     for ac_prog in greadelf readelf
17600 do
17601   # Extract the first word of "$ac_prog", so it can be a program name with args.
17602 set dummy $ac_prog; ac_word=$2
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17604 $as_echo_n "checking for $ac_word... " >&6; }
17605 if ${ac_cv_path_READELF+:} false; then :
17606   $as_echo_n "(cached) " >&6
17607 else
17608   case $READELF in
17609   [\\/]* | ?:[\\/]*)
17610   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17611   ;;
17612   *)
17613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17614 for as_dir in $PATH
17615 do
17616   IFS=$as_save_IFS
17617   test -z "$as_dir" && as_dir=.
17618     for ac_exec_ext in '' $ac_executable_extensions; do
17619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17620     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17622     break 2
17623   fi
17624 done
17625   done
17626 IFS=$as_save_IFS
17627 
17628   ;;
17629 esac
17630 fi
17631 READELF=$ac_cv_path_READELF
17632 if test -n "$READELF"; then
17633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17634 $as_echo "$READELF" >&6; }
17635 else
17636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637 $as_echo "no" >&6; }
17638 fi
17639 
17640 
17641   test -n "$READELF" && break
17642 done
17643 
17644   else
17645     # The variable is set, but is it from the command line or the environment?
17646 
17647     # Try to remove the string !READELF! from our list.
17648     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17649     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17650       # If it failed, the variable was not from the command line. Ignore it,
17651       # but warn the user (except for BASH, which is always set by the calling BASH).
17652       if test "xREADELF" != xBASH; then
17653         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17654 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17655       fi
17656       # Try to locate tool using the code snippet
17657       for ac_prog in greadelf readelf
17658 do
17659   # Extract the first word of "$ac_prog", so it can be a program name with args.
17660 set dummy $ac_prog; ac_word=$2
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17662 $as_echo_n "checking for $ac_word... " >&6; }
17663 if ${ac_cv_path_READELF+:} false; then :
17664   $as_echo_n "(cached) " >&6
17665 else
17666   case $READELF in
17667   [\\/]* | ?:[\\/]*)
17668   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17669   ;;
17670   *)
17671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17672 for as_dir in $PATH
17673 do
17674   IFS=$as_save_IFS
17675   test -z "$as_dir" && as_dir=.
17676     for ac_exec_ext in '' $ac_executable_extensions; do
17677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17678     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17680     break 2
17681   fi
17682 done
17683   done
17684 IFS=$as_save_IFS
17685 
17686   ;;
17687 esac
17688 fi
17689 READELF=$ac_cv_path_READELF
17690 if test -n "$READELF"; then
17691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17692 $as_echo "$READELF" >&6; }
17693 else
17694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17695 $as_echo "no" >&6; }
17696 fi
17697 
17698 
17699   test -n "$READELF" && break
17700 done
17701 
17702     else
17703       # If it succeeded, then it was overridden by the user. We will use it
17704       # for the tool.
17705 
17706       # First remove it from the list of overridden variables, so we can test
17707       # for unknown variables in the end.
17708       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17709 
17710       # Check if the provided tool contains a complete path.
17711       tool_specified="$READELF"
17712       tool_basename="${tool_specified##*/}"
17713       if test "x$tool_basename" = "x$tool_specified"; then
17714         # A command without a complete path is provided, search $PATH.
17715         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17716 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17717         # Extract the first word of "$tool_basename", so it can be a program name with args.
17718 set dummy $tool_basename; ac_word=$2
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17720 $as_echo_n "checking for $ac_word... " >&6; }
17721 if ${ac_cv_path_READELF+:} false; then :
17722   $as_echo_n "(cached) " >&6
17723 else
17724   case $READELF in
17725   [\\/]* | ?:[\\/]*)
17726   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17727   ;;
17728   *)
17729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17730 for as_dir in $PATH
17731 do
17732   IFS=$as_save_IFS
17733   test -z "$as_dir" && as_dir=.
17734     for ac_exec_ext in '' $ac_executable_extensions; do
17735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17736     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17738     break 2
17739   fi
17740 done
17741   done
17742 IFS=$as_save_IFS
17743 
17744   ;;
17745 esac
17746 fi
17747 READELF=$ac_cv_path_READELF
17748 if test -n "$READELF"; then
17749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17750 $as_echo "$READELF" >&6; }
17751 else
17752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17753 $as_echo "no" >&6; }
17754 fi
17755 
17756 
17757         if test "x$READELF" = x; then
17758           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17759         fi
17760       else
17761         # Otherwise we believe it is a complete path. Use it as it is.
17762         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17763 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17765 $as_echo_n "checking for READELF... " >&6; }
17766         if test ! -x "$tool_specified"; then
17767           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17768 $as_echo "not found" >&6; }
17769           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17770         fi
17771         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17772 $as_echo "$tool_specified" >&6; }
17773       fi
17774     fi
17775   fi
17776 
17777 
17778 
17779 
17780   # Publish this variable in the help.
17781 
17782 
17783   if test "x$HG" = x; then
17784     # The variable is not set by user, try to locate tool using the code snippet
17785     for ac_prog in hg
17786 do
17787   # Extract the first word of "$ac_prog", so it can be a program name with args.
17788 set dummy $ac_prog; ac_word=$2
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17790 $as_echo_n "checking for $ac_word... " >&6; }
17791 if ${ac_cv_path_HG+:} false; then :
17792   $as_echo_n "(cached) " >&6
17793 else
17794   case $HG in
17795   [\\/]* | ?:[\\/]*)
17796   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17797   ;;
17798   *)
17799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17800 for as_dir in $PATH
17801 do
17802   IFS=$as_save_IFS
17803   test -z "$as_dir" && as_dir=.
17804     for ac_exec_ext in '' $ac_executable_extensions; do
17805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17806     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17808     break 2
17809   fi
17810 done
17811   done
17812 IFS=$as_save_IFS
17813 
17814   ;;
17815 esac
17816 fi
17817 HG=$ac_cv_path_HG
17818 if test -n "$HG"; then
17819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17820 $as_echo "$HG" >&6; }
17821 else
17822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17823 $as_echo "no" >&6; }
17824 fi
17825 
17826 
17827   test -n "$HG" && break
17828 done
17829 
17830   else
17831     # The variable is set, but is it from the command line or the environment?
17832 
17833     # Try to remove the string !HG! from our list.
17834     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17835     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17836       # If it failed, the variable was not from the command line. Ignore it,
17837       # but warn the user (except for BASH, which is always set by the calling BASH).
17838       if test "xHG" != xBASH; then
17839         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17840 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17841       fi
17842       # Try to locate tool using the code snippet
17843       for ac_prog in hg
17844 do
17845   # Extract the first word of "$ac_prog", so it can be a program name with args.
17846 set dummy $ac_prog; ac_word=$2
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17848 $as_echo_n "checking for $ac_word... " >&6; }
17849 if ${ac_cv_path_HG+:} false; then :
17850   $as_echo_n "(cached) " >&6
17851 else
17852   case $HG in
17853   [\\/]* | ?:[\\/]*)
17854   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17855   ;;
17856   *)
17857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17858 for as_dir in $PATH
17859 do
17860   IFS=$as_save_IFS
17861   test -z "$as_dir" && as_dir=.
17862     for ac_exec_ext in '' $ac_executable_extensions; do
17863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17864     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17866     break 2
17867   fi
17868 done
17869   done
17870 IFS=$as_save_IFS
17871 
17872   ;;
17873 esac
17874 fi
17875 HG=$ac_cv_path_HG
17876 if test -n "$HG"; then
17877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17878 $as_echo "$HG" >&6; }
17879 else
17880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17881 $as_echo "no" >&6; }
17882 fi
17883 
17884 
17885   test -n "$HG" && break
17886 done
17887 
17888     else
17889       # If it succeeded, then it was overridden by the user. We will use it
17890       # for the tool.
17891 
17892       # First remove it from the list of overridden variables, so we can test
17893       # for unknown variables in the end.
17894       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17895 
17896       # Check if the provided tool contains a complete path.
17897       tool_specified="$HG"
17898       tool_basename="${tool_specified##*/}"
17899       if test "x$tool_basename" = "x$tool_specified"; then
17900         # A command without a complete path is provided, search $PATH.
17901         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17902 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17903         # Extract the first word of "$tool_basename", so it can be a program name with args.
17904 set dummy $tool_basename; ac_word=$2
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17906 $as_echo_n "checking for $ac_word... " >&6; }
17907 if ${ac_cv_path_HG+:} false; then :
17908   $as_echo_n "(cached) " >&6
17909 else
17910   case $HG in
17911   [\\/]* | ?:[\\/]*)
17912   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17913   ;;
17914   *)
17915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17916 for as_dir in $PATH
17917 do
17918   IFS=$as_save_IFS
17919   test -z "$as_dir" && as_dir=.
17920     for ac_exec_ext in '' $ac_executable_extensions; do
17921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17922     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17924     break 2
17925   fi
17926 done
17927   done
17928 IFS=$as_save_IFS
17929 
17930   ;;
17931 esac
17932 fi
17933 HG=$ac_cv_path_HG
17934 if test -n "$HG"; then
17935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17936 $as_echo "$HG" >&6; }
17937 else
17938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17939 $as_echo "no" >&6; }
17940 fi
17941 
17942 
17943         if test "x$HG" = x; then
17944           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17945         fi
17946       else
17947         # Otherwise we believe it is a complete path. Use it as it is.
17948         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17949 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17951 $as_echo_n "checking for HG... " >&6; }
17952         if test ! -x "$tool_specified"; then
17953           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17954 $as_echo "not found" >&6; }
17955           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17956         fi
17957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17958 $as_echo "$tool_specified" >&6; }
17959       fi
17960     fi
17961   fi
17962 
17963 
17964 
17965 
17966   # Publish this variable in the help.
17967 
17968 
17969   if test "x$STAT" = x; then
17970     # The variable is not set by user, try to locate tool using the code snippet
17971     for ac_prog in stat
17972 do
17973   # Extract the first word of "$ac_prog", so it can be a program name with args.
17974 set dummy $ac_prog; ac_word=$2
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17976 $as_echo_n "checking for $ac_word... " >&6; }
17977 if ${ac_cv_path_STAT+:} false; then :
17978   $as_echo_n "(cached) " >&6
17979 else
17980   case $STAT in
17981   [\\/]* | ?:[\\/]*)
17982   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17983   ;;
17984   *)
17985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17986 for as_dir in $PATH
17987 do
17988   IFS=$as_save_IFS
17989   test -z "$as_dir" && as_dir=.
17990     for ac_exec_ext in '' $ac_executable_extensions; do
17991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17992     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17994     break 2
17995   fi
17996 done
17997   done
17998 IFS=$as_save_IFS
17999 
18000   ;;
18001 esac
18002 fi
18003 STAT=$ac_cv_path_STAT
18004 if test -n "$STAT"; then
18005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18006 $as_echo "$STAT" >&6; }
18007 else
18008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18009 $as_echo "no" >&6; }
18010 fi
18011 
18012 
18013   test -n "$STAT" && break
18014 done
18015 
18016   else
18017     # The variable is set, but is it from the command line or the environment?
18018 
18019     # Try to remove the string !STAT! from our list.
18020     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18021     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18022       # If it failed, the variable was not from the command line. Ignore it,
18023       # but warn the user (except for BASH, which is always set by the calling BASH).
18024       if test "xSTAT" != xBASH; then
18025         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18026 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18027       fi
18028       # Try to locate tool using the code snippet
18029       for ac_prog in stat
18030 do
18031   # Extract the first word of "$ac_prog", so it can be a program name with args.
18032 set dummy $ac_prog; ac_word=$2
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18034 $as_echo_n "checking for $ac_word... " >&6; }
18035 if ${ac_cv_path_STAT+:} false; then :
18036   $as_echo_n "(cached) " >&6
18037 else
18038   case $STAT in
18039   [\\/]* | ?:[\\/]*)
18040   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18041   ;;
18042   *)
18043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18044 for as_dir in $PATH
18045 do
18046   IFS=$as_save_IFS
18047   test -z "$as_dir" && as_dir=.
18048     for ac_exec_ext in '' $ac_executable_extensions; do
18049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18050     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18052     break 2
18053   fi
18054 done
18055   done
18056 IFS=$as_save_IFS
18057 
18058   ;;
18059 esac
18060 fi
18061 STAT=$ac_cv_path_STAT
18062 if test -n "$STAT"; then
18063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18064 $as_echo "$STAT" >&6; }
18065 else
18066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18067 $as_echo "no" >&6; }
18068 fi
18069 
18070 
18071   test -n "$STAT" && break
18072 done
18073 
18074     else
18075       # If it succeeded, then it was overridden by the user. We will use it
18076       # for the tool.
18077 
18078       # First remove it from the list of overridden variables, so we can test
18079       # for unknown variables in the end.
18080       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18081 
18082       # Check if the provided tool contains a complete path.
18083       tool_specified="$STAT"
18084       tool_basename="${tool_specified##*/}"
18085       if test "x$tool_basename" = "x$tool_specified"; then
18086         # A command without a complete path is provided, search $PATH.
18087         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18088 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18089         # Extract the first word of "$tool_basename", so it can be a program name with args.
18090 set dummy $tool_basename; ac_word=$2
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18092 $as_echo_n "checking for $ac_word... " >&6; }
18093 if ${ac_cv_path_STAT+:} false; then :
18094   $as_echo_n "(cached) " >&6
18095 else
18096   case $STAT in
18097   [\\/]* | ?:[\\/]*)
18098   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18099   ;;
18100   *)
18101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18102 for as_dir in $PATH
18103 do
18104   IFS=$as_save_IFS
18105   test -z "$as_dir" && as_dir=.
18106     for ac_exec_ext in '' $ac_executable_extensions; do
18107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18108     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18110     break 2
18111   fi
18112 done
18113   done
18114 IFS=$as_save_IFS
18115 
18116   ;;
18117 esac
18118 fi
18119 STAT=$ac_cv_path_STAT
18120 if test -n "$STAT"; then
18121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18122 $as_echo "$STAT" >&6; }
18123 else
18124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18125 $as_echo "no" >&6; }
18126 fi
18127 
18128 
18129         if test "x$STAT" = x; then
18130           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18131         fi
18132       else
18133         # Otherwise we believe it is a complete path. Use it as it is.
18134         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18135 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18137 $as_echo_n "checking for STAT... " >&6; }
18138         if test ! -x "$tool_specified"; then
18139           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18140 $as_echo "not found" >&6; }
18141           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18142         fi
18143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18144 $as_echo "$tool_specified" >&6; }
18145       fi
18146     fi
18147   fi
18148 
18149 
18150 
18151 
18152   # Publish this variable in the help.
18153 
18154 
18155   if test "x$TIME" = x; then
18156     # The variable is not set by user, try to locate tool using the code snippet
18157     for ac_prog in time
18158 do
18159   # Extract the first word of "$ac_prog", so it can be a program name with args.
18160 set dummy $ac_prog; ac_word=$2
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18162 $as_echo_n "checking for $ac_word... " >&6; }
18163 if ${ac_cv_path_TIME+:} false; then :
18164   $as_echo_n "(cached) " >&6
18165 else
18166   case $TIME in
18167   [\\/]* | ?:[\\/]*)
18168   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18169   ;;
18170   *)
18171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18172 for as_dir in $PATH
18173 do
18174   IFS=$as_save_IFS
18175   test -z "$as_dir" && as_dir=.
18176     for ac_exec_ext in '' $ac_executable_extensions; do
18177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18178     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18180     break 2
18181   fi
18182 done
18183   done
18184 IFS=$as_save_IFS
18185 
18186   ;;
18187 esac
18188 fi
18189 TIME=$ac_cv_path_TIME
18190 if test -n "$TIME"; then
18191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18192 $as_echo "$TIME" >&6; }
18193 else
18194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18195 $as_echo "no" >&6; }
18196 fi
18197 
18198 
18199   test -n "$TIME" && break
18200 done
18201 
18202   else
18203     # The variable is set, but is it from the command line or the environment?
18204 
18205     # Try to remove the string !TIME! from our list.
18206     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18207     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18208       # If it failed, the variable was not from the command line. Ignore it,
18209       # but warn the user (except for BASH, which is always set by the calling BASH).
18210       if test "xTIME" != xBASH; then
18211         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18212 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18213       fi
18214       # Try to locate tool using the code snippet
18215       for ac_prog in time
18216 do
18217   # Extract the first word of "$ac_prog", so it can be a program name with args.
18218 set dummy $ac_prog; ac_word=$2
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18220 $as_echo_n "checking for $ac_word... " >&6; }
18221 if ${ac_cv_path_TIME+:} false; then :
18222   $as_echo_n "(cached) " >&6
18223 else
18224   case $TIME in
18225   [\\/]* | ?:[\\/]*)
18226   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18227   ;;
18228   *)
18229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18230 for as_dir in $PATH
18231 do
18232   IFS=$as_save_IFS
18233   test -z "$as_dir" && as_dir=.
18234     for ac_exec_ext in '' $ac_executable_extensions; do
18235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18236     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18238     break 2
18239   fi
18240 done
18241   done
18242 IFS=$as_save_IFS
18243 
18244   ;;
18245 esac
18246 fi
18247 TIME=$ac_cv_path_TIME
18248 if test -n "$TIME"; then
18249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18250 $as_echo "$TIME" >&6; }
18251 else
18252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18253 $as_echo "no" >&6; }
18254 fi
18255 
18256 
18257   test -n "$TIME" && break
18258 done
18259 
18260     else
18261       # If it succeeded, then it was overridden by the user. We will use it
18262       # for the tool.
18263 
18264       # First remove it from the list of overridden variables, so we can test
18265       # for unknown variables in the end.
18266       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18267 
18268       # Check if the provided tool contains a complete path.
18269       tool_specified="$TIME"
18270       tool_basename="${tool_specified##*/}"
18271       if test "x$tool_basename" = "x$tool_specified"; then
18272         # A command without a complete path is provided, search $PATH.
18273         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18274 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18275         # Extract the first word of "$tool_basename", so it can be a program name with args.
18276 set dummy $tool_basename; ac_word=$2
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18278 $as_echo_n "checking for $ac_word... " >&6; }
18279 if ${ac_cv_path_TIME+:} false; then :
18280   $as_echo_n "(cached) " >&6
18281 else
18282   case $TIME in
18283   [\\/]* | ?:[\\/]*)
18284   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18285   ;;
18286   *)
18287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18288 for as_dir in $PATH
18289 do
18290   IFS=$as_save_IFS
18291   test -z "$as_dir" && as_dir=.
18292     for ac_exec_ext in '' $ac_executable_extensions; do
18293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18294     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18296     break 2
18297   fi
18298 done
18299   done
18300 IFS=$as_save_IFS
18301 
18302   ;;
18303 esac
18304 fi
18305 TIME=$ac_cv_path_TIME
18306 if test -n "$TIME"; then
18307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18308 $as_echo "$TIME" >&6; }
18309 else
18310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18311 $as_echo "no" >&6; }
18312 fi
18313 
18314 
18315         if test "x$TIME" = x; then
18316           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18317         fi
18318       else
18319         # Otherwise we believe it is a complete path. Use it as it is.
18320         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18321 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18322         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18323 $as_echo_n "checking for TIME... " >&6; }
18324         if test ! -x "$tool_specified"; then
18325           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18326 $as_echo "not found" >&6; }
18327           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18328         fi
18329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18330 $as_echo "$tool_specified" >&6; }
18331       fi
18332     fi
18333   fi
18334 
18335 
18336   # Check if it's GNU time
18337   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18338   if test "x$IS_GNU_TIME" != x; then
18339     IS_GNU_TIME=yes
18340   else
18341     IS_GNU_TIME=no
18342   fi
18343 
18344 
18345   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18346 
18347 
18348 
18349   # Publish this variable in the help.
18350 
18351 
18352   if test "x$COMM" = x; then
18353     # The variable is not set by user, try to locate tool using the code snippet
18354     for ac_prog in comm
18355 do
18356   # Extract the first word of "$ac_prog", so it can be a program name with args.
18357 set dummy $ac_prog; ac_word=$2
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18359 $as_echo_n "checking for $ac_word... " >&6; }
18360 if ${ac_cv_path_COMM+:} false; then :
18361   $as_echo_n "(cached) " >&6
18362 else
18363   case $COMM in
18364   [\\/]* | ?:[\\/]*)
18365   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18366   ;;
18367   *)
18368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18369 for as_dir in $PATH
18370 do
18371   IFS=$as_save_IFS
18372   test -z "$as_dir" && as_dir=.
18373     for ac_exec_ext in '' $ac_executable_extensions; do
18374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18375     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18377     break 2
18378   fi
18379 done
18380   done
18381 IFS=$as_save_IFS
18382 
18383   ;;
18384 esac
18385 fi
18386 COMM=$ac_cv_path_COMM
18387 if test -n "$COMM"; then
18388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18389 $as_echo "$COMM" >&6; }
18390 else
18391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18392 $as_echo "no" >&6; }
18393 fi
18394 
18395 
18396   test -n "$COMM" && break
18397 done
18398 
18399   else
18400     # The variable is set, but is it from the command line or the environment?
18401 
18402     # Try to remove the string !COMM! from our list.
18403     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18404     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18405       # If it failed, the variable was not from the command line. Ignore it,
18406       # but warn the user (except for BASH, which is always set by the calling BASH).
18407       if test "xCOMM" != xBASH; then
18408         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18409 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18410       fi
18411       # Try to locate tool using the code snippet
18412       for ac_prog in comm
18413 do
18414   # Extract the first word of "$ac_prog", so it can be a program name with args.
18415 set dummy $ac_prog; ac_word=$2
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18417 $as_echo_n "checking for $ac_word... " >&6; }
18418 if ${ac_cv_path_COMM+:} false; then :
18419   $as_echo_n "(cached) " >&6
18420 else
18421   case $COMM in
18422   [\\/]* | ?:[\\/]*)
18423   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18424   ;;
18425   *)
18426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18428 do
18429   IFS=$as_save_IFS
18430   test -z "$as_dir" && as_dir=.
18431     for ac_exec_ext in '' $ac_executable_extensions; do
18432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18433     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18435     break 2
18436   fi
18437 done
18438   done
18439 IFS=$as_save_IFS
18440 
18441   ;;
18442 esac
18443 fi
18444 COMM=$ac_cv_path_COMM
18445 if test -n "$COMM"; then
18446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18447 $as_echo "$COMM" >&6; }
18448 else
18449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18450 $as_echo "no" >&6; }
18451 fi
18452 
18453 
18454   test -n "$COMM" && break
18455 done
18456 
18457     else
18458       # If it succeeded, then it was overridden by the user. We will use it
18459       # for the tool.
18460 
18461       # First remove it from the list of overridden variables, so we can test
18462       # for unknown variables in the end.
18463       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18464 
18465       # Check if the provided tool contains a complete path.
18466       tool_specified="$COMM"
18467       tool_basename="${tool_specified##*/}"
18468       if test "x$tool_basename" = "x$tool_specified"; then
18469         # A command without a complete path is provided, search $PATH.
18470         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18471 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18472         # Extract the first word of "$tool_basename", so it can be a program name with args.
18473 set dummy $tool_basename; ac_word=$2
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18475 $as_echo_n "checking for $ac_word... " >&6; }
18476 if ${ac_cv_path_COMM+:} false; then :
18477   $as_echo_n "(cached) " >&6
18478 else
18479   case $COMM in
18480   [\\/]* | ?:[\\/]*)
18481   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18482   ;;
18483   *)
18484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18485 for as_dir in $PATH
18486 do
18487   IFS=$as_save_IFS
18488   test -z "$as_dir" && as_dir=.
18489     for ac_exec_ext in '' $ac_executable_extensions; do
18490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18491     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18493     break 2
18494   fi
18495 done
18496   done
18497 IFS=$as_save_IFS
18498 
18499   ;;
18500 esac
18501 fi
18502 COMM=$ac_cv_path_COMM
18503 if test -n "$COMM"; then
18504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18505 $as_echo "$COMM" >&6; }
18506 else
18507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18508 $as_echo "no" >&6; }
18509 fi
18510 
18511 
18512         if test "x$COMM" = x; then
18513           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18514         fi
18515       else
18516         # Otherwise we believe it is a complete path. Use it as it is.
18517         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18518 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18519         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18520 $as_echo_n "checking for COMM... " >&6; }
18521         if test ! -x "$tool_specified"; then
18522           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18523 $as_echo "not found" >&6; }
18524           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18525         fi
18526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18527 $as_echo "$tool_specified" >&6; }
18528       fi
18529     fi
18530   fi
18531 
18532 
18533 
18534   if test "x$COMM" = x; then
18535     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18536   fi
18537 
18538 
18539   fi
18540 
18541   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18542 
18543 
18544 
18545   # Publish this variable in the help.
18546 
18547 
18548   if test "x$DSYMUTIL" = x; then
18549     # The variable is not set by user, try to locate tool using the code snippet
18550     for ac_prog in dsymutil
18551 do
18552   # Extract the first word of "$ac_prog", so it can be a program name with args.
18553 set dummy $ac_prog; ac_word=$2
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18555 $as_echo_n "checking for $ac_word... " >&6; }
18556 if ${ac_cv_path_DSYMUTIL+:} false; then :
18557   $as_echo_n "(cached) " >&6
18558 else
18559   case $DSYMUTIL in
18560   [\\/]* | ?:[\\/]*)
18561   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18562   ;;
18563   *)
18564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18565 for as_dir in $PATH
18566 do
18567   IFS=$as_save_IFS
18568   test -z "$as_dir" && as_dir=.
18569     for ac_exec_ext in '' $ac_executable_extensions; do
18570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18571     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18573     break 2
18574   fi
18575 done
18576   done
18577 IFS=$as_save_IFS
18578 
18579   ;;
18580 esac
18581 fi
18582 DSYMUTIL=$ac_cv_path_DSYMUTIL
18583 if test -n "$DSYMUTIL"; then
18584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18585 $as_echo "$DSYMUTIL" >&6; }
18586 else
18587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588 $as_echo "no" >&6; }
18589 fi
18590 
18591 
18592   test -n "$DSYMUTIL" && break
18593 done
18594 
18595   else
18596     # The variable is set, but is it from the command line or the environment?
18597 
18598     # Try to remove the string !DSYMUTIL! from our list.
18599     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18600     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18601       # If it failed, the variable was not from the command line. Ignore it,
18602       # but warn the user (except for BASH, which is always set by the calling BASH).
18603       if test "xDSYMUTIL" != xBASH; then
18604         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18605 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18606       fi
18607       # Try to locate tool using the code snippet
18608       for ac_prog in dsymutil
18609 do
18610   # Extract the first word of "$ac_prog", so it can be a program name with args.
18611 set dummy $ac_prog; ac_word=$2
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18613 $as_echo_n "checking for $ac_word... " >&6; }
18614 if ${ac_cv_path_DSYMUTIL+:} false; then :
18615   $as_echo_n "(cached) " >&6
18616 else
18617   case $DSYMUTIL in
18618   [\\/]* | ?:[\\/]*)
18619   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18620   ;;
18621   *)
18622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18623 for as_dir in $PATH
18624 do
18625   IFS=$as_save_IFS
18626   test -z "$as_dir" && as_dir=.
18627     for ac_exec_ext in '' $ac_executable_extensions; do
18628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18629     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18631     break 2
18632   fi
18633 done
18634   done
18635 IFS=$as_save_IFS
18636 
18637   ;;
18638 esac
18639 fi
18640 DSYMUTIL=$ac_cv_path_DSYMUTIL
18641 if test -n "$DSYMUTIL"; then
18642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18643 $as_echo "$DSYMUTIL" >&6; }
18644 else
18645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18647 fi
18648 
18649 
18650   test -n "$DSYMUTIL" && break
18651 done
18652 
18653     else
18654       # If it succeeded, then it was overridden by the user. We will use it
18655       # for the tool.
18656 
18657       # First remove it from the list of overridden variables, so we can test
18658       # for unknown variables in the end.
18659       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18660 
18661       # Check if the provided tool contains a complete path.
18662       tool_specified="$DSYMUTIL"
18663       tool_basename="${tool_specified##*/}"
18664       if test "x$tool_basename" = "x$tool_specified"; then
18665         # A command without a complete path is provided, search $PATH.
18666         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18667 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18668         # Extract the first word of "$tool_basename", so it can be a program name with args.
18669 set dummy $tool_basename; ac_word=$2
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18671 $as_echo_n "checking for $ac_word... " >&6; }
18672 if ${ac_cv_path_DSYMUTIL+:} false; then :
18673   $as_echo_n "(cached) " >&6
18674 else
18675   case $DSYMUTIL in
18676   [\\/]* | ?:[\\/]*)
18677   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18678   ;;
18679   *)
18680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18681 for as_dir in $PATH
18682 do
18683   IFS=$as_save_IFS
18684   test -z "$as_dir" && as_dir=.
18685     for ac_exec_ext in '' $ac_executable_extensions; do
18686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18687     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18689     break 2
18690   fi
18691 done
18692   done
18693 IFS=$as_save_IFS
18694 
18695   ;;
18696 esac
18697 fi
18698 DSYMUTIL=$ac_cv_path_DSYMUTIL
18699 if test -n "$DSYMUTIL"; then
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18701 $as_echo "$DSYMUTIL" >&6; }
18702 else
18703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 $as_echo "no" >&6; }
18705 fi
18706 
18707 
18708         if test "x$DSYMUTIL" = x; then
18709           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18710         fi
18711       else
18712         # Otherwise we believe it is a complete path. Use it as it is.
18713         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18714 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18715         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18716 $as_echo_n "checking for DSYMUTIL... " >&6; }
18717         if test ! -x "$tool_specified"; then
18718           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18719 $as_echo "not found" >&6; }
18720           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18721         fi
18722         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18723 $as_echo "$tool_specified" >&6; }
18724       fi
18725     fi
18726   fi
18727 
18728 
18729 
18730   if test "x$DSYMUTIL" = x; then
18731     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18732   fi
18733 
18734 
18735 
18736 
18737 
18738   # Publish this variable in the help.
18739 
18740 
18741   if test "x$XATTR" = x; then
18742     # The variable is not set by user, try to locate tool using the code snippet
18743     for ac_prog in xattr
18744 do
18745   # Extract the first word of "$ac_prog", so it can be a program name with args.
18746 set dummy $ac_prog; ac_word=$2
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18748 $as_echo_n "checking for $ac_word... " >&6; }
18749 if ${ac_cv_path_XATTR+:} false; then :
18750   $as_echo_n "(cached) " >&6
18751 else
18752   case $XATTR in
18753   [\\/]* | ?:[\\/]*)
18754   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18755   ;;
18756   *)
18757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18758 for as_dir in $PATH
18759 do
18760   IFS=$as_save_IFS
18761   test -z "$as_dir" && as_dir=.
18762     for ac_exec_ext in '' $ac_executable_extensions; do
18763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18764     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18766     break 2
18767   fi
18768 done
18769   done
18770 IFS=$as_save_IFS
18771 
18772   ;;
18773 esac
18774 fi
18775 XATTR=$ac_cv_path_XATTR
18776 if test -n "$XATTR"; then
18777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18778 $as_echo "$XATTR" >&6; }
18779 else
18780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18781 $as_echo "no" >&6; }
18782 fi
18783 
18784 
18785   test -n "$XATTR" && break
18786 done
18787 
18788   else
18789     # The variable is set, but is it from the command line or the environment?
18790 
18791     # Try to remove the string !XATTR! from our list.
18792     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18793     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18794       # If it failed, the variable was not from the command line. Ignore it,
18795       # but warn the user (except for BASH, which is always set by the calling BASH).
18796       if test "xXATTR" != xBASH; then
18797         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18798 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18799       fi
18800       # Try to locate tool using the code snippet
18801       for ac_prog in xattr
18802 do
18803   # Extract the first word of "$ac_prog", so it can be a program name with args.
18804 set dummy $ac_prog; ac_word=$2
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18806 $as_echo_n "checking for $ac_word... " >&6; }
18807 if ${ac_cv_path_XATTR+:} false; then :
18808   $as_echo_n "(cached) " >&6
18809 else
18810   case $XATTR in
18811   [\\/]* | ?:[\\/]*)
18812   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18813   ;;
18814   *)
18815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18816 for as_dir in $PATH
18817 do
18818   IFS=$as_save_IFS
18819   test -z "$as_dir" && as_dir=.
18820     for ac_exec_ext in '' $ac_executable_extensions; do
18821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18822     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18824     break 2
18825   fi
18826 done
18827   done
18828 IFS=$as_save_IFS
18829 
18830   ;;
18831 esac
18832 fi
18833 XATTR=$ac_cv_path_XATTR
18834 if test -n "$XATTR"; then
18835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18836 $as_echo "$XATTR" >&6; }
18837 else
18838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18839 $as_echo "no" >&6; }
18840 fi
18841 
18842 
18843   test -n "$XATTR" && break
18844 done
18845 
18846     else
18847       # If it succeeded, then it was overridden by the user. We will use it
18848       # for the tool.
18849 
18850       # First remove it from the list of overridden variables, so we can test
18851       # for unknown variables in the end.
18852       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18853 
18854       # Check if the provided tool contains a complete path.
18855       tool_specified="$XATTR"
18856       tool_basename="${tool_specified##*/}"
18857       if test "x$tool_basename" = "x$tool_specified"; then
18858         # A command without a complete path is provided, search $PATH.
18859         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18860 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18861         # Extract the first word of "$tool_basename", so it can be a program name with args.
18862 set dummy $tool_basename; ac_word=$2
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18864 $as_echo_n "checking for $ac_word... " >&6; }
18865 if ${ac_cv_path_XATTR+:} false; then :
18866   $as_echo_n "(cached) " >&6
18867 else
18868   case $XATTR in
18869   [\\/]* | ?:[\\/]*)
18870   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18871   ;;
18872   *)
18873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18874 for as_dir in $PATH
18875 do
18876   IFS=$as_save_IFS
18877   test -z "$as_dir" && as_dir=.
18878     for ac_exec_ext in '' $ac_executable_extensions; do
18879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18880     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18882     break 2
18883   fi
18884 done
18885   done
18886 IFS=$as_save_IFS
18887 
18888   ;;
18889 esac
18890 fi
18891 XATTR=$ac_cv_path_XATTR
18892 if test -n "$XATTR"; then
18893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18894 $as_echo "$XATTR" >&6; }
18895 else
18896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18897 $as_echo "no" >&6; }
18898 fi
18899 
18900 
18901         if test "x$XATTR" = x; then
18902           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18903         fi
18904       else
18905         # Otherwise we believe it is a complete path. Use it as it is.
18906         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18907 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18909 $as_echo_n "checking for XATTR... " >&6; }
18910         if test ! -x "$tool_specified"; then
18911           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18912 $as_echo "not found" >&6; }
18913           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18914         fi
18915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18916 $as_echo "$tool_specified" >&6; }
18917       fi
18918     fi
18919   fi
18920 
18921 
18922 
18923   if test "x$XATTR" = x; then
18924     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18925   fi
18926 
18927 
18928 
18929 
18930   # Publish this variable in the help.
18931 
18932 
18933   if test "x$CODESIGN" = x; then
18934     # The variable is not set by user, try to locate tool using the code snippet
18935     for ac_prog in codesign
18936 do
18937   # Extract the first word of "$ac_prog", so it can be a program name with args.
18938 set dummy $ac_prog; ac_word=$2
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18940 $as_echo_n "checking for $ac_word... " >&6; }
18941 if ${ac_cv_path_CODESIGN+:} false; then :
18942   $as_echo_n "(cached) " >&6
18943 else
18944   case $CODESIGN in
18945   [\\/]* | ?:[\\/]*)
18946   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18947   ;;
18948   *)
18949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18950 for as_dir in $PATH
18951 do
18952   IFS=$as_save_IFS
18953   test -z "$as_dir" && as_dir=.
18954     for ac_exec_ext in '' $ac_executable_extensions; do
18955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18956     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18958     break 2
18959   fi
18960 done
18961   done
18962 IFS=$as_save_IFS
18963 
18964   ;;
18965 esac
18966 fi
18967 CODESIGN=$ac_cv_path_CODESIGN
18968 if test -n "$CODESIGN"; then
18969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18970 $as_echo "$CODESIGN" >&6; }
18971 else
18972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 $as_echo "no" >&6; }
18974 fi
18975 
18976 
18977   test -n "$CODESIGN" && break
18978 done
18979 
18980   else
18981     # The variable is set, but is it from the command line or the environment?
18982 
18983     # Try to remove the string !CODESIGN! from our list.
18984     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18985     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18986       # If it failed, the variable was not from the command line. Ignore it,
18987       # but warn the user (except for BASH, which is always set by the calling BASH).
18988       if test "xCODESIGN" != xBASH; then
18989         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
18990 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
18991       fi
18992       # Try to locate tool using the code snippet
18993       for ac_prog in codesign
18994 do
18995   # Extract the first word of "$ac_prog", so it can be a program name with args.
18996 set dummy $ac_prog; ac_word=$2
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18998 $as_echo_n "checking for $ac_word... " >&6; }
18999 if ${ac_cv_path_CODESIGN+:} false; then :
19000   $as_echo_n "(cached) " >&6
19001 else
19002   case $CODESIGN in
19003   [\\/]* | ?:[\\/]*)
19004   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19005   ;;
19006   *)
19007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19008 for as_dir in $PATH
19009 do
19010   IFS=$as_save_IFS
19011   test -z "$as_dir" && as_dir=.
19012     for ac_exec_ext in '' $ac_executable_extensions; do
19013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19014     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19016     break 2
19017   fi
19018 done
19019   done
19020 IFS=$as_save_IFS
19021 
19022   ;;
19023 esac
19024 fi
19025 CODESIGN=$ac_cv_path_CODESIGN
19026 if test -n "$CODESIGN"; then
19027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19028 $as_echo "$CODESIGN" >&6; }
19029 else
19030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19031 $as_echo "no" >&6; }
19032 fi
19033 
19034 
19035   test -n "$CODESIGN" && break
19036 done
19037 
19038     else
19039       # If it succeeded, then it was overridden by the user. We will use it
19040       # for the tool.
19041 
19042       # First remove it from the list of overridden variables, so we can test
19043       # for unknown variables in the end.
19044       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19045 
19046       # Check if the provided tool contains a complete path.
19047       tool_specified="$CODESIGN"
19048       tool_basename="${tool_specified##*/}"
19049       if test "x$tool_basename" = "x$tool_specified"; then
19050         # A command without a complete path is provided, search $PATH.
19051         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19052 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19053         # Extract the first word of "$tool_basename", so it can be a program name with args.
19054 set dummy $tool_basename; ac_word=$2
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19056 $as_echo_n "checking for $ac_word... " >&6; }
19057 if ${ac_cv_path_CODESIGN+:} false; then :
19058   $as_echo_n "(cached) " >&6
19059 else
19060   case $CODESIGN in
19061   [\\/]* | ?:[\\/]*)
19062   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19063   ;;
19064   *)
19065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19066 for as_dir in $PATH
19067 do
19068   IFS=$as_save_IFS
19069   test -z "$as_dir" && as_dir=.
19070     for ac_exec_ext in '' $ac_executable_extensions; do
19071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19072     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19074     break 2
19075   fi
19076 done
19077   done
19078 IFS=$as_save_IFS
19079 
19080   ;;
19081 esac
19082 fi
19083 CODESIGN=$ac_cv_path_CODESIGN
19084 if test -n "$CODESIGN"; then
19085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19086 $as_echo "$CODESIGN" >&6; }
19087 else
19088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19089 $as_echo "no" >&6; }
19090 fi
19091 
19092 
19093         if test "x$CODESIGN" = x; then
19094           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19095         fi
19096       else
19097         # Otherwise we believe it is a complete path. Use it as it is.
19098         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19099 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19101 $as_echo_n "checking for CODESIGN... " >&6; }
19102         if test ! -x "$tool_specified"; then
19103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19104 $as_echo "not found" >&6; }
19105           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19106         fi
19107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19108 $as_echo "$tool_specified" >&6; }
19109       fi
19110     fi
19111   fi
19112 
19113 
19114     if test "x$CODESIGN" != "x"; then
19115       # Verify that the openjdk_codesign certificate is present
19116       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19117 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19118       rm -f codesign-testfile
19119       touch codesign-testfile
19120       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19121       rm -f codesign-testfile
19122       if test "x$CODESIGN" = x; then
19123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124 $as_echo "no" >&6; }
19125       else
19126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19127 $as_echo "yes" >&6; }
19128       fi
19129     fi
19130   fi
19131 
19132 
19133 # Check if pkg-config is available.
19134 
19135 
19136 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19137         if test -n "$ac_tool_prefix"; then
19138   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19139 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19141 $as_echo_n "checking for $ac_word... " >&6; }
19142 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19143   $as_echo_n "(cached) " >&6
19144 else
19145   case $PKG_CONFIG in
19146   [\\/]* | ?:[\\/]*)
19147   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19148   ;;
19149   *)
19150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19151 for as_dir in $PATH
19152 do
19153   IFS=$as_save_IFS
19154   test -z "$as_dir" && as_dir=.
19155     for ac_exec_ext in '' $ac_executable_extensions; do
19156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19157     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19159     break 2
19160   fi
19161 done
19162   done
19163 IFS=$as_save_IFS
19164 
19165   ;;
19166 esac
19167 fi
19168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19169 if test -n "$PKG_CONFIG"; then
19170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19171 $as_echo "$PKG_CONFIG" >&6; }
19172 else
19173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19174 $as_echo "no" >&6; }
19175 fi
19176 
19177 
19178 fi
19179 if test -z "$ac_cv_path_PKG_CONFIG"; then
19180   ac_pt_PKG_CONFIG=$PKG_CONFIG
19181   # Extract the first word of "pkg-config", so it can be a program name with args.
19182 set dummy pkg-config; ac_word=$2
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19184 $as_echo_n "checking for $ac_word... " >&6; }
19185 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19186   $as_echo_n "(cached) " >&6
19187 else
19188   case $ac_pt_PKG_CONFIG in
19189   [\\/]* | ?:[\\/]*)
19190   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19191   ;;
19192   *)
19193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19194 for as_dir in $PATH
19195 do
19196   IFS=$as_save_IFS
19197   test -z "$as_dir" && as_dir=.
19198     for ac_exec_ext in '' $ac_executable_extensions; do
19199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19200     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19202     break 2
19203   fi
19204 done
19205   done
19206 IFS=$as_save_IFS
19207 
19208   ;;
19209 esac
19210 fi
19211 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19212 if test -n "$ac_pt_PKG_CONFIG"; then
19213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19214 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19215 else
19216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 $as_echo "no" >&6; }
19218 fi
19219 
19220   if test "x$ac_pt_PKG_CONFIG" = x; then
19221     PKG_CONFIG=""
19222   else
19223     case $cross_compiling:$ac_tool_warned in
19224 yes:)
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19227 ac_tool_warned=yes ;;
19228 esac
19229     PKG_CONFIG=$ac_pt_PKG_CONFIG
19230   fi
19231 else
19232   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19233 fi
19234 
19235 fi
19236 if test -n "$PKG_CONFIG"; then
19237         _pkg_min_version=0.9.0
19238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19239 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19240         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19241                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19242 $as_echo "yes" >&6; }
19243         else
19244                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246                 PKG_CONFIG=""
19247         fi
19248 
19249 fi
19250 
19251 # After basic tools have been setup, we can check build os specific details.
19252 
19253   ###############################################################################
19254 
19255   # Note that this is the build platform OS version!
19256 
19257   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19258   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19259   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19260   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19261 
19262 
19263 
19264 
19265 
19266 # Setup builddeps, for automatic downloading of tools we need.
19267 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19268 # boot-jdk setup, but we need to have basic tools setup first.
19269 
19270 
19271 # Check whether --with-builddeps-conf was given.
19272 if test "${with_builddeps_conf+set}" = set; then :
19273   withval=$with_builddeps_conf;
19274 fi
19275 
19276 
19277 
19278 # Check whether --with-builddeps-server was given.
19279 if test "${with_builddeps_server+set}" = set; then :
19280   withval=$with_builddeps_server;
19281 fi
19282 
19283 
19284 
19285 # Check whether --with-builddeps-dir was given.
19286 if test "${with_builddeps_dir+set}" = set; then :
19287   withval=$with_builddeps_dir;
19288 else
19289   with_builddeps_dir=/localhome/builddeps
19290 fi
19291 
19292 
19293 
19294 # Check whether --with-builddeps-group was given.
19295 if test "${with_builddeps_group+set}" = set; then :
19296   withval=$with_builddeps_group;
19297 fi
19298 
19299 
19300 
19301 
19302   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19303     if test "x$with_builddeps_conf" != x; then
19304       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19305 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19306       builddepsfile=$with_builddeps_conf
19307       if test -s $builddepsfile; then
19308         . $builddepsfile
19309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19310 $as_echo "loaded!" >&6; }
19311       else
19312         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19313       fi
19314     else
19315       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19316 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19317       builddepsfile=`mktemp`
19318       touch $builddepsfile
19319       # Put all found confs into a single file.
19320       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19321       # Source the file to acquire the variables
19322       if test -s $builddepsfile; then
19323         . $builddepsfile
19324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19325 $as_echo "found at least one!" >&6; }
19326       else
19327         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19328       fi
19329     fi
19330     # Create build and target names that use _ instead of "-" and ".".
19331     # This is necessary to use them in variable names.
19332     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19333     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19334     # Extract rewrite information for build and target
19335     eval rewritten_build=\${REWRITE_${build_var}}
19336     if test "x$rewritten_build" = x; then
19337       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19338       echo Build stays the same $rewritten_build
19339     else
19340       echo Rewriting build for builddeps into $rewritten_build
19341     fi
19342     eval rewritten_target=\${REWRITE_${target_var}}
19343     if test "x$rewritten_target" = x; then
19344       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19345       echo Target stays the same $rewritten_target
19346     else
19347       echo Rewriting target for builddeps into $rewritten_target
19348     fi
19349     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19350     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19351   fi
19352   for ac_prog in 7z unzip
19353 do
19354   # Extract the first word of "$ac_prog", so it can be a program name with args.
19355 set dummy $ac_prog; ac_word=$2
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19357 $as_echo_n "checking for $ac_word... " >&6; }
19358 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19359   $as_echo_n "(cached) " >&6
19360 else
19361   if test -n "$BDEPS_UNZIP"; then
19362   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19363 else
19364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19365 for as_dir in $PATH
19366 do
19367   IFS=$as_save_IFS
19368   test -z "$as_dir" && as_dir=.
19369     for ac_exec_ext in '' $ac_executable_extensions; do
19370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19371     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19373     break 2
19374   fi
19375 done
19376   done
19377 IFS=$as_save_IFS
19378 
19379 fi
19380 fi
19381 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19382 if test -n "$BDEPS_UNZIP"; then
19383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19384 $as_echo "$BDEPS_UNZIP" >&6; }
19385 else
19386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19387 $as_echo "no" >&6; }
19388 fi
19389 
19390 
19391   test -n "$BDEPS_UNZIP" && break
19392 done
19393 
19394   if test "x$BDEPS_UNZIP" = x7z; then
19395     BDEPS_UNZIP="7z x"
19396   fi
19397 
19398   for ac_prog in wget lftp ftp
19399 do
19400   # Extract the first word of "$ac_prog", so it can be a program name with args.
19401 set dummy $ac_prog; ac_word=$2
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19403 $as_echo_n "checking for $ac_word... " >&6; }
19404 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19405   $as_echo_n "(cached) " >&6
19406 else
19407   if test -n "$BDEPS_FTP"; then
19408   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19409 else
19410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19411 for as_dir in $PATH
19412 do
19413   IFS=$as_save_IFS
19414   test -z "$as_dir" && as_dir=.
19415     for ac_exec_ext in '' $ac_executable_extensions; do
19416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19417     ac_cv_prog_BDEPS_FTP="$ac_prog"
19418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19419     break 2
19420   fi
19421 done
19422   done
19423 IFS=$as_save_IFS
19424 
19425 fi
19426 fi
19427 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19428 if test -n "$BDEPS_FTP"; then
19429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19430 $as_echo "$BDEPS_FTP" >&6; }
19431 else
19432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19433 $as_echo "no" >&6; }
19434 fi
19435 
19436 
19437   test -n "$BDEPS_FTP" && break
19438 done
19439 
19440 
19441 
19442 ###############################################################################
19443 #
19444 # Determine OpenJDK variants, options and version numbers.
19445 #
19446 ###############################################################################
19447 
19448 # We need build & target for this.
19449 
19450 
19451   ###############################################################################
19452   #
19453   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19454   # We always build headless support.
19455   #
19456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19457 $as_echo_n "checking headful support... " >&6; }
19458   # Check whether --enable-headful was given.
19459 if test "${enable_headful+set}" = set; then :
19460   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19461 else
19462   SUPPORT_HEADFUL=yes
19463 fi
19464 
19465 
19466   SUPPORT_HEADLESS=yes
19467   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19468 
19469   if test "x$SUPPORT_HEADFUL" = xyes; then
19470     # We are building both headful and headless.
19471     headful_msg="include support for both headful and headless"
19472   fi
19473 
19474   if test "x$SUPPORT_HEADFUL" = xno; then
19475     # Thus we are building headless only.
19476     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19477     headful_msg="headless only"
19478   fi
19479 
19480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19481 $as_echo "$headful_msg" >&6; }
19482 
19483 
19484 
19485 
19486 
19487   # Control wether Hotspot runs Queens test after build.
19488   # Check whether --enable-hotspot-test-in-build was given.
19489 if test "${enable_hotspot_test_in_build+set}" = set; then :
19490   enableval=$enable_hotspot_test_in_build;
19491 else
19492   enable_hotspot_test_in_build=no
19493 fi
19494 
19495   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19496     TEST_IN_BUILD=true
19497   else
19498     TEST_IN_BUILD=false
19499   fi
19500 
19501 
19502   ###############################################################################
19503   #
19504   # Choose cacerts source file
19505   #
19506 
19507 # Check whether --with-cacerts-file was given.
19508 if test "${with_cacerts_file+set}" = set; then :
19509   withval=$with_cacerts_file;
19510 fi
19511 
19512   if test "x$with_cacerts_file" != x; then
19513     CACERTS_FILE=$with_cacerts_file
19514   else
19515     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19516   fi
19517 
19518 
19519   ###############################################################################
19520   #
19521   # Enable or disable unlimited crypto
19522   #
19523   # Check whether --enable-unlimited-crypto was given.
19524 if test "${enable_unlimited_crypto+set}" = set; then :
19525   enableval=$enable_unlimited_crypto;
19526 else
19527   enable_unlimited_crypto=no
19528 fi
19529 
19530   if test "x$enable_unlimited_crypto" = "xyes"; then
19531     UNLIMITED_CRYPTO=true
19532   else
19533     UNLIMITED_CRYPTO=false
19534   fi
19535 
19536 
19537   ###############################################################################
19538   #
19539   # Enable or disable the elliptic curve crypto implementation
19540   #
19541 
19542 
19543   ###############################################################################
19544   #
19545   # --enable-rmiconnector-iiop
19546   #
19547   # Check whether --enable-rmiconnector-iiop was given.
19548 if test "${enable_rmiconnector_iiop+set}" = set; then :
19549   enableval=$enable_rmiconnector_iiop;
19550 fi
19551 
19552   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19553     RMICONNECTOR_IIOP=true
19554   else
19555     RMICONNECTOR_IIOP=false
19556   fi
19557 
19558 
19559   ###############################################################################
19560   #
19561   # Compress jars
19562   #
19563   COMPRESS_JARS=false
19564 
19565 
19566 
19567 
19568   # Source the version numbers
19569   . $AUTOCONF_DIR/version-numbers
19570 
19571   # Get the settings from parameters
19572 
19573 # Check whether --with-milestone was given.
19574 if test "${with_milestone+set}" = set; then :
19575   withval=$with_milestone;
19576 fi
19577 
19578   if test "x$with_milestone" = xyes; then
19579     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19580   elif test "x$with_milestone" != x; then
19581     MILESTONE="$with_milestone"
19582   fi
19583   if test "x$MILESTONE" = x; then
19584     MILESTONE=internal
19585   fi
19586 
19587 
19588 # Check whether --with-update-version was given.
19589 if test "${with_update_version+set}" = set; then :
19590   withval=$with_update_version;
19591 fi
19592 
19593   if test "x$with_update_version" = xyes; then
19594     as_fn_error $? "Update version must have a value" "$LINENO" 5
19595   elif test "x$with_update_version" != x; then
19596     JDK_UPDATE_VERSION="$with_update_version"
19597     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19598     # to a bug in expr (which reduces it to just X). To work around this, we
19599     # always add a 0 to one digit update versions.
19600     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19601       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19602     fi
19603   fi
19604 
19605 
19606 # Check whether --with-user-release-suffix was given.
19607 if test "${with_user_release_suffix+set}" = set; then :
19608   withval=$with_user_release_suffix;
19609 fi
19610 
19611   if test "x$with_user_release_suffix" = xyes; then
19612     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19613   elif test "x$with_user_release_suffix" != x; then
19614     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19615   fi
19616 
19617 
19618 # Check whether --with-build-number was given.
19619 if test "${with_build_number+set}" = set; then :
19620   withval=$with_build_number;
19621 fi
19622 
19623   if test "x$with_build_number" = xyes; then
19624     as_fn_error $? "Build number must have a value" "$LINENO" 5
19625   elif test "x$with_build_number" != x; then
19626     JDK_BUILD_NUMBER="$with_build_number"
19627   fi
19628   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19629   if test "x$JDK_BUILD_NUMBER" = x; then
19630     JDK_BUILD_NUMBER=b00
19631     if test "x$USER_RELEASE_SUFFIX" = x; then
19632       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19633       # Avoid [:alnum:] since it depends on the locale.
19634       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19635       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19636     fi
19637   fi
19638 
19639   # Now set the JDK version, milestone, build number etc.
19640 
19641 
19642 
19643 
19644 
19645 
19646 
19647 
19648 
19649 
19650 
19651 
19652 
19653 
19654 
19655   COPYRIGHT_YEAR=`date +'%Y'`
19656 
19657 
19658   if test "x$JDK_UPDATE_VERSION" != x; then
19659     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19660   else
19661     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19662   fi
19663 
19664 
19665   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19666 
19667 
19668 
19669 ###############################################################################
19670 #
19671 # Setup BootJDK, used to bootstrap the build.
19672 #
19673 ###############################################################################
19674 
19675 
19676   BOOT_JDK_FOUND=no
19677 
19678 # Check whether --with-boot-jdk was given.
19679 if test "${with_boot_jdk+set}" = set; then :
19680   withval=$with_boot_jdk;
19681 fi
19682 
19683 
19684   # We look for the Boot JDK through various means, going from more certain to
19685   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19686   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19687   # must check if this is indeed valid; otherwise we'll continue looking.
19688 
19689   # Test: Is bootjdk explicitely set by command line arguments?
19690 
19691   if test "x$BOOT_JDK_FOUND" = xno; then
19692     # Now execute the test
19693 
19694   if test "x$with_boot_jdk" != x; then
19695     BOOT_JDK=$with_boot_jdk
19696     BOOT_JDK_FOUND=maybe
19697     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19698 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19699   fi
19700 
19701 
19702     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19703     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19704       # Do we have a bin/java?
19705       if test ! -x "$BOOT_JDK/bin/java"; then
19706         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19707 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19708         BOOT_JDK_FOUND=no
19709       else
19710         # Do we have a bin/javac?
19711         if test ! -x "$BOOT_JDK/bin/javac"; then
19712           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19713 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19714           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19715 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19716           BOOT_JDK_FOUND=no
19717         else
19718           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19719           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19720             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19722             BOOT_JDK_FOUND=no
19723           else
19724             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19725             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19726 
19727             # Extra M4 quote needed to protect [] in grep expression.
19728             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19729             if test "x$FOUND_CORRECT_VERSION" = x; then
19730               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19731 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19732               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19733 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19734               BOOT_JDK_FOUND=no
19735             else
19736               # We're done! :-)
19737               BOOT_JDK_FOUND=yes
19738 
19739   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19740 
19741   # Input might be given as Windows format, start by converting to
19742   # unix format.
19743   path="$BOOT_JDK"
19744   new_path=`$CYGPATH -u "$path"`
19745 
19746   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19747   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19748   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19749   # "foo.exe" is OK but "foo" is an error.
19750   #
19751   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19752   # It is also a way to make sure we got the proper file name for the real test later on.
19753   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19754   if test "x$test_shortpath" = x; then
19755     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19756 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19757     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19758   fi
19759 
19760   # Call helper function which possibly converts this using DOS-style short mode.
19761   # If so, the updated path is stored in $new_path.
19762 
19763   input_path="$new_path"
19764   # Check if we need to convert this using DOS-style short mode. If the path
19765   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19766   # take no chances and rewrite it.
19767   # Note: m4 eats our [], so we need to use [ and ] instead.
19768   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19769   if test "x$has_forbidden_chars" != x; then
19770     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19771     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19772     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19773     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19774       # Going to short mode and back again did indeed matter. Since short mode is
19775       # case insensitive, let's make it lowercase to improve readability.
19776       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19777       # Now convert it back to Unix-stile (cygpath)
19778       input_path=`$CYGPATH -u "$shortmode_path"`
19779       new_path="$input_path"
19780     fi
19781   fi
19782 
19783   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19784   if test "x$test_cygdrive_prefix" = x; then
19785     # As a simple fix, exclude /usr/bin since it's not a real path.
19786     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19787       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19788       # a path prefixed by /cygdrive for fixpath to work.
19789       new_path="$CYGWIN_ROOT_PATH$input_path"
19790     fi
19791   fi
19792 
19793 
19794   if test "x$path" != "x$new_path"; then
19795     BOOT_JDK="$new_path"
19796     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19797 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19798   fi
19799 
19800   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19801 
19802   path="$BOOT_JDK"
19803   has_colon=`$ECHO $path | $GREP ^.:`
19804   new_path="$path"
19805   if test "x$has_colon" = x; then
19806     # Not in mixed or Windows style, start by that.
19807     new_path=`cmd //c echo $path`
19808   fi
19809 
19810 
19811   input_path="$new_path"
19812   # Check if we need to convert this using DOS-style short mode. If the path
19813   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19814   # take no chances and rewrite it.
19815   # Note: m4 eats our [], so we need to use [ and ] instead.
19816   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19817   if test "x$has_forbidden_chars" != x; then
19818     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19819     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19820   fi
19821 
19822 
19823   windows_path="$new_path"
19824   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19825     unix_path=`$CYGPATH -u "$windows_path"`
19826     new_path="$unix_path"
19827   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19828     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19829     new_path="$unix_path"
19830   fi
19831 
19832   if test "x$path" != "x$new_path"; then
19833     BOOT_JDK="$new_path"
19834     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19835 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19836   fi
19837 
19838   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19839   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19840 
19841   else
19842     # We're on a posix platform. Hooray! :)
19843     path="$BOOT_JDK"
19844     has_space=`$ECHO "$path" | $GREP " "`
19845     if test "x$has_space" != x; then
19846       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19847 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19848       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19849     fi
19850 
19851     # Use eval to expand a potential ~
19852     eval path="$path"
19853     if test ! -f "$path" && test ! -d "$path"; then
19854       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19855     fi
19856 
19857     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19858   fi
19859 
19860               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19861 $as_echo_n "checking for Boot JDK... " >&6; }
19862               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19863 $as_echo "$BOOT_JDK" >&6; }
19864               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19865 $as_echo_n "checking Boot JDK version... " >&6; }
19866               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19867               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19868 $as_echo "$BOOT_JDK_VERSION" >&6; }
19869             fi # end check jdk version
19870           fi # end check rt.jar
19871         fi # end check javac
19872       fi # end check java
19873     fi # end check boot jdk found
19874   fi
19875 
19876   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19877     # Having specified an argument which is incorrect will produce an instant failure;
19878     # we should not go on looking
19879     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19880   fi
19881 
19882   # Test: Is bootjdk available from builddeps?
19883 
19884   if test "x$BOOT_JDK_FOUND" = xno; then
19885     # Now execute the test
19886 
19887 
19888 
19889   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19890     # Source the builddeps file again, to make sure it uses the latest variables!
19891     . $builddepsfile
19892     # Look for a target and build machine specific resource!
19893     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19894     if test "x$resource" = x; then
19895       # Ok, lets instead look for a target specific resource
19896       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19897     fi
19898     if test "x$resource" = x; then
19899       # Ok, lets instead look for a build specific resource
19900       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19901     fi
19902     if test "x$resource" = x; then
19903       # Ok, lets instead look for a generic resource
19904       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19905       resource=${builddep_bootjdk}
19906     fi
19907     if test "x$resource" != x; then
19908       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19909 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19910       # If the resource in the builddeps.conf file is an existing directory,
19911       # for example /java/linux/cups
19912       if test -d ${resource}; then
19913         depdir=${resource}
19914       else
19915 
19916   # bootjdk is for example mymodule
19917   # $resource is for example libs/general/libmymod_1_2_3.zip
19918   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19919   # $with_builddeps_dir is for example /localhome/builddeps
19920   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19921   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19922   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19923   filename=`basename $resource`
19924   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19925   filebase=${filename%%.*}
19926   extension=${filename#*.}
19927   installdir=$with_builddeps_dir/$filebase
19928   if test ! -f $installdir/$filename.unpacked; then
19929     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19930 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19931     if test ! -d $installdir; then
19932       mkdir -p $installdir
19933     fi
19934     if test ! -d $installdir; then
19935       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19936     fi
19937     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19938     touch $tmpfile
19939     if test ! -f $tmpfile; then
19940       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19941     fi
19942 
19943   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19944   # $tmpfile is the local file name for the downloaded file.
19945   VALID_TOOL=no
19946   if test "x$BDEPS_FTP" = xwget; then
19947     VALID_TOOL=yes
19948     wget -O $tmpfile $with_builddeps_server/$resource
19949   fi
19950   if test "x$BDEPS_FTP" = xlftp; then
19951     VALID_TOOL=yes
19952     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19953   fi
19954   if test "x$BDEPS_FTP" = xftp; then
19955     VALID_TOOL=yes
19956     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19957     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19958     FTPUSERPWD=${FTPSERVER%%@*}
19959     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19960       FTPUSER=${userpwd%%:*}
19961       FTPPWD=${userpwd#*@}
19962       FTPSERVER=${FTPSERVER#*@}
19963     else
19964       FTPUSER=ftp
19965       FTPPWD=ftp
19966     fi
19967     # the "pass" command does not work on some
19968     # ftp clients (read ftp.exe) but if it works,
19969     # passive mode is better!
19970     ( \
19971         echo "user $FTPUSER $FTPPWD"        ; \
19972         echo "pass"                         ; \
19973         echo "bin"                          ; \
19974         echo "get $FTPPATH $tmpfile"              ; \
19975     ) | ftp -in $FTPSERVER
19976   fi
19977   if test "x$VALID_TOOL" != xyes; then
19978     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19979   fi
19980 
19981     mv $tmpfile $installdir/$filename
19982     if test ! -s $installdir/$filename; then
19983       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19984     fi
19985     case "$extension" in
19986       zip)  echo "Unzipping $installdir/$filename..."
19987         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
19988         ;;
19989       tar.gz) echo "Untaring $installdir/$filename..."
19990         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19991         ;;
19992       tgz) echo "Untaring $installdir/$filename..."
19993         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19994         ;;
19995       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
19996         ;;
19997     esac
19998   fi
19999   if test -f $installdir/$filename.unpacked; then
20000     depdir=$installdir
20001   fi
20002 
20003       fi
20004       # Source the builddeps file again, because in the previous command, the depdir
20005       # was updated to point at the current build dependency install directory.
20006       . $builddepsfile
20007       # Now extract variables from the builddeps.conf files.
20008       theroot=${builddep_bootjdk_ROOT}
20009       thecflags=${builddep_bootjdk_CFLAGS}
20010       thelibs=${builddep_bootjdk_LIBS}
20011       if test "x$depdir" = x; then
20012         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20013       fi
20014       BOOT_JDK=$depdir
20015       if test "x$theroot" != x; then
20016         BOOT_JDK="$theroot"
20017       fi
20018       if test "x$thecflags" != x; then
20019         BOOT_JDK_CFLAGS="$thecflags"
20020       fi
20021       if test "x$thelibs" != x; then
20022         BOOT_JDK_LIBS="$thelibs"
20023       fi
20024       BOOT_JDK_FOUND=maybe
20025       else BOOT_JDK_FOUND=no
20026 
20027     fi
20028     else BOOT_JDK_FOUND=no
20029 
20030   fi
20031 
20032 
20033 
20034     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20035     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20036       # Do we have a bin/java?
20037       if test ! -x "$BOOT_JDK/bin/java"; then
20038         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20040         BOOT_JDK_FOUND=no
20041       else
20042         # Do we have a bin/javac?
20043         if test ! -x "$BOOT_JDK/bin/javac"; then
20044           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20045 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20046           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20047 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20048           BOOT_JDK_FOUND=no
20049         else
20050           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20051           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20052             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20054             BOOT_JDK_FOUND=no
20055           else
20056             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20057             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20058 
20059             # Extra M4 quote needed to protect [] in grep expression.
20060             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20061             if test "x$FOUND_CORRECT_VERSION" = x; then
20062               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20063 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20064               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20065 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20066               BOOT_JDK_FOUND=no
20067             else
20068               # We're done! :-)
20069               BOOT_JDK_FOUND=yes
20070 
20071   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20072 
20073   # Input might be given as Windows format, start by converting to
20074   # unix format.
20075   path="$BOOT_JDK"
20076   new_path=`$CYGPATH -u "$path"`
20077 
20078   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20079   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20080   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20081   # "foo.exe" is OK but "foo" is an error.
20082   #
20083   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20084   # It is also a way to make sure we got the proper file name for the real test later on.
20085   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20086   if test "x$test_shortpath" = x; then
20087     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20088 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20089     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20090   fi
20091 
20092   # Call helper function which possibly converts this using DOS-style short mode.
20093   # If so, the updated path is stored in $new_path.
20094 
20095   input_path="$new_path"
20096   # Check if we need to convert this using DOS-style short mode. If the path
20097   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20098   # take no chances and rewrite it.
20099   # Note: m4 eats our [], so we need to use [ and ] instead.
20100   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20101   if test "x$has_forbidden_chars" != x; then
20102     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20103     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20104     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20105     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20106       # Going to short mode and back again did indeed matter. Since short mode is
20107       # case insensitive, let's make it lowercase to improve readability.
20108       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20109       # Now convert it back to Unix-stile (cygpath)
20110       input_path=`$CYGPATH -u "$shortmode_path"`
20111       new_path="$input_path"
20112     fi
20113   fi
20114 
20115   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20116   if test "x$test_cygdrive_prefix" = x; then
20117     # As a simple fix, exclude /usr/bin since it's not a real path.
20118     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20119       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20120       # a path prefixed by /cygdrive for fixpath to work.
20121       new_path="$CYGWIN_ROOT_PATH$input_path"
20122     fi
20123   fi
20124 
20125 
20126   if test "x$path" != "x$new_path"; then
20127     BOOT_JDK="$new_path"
20128     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20129 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20130   fi
20131 
20132   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20133 
20134   path="$BOOT_JDK"
20135   has_colon=`$ECHO $path | $GREP ^.:`
20136   new_path="$path"
20137   if test "x$has_colon" = x; then
20138     # Not in mixed or Windows style, start by that.
20139     new_path=`cmd //c echo $path`
20140   fi
20141 
20142 
20143   input_path="$new_path"
20144   # Check if we need to convert this using DOS-style short mode. If the path
20145   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20146   # take no chances and rewrite it.
20147   # Note: m4 eats our [], so we need to use [ and ] instead.
20148   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20149   if test "x$has_forbidden_chars" != x; then
20150     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20151     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20152   fi
20153 
20154 
20155   windows_path="$new_path"
20156   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20157     unix_path=`$CYGPATH -u "$windows_path"`
20158     new_path="$unix_path"
20159   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20160     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20161     new_path="$unix_path"
20162   fi
20163 
20164   if test "x$path" != "x$new_path"; then
20165     BOOT_JDK="$new_path"
20166     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20167 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20168   fi
20169 
20170   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20171   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20172 
20173   else
20174     # We're on a posix platform. Hooray! :)
20175     path="$BOOT_JDK"
20176     has_space=`$ECHO "$path" | $GREP " "`
20177     if test "x$has_space" != x; then
20178       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20179 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20180       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20181     fi
20182 
20183     # Use eval to expand a potential ~
20184     eval path="$path"
20185     if test ! -f "$path" && test ! -d "$path"; then
20186       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20187     fi
20188 
20189     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20190   fi
20191 
20192               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20193 $as_echo_n "checking for Boot JDK... " >&6; }
20194               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20195 $as_echo "$BOOT_JDK" >&6; }
20196               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20197 $as_echo_n "checking Boot JDK version... " >&6; }
20198               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20199               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20200 $as_echo "$BOOT_JDK_VERSION" >&6; }
20201             fi # end check jdk version
20202           fi # end check rt.jar
20203         fi # end check javac
20204       fi # end check java
20205     fi # end check boot jdk found
20206   fi
20207 
20208 
20209   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20210 
20211   if test "x$BOOT_JDK_FOUND" = xno; then
20212     # Now execute the test
20213 
20214   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20215     # First check at user selected default
20216 
20217   if test "x$BOOT_JDK_FOUND" = xno; then
20218     # Now execute the test
20219 
20220   if test -x /usr/libexec/java_home; then
20221     BOOT_JDK=`/usr/libexec/java_home `
20222     BOOT_JDK_FOUND=maybe
20223     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20224 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20225   fi
20226 
20227 
20228     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20229     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20230       # Do we have a bin/java?
20231       if test ! -x "$BOOT_JDK/bin/java"; then
20232         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20233 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20234         BOOT_JDK_FOUND=no
20235       else
20236         # Do we have a bin/javac?
20237         if test ! -x "$BOOT_JDK/bin/javac"; then
20238           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20240           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20241 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20242           BOOT_JDK_FOUND=no
20243         else
20244           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20245           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20246             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20248             BOOT_JDK_FOUND=no
20249           else
20250             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20251             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20252 
20253             # Extra M4 quote needed to protect [] in grep expression.
20254             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20255             if test "x$FOUND_CORRECT_VERSION" = x; then
20256               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20257 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20258               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20259 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20260               BOOT_JDK_FOUND=no
20261             else
20262               # We're done! :-)
20263               BOOT_JDK_FOUND=yes
20264 
20265   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20266 
20267   # Input might be given as Windows format, start by converting to
20268   # unix format.
20269   path="$BOOT_JDK"
20270   new_path=`$CYGPATH -u "$path"`
20271 
20272   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20273   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20274   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20275   # "foo.exe" is OK but "foo" is an error.
20276   #
20277   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20278   # It is also a way to make sure we got the proper file name for the real test later on.
20279   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20280   if test "x$test_shortpath" = x; then
20281     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20282 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20283     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20284   fi
20285 
20286   # Call helper function which possibly converts this using DOS-style short mode.
20287   # If so, the updated path is stored in $new_path.
20288 
20289   input_path="$new_path"
20290   # Check if we need to convert this using DOS-style short mode. If the path
20291   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20292   # take no chances and rewrite it.
20293   # Note: m4 eats our [], so we need to use [ and ] instead.
20294   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20295   if test "x$has_forbidden_chars" != x; then
20296     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20297     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20298     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20299     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20300       # Going to short mode and back again did indeed matter. Since short mode is
20301       # case insensitive, let's make it lowercase to improve readability.
20302       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20303       # Now convert it back to Unix-stile (cygpath)
20304       input_path=`$CYGPATH -u "$shortmode_path"`
20305       new_path="$input_path"
20306     fi
20307   fi
20308 
20309   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20310   if test "x$test_cygdrive_prefix" = x; then
20311     # As a simple fix, exclude /usr/bin since it's not a real path.
20312     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20313       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20314       # a path prefixed by /cygdrive for fixpath to work.
20315       new_path="$CYGWIN_ROOT_PATH$input_path"
20316     fi
20317   fi
20318 
20319 
20320   if test "x$path" != "x$new_path"; then
20321     BOOT_JDK="$new_path"
20322     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20323 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20324   fi
20325 
20326   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20327 
20328   path="$BOOT_JDK"
20329   has_colon=`$ECHO $path | $GREP ^.:`
20330   new_path="$path"
20331   if test "x$has_colon" = x; then
20332     # Not in mixed or Windows style, start by that.
20333     new_path=`cmd //c echo $path`
20334   fi
20335 
20336 
20337   input_path="$new_path"
20338   # Check if we need to convert this using DOS-style short mode. If the path
20339   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20340   # take no chances and rewrite it.
20341   # Note: m4 eats our [], so we need to use [ and ] instead.
20342   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20343   if test "x$has_forbidden_chars" != x; then
20344     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20345     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20346   fi
20347 
20348 
20349   windows_path="$new_path"
20350   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20351     unix_path=`$CYGPATH -u "$windows_path"`
20352     new_path="$unix_path"
20353   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20354     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20355     new_path="$unix_path"
20356   fi
20357 
20358   if test "x$path" != "x$new_path"; then
20359     BOOT_JDK="$new_path"
20360     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20361 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20362   fi
20363 
20364   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20365   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20366 
20367   else
20368     # We're on a posix platform. Hooray! :)
20369     path="$BOOT_JDK"
20370     has_space=`$ECHO "$path" | $GREP " "`
20371     if test "x$has_space" != x; then
20372       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20373 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20374       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20375     fi
20376 
20377     # Use eval to expand a potential ~
20378     eval path="$path"
20379     if test ! -f "$path" && test ! -d "$path"; then
20380       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20381     fi
20382 
20383     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20384   fi
20385 
20386               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20387 $as_echo_n "checking for Boot JDK... " >&6; }
20388               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20389 $as_echo "$BOOT_JDK" >&6; }
20390               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20391 $as_echo_n "checking Boot JDK version... " >&6; }
20392               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20393               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20394 $as_echo "$BOOT_JDK_VERSION" >&6; }
20395             fi # end check jdk version
20396           fi # end check rt.jar
20397         fi # end check javac
20398       fi # end check java
20399     fi # end check boot jdk found
20400   fi
20401 
20402     # If that did not work out (e.g. too old), try explicit versions instead
20403 
20404   if test "x$BOOT_JDK_FOUND" = xno; then
20405     # Now execute the test
20406 
20407   if test -x /usr/libexec/java_home; then
20408     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20409     BOOT_JDK_FOUND=maybe
20410     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20411 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20412   fi
20413 
20414 
20415     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20416     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20417       # Do we have a bin/java?
20418       if test ! -x "$BOOT_JDK/bin/java"; then
20419         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20421         BOOT_JDK_FOUND=no
20422       else
20423         # Do we have a bin/javac?
20424         if test ! -x "$BOOT_JDK/bin/javac"; then
20425           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20427           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20428 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20429           BOOT_JDK_FOUND=no
20430         else
20431           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20432           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20433             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20435             BOOT_JDK_FOUND=no
20436           else
20437             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20438             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20439 
20440             # Extra M4 quote needed to protect [] in grep expression.
20441             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20442             if test "x$FOUND_CORRECT_VERSION" = x; then
20443               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20444 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20445               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20446 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20447               BOOT_JDK_FOUND=no
20448             else
20449               # We're done! :-)
20450               BOOT_JDK_FOUND=yes
20451 
20452   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20453 
20454   # Input might be given as Windows format, start by converting to
20455   # unix format.
20456   path="$BOOT_JDK"
20457   new_path=`$CYGPATH -u "$path"`
20458 
20459   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20460   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20461   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20462   # "foo.exe" is OK but "foo" is an error.
20463   #
20464   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20465   # It is also a way to make sure we got the proper file name for the real test later on.
20466   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20467   if test "x$test_shortpath" = x; then
20468     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20469 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20470     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20471   fi
20472 
20473   # Call helper function which possibly converts this using DOS-style short mode.
20474   # If so, the updated path is stored in $new_path.
20475 
20476   input_path="$new_path"
20477   # Check if we need to convert this using DOS-style short mode. If the path
20478   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20479   # take no chances and rewrite it.
20480   # Note: m4 eats our [], so we need to use [ and ] instead.
20481   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20482   if test "x$has_forbidden_chars" != x; then
20483     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20484     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20485     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20486     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20487       # Going to short mode and back again did indeed matter. Since short mode is
20488       # case insensitive, let's make it lowercase to improve readability.
20489       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20490       # Now convert it back to Unix-stile (cygpath)
20491       input_path=`$CYGPATH -u "$shortmode_path"`
20492       new_path="$input_path"
20493     fi
20494   fi
20495 
20496   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20497   if test "x$test_cygdrive_prefix" = x; then
20498     # As a simple fix, exclude /usr/bin since it's not a real path.
20499     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20500       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20501       # a path prefixed by /cygdrive for fixpath to work.
20502       new_path="$CYGWIN_ROOT_PATH$input_path"
20503     fi
20504   fi
20505 
20506 
20507   if test "x$path" != "x$new_path"; then
20508     BOOT_JDK="$new_path"
20509     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20510 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20511   fi
20512 
20513   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20514 
20515   path="$BOOT_JDK"
20516   has_colon=`$ECHO $path | $GREP ^.:`
20517   new_path="$path"
20518   if test "x$has_colon" = x; then
20519     # Not in mixed or Windows style, start by that.
20520     new_path=`cmd //c echo $path`
20521   fi
20522 
20523 
20524   input_path="$new_path"
20525   # Check if we need to convert this using DOS-style short mode. If the path
20526   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20527   # take no chances and rewrite it.
20528   # Note: m4 eats our [], so we need to use [ and ] instead.
20529   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20530   if test "x$has_forbidden_chars" != x; then
20531     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20532     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20533   fi
20534 
20535 
20536   windows_path="$new_path"
20537   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20538     unix_path=`$CYGPATH -u "$windows_path"`
20539     new_path="$unix_path"
20540   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20541     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20542     new_path="$unix_path"
20543   fi
20544 
20545   if test "x$path" != "x$new_path"; then
20546     BOOT_JDK="$new_path"
20547     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20548 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20549   fi
20550 
20551   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20552   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20553 
20554   else
20555     # We're on a posix platform. Hooray! :)
20556     path="$BOOT_JDK"
20557     has_space=`$ECHO "$path" | $GREP " "`
20558     if test "x$has_space" != x; then
20559       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20560 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20561       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20562     fi
20563 
20564     # Use eval to expand a potential ~
20565     eval path="$path"
20566     if test ! -f "$path" && test ! -d "$path"; then
20567       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20568     fi
20569 
20570     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20571   fi
20572 
20573               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20574 $as_echo_n "checking for Boot JDK... " >&6; }
20575               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20576 $as_echo "$BOOT_JDK" >&6; }
20577               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20578 $as_echo_n "checking Boot JDK version... " >&6; }
20579               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20580               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20581 $as_echo "$BOOT_JDK_VERSION" >&6; }
20582             fi # end check jdk version
20583           fi # end check rt.jar
20584         fi # end check javac
20585       fi # end check java
20586     fi # end check boot jdk found
20587   fi
20588 
20589 
20590   if test "x$BOOT_JDK_FOUND" = xno; then
20591     # Now execute the test
20592 
20593   if test -x /usr/libexec/java_home; then
20594     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20595     BOOT_JDK_FOUND=maybe
20596     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20597 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20598   fi
20599 
20600 
20601     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20602     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20603       # Do we have a bin/java?
20604       if test ! -x "$BOOT_JDK/bin/java"; then
20605         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20606 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20607         BOOT_JDK_FOUND=no
20608       else
20609         # Do we have a bin/javac?
20610         if test ! -x "$BOOT_JDK/bin/javac"; then
20611           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20613           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20614 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20615           BOOT_JDK_FOUND=no
20616         else
20617           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20618           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20619             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20621             BOOT_JDK_FOUND=no
20622           else
20623             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20624             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20625 
20626             # Extra M4 quote needed to protect [] in grep expression.
20627             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20628             if test "x$FOUND_CORRECT_VERSION" = x; then
20629               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20630 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20631               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20632 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20633               BOOT_JDK_FOUND=no
20634             else
20635               # We're done! :-)
20636               BOOT_JDK_FOUND=yes
20637 
20638   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20639 
20640   # Input might be given as Windows format, start by converting to
20641   # unix format.
20642   path="$BOOT_JDK"
20643   new_path=`$CYGPATH -u "$path"`
20644 
20645   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20646   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20647   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20648   # "foo.exe" is OK but "foo" is an error.
20649   #
20650   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20651   # It is also a way to make sure we got the proper file name for the real test later on.
20652   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20653   if test "x$test_shortpath" = x; then
20654     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20655 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20656     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20657   fi
20658 
20659   # Call helper function which possibly converts this using DOS-style short mode.
20660   # If so, the updated path is stored in $new_path.
20661 
20662   input_path="$new_path"
20663   # Check if we need to convert this using DOS-style short mode. If the path
20664   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20665   # take no chances and rewrite it.
20666   # Note: m4 eats our [], so we need to use [ and ] instead.
20667   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20668   if test "x$has_forbidden_chars" != x; then
20669     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20670     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20671     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20672     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20673       # Going to short mode and back again did indeed matter. Since short mode is
20674       # case insensitive, let's make it lowercase to improve readability.
20675       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20676       # Now convert it back to Unix-stile (cygpath)
20677       input_path=`$CYGPATH -u "$shortmode_path"`
20678       new_path="$input_path"
20679     fi
20680   fi
20681 
20682   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20683   if test "x$test_cygdrive_prefix" = x; then
20684     # As a simple fix, exclude /usr/bin since it's not a real path.
20685     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20686       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20687       # a path prefixed by /cygdrive for fixpath to work.
20688       new_path="$CYGWIN_ROOT_PATH$input_path"
20689     fi
20690   fi
20691 
20692 
20693   if test "x$path" != "x$new_path"; then
20694     BOOT_JDK="$new_path"
20695     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20696 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20697   fi
20698 
20699   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20700 
20701   path="$BOOT_JDK"
20702   has_colon=`$ECHO $path | $GREP ^.:`
20703   new_path="$path"
20704   if test "x$has_colon" = x; then
20705     # Not in mixed or Windows style, start by that.
20706     new_path=`cmd //c echo $path`
20707   fi
20708 
20709 
20710   input_path="$new_path"
20711   # Check if we need to convert this using DOS-style short mode. If the path
20712   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20713   # take no chances and rewrite it.
20714   # Note: m4 eats our [], so we need to use [ and ] instead.
20715   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20716   if test "x$has_forbidden_chars" != x; then
20717     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20718     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20719   fi
20720 
20721 
20722   windows_path="$new_path"
20723   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20724     unix_path=`$CYGPATH -u "$windows_path"`
20725     new_path="$unix_path"
20726   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20727     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20728     new_path="$unix_path"
20729   fi
20730 
20731   if test "x$path" != "x$new_path"; then
20732     BOOT_JDK="$new_path"
20733     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20735   fi
20736 
20737   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20738   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20739 
20740   else
20741     # We're on a posix platform. Hooray! :)
20742     path="$BOOT_JDK"
20743     has_space=`$ECHO "$path" | $GREP " "`
20744     if test "x$has_space" != x; then
20745       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20746 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20747       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20748     fi
20749 
20750     # Use eval to expand a potential ~
20751     eval path="$path"
20752     if test ! -f "$path" && test ! -d "$path"; then
20753       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20754     fi
20755 
20756     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20757   fi
20758 
20759               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20760 $as_echo_n "checking for Boot JDK... " >&6; }
20761               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20762 $as_echo "$BOOT_JDK" >&6; }
20763               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20764 $as_echo_n "checking Boot JDK version... " >&6; }
20765               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20766               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20767 $as_echo "$BOOT_JDK_VERSION" >&6; }
20768             fi # end check jdk version
20769           fi # end check rt.jar
20770         fi # end check javac
20771       fi # end check java
20772     fi # end check boot jdk found
20773   fi
20774 
20775 
20776   if test "x$BOOT_JDK_FOUND" = xno; then
20777     # Now execute the test
20778 
20779   if test -x /usr/libexec/java_home; then
20780     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20781     BOOT_JDK_FOUND=maybe
20782     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20783 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20784   fi
20785 
20786 
20787     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20788     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20789       # Do we have a bin/java?
20790       if test ! -x "$BOOT_JDK/bin/java"; then
20791         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20792 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20793         BOOT_JDK_FOUND=no
20794       else
20795         # Do we have a bin/javac?
20796         if test ! -x "$BOOT_JDK/bin/javac"; then
20797           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20798 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20799           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20800 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20801           BOOT_JDK_FOUND=no
20802         else
20803           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20804           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20805             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20807             BOOT_JDK_FOUND=no
20808           else
20809             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20810             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20811 
20812             # Extra M4 quote needed to protect [] in grep expression.
20813             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20814             if test "x$FOUND_CORRECT_VERSION" = x; then
20815               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20816 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20817               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20818 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20819               BOOT_JDK_FOUND=no
20820             else
20821               # We're done! :-)
20822               BOOT_JDK_FOUND=yes
20823 
20824   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20825 
20826   # Input might be given as Windows format, start by converting to
20827   # unix format.
20828   path="$BOOT_JDK"
20829   new_path=`$CYGPATH -u "$path"`
20830 
20831   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20832   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20833   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20834   # "foo.exe" is OK but "foo" is an error.
20835   #
20836   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20837   # It is also a way to make sure we got the proper file name for the real test later on.
20838   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20839   if test "x$test_shortpath" = x; then
20840     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20841 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20842     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20843   fi
20844 
20845   # Call helper function which possibly converts this using DOS-style short mode.
20846   # If so, the updated path is stored in $new_path.
20847 
20848   input_path="$new_path"
20849   # Check if we need to convert this using DOS-style short mode. If the path
20850   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20851   # take no chances and rewrite it.
20852   # Note: m4 eats our [], so we need to use [ and ] instead.
20853   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20854   if test "x$has_forbidden_chars" != x; then
20855     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20856     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20857     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20858     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20859       # Going to short mode and back again did indeed matter. Since short mode is
20860       # case insensitive, let's make it lowercase to improve readability.
20861       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20862       # Now convert it back to Unix-stile (cygpath)
20863       input_path=`$CYGPATH -u "$shortmode_path"`
20864       new_path="$input_path"
20865     fi
20866   fi
20867 
20868   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20869   if test "x$test_cygdrive_prefix" = x; then
20870     # As a simple fix, exclude /usr/bin since it's not a real path.
20871     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20872       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20873       # a path prefixed by /cygdrive for fixpath to work.
20874       new_path="$CYGWIN_ROOT_PATH$input_path"
20875     fi
20876   fi
20877 
20878 
20879   if test "x$path" != "x$new_path"; then
20880     BOOT_JDK="$new_path"
20881     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20882 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20883   fi
20884 
20885   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20886 
20887   path="$BOOT_JDK"
20888   has_colon=`$ECHO $path | $GREP ^.:`
20889   new_path="$path"
20890   if test "x$has_colon" = x; then
20891     # Not in mixed or Windows style, start by that.
20892     new_path=`cmd //c echo $path`
20893   fi
20894 
20895 
20896   input_path="$new_path"
20897   # Check if we need to convert this using DOS-style short mode. If the path
20898   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20899   # take no chances and rewrite it.
20900   # Note: m4 eats our [], so we need to use [ and ] instead.
20901   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20902   if test "x$has_forbidden_chars" != x; then
20903     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20904     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20905   fi
20906 
20907 
20908   windows_path="$new_path"
20909   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20910     unix_path=`$CYGPATH -u "$windows_path"`
20911     new_path="$unix_path"
20912   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20913     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20914     new_path="$unix_path"
20915   fi
20916 
20917   if test "x$path" != "x$new_path"; then
20918     BOOT_JDK="$new_path"
20919     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20920 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20921   fi
20922 
20923   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20924   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20925 
20926   else
20927     # We're on a posix platform. Hooray! :)
20928     path="$BOOT_JDK"
20929     has_space=`$ECHO "$path" | $GREP " "`
20930     if test "x$has_space" != x; then
20931       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20932 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20933       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20934     fi
20935 
20936     # Use eval to expand a potential ~
20937     eval path="$path"
20938     if test ! -f "$path" && test ! -d "$path"; then
20939       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20940     fi
20941 
20942     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20943   fi
20944 
20945               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20946 $as_echo_n "checking for Boot JDK... " >&6; }
20947               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20948 $as_echo "$BOOT_JDK" >&6; }
20949               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20950 $as_echo_n "checking Boot JDK version... " >&6; }
20951               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20952               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20953 $as_echo "$BOOT_JDK_VERSION" >&6; }
20954             fi # end check jdk version
20955           fi # end check rt.jar
20956         fi # end check javac
20957       fi # end check java
20958     fi # end check boot jdk found
20959   fi
20960 
20961   fi
20962 
20963 
20964     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20965     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20966       # Do we have a bin/java?
20967       if test ! -x "$BOOT_JDK/bin/java"; then
20968         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20969 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20970         BOOT_JDK_FOUND=no
20971       else
20972         # Do we have a bin/javac?
20973         if test ! -x "$BOOT_JDK/bin/javac"; then
20974           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20975 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20976           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20977 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20978           BOOT_JDK_FOUND=no
20979         else
20980           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20981           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20982             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20983 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20984             BOOT_JDK_FOUND=no
20985           else
20986             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20987             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20988 
20989             # Extra M4 quote needed to protect [] in grep expression.
20990             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20991             if test "x$FOUND_CORRECT_VERSION" = x; then
20992               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20993 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20994               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20995 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20996               BOOT_JDK_FOUND=no
20997             else
20998               # We're done! :-)
20999               BOOT_JDK_FOUND=yes
21000 
21001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21002 
21003   # Input might be given as Windows format, start by converting to
21004   # unix format.
21005   path="$BOOT_JDK"
21006   new_path=`$CYGPATH -u "$path"`
21007 
21008   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21009   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21010   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21011   # "foo.exe" is OK but "foo" is an error.
21012   #
21013   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21014   # It is also a way to make sure we got the proper file name for the real test later on.
21015   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21016   if test "x$test_shortpath" = x; then
21017     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21018 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21019     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21020   fi
21021 
21022   # Call helper function which possibly converts this using DOS-style short mode.
21023   # If so, the updated path is stored in $new_path.
21024 
21025   input_path="$new_path"
21026   # Check if we need to convert this using DOS-style short mode. If the path
21027   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21028   # take no chances and rewrite it.
21029   # Note: m4 eats our [], so we need to use [ and ] instead.
21030   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21031   if test "x$has_forbidden_chars" != x; then
21032     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21033     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21034     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21035     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21036       # Going to short mode and back again did indeed matter. Since short mode is
21037       # case insensitive, let's make it lowercase to improve readability.
21038       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21039       # Now convert it back to Unix-stile (cygpath)
21040       input_path=`$CYGPATH -u "$shortmode_path"`
21041       new_path="$input_path"
21042     fi
21043   fi
21044 
21045   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21046   if test "x$test_cygdrive_prefix" = x; then
21047     # As a simple fix, exclude /usr/bin since it's not a real path.
21048     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21049       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21050       # a path prefixed by /cygdrive for fixpath to work.
21051       new_path="$CYGWIN_ROOT_PATH$input_path"
21052     fi
21053   fi
21054 
21055 
21056   if test "x$path" != "x$new_path"; then
21057     BOOT_JDK="$new_path"
21058     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21059 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21060   fi
21061 
21062   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21063 
21064   path="$BOOT_JDK"
21065   has_colon=`$ECHO $path | $GREP ^.:`
21066   new_path="$path"
21067   if test "x$has_colon" = x; then
21068     # Not in mixed or Windows style, start by that.
21069     new_path=`cmd //c echo $path`
21070   fi
21071 
21072 
21073   input_path="$new_path"
21074   # Check if we need to convert this using DOS-style short mode. If the path
21075   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21076   # take no chances and rewrite it.
21077   # Note: m4 eats our [], so we need to use [ and ] instead.
21078   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21079   if test "x$has_forbidden_chars" != x; then
21080     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21081     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21082   fi
21083 
21084 
21085   windows_path="$new_path"
21086   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21087     unix_path=`$CYGPATH -u "$windows_path"`
21088     new_path="$unix_path"
21089   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21090     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21091     new_path="$unix_path"
21092   fi
21093 
21094   if test "x$path" != "x$new_path"; then
21095     BOOT_JDK="$new_path"
21096     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21097 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21098   fi
21099 
21100   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21101   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21102 
21103   else
21104     # We're on a posix platform. Hooray! :)
21105     path="$BOOT_JDK"
21106     has_space=`$ECHO "$path" | $GREP " "`
21107     if test "x$has_space" != x; then
21108       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21109 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21110       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21111     fi
21112 
21113     # Use eval to expand a potential ~
21114     eval path="$path"
21115     if test ! -f "$path" && test ! -d "$path"; then
21116       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21117     fi
21118 
21119     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21120   fi
21121 
21122               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21123 $as_echo_n "checking for Boot JDK... " >&6; }
21124               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21125 $as_echo "$BOOT_JDK" >&6; }
21126               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21127 $as_echo_n "checking Boot JDK version... " >&6; }
21128               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21129               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21130 $as_echo "$BOOT_JDK_VERSION" >&6; }
21131             fi # end check jdk version
21132           fi # end check rt.jar
21133         fi # end check javac
21134       fi # end check java
21135     fi # end check boot jdk found
21136   fi
21137 
21138 
21139   # Test: Is $JAVA_HOME set?
21140 
21141   if test "x$BOOT_JDK_FOUND" = xno; then
21142     # Now execute the test
21143 
21144   if test "x$JAVA_HOME" != x; then
21145     JAVA_HOME_PROCESSED="$JAVA_HOME"
21146 
21147   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21148 
21149   # Input might be given as Windows format, start by converting to
21150   # unix format.
21151   path="$JAVA_HOME_PROCESSED"
21152   new_path=`$CYGPATH -u "$path"`
21153 
21154   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21155   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21156   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21157   # "foo.exe" is OK but "foo" is an error.
21158   #
21159   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21160   # It is also a way to make sure we got the proper file name for the real test later on.
21161   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21162   if test "x$test_shortpath" = x; then
21163     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21164 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21165     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21166   fi
21167 
21168   # Call helper function which possibly converts this using DOS-style short mode.
21169   # If so, the updated path is stored in $new_path.
21170 
21171   input_path="$new_path"
21172   # Check if we need to convert this using DOS-style short mode. If the path
21173   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21174   # take no chances and rewrite it.
21175   # Note: m4 eats our [], so we need to use [ and ] instead.
21176   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21177   if test "x$has_forbidden_chars" != x; then
21178     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21179     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21180     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21181     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21182       # Going to short mode and back again did indeed matter. Since short mode is
21183       # case insensitive, let's make it lowercase to improve readability.
21184       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21185       # Now convert it back to Unix-stile (cygpath)
21186       input_path=`$CYGPATH -u "$shortmode_path"`
21187       new_path="$input_path"
21188     fi
21189   fi
21190 
21191   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21192   if test "x$test_cygdrive_prefix" = x; then
21193     # As a simple fix, exclude /usr/bin since it's not a real path.
21194     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21195       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21196       # a path prefixed by /cygdrive for fixpath to work.
21197       new_path="$CYGWIN_ROOT_PATH$input_path"
21198     fi
21199   fi
21200 
21201 
21202   if test "x$path" != "x$new_path"; then
21203     JAVA_HOME_PROCESSED="$new_path"
21204     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21205 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21206   fi
21207 
21208   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21209 
21210   path="$JAVA_HOME_PROCESSED"
21211   has_colon=`$ECHO $path | $GREP ^.:`
21212   new_path="$path"
21213   if test "x$has_colon" = x; then
21214     # Not in mixed or Windows style, start by that.
21215     new_path=`cmd //c echo $path`
21216   fi
21217 
21218 
21219   input_path="$new_path"
21220   # Check if we need to convert this using DOS-style short mode. If the path
21221   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21222   # take no chances and rewrite it.
21223   # Note: m4 eats our [], so we need to use [ and ] instead.
21224   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21225   if test "x$has_forbidden_chars" != x; then
21226     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21227     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21228   fi
21229 
21230 
21231   windows_path="$new_path"
21232   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21233     unix_path=`$CYGPATH -u "$windows_path"`
21234     new_path="$unix_path"
21235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21236     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21237     new_path="$unix_path"
21238   fi
21239 
21240   if test "x$path" != "x$new_path"; then
21241     JAVA_HOME_PROCESSED="$new_path"
21242     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21243 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21244   fi
21245 
21246   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21247   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21248 
21249   else
21250     # We're on a posix platform. Hooray! :)
21251     path="$JAVA_HOME_PROCESSED"
21252     has_space=`$ECHO "$path" | $GREP " "`
21253     if test "x$has_space" != x; then
21254       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21255 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21256       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21257     fi
21258 
21259     # Use eval to expand a potential ~
21260     eval path="$path"
21261     if test ! -f "$path" && test ! -d "$path"; then
21262       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21263     fi
21264 
21265     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21266   fi
21267 
21268     if test ! -d "$JAVA_HOME_PROCESSED"; then
21269       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21270 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21271     else
21272       # Aha, the user has set a JAVA_HOME
21273       # let us use that as the Boot JDK.
21274       BOOT_JDK="$JAVA_HOME_PROCESSED"
21275       BOOT_JDK_FOUND=maybe
21276       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21277 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21278     fi
21279   fi
21280 
21281 
21282     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21283     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21284       # Do we have a bin/java?
21285       if test ! -x "$BOOT_JDK/bin/java"; then
21286         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21287 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21288         BOOT_JDK_FOUND=no
21289       else
21290         # Do we have a bin/javac?
21291         if test ! -x "$BOOT_JDK/bin/javac"; then
21292           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21293 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21294           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21295 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21296           BOOT_JDK_FOUND=no
21297         else
21298           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21299           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21300             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21301 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21302             BOOT_JDK_FOUND=no
21303           else
21304             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21305             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21306 
21307             # Extra M4 quote needed to protect [] in grep expression.
21308             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21309             if test "x$FOUND_CORRECT_VERSION" = x; then
21310               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21311 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21312               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21313 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21314               BOOT_JDK_FOUND=no
21315             else
21316               # We're done! :-)
21317               BOOT_JDK_FOUND=yes
21318 
21319   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21320 
21321   # Input might be given as Windows format, start by converting to
21322   # unix format.
21323   path="$BOOT_JDK"
21324   new_path=`$CYGPATH -u "$path"`
21325 
21326   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21327   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21328   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21329   # "foo.exe" is OK but "foo" is an error.
21330   #
21331   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21332   # It is also a way to make sure we got the proper file name for the real test later on.
21333   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21334   if test "x$test_shortpath" = x; then
21335     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21336 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21337     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21338   fi
21339 
21340   # Call helper function which possibly converts this using DOS-style short mode.
21341   # If so, the updated path is stored in $new_path.
21342 
21343   input_path="$new_path"
21344   # Check if we need to convert this using DOS-style short mode. If the path
21345   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21346   # take no chances and rewrite it.
21347   # Note: m4 eats our [], so we need to use [ and ] instead.
21348   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21349   if test "x$has_forbidden_chars" != x; then
21350     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21351     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21352     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21353     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21354       # Going to short mode and back again did indeed matter. Since short mode is
21355       # case insensitive, let's make it lowercase to improve readability.
21356       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21357       # Now convert it back to Unix-stile (cygpath)
21358       input_path=`$CYGPATH -u "$shortmode_path"`
21359       new_path="$input_path"
21360     fi
21361   fi
21362 
21363   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21364   if test "x$test_cygdrive_prefix" = x; then
21365     # As a simple fix, exclude /usr/bin since it's not a real path.
21366     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21367       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21368       # a path prefixed by /cygdrive for fixpath to work.
21369       new_path="$CYGWIN_ROOT_PATH$input_path"
21370     fi
21371   fi
21372 
21373 
21374   if test "x$path" != "x$new_path"; then
21375     BOOT_JDK="$new_path"
21376     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21377 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21378   fi
21379 
21380   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21381 
21382   path="$BOOT_JDK"
21383   has_colon=`$ECHO $path | $GREP ^.:`
21384   new_path="$path"
21385   if test "x$has_colon" = x; then
21386     # Not in mixed or Windows style, start by that.
21387     new_path=`cmd //c echo $path`
21388   fi
21389 
21390 
21391   input_path="$new_path"
21392   # Check if we need to convert this using DOS-style short mode. If the path
21393   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21394   # take no chances and rewrite it.
21395   # Note: m4 eats our [], so we need to use [ and ] instead.
21396   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21397   if test "x$has_forbidden_chars" != x; then
21398     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21399     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21400   fi
21401 
21402 
21403   windows_path="$new_path"
21404   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21405     unix_path=`$CYGPATH -u "$windows_path"`
21406     new_path="$unix_path"
21407   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21408     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21409     new_path="$unix_path"
21410   fi
21411 
21412   if test "x$path" != "x$new_path"; then
21413     BOOT_JDK="$new_path"
21414     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21415 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21416   fi
21417 
21418   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21419   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21420 
21421   else
21422     # We're on a posix platform. Hooray! :)
21423     path="$BOOT_JDK"
21424     has_space=`$ECHO "$path" | $GREP " "`
21425     if test "x$has_space" != x; then
21426       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21427 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21428       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21429     fi
21430 
21431     # Use eval to expand a potential ~
21432     eval path="$path"
21433     if test ! -f "$path" && test ! -d "$path"; then
21434       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21435     fi
21436 
21437     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21438   fi
21439 
21440               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21441 $as_echo_n "checking for Boot JDK... " >&6; }
21442               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21443 $as_echo "$BOOT_JDK" >&6; }
21444               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21445 $as_echo_n "checking Boot JDK version... " >&6; }
21446               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21447               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21448 $as_echo "$BOOT_JDK_VERSION" >&6; }
21449             fi # end check jdk version
21450           fi # end check rt.jar
21451         fi # end check javac
21452       fi # end check java
21453     fi # end check boot jdk found
21454   fi
21455 
21456 
21457   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21458 
21459   if test "x$BOOT_JDK_FOUND" = xno; then
21460     # Now execute the test
21461 
21462   # Extract the first word of "javac", so it can be a program name with args.
21463 set dummy javac; ac_word=$2
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21465 $as_echo_n "checking for $ac_word... " >&6; }
21466 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21467   $as_echo_n "(cached) " >&6
21468 else
21469   case $JAVAC_CHECK in
21470   [\\/]* | ?:[\\/]*)
21471   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21472   ;;
21473   *)
21474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21475 for as_dir in $PATH
21476 do
21477   IFS=$as_save_IFS
21478   test -z "$as_dir" && as_dir=.
21479     for ac_exec_ext in '' $ac_executable_extensions; do
21480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21481     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21483     break 2
21484   fi
21485 done
21486   done
21487 IFS=$as_save_IFS
21488 
21489   ;;
21490 esac
21491 fi
21492 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21493 if test -n "$JAVAC_CHECK"; then
21494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21495 $as_echo "$JAVAC_CHECK" >&6; }
21496 else
21497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21498 $as_echo "no" >&6; }
21499 fi
21500 
21501 
21502   # Extract the first word of "java", so it can be a program name with args.
21503 set dummy java; ac_word=$2
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21505 $as_echo_n "checking for $ac_word... " >&6; }
21506 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21507   $as_echo_n "(cached) " >&6
21508 else
21509   case $JAVA_CHECK in
21510   [\\/]* | ?:[\\/]*)
21511   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21512   ;;
21513   *)
21514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515 for as_dir in $PATH
21516 do
21517   IFS=$as_save_IFS
21518   test -z "$as_dir" && as_dir=.
21519     for ac_exec_ext in '' $ac_executable_extensions; do
21520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21521     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21523     break 2
21524   fi
21525 done
21526   done
21527 IFS=$as_save_IFS
21528 
21529   ;;
21530 esac
21531 fi
21532 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21533 if test -n "$JAVA_CHECK"; then
21534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21535 $as_echo "$JAVA_CHECK" >&6; }
21536 else
21537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21538 $as_echo "no" >&6; }
21539 fi
21540 
21541 
21542   BINARY="$JAVAC_CHECK"
21543   if test "x$JAVAC_CHECK" = x; then
21544     BINARY="$JAVA_CHECK"
21545   fi
21546   if test "x$BINARY" != x; then
21547     # So there is a java(c) binary, it might be part of a JDK.
21548     # Lets find the JDK/JRE directory by following symbolic links.
21549     # Linux/GNU systems often have links from /usr/bin/java to
21550     # /etc/alternatives/java to the real JDK binary.
21551 
21552   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21553     # Follow a chain of symbolic links. Use readlink
21554     # where it exists, else fall back to horribly
21555     # complicated shell code.
21556     if test "x$READLINK_TESTED" != yes; then
21557       # On MacOSX there is a readlink tool with a different
21558       # purpose than the GNU readlink tool. Check the found readlink.
21559       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21560       if test "x$ISGNU" = x; then
21561         # A readlink that we do not know how to use.
21562         # Are there other non-GNU readlinks out there?
21563         READLINK_TESTED=yes
21564         READLINK=
21565       fi
21566     fi
21567 
21568     if test "x$READLINK" != x; then
21569       BINARY=`$READLINK -f $BINARY`
21570     else
21571       # Save the current directory for restoring afterwards
21572       STARTDIR=$PWD
21573       COUNTER=0
21574       sym_link_dir=`$DIRNAME $BINARY`
21575       sym_link_file=`$BASENAME $BINARY`
21576       cd $sym_link_dir
21577       # Use -P flag to resolve symlinks in directories.
21578       cd `$THEPWDCMD -P`
21579       sym_link_dir=`$THEPWDCMD -P`
21580       # Resolve file symlinks
21581       while test $COUNTER -lt 20; do
21582         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21583         if test "x$ISLINK" == x; then
21584           # This is not a symbolic link! We are done!
21585           break
21586         fi
21587         # Again resolve directory symlinks since the target of the just found
21588         # link could be in a different directory
21589         cd `$DIRNAME $ISLINK`
21590         sym_link_dir=`$THEPWDCMD -P`
21591         sym_link_file=`$BASENAME $ISLINK`
21592         let COUNTER=COUNTER+1
21593       done
21594       cd $STARTDIR
21595       BINARY=$sym_link_dir/$sym_link_file
21596     fi
21597   fi
21598 
21599     BOOT_JDK=`dirname "$BINARY"`
21600     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21601     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21602       # Looks like we found ourselves an JDK
21603       BOOT_JDK_FOUND=maybe
21604       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21605 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21606     fi
21607   fi
21608 
21609 
21610     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21611     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21612       # Do we have a bin/java?
21613       if test ! -x "$BOOT_JDK/bin/java"; then
21614         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21616         BOOT_JDK_FOUND=no
21617       else
21618         # Do we have a bin/javac?
21619         if test ! -x "$BOOT_JDK/bin/javac"; then
21620           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21621 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21622           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21623 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21624           BOOT_JDK_FOUND=no
21625         else
21626           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21627           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21628             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21630             BOOT_JDK_FOUND=no
21631           else
21632             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21633             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21634 
21635             # Extra M4 quote needed to protect [] in grep expression.
21636             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21637             if test "x$FOUND_CORRECT_VERSION" = x; then
21638               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21639 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21640               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21641 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21642               BOOT_JDK_FOUND=no
21643             else
21644               # We're done! :-)
21645               BOOT_JDK_FOUND=yes
21646 
21647   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21648 
21649   # Input might be given as Windows format, start by converting to
21650   # unix format.
21651   path="$BOOT_JDK"
21652   new_path=`$CYGPATH -u "$path"`
21653 
21654   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21655   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21656   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21657   # "foo.exe" is OK but "foo" is an error.
21658   #
21659   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21660   # It is also a way to make sure we got the proper file name for the real test later on.
21661   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21662   if test "x$test_shortpath" = x; then
21663     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21664 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21665     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21666   fi
21667 
21668   # Call helper function which possibly converts this using DOS-style short mode.
21669   # If so, the updated path is stored in $new_path.
21670 
21671   input_path="$new_path"
21672   # Check if we need to convert this using DOS-style short mode. If the path
21673   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21674   # take no chances and rewrite it.
21675   # Note: m4 eats our [], so we need to use [ and ] instead.
21676   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21677   if test "x$has_forbidden_chars" != x; then
21678     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21679     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21680     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21681     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21682       # Going to short mode and back again did indeed matter. Since short mode is
21683       # case insensitive, let's make it lowercase to improve readability.
21684       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21685       # Now convert it back to Unix-stile (cygpath)
21686       input_path=`$CYGPATH -u "$shortmode_path"`
21687       new_path="$input_path"
21688     fi
21689   fi
21690 
21691   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21692   if test "x$test_cygdrive_prefix" = x; then
21693     # As a simple fix, exclude /usr/bin since it's not a real path.
21694     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21695       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21696       # a path prefixed by /cygdrive for fixpath to work.
21697       new_path="$CYGWIN_ROOT_PATH$input_path"
21698     fi
21699   fi
21700 
21701 
21702   if test "x$path" != "x$new_path"; then
21703     BOOT_JDK="$new_path"
21704     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21705 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21706   fi
21707 
21708   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21709 
21710   path="$BOOT_JDK"
21711   has_colon=`$ECHO $path | $GREP ^.:`
21712   new_path="$path"
21713   if test "x$has_colon" = x; then
21714     # Not in mixed or Windows style, start by that.
21715     new_path=`cmd //c echo $path`
21716   fi
21717 
21718 
21719   input_path="$new_path"
21720   # Check if we need to convert this using DOS-style short mode. If the path
21721   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21722   # take no chances and rewrite it.
21723   # Note: m4 eats our [], so we need to use [ and ] instead.
21724   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21725   if test "x$has_forbidden_chars" != x; then
21726     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21727     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21728   fi
21729 
21730 
21731   windows_path="$new_path"
21732   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21733     unix_path=`$CYGPATH -u "$windows_path"`
21734     new_path="$unix_path"
21735   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21736     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21737     new_path="$unix_path"
21738   fi
21739 
21740   if test "x$path" != "x$new_path"; then
21741     BOOT_JDK="$new_path"
21742     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21743 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21744   fi
21745 
21746   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21747   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21748 
21749   else
21750     # We're on a posix platform. Hooray! :)
21751     path="$BOOT_JDK"
21752     has_space=`$ECHO "$path" | $GREP " "`
21753     if test "x$has_space" != x; then
21754       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21755 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21756       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21757     fi
21758 
21759     # Use eval to expand a potential ~
21760     eval path="$path"
21761     if test ! -f "$path" && test ! -d "$path"; then
21762       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21763     fi
21764 
21765     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21766   fi
21767 
21768               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21769 $as_echo_n "checking for Boot JDK... " >&6; }
21770               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21771 $as_echo "$BOOT_JDK" >&6; }
21772               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21773 $as_echo_n "checking Boot JDK version... " >&6; }
21774               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21775               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21776 $as_echo "$BOOT_JDK_VERSION" >&6; }
21777             fi # end check jdk version
21778           fi # end check rt.jar
21779         fi # end check javac
21780       fi # end check java
21781     fi # end check boot jdk found
21782   fi
21783 
21784 
21785   # Test: Is there a JDK installed in default, well-known locations?
21786 
21787   if test "x$BOOT_JDK_FOUND" = xno; then
21788     # Now execute the test
21789 
21790   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21791 
21792   if test "x$BOOT_JDK_FOUND" = xno; then
21793     # Now execute the test
21794 
21795   if test "x$ProgramW6432" != x; then
21796     VIRTUAL_DIR="$ProgramW6432/Java"
21797 
21798   windows_path="$VIRTUAL_DIR"
21799   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21800     unix_path=`$CYGPATH -u "$windows_path"`
21801     VIRTUAL_DIR="$unix_path"
21802   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21803     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21804     VIRTUAL_DIR="$unix_path"
21805   fi
21806 
21807 
21808   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21809   BOOT_JDK_SUFFIX=""
21810   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21811   if test "x$ALL_JDKS_FOUND" != x; then
21812     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21813 
21814   if test "x$BOOT_JDK_FOUND" = xno; then
21815     # Now execute the test
21816 
21817         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21818         if test -d "$BOOT_JDK"; then
21819           BOOT_JDK_FOUND=maybe
21820           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21821 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21822         fi
21823 
21824 
21825     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21826     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21827       # Do we have a bin/java?
21828       if test ! -x "$BOOT_JDK/bin/java"; then
21829         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21831         BOOT_JDK_FOUND=no
21832       else
21833         # Do we have a bin/javac?
21834         if test ! -x "$BOOT_JDK/bin/javac"; then
21835           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21836 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21837           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21838 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21839           BOOT_JDK_FOUND=no
21840         else
21841           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21842           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21843             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21844 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21845             BOOT_JDK_FOUND=no
21846           else
21847             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21848             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21849 
21850             # Extra M4 quote needed to protect [] in grep expression.
21851             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21852             if test "x$FOUND_CORRECT_VERSION" = x; then
21853               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21854 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21855               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21856 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21857               BOOT_JDK_FOUND=no
21858             else
21859               # We're done! :-)
21860               BOOT_JDK_FOUND=yes
21861 
21862   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21863 
21864   # Input might be given as Windows format, start by converting to
21865   # unix format.
21866   path="$BOOT_JDK"
21867   new_path=`$CYGPATH -u "$path"`
21868 
21869   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21870   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21871   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21872   # "foo.exe" is OK but "foo" is an error.
21873   #
21874   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21875   # It is also a way to make sure we got the proper file name for the real test later on.
21876   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21877   if test "x$test_shortpath" = x; then
21878     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21879 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21880     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21881   fi
21882 
21883   # Call helper function which possibly converts this using DOS-style short mode.
21884   # If so, the updated path is stored in $new_path.
21885 
21886   input_path="$new_path"
21887   # Check if we need to convert this using DOS-style short mode. If the path
21888   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21889   # take no chances and rewrite it.
21890   # Note: m4 eats our [], so we need to use [ and ] instead.
21891   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21892   if test "x$has_forbidden_chars" != x; then
21893     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21894     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21895     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21896     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21897       # Going to short mode and back again did indeed matter. Since short mode is
21898       # case insensitive, let's make it lowercase to improve readability.
21899       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21900       # Now convert it back to Unix-stile (cygpath)
21901       input_path=`$CYGPATH -u "$shortmode_path"`
21902       new_path="$input_path"
21903     fi
21904   fi
21905 
21906   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21907   if test "x$test_cygdrive_prefix" = x; then
21908     # As a simple fix, exclude /usr/bin since it's not a real path.
21909     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21910       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21911       # a path prefixed by /cygdrive for fixpath to work.
21912       new_path="$CYGWIN_ROOT_PATH$input_path"
21913     fi
21914   fi
21915 
21916 
21917   if test "x$path" != "x$new_path"; then
21918     BOOT_JDK="$new_path"
21919     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21920 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21921   fi
21922 
21923   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21924 
21925   path="$BOOT_JDK"
21926   has_colon=`$ECHO $path | $GREP ^.:`
21927   new_path="$path"
21928   if test "x$has_colon" = x; then
21929     # Not in mixed or Windows style, start by that.
21930     new_path=`cmd //c echo $path`
21931   fi
21932 
21933 
21934   input_path="$new_path"
21935   # Check if we need to convert this using DOS-style short mode. If the path
21936   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21937   # take no chances and rewrite it.
21938   # Note: m4 eats our [], so we need to use [ and ] instead.
21939   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21940   if test "x$has_forbidden_chars" != x; then
21941     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21942     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21943   fi
21944 
21945 
21946   windows_path="$new_path"
21947   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21948     unix_path=`$CYGPATH -u "$windows_path"`
21949     new_path="$unix_path"
21950   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21951     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21952     new_path="$unix_path"
21953   fi
21954 
21955   if test "x$path" != "x$new_path"; then
21956     BOOT_JDK="$new_path"
21957     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21958 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21959   fi
21960 
21961   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21962   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21963 
21964   else
21965     # We're on a posix platform. Hooray! :)
21966     path="$BOOT_JDK"
21967     has_space=`$ECHO "$path" | $GREP " "`
21968     if test "x$has_space" != x; then
21969       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21970 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21971       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21972     fi
21973 
21974     # Use eval to expand a potential ~
21975     eval path="$path"
21976     if test ! -f "$path" && test ! -d "$path"; then
21977       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21978     fi
21979 
21980     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21981   fi
21982 
21983               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21984 $as_echo_n "checking for Boot JDK... " >&6; }
21985               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21986 $as_echo "$BOOT_JDK" >&6; }
21987               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21988 $as_echo_n "checking Boot JDK version... " >&6; }
21989               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21990               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21991 $as_echo "$BOOT_JDK_VERSION" >&6; }
21992             fi # end check jdk version
21993           fi # end check rt.jar
21994         fi # end check javac
21995       fi # end check java
21996     fi # end check boot jdk found
21997   fi
21998 
21999     done
22000   fi
22001 
22002   fi
22003 
22004 
22005     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22006     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22007       # Do we have a bin/java?
22008       if test ! -x "$BOOT_JDK/bin/java"; then
22009         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22011         BOOT_JDK_FOUND=no
22012       else
22013         # Do we have a bin/javac?
22014         if test ! -x "$BOOT_JDK/bin/javac"; then
22015           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22016 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22017           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22018 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22019           BOOT_JDK_FOUND=no
22020         else
22021           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22022           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22023             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22024 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22025             BOOT_JDK_FOUND=no
22026           else
22027             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22028             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22029 
22030             # Extra M4 quote needed to protect [] in grep expression.
22031             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22032             if test "x$FOUND_CORRECT_VERSION" = x; then
22033               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22034 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22035               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22036 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22037               BOOT_JDK_FOUND=no
22038             else
22039               # We're done! :-)
22040               BOOT_JDK_FOUND=yes
22041 
22042   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22043 
22044   # Input might be given as Windows format, start by converting to
22045   # unix format.
22046   path="$BOOT_JDK"
22047   new_path=`$CYGPATH -u "$path"`
22048 
22049   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22050   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22051   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22052   # "foo.exe" is OK but "foo" is an error.
22053   #
22054   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22055   # It is also a way to make sure we got the proper file name for the real test later on.
22056   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22057   if test "x$test_shortpath" = x; then
22058     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22059 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22060     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22061   fi
22062 
22063   # Call helper function which possibly converts this using DOS-style short mode.
22064   # If so, the updated path is stored in $new_path.
22065 
22066   input_path="$new_path"
22067   # Check if we need to convert this using DOS-style short mode. If the path
22068   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22069   # take no chances and rewrite it.
22070   # Note: m4 eats our [], so we need to use [ and ] instead.
22071   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22072   if test "x$has_forbidden_chars" != x; then
22073     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22074     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22075     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22076     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22077       # Going to short mode and back again did indeed matter. Since short mode is
22078       # case insensitive, let's make it lowercase to improve readability.
22079       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22080       # Now convert it back to Unix-stile (cygpath)
22081       input_path=`$CYGPATH -u "$shortmode_path"`
22082       new_path="$input_path"
22083     fi
22084   fi
22085 
22086   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22087   if test "x$test_cygdrive_prefix" = x; then
22088     # As a simple fix, exclude /usr/bin since it's not a real path.
22089     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22090       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22091       # a path prefixed by /cygdrive for fixpath to work.
22092       new_path="$CYGWIN_ROOT_PATH$input_path"
22093     fi
22094   fi
22095 
22096 
22097   if test "x$path" != "x$new_path"; then
22098     BOOT_JDK="$new_path"
22099     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22100 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22101   fi
22102 
22103   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22104 
22105   path="$BOOT_JDK"
22106   has_colon=`$ECHO $path | $GREP ^.:`
22107   new_path="$path"
22108   if test "x$has_colon" = x; then
22109     # Not in mixed or Windows style, start by that.
22110     new_path=`cmd //c echo $path`
22111   fi
22112 
22113 
22114   input_path="$new_path"
22115   # Check if we need to convert this using DOS-style short mode. If the path
22116   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22117   # take no chances and rewrite it.
22118   # Note: m4 eats our [], so we need to use [ and ] instead.
22119   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22120   if test "x$has_forbidden_chars" != x; then
22121     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22122     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22123   fi
22124 
22125 
22126   windows_path="$new_path"
22127   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22128     unix_path=`$CYGPATH -u "$windows_path"`
22129     new_path="$unix_path"
22130   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22131     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22132     new_path="$unix_path"
22133   fi
22134 
22135   if test "x$path" != "x$new_path"; then
22136     BOOT_JDK="$new_path"
22137     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22138 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22139   fi
22140 
22141   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22142   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22143 
22144   else
22145     # We're on a posix platform. Hooray! :)
22146     path="$BOOT_JDK"
22147     has_space=`$ECHO "$path" | $GREP " "`
22148     if test "x$has_space" != x; then
22149       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22150 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22151       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22152     fi
22153 
22154     # Use eval to expand a potential ~
22155     eval path="$path"
22156     if test ! -f "$path" && test ! -d "$path"; then
22157       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22158     fi
22159 
22160     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22161   fi
22162 
22163               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22164 $as_echo_n "checking for Boot JDK... " >&6; }
22165               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22166 $as_echo "$BOOT_JDK" >&6; }
22167               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22168 $as_echo_n "checking Boot JDK version... " >&6; }
22169               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22170               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22171 $as_echo "$BOOT_JDK_VERSION" >&6; }
22172             fi # end check jdk version
22173           fi # end check rt.jar
22174         fi # end check javac
22175       fi # end check java
22176     fi # end check boot jdk found
22177   fi
22178 
22179 
22180   if test "x$BOOT_JDK_FOUND" = xno; then
22181     # Now execute the test
22182 
22183   if test "x$PROGRAMW6432" != x; then
22184     VIRTUAL_DIR="$PROGRAMW6432/Java"
22185 
22186   windows_path="$VIRTUAL_DIR"
22187   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22188     unix_path=`$CYGPATH -u "$windows_path"`
22189     VIRTUAL_DIR="$unix_path"
22190   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22191     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22192     VIRTUAL_DIR="$unix_path"
22193   fi
22194 
22195 
22196   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22197   BOOT_JDK_SUFFIX=""
22198   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22199   if test "x$ALL_JDKS_FOUND" != x; then
22200     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22201 
22202   if test "x$BOOT_JDK_FOUND" = xno; then
22203     # Now execute the test
22204 
22205         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22206         if test -d "$BOOT_JDK"; then
22207           BOOT_JDK_FOUND=maybe
22208           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22209 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22210         fi
22211 
22212 
22213     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22214     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22215       # Do we have a bin/java?
22216       if test ! -x "$BOOT_JDK/bin/java"; then
22217         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22218 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22219         BOOT_JDK_FOUND=no
22220       else
22221         # Do we have a bin/javac?
22222         if test ! -x "$BOOT_JDK/bin/javac"; then
22223           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22224 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22225           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22226 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22227           BOOT_JDK_FOUND=no
22228         else
22229           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22230           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22231             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22233             BOOT_JDK_FOUND=no
22234           else
22235             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22236             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22237 
22238             # Extra M4 quote needed to protect [] in grep expression.
22239             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22240             if test "x$FOUND_CORRECT_VERSION" = x; then
22241               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22242 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22243               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22244 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22245               BOOT_JDK_FOUND=no
22246             else
22247               # We're done! :-)
22248               BOOT_JDK_FOUND=yes
22249 
22250   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22251 
22252   # Input might be given as Windows format, start by converting to
22253   # unix format.
22254   path="$BOOT_JDK"
22255   new_path=`$CYGPATH -u "$path"`
22256 
22257   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22258   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22259   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22260   # "foo.exe" is OK but "foo" is an error.
22261   #
22262   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22263   # It is also a way to make sure we got the proper file name for the real test later on.
22264   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22265   if test "x$test_shortpath" = x; then
22266     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22267 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22268     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22269   fi
22270 
22271   # Call helper function which possibly converts this using DOS-style short mode.
22272   # If so, the updated path is stored in $new_path.
22273 
22274   input_path="$new_path"
22275   # Check if we need to convert this using DOS-style short mode. If the path
22276   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22277   # take no chances and rewrite it.
22278   # Note: m4 eats our [], so we need to use [ and ] instead.
22279   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22280   if test "x$has_forbidden_chars" != x; then
22281     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22282     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22283     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22284     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22285       # Going to short mode and back again did indeed matter. Since short mode is
22286       # case insensitive, let's make it lowercase to improve readability.
22287       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22288       # Now convert it back to Unix-stile (cygpath)
22289       input_path=`$CYGPATH -u "$shortmode_path"`
22290       new_path="$input_path"
22291     fi
22292   fi
22293 
22294   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22295   if test "x$test_cygdrive_prefix" = x; then
22296     # As a simple fix, exclude /usr/bin since it's not a real path.
22297     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22298       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22299       # a path prefixed by /cygdrive for fixpath to work.
22300       new_path="$CYGWIN_ROOT_PATH$input_path"
22301     fi
22302   fi
22303 
22304 
22305   if test "x$path" != "x$new_path"; then
22306     BOOT_JDK="$new_path"
22307     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22308 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22309   fi
22310 
22311   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22312 
22313   path="$BOOT_JDK"
22314   has_colon=`$ECHO $path | $GREP ^.:`
22315   new_path="$path"
22316   if test "x$has_colon" = x; then
22317     # Not in mixed or Windows style, start by that.
22318     new_path=`cmd //c echo $path`
22319   fi
22320 
22321 
22322   input_path="$new_path"
22323   # Check if we need to convert this using DOS-style short mode. If the path
22324   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22325   # take no chances and rewrite it.
22326   # Note: m4 eats our [], so we need to use [ and ] instead.
22327   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22328   if test "x$has_forbidden_chars" != x; then
22329     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22330     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22331   fi
22332 
22333 
22334   windows_path="$new_path"
22335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22336     unix_path=`$CYGPATH -u "$windows_path"`
22337     new_path="$unix_path"
22338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22340     new_path="$unix_path"
22341   fi
22342 
22343   if test "x$path" != "x$new_path"; then
22344     BOOT_JDK="$new_path"
22345     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22347   fi
22348 
22349   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22350   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22351 
22352   else
22353     # We're on a posix platform. Hooray! :)
22354     path="$BOOT_JDK"
22355     has_space=`$ECHO "$path" | $GREP " "`
22356     if test "x$has_space" != x; then
22357       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22358 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22359       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22360     fi
22361 
22362     # Use eval to expand a potential ~
22363     eval path="$path"
22364     if test ! -f "$path" && test ! -d "$path"; then
22365       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22366     fi
22367 
22368     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22369   fi
22370 
22371               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22372 $as_echo_n "checking for Boot JDK... " >&6; }
22373               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22374 $as_echo "$BOOT_JDK" >&6; }
22375               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22376 $as_echo_n "checking Boot JDK version... " >&6; }
22377               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22378               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22379 $as_echo "$BOOT_JDK_VERSION" >&6; }
22380             fi # end check jdk version
22381           fi # end check rt.jar
22382         fi # end check javac
22383       fi # end check java
22384     fi # end check boot jdk found
22385   fi
22386 
22387     done
22388   fi
22389 
22390   fi
22391 
22392 
22393     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22394     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22395       # Do we have a bin/java?
22396       if test ! -x "$BOOT_JDK/bin/java"; then
22397         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22399         BOOT_JDK_FOUND=no
22400       else
22401         # Do we have a bin/javac?
22402         if test ! -x "$BOOT_JDK/bin/javac"; then
22403           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22404 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22405           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22406 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22407           BOOT_JDK_FOUND=no
22408         else
22409           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22410           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22411             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22412 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22413             BOOT_JDK_FOUND=no
22414           else
22415             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22416             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22417 
22418             # Extra M4 quote needed to protect [] in grep expression.
22419             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22420             if test "x$FOUND_CORRECT_VERSION" = x; then
22421               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22423               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22424 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22425               BOOT_JDK_FOUND=no
22426             else
22427               # We're done! :-)
22428               BOOT_JDK_FOUND=yes
22429 
22430   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22431 
22432   # Input might be given as Windows format, start by converting to
22433   # unix format.
22434   path="$BOOT_JDK"
22435   new_path=`$CYGPATH -u "$path"`
22436 
22437   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22438   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22439   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22440   # "foo.exe" is OK but "foo" is an error.
22441   #
22442   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22443   # It is also a way to make sure we got the proper file name for the real test later on.
22444   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22445   if test "x$test_shortpath" = x; then
22446     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22447 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22448     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22449   fi
22450 
22451   # Call helper function which possibly converts this using DOS-style short mode.
22452   # If so, the updated path is stored in $new_path.
22453 
22454   input_path="$new_path"
22455   # Check if we need to convert this using DOS-style short mode. If the path
22456   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22457   # take no chances and rewrite it.
22458   # Note: m4 eats our [], so we need to use [ and ] instead.
22459   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22460   if test "x$has_forbidden_chars" != x; then
22461     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22462     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22463     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22464     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22465       # Going to short mode and back again did indeed matter. Since short mode is
22466       # case insensitive, let's make it lowercase to improve readability.
22467       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22468       # Now convert it back to Unix-stile (cygpath)
22469       input_path=`$CYGPATH -u "$shortmode_path"`
22470       new_path="$input_path"
22471     fi
22472   fi
22473 
22474   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22475   if test "x$test_cygdrive_prefix" = x; then
22476     # As a simple fix, exclude /usr/bin since it's not a real path.
22477     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22478       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22479       # a path prefixed by /cygdrive for fixpath to work.
22480       new_path="$CYGWIN_ROOT_PATH$input_path"
22481     fi
22482   fi
22483 
22484 
22485   if test "x$path" != "x$new_path"; then
22486     BOOT_JDK="$new_path"
22487     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22488 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22489   fi
22490 
22491   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22492 
22493   path="$BOOT_JDK"
22494   has_colon=`$ECHO $path | $GREP ^.:`
22495   new_path="$path"
22496   if test "x$has_colon" = x; then
22497     # Not in mixed or Windows style, start by that.
22498     new_path=`cmd //c echo $path`
22499   fi
22500 
22501 
22502   input_path="$new_path"
22503   # Check if we need to convert this using DOS-style short mode. If the path
22504   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22505   # take no chances and rewrite it.
22506   # Note: m4 eats our [], so we need to use [ and ] instead.
22507   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22508   if test "x$has_forbidden_chars" != x; then
22509     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22510     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22511   fi
22512 
22513 
22514   windows_path="$new_path"
22515   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22516     unix_path=`$CYGPATH -u "$windows_path"`
22517     new_path="$unix_path"
22518   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22519     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22520     new_path="$unix_path"
22521   fi
22522 
22523   if test "x$path" != "x$new_path"; then
22524     BOOT_JDK="$new_path"
22525     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22526 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22527   fi
22528 
22529   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22530   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22531 
22532   else
22533     # We're on a posix platform. Hooray! :)
22534     path="$BOOT_JDK"
22535     has_space=`$ECHO "$path" | $GREP " "`
22536     if test "x$has_space" != x; then
22537       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22538 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22539       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22540     fi
22541 
22542     # Use eval to expand a potential ~
22543     eval path="$path"
22544     if test ! -f "$path" && test ! -d "$path"; then
22545       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22546     fi
22547 
22548     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22549   fi
22550 
22551               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22552 $as_echo_n "checking for Boot JDK... " >&6; }
22553               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22554 $as_echo "$BOOT_JDK" >&6; }
22555               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22556 $as_echo_n "checking Boot JDK version... " >&6; }
22557               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22558               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22559 $as_echo "$BOOT_JDK_VERSION" >&6; }
22560             fi # end check jdk version
22561           fi # end check rt.jar
22562         fi # end check javac
22563       fi # end check java
22564     fi # end check boot jdk found
22565   fi
22566 
22567 
22568   if test "x$BOOT_JDK_FOUND" = xno; then
22569     # Now execute the test
22570 
22571   if test "x$PROGRAMFILES" != x; then
22572     VIRTUAL_DIR="$PROGRAMFILES/Java"
22573 
22574   windows_path="$VIRTUAL_DIR"
22575   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22576     unix_path=`$CYGPATH -u "$windows_path"`
22577     VIRTUAL_DIR="$unix_path"
22578   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22579     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22580     VIRTUAL_DIR="$unix_path"
22581   fi
22582 
22583 
22584   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22585   BOOT_JDK_SUFFIX=""
22586   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22587   if test "x$ALL_JDKS_FOUND" != x; then
22588     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22589 
22590   if test "x$BOOT_JDK_FOUND" = xno; then
22591     # Now execute the test
22592 
22593         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22594         if test -d "$BOOT_JDK"; then
22595           BOOT_JDK_FOUND=maybe
22596           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22597 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22598         fi
22599 
22600 
22601     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22602     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22603       # Do we have a bin/java?
22604       if test ! -x "$BOOT_JDK/bin/java"; then
22605         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22606 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22607         BOOT_JDK_FOUND=no
22608       else
22609         # Do we have a bin/javac?
22610         if test ! -x "$BOOT_JDK/bin/javac"; then
22611           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22613           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22614 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22615           BOOT_JDK_FOUND=no
22616         else
22617           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22618           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22619             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22621             BOOT_JDK_FOUND=no
22622           else
22623             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22624             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22625 
22626             # Extra M4 quote needed to protect [] in grep expression.
22627             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22628             if test "x$FOUND_CORRECT_VERSION" = x; then
22629               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22630 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22631               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22632 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22633               BOOT_JDK_FOUND=no
22634             else
22635               # We're done! :-)
22636               BOOT_JDK_FOUND=yes
22637 
22638   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22639 
22640   # Input might be given as Windows format, start by converting to
22641   # unix format.
22642   path="$BOOT_JDK"
22643   new_path=`$CYGPATH -u "$path"`
22644 
22645   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22646   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22647   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22648   # "foo.exe" is OK but "foo" is an error.
22649   #
22650   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22651   # It is also a way to make sure we got the proper file name for the real test later on.
22652   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22653   if test "x$test_shortpath" = x; then
22654     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22655 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22656     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22657   fi
22658 
22659   # Call helper function which possibly converts this using DOS-style short mode.
22660   # If so, the updated path is stored in $new_path.
22661 
22662   input_path="$new_path"
22663   # Check if we need to convert this using DOS-style short mode. If the path
22664   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22665   # take no chances and rewrite it.
22666   # Note: m4 eats our [], so we need to use [ and ] instead.
22667   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22668   if test "x$has_forbidden_chars" != x; then
22669     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22670     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22671     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22672     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22673       # Going to short mode and back again did indeed matter. Since short mode is
22674       # case insensitive, let's make it lowercase to improve readability.
22675       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22676       # Now convert it back to Unix-stile (cygpath)
22677       input_path=`$CYGPATH -u "$shortmode_path"`
22678       new_path="$input_path"
22679     fi
22680   fi
22681 
22682   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22683   if test "x$test_cygdrive_prefix" = x; then
22684     # As a simple fix, exclude /usr/bin since it's not a real path.
22685     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22686       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22687       # a path prefixed by /cygdrive for fixpath to work.
22688       new_path="$CYGWIN_ROOT_PATH$input_path"
22689     fi
22690   fi
22691 
22692 
22693   if test "x$path" != "x$new_path"; then
22694     BOOT_JDK="$new_path"
22695     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22696 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22697   fi
22698 
22699   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22700 
22701   path="$BOOT_JDK"
22702   has_colon=`$ECHO $path | $GREP ^.:`
22703   new_path="$path"
22704   if test "x$has_colon" = x; then
22705     # Not in mixed or Windows style, start by that.
22706     new_path=`cmd //c echo $path`
22707   fi
22708 
22709 
22710   input_path="$new_path"
22711   # Check if we need to convert this using DOS-style short mode. If the path
22712   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22713   # take no chances and rewrite it.
22714   # Note: m4 eats our [], so we need to use [ and ] instead.
22715   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22716   if test "x$has_forbidden_chars" != x; then
22717     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22718     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22719   fi
22720 
22721 
22722   windows_path="$new_path"
22723   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22724     unix_path=`$CYGPATH -u "$windows_path"`
22725     new_path="$unix_path"
22726   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22727     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22728     new_path="$unix_path"
22729   fi
22730 
22731   if test "x$path" != "x$new_path"; then
22732     BOOT_JDK="$new_path"
22733     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22735   fi
22736 
22737   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22738   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22739 
22740   else
22741     # We're on a posix platform. Hooray! :)
22742     path="$BOOT_JDK"
22743     has_space=`$ECHO "$path" | $GREP " "`
22744     if test "x$has_space" != x; then
22745       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22746 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22747       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22748     fi
22749 
22750     # Use eval to expand a potential ~
22751     eval path="$path"
22752     if test ! -f "$path" && test ! -d "$path"; then
22753       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22754     fi
22755 
22756     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22757   fi
22758 
22759               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22760 $as_echo_n "checking for Boot JDK... " >&6; }
22761               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22762 $as_echo "$BOOT_JDK" >&6; }
22763               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22764 $as_echo_n "checking Boot JDK version... " >&6; }
22765               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22766               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22767 $as_echo "$BOOT_JDK_VERSION" >&6; }
22768             fi # end check jdk version
22769           fi # end check rt.jar
22770         fi # end check javac
22771       fi # end check java
22772     fi # end check boot jdk found
22773   fi
22774 
22775     done
22776   fi
22777 
22778   fi
22779 
22780 
22781     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22782     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22783       # Do we have a bin/java?
22784       if test ! -x "$BOOT_JDK/bin/java"; then
22785         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22786 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22787         BOOT_JDK_FOUND=no
22788       else
22789         # Do we have a bin/javac?
22790         if test ! -x "$BOOT_JDK/bin/javac"; then
22791           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22792 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22793           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22794 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22795           BOOT_JDK_FOUND=no
22796         else
22797           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22798           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22799             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22801             BOOT_JDK_FOUND=no
22802           else
22803             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22804             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22805 
22806             # Extra M4 quote needed to protect [] in grep expression.
22807             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22808             if test "x$FOUND_CORRECT_VERSION" = x; then
22809               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22811               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22812 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22813               BOOT_JDK_FOUND=no
22814             else
22815               # We're done! :-)
22816               BOOT_JDK_FOUND=yes
22817 
22818   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22819 
22820   # Input might be given as Windows format, start by converting to
22821   # unix format.
22822   path="$BOOT_JDK"
22823   new_path=`$CYGPATH -u "$path"`
22824 
22825   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22826   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22827   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22828   # "foo.exe" is OK but "foo" is an error.
22829   #
22830   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22831   # It is also a way to make sure we got the proper file name for the real test later on.
22832   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22833   if test "x$test_shortpath" = x; then
22834     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22835 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22836     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22837   fi
22838 
22839   # Call helper function which possibly converts this using DOS-style short mode.
22840   # If so, the updated path is stored in $new_path.
22841 
22842   input_path="$new_path"
22843   # Check if we need to convert this using DOS-style short mode. If the path
22844   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22845   # take no chances and rewrite it.
22846   # Note: m4 eats our [], so we need to use [ and ] instead.
22847   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22848   if test "x$has_forbidden_chars" != x; then
22849     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22850     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22851     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22852     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22853       # Going to short mode and back again did indeed matter. Since short mode is
22854       # case insensitive, let's make it lowercase to improve readability.
22855       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22856       # Now convert it back to Unix-stile (cygpath)
22857       input_path=`$CYGPATH -u "$shortmode_path"`
22858       new_path="$input_path"
22859     fi
22860   fi
22861 
22862   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22863   if test "x$test_cygdrive_prefix" = x; then
22864     # As a simple fix, exclude /usr/bin since it's not a real path.
22865     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22866       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22867       # a path prefixed by /cygdrive for fixpath to work.
22868       new_path="$CYGWIN_ROOT_PATH$input_path"
22869     fi
22870   fi
22871 
22872 
22873   if test "x$path" != "x$new_path"; then
22874     BOOT_JDK="$new_path"
22875     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22877   fi
22878 
22879   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22880 
22881   path="$BOOT_JDK"
22882   has_colon=`$ECHO $path | $GREP ^.:`
22883   new_path="$path"
22884   if test "x$has_colon" = x; then
22885     # Not in mixed or Windows style, start by that.
22886     new_path=`cmd //c echo $path`
22887   fi
22888 
22889 
22890   input_path="$new_path"
22891   # Check if we need to convert this using DOS-style short mode. If the path
22892   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22893   # take no chances and rewrite it.
22894   # Note: m4 eats our [], so we need to use [ and ] instead.
22895   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22896   if test "x$has_forbidden_chars" != x; then
22897     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22898     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22899   fi
22900 
22901 
22902   windows_path="$new_path"
22903   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22904     unix_path=`$CYGPATH -u "$windows_path"`
22905     new_path="$unix_path"
22906   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22907     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22908     new_path="$unix_path"
22909   fi
22910 
22911   if test "x$path" != "x$new_path"; then
22912     BOOT_JDK="$new_path"
22913     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22914 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22915   fi
22916 
22917   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22918   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22919 
22920   else
22921     # We're on a posix platform. Hooray! :)
22922     path="$BOOT_JDK"
22923     has_space=`$ECHO "$path" | $GREP " "`
22924     if test "x$has_space" != x; then
22925       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22926 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22927       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22928     fi
22929 
22930     # Use eval to expand a potential ~
22931     eval path="$path"
22932     if test ! -f "$path" && test ! -d "$path"; then
22933       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22934     fi
22935 
22936     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22937   fi
22938 
22939               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22940 $as_echo_n "checking for Boot JDK... " >&6; }
22941               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22942 $as_echo "$BOOT_JDK" >&6; }
22943               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22944 $as_echo_n "checking Boot JDK version... " >&6; }
22945               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22946               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22947 $as_echo "$BOOT_JDK_VERSION" >&6; }
22948             fi # end check jdk version
22949           fi # end check rt.jar
22950         fi # end check javac
22951       fi # end check java
22952     fi # end check boot jdk found
22953   fi
22954 
22955 
22956   if test "x$BOOT_JDK_FOUND" = xno; then
22957     # Now execute the test
22958 
22959   if test "x$ProgramFiles" != x; then
22960     VIRTUAL_DIR="$ProgramFiles/Java"
22961 
22962   windows_path="$VIRTUAL_DIR"
22963   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22964     unix_path=`$CYGPATH -u "$windows_path"`
22965     VIRTUAL_DIR="$unix_path"
22966   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22967     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22968     VIRTUAL_DIR="$unix_path"
22969   fi
22970 
22971 
22972   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22973   BOOT_JDK_SUFFIX=""
22974   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22975   if test "x$ALL_JDKS_FOUND" != x; then
22976     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22977 
22978   if test "x$BOOT_JDK_FOUND" = xno; then
22979     # Now execute the test
22980 
22981         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22982         if test -d "$BOOT_JDK"; then
22983           BOOT_JDK_FOUND=maybe
22984           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22985 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22986         fi
22987 
22988 
22989     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22990     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22991       # Do we have a bin/java?
22992       if test ! -x "$BOOT_JDK/bin/java"; then
22993         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22994 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22995         BOOT_JDK_FOUND=no
22996       else
22997         # Do we have a bin/javac?
22998         if test ! -x "$BOOT_JDK/bin/javac"; then
22999           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23000 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23001           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23002 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23003           BOOT_JDK_FOUND=no
23004         else
23005           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23006           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23007             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23009             BOOT_JDK_FOUND=no
23010           else
23011             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23012             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23013 
23014             # Extra M4 quote needed to protect [] in grep expression.
23015             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23016             if test "x$FOUND_CORRECT_VERSION" = x; then
23017               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23018 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23019               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23020 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23021               BOOT_JDK_FOUND=no
23022             else
23023               # We're done! :-)
23024               BOOT_JDK_FOUND=yes
23025 
23026   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23027 
23028   # Input might be given as Windows format, start by converting to
23029   # unix format.
23030   path="$BOOT_JDK"
23031   new_path=`$CYGPATH -u "$path"`
23032 
23033   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23034   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23035   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23036   # "foo.exe" is OK but "foo" is an error.
23037   #
23038   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23039   # It is also a way to make sure we got the proper file name for the real test later on.
23040   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23041   if test "x$test_shortpath" = x; then
23042     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23043 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23044     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23045   fi
23046 
23047   # Call helper function which possibly converts this using DOS-style short mode.
23048   # If so, the updated path is stored in $new_path.
23049 
23050   input_path="$new_path"
23051   # Check if we need to convert this using DOS-style short mode. If the path
23052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23053   # take no chances and rewrite it.
23054   # Note: m4 eats our [], so we need to use [ and ] instead.
23055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23056   if test "x$has_forbidden_chars" != x; then
23057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23058     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23059     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23060     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23061       # Going to short mode and back again did indeed matter. Since short mode is
23062       # case insensitive, let's make it lowercase to improve readability.
23063       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23064       # Now convert it back to Unix-stile (cygpath)
23065       input_path=`$CYGPATH -u "$shortmode_path"`
23066       new_path="$input_path"
23067     fi
23068   fi
23069 
23070   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23071   if test "x$test_cygdrive_prefix" = x; then
23072     # As a simple fix, exclude /usr/bin since it's not a real path.
23073     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23074       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23075       # a path prefixed by /cygdrive for fixpath to work.
23076       new_path="$CYGWIN_ROOT_PATH$input_path"
23077     fi
23078   fi
23079 
23080 
23081   if test "x$path" != "x$new_path"; then
23082     BOOT_JDK="$new_path"
23083     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23084 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23085   fi
23086 
23087   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23088 
23089   path="$BOOT_JDK"
23090   has_colon=`$ECHO $path | $GREP ^.:`
23091   new_path="$path"
23092   if test "x$has_colon" = x; then
23093     # Not in mixed or Windows style, start by that.
23094     new_path=`cmd //c echo $path`
23095   fi
23096 
23097 
23098   input_path="$new_path"
23099   # Check if we need to convert this using DOS-style short mode. If the path
23100   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23101   # take no chances and rewrite it.
23102   # Note: m4 eats our [], so we need to use [ and ] instead.
23103   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23104   if test "x$has_forbidden_chars" != x; then
23105     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23106     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23107   fi
23108 
23109 
23110   windows_path="$new_path"
23111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23112     unix_path=`$CYGPATH -u "$windows_path"`
23113     new_path="$unix_path"
23114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23116     new_path="$unix_path"
23117   fi
23118 
23119   if test "x$path" != "x$new_path"; then
23120     BOOT_JDK="$new_path"
23121     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23122 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23123   fi
23124 
23125   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23126   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23127 
23128   else
23129     # We're on a posix platform. Hooray! :)
23130     path="$BOOT_JDK"
23131     has_space=`$ECHO "$path" | $GREP " "`
23132     if test "x$has_space" != x; then
23133       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23134 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23135       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23136     fi
23137 
23138     # Use eval to expand a potential ~
23139     eval path="$path"
23140     if test ! -f "$path" && test ! -d "$path"; then
23141       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23142     fi
23143 
23144     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23145   fi
23146 
23147               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23148 $as_echo_n "checking for Boot JDK... " >&6; }
23149               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23150 $as_echo "$BOOT_JDK" >&6; }
23151               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23152 $as_echo_n "checking Boot JDK version... " >&6; }
23153               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23154               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23155 $as_echo "$BOOT_JDK_VERSION" >&6; }
23156             fi # end check jdk version
23157           fi # end check rt.jar
23158         fi # end check javac
23159       fi # end check java
23160     fi # end check boot jdk found
23161   fi
23162 
23163     done
23164   fi
23165 
23166   fi
23167 
23168 
23169     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23170     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23171       # Do we have a bin/java?
23172       if test ! -x "$BOOT_JDK/bin/java"; then
23173         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23174 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23175         BOOT_JDK_FOUND=no
23176       else
23177         # Do we have a bin/javac?
23178         if test ! -x "$BOOT_JDK/bin/javac"; then
23179           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23180 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23181           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23182 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23183           BOOT_JDK_FOUND=no
23184         else
23185           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23186           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23187             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23189             BOOT_JDK_FOUND=no
23190           else
23191             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23192             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23193 
23194             # Extra M4 quote needed to protect [] in grep expression.
23195             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23196             if test "x$FOUND_CORRECT_VERSION" = x; then
23197               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23198 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23199               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23200 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23201               BOOT_JDK_FOUND=no
23202             else
23203               # We're done! :-)
23204               BOOT_JDK_FOUND=yes
23205 
23206   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23207 
23208   # Input might be given as Windows format, start by converting to
23209   # unix format.
23210   path="$BOOT_JDK"
23211   new_path=`$CYGPATH -u "$path"`
23212 
23213   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23214   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23215   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23216   # "foo.exe" is OK but "foo" is an error.
23217   #
23218   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23219   # It is also a way to make sure we got the proper file name for the real test later on.
23220   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23221   if test "x$test_shortpath" = x; then
23222     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23223 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23224     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23225   fi
23226 
23227   # Call helper function which possibly converts this using DOS-style short mode.
23228   # If so, the updated path is stored in $new_path.
23229 
23230   input_path="$new_path"
23231   # Check if we need to convert this using DOS-style short mode. If the path
23232   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23233   # take no chances and rewrite it.
23234   # Note: m4 eats our [], so we need to use [ and ] instead.
23235   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23236   if test "x$has_forbidden_chars" != x; then
23237     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23238     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23239     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23240     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23241       # Going to short mode and back again did indeed matter. Since short mode is
23242       # case insensitive, let's make it lowercase to improve readability.
23243       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23244       # Now convert it back to Unix-stile (cygpath)
23245       input_path=`$CYGPATH -u "$shortmode_path"`
23246       new_path="$input_path"
23247     fi
23248   fi
23249 
23250   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23251   if test "x$test_cygdrive_prefix" = x; then
23252     # As a simple fix, exclude /usr/bin since it's not a real path.
23253     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23254       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23255       # a path prefixed by /cygdrive for fixpath to work.
23256       new_path="$CYGWIN_ROOT_PATH$input_path"
23257     fi
23258   fi
23259 
23260 
23261   if test "x$path" != "x$new_path"; then
23262     BOOT_JDK="$new_path"
23263     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23264 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23265   fi
23266 
23267   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23268 
23269   path="$BOOT_JDK"
23270   has_colon=`$ECHO $path | $GREP ^.:`
23271   new_path="$path"
23272   if test "x$has_colon" = x; then
23273     # Not in mixed or Windows style, start by that.
23274     new_path=`cmd //c echo $path`
23275   fi
23276 
23277 
23278   input_path="$new_path"
23279   # Check if we need to convert this using DOS-style short mode. If the path
23280   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23281   # take no chances and rewrite it.
23282   # Note: m4 eats our [], so we need to use [ and ] instead.
23283   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23284   if test "x$has_forbidden_chars" != x; then
23285     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23286     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23287   fi
23288 
23289 
23290   windows_path="$new_path"
23291   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23292     unix_path=`$CYGPATH -u "$windows_path"`
23293     new_path="$unix_path"
23294   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23295     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23296     new_path="$unix_path"
23297   fi
23298 
23299   if test "x$path" != "x$new_path"; then
23300     BOOT_JDK="$new_path"
23301     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23302 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23303   fi
23304 
23305   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23306   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23307 
23308   else
23309     # We're on a posix platform. Hooray! :)
23310     path="$BOOT_JDK"
23311     has_space=`$ECHO "$path" | $GREP " "`
23312     if test "x$has_space" != x; then
23313       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23314 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23315       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23316     fi
23317 
23318     # Use eval to expand a potential ~
23319     eval path="$path"
23320     if test ! -f "$path" && test ! -d "$path"; then
23321       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23322     fi
23323 
23324     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23325   fi
23326 
23327               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23328 $as_echo_n "checking for Boot JDK... " >&6; }
23329               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23330 $as_echo "$BOOT_JDK" >&6; }
23331               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23332 $as_echo_n "checking Boot JDK version... " >&6; }
23333               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23334               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23335 $as_echo "$BOOT_JDK_VERSION" >&6; }
23336             fi # end check jdk version
23337           fi # end check rt.jar
23338         fi # end check javac
23339       fi # end check java
23340     fi # end check boot jdk found
23341   fi
23342 
23343 
23344   if test "x$BOOT_JDK_FOUND" = xno; then
23345     # Now execute the test
23346 
23347   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23348   BOOT_JDK_SUFFIX=""
23349   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23350   if test "x$ALL_JDKS_FOUND" != x; then
23351     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23352 
23353   if test "x$BOOT_JDK_FOUND" = xno; then
23354     # Now execute the test
23355 
23356         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23357         if test -d "$BOOT_JDK"; then
23358           BOOT_JDK_FOUND=maybe
23359           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23360 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23361         fi
23362 
23363 
23364     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23365     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23366       # Do we have a bin/java?
23367       if test ! -x "$BOOT_JDK/bin/java"; then
23368         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23370         BOOT_JDK_FOUND=no
23371       else
23372         # Do we have a bin/javac?
23373         if test ! -x "$BOOT_JDK/bin/javac"; then
23374           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23375 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23376           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23377 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23378           BOOT_JDK_FOUND=no
23379         else
23380           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23381           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23382             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23384             BOOT_JDK_FOUND=no
23385           else
23386             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23387             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23388 
23389             # Extra M4 quote needed to protect [] in grep expression.
23390             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23391             if test "x$FOUND_CORRECT_VERSION" = x; then
23392               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23393 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23394               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23395 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23396               BOOT_JDK_FOUND=no
23397             else
23398               # We're done! :-)
23399               BOOT_JDK_FOUND=yes
23400 
23401   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23402 
23403   # Input might be given as Windows format, start by converting to
23404   # unix format.
23405   path="$BOOT_JDK"
23406   new_path=`$CYGPATH -u "$path"`
23407 
23408   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23409   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23410   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23411   # "foo.exe" is OK but "foo" is an error.
23412   #
23413   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23414   # It is also a way to make sure we got the proper file name for the real test later on.
23415   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23416   if test "x$test_shortpath" = x; then
23417     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23418 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23419     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23420   fi
23421 
23422   # Call helper function which possibly converts this using DOS-style short mode.
23423   # If so, the updated path is stored in $new_path.
23424 
23425   input_path="$new_path"
23426   # Check if we need to convert this using DOS-style short mode. If the path
23427   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23428   # take no chances and rewrite it.
23429   # Note: m4 eats our [], so we need to use [ and ] instead.
23430   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23431   if test "x$has_forbidden_chars" != x; then
23432     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23433     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23434     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23435     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23436       # Going to short mode and back again did indeed matter. Since short mode is
23437       # case insensitive, let's make it lowercase to improve readability.
23438       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23439       # Now convert it back to Unix-stile (cygpath)
23440       input_path=`$CYGPATH -u "$shortmode_path"`
23441       new_path="$input_path"
23442     fi
23443   fi
23444 
23445   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23446   if test "x$test_cygdrive_prefix" = x; then
23447     # As a simple fix, exclude /usr/bin since it's not a real path.
23448     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23449       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23450       # a path prefixed by /cygdrive for fixpath to work.
23451       new_path="$CYGWIN_ROOT_PATH$input_path"
23452     fi
23453   fi
23454 
23455 
23456   if test "x$path" != "x$new_path"; then
23457     BOOT_JDK="$new_path"
23458     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23459 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23460   fi
23461 
23462   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23463 
23464   path="$BOOT_JDK"
23465   has_colon=`$ECHO $path | $GREP ^.:`
23466   new_path="$path"
23467   if test "x$has_colon" = x; then
23468     # Not in mixed or Windows style, start by that.
23469     new_path=`cmd //c echo $path`
23470   fi
23471 
23472 
23473   input_path="$new_path"
23474   # Check if we need to convert this using DOS-style short mode. If the path
23475   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23476   # take no chances and rewrite it.
23477   # Note: m4 eats our [], so we need to use [ and ] instead.
23478   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23479   if test "x$has_forbidden_chars" != x; then
23480     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23481     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23482   fi
23483 
23484 
23485   windows_path="$new_path"
23486   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23487     unix_path=`$CYGPATH -u "$windows_path"`
23488     new_path="$unix_path"
23489   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23490     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23491     new_path="$unix_path"
23492   fi
23493 
23494   if test "x$path" != "x$new_path"; then
23495     BOOT_JDK="$new_path"
23496     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23497 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23498   fi
23499 
23500   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23501   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23502 
23503   else
23504     # We're on a posix platform. Hooray! :)
23505     path="$BOOT_JDK"
23506     has_space=`$ECHO "$path" | $GREP " "`
23507     if test "x$has_space" != x; then
23508       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23509 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23510       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23511     fi
23512 
23513     # Use eval to expand a potential ~
23514     eval path="$path"
23515     if test ! -f "$path" && test ! -d "$path"; then
23516       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23517     fi
23518 
23519     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23520   fi
23521 
23522               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23523 $as_echo_n "checking for Boot JDK... " >&6; }
23524               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23525 $as_echo "$BOOT_JDK" >&6; }
23526               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23527 $as_echo_n "checking Boot JDK version... " >&6; }
23528               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23529               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23530 $as_echo "$BOOT_JDK_VERSION" >&6; }
23531             fi # end check jdk version
23532           fi # end check rt.jar
23533         fi # end check javac
23534       fi # end check java
23535     fi # end check boot jdk found
23536   fi
23537 
23538     done
23539   fi
23540 
23541 
23542     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23543     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23544       # Do we have a bin/java?
23545       if test ! -x "$BOOT_JDK/bin/java"; then
23546         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23547 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23548         BOOT_JDK_FOUND=no
23549       else
23550         # Do we have a bin/javac?
23551         if test ! -x "$BOOT_JDK/bin/javac"; then
23552           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23553 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23554           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23555 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23556           BOOT_JDK_FOUND=no
23557         else
23558           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23559           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23560             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23562             BOOT_JDK_FOUND=no
23563           else
23564             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23565             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23566 
23567             # Extra M4 quote needed to protect [] in grep expression.
23568             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23569             if test "x$FOUND_CORRECT_VERSION" = x; then
23570               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23571 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23572               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23573 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23574               BOOT_JDK_FOUND=no
23575             else
23576               # We're done! :-)
23577               BOOT_JDK_FOUND=yes
23578 
23579   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23580 
23581   # Input might be given as Windows format, start by converting to
23582   # unix format.
23583   path="$BOOT_JDK"
23584   new_path=`$CYGPATH -u "$path"`
23585 
23586   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23587   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23588   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23589   # "foo.exe" is OK but "foo" is an error.
23590   #
23591   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23592   # It is also a way to make sure we got the proper file name for the real test later on.
23593   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23594   if test "x$test_shortpath" = x; then
23595     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23596 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23597     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23598   fi
23599 
23600   # Call helper function which possibly converts this using DOS-style short mode.
23601   # If so, the updated path is stored in $new_path.
23602 
23603   input_path="$new_path"
23604   # Check if we need to convert this using DOS-style short mode. If the path
23605   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23606   # take no chances and rewrite it.
23607   # Note: m4 eats our [], so we need to use [ and ] instead.
23608   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23609   if test "x$has_forbidden_chars" != x; then
23610     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23611     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23612     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23613     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23614       # Going to short mode and back again did indeed matter. Since short mode is
23615       # case insensitive, let's make it lowercase to improve readability.
23616       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23617       # Now convert it back to Unix-stile (cygpath)
23618       input_path=`$CYGPATH -u "$shortmode_path"`
23619       new_path="$input_path"
23620     fi
23621   fi
23622 
23623   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23624   if test "x$test_cygdrive_prefix" = x; then
23625     # As a simple fix, exclude /usr/bin since it's not a real path.
23626     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23627       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23628       # a path prefixed by /cygdrive for fixpath to work.
23629       new_path="$CYGWIN_ROOT_PATH$input_path"
23630     fi
23631   fi
23632 
23633 
23634   if test "x$path" != "x$new_path"; then
23635     BOOT_JDK="$new_path"
23636     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23637 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23638   fi
23639 
23640   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23641 
23642   path="$BOOT_JDK"
23643   has_colon=`$ECHO $path | $GREP ^.:`
23644   new_path="$path"
23645   if test "x$has_colon" = x; then
23646     # Not in mixed or Windows style, start by that.
23647     new_path=`cmd //c echo $path`
23648   fi
23649 
23650 
23651   input_path="$new_path"
23652   # Check if we need to convert this using DOS-style short mode. If the path
23653   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23654   # take no chances and rewrite it.
23655   # Note: m4 eats our [], so we need to use [ and ] instead.
23656   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23657   if test "x$has_forbidden_chars" != x; then
23658     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23659     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23660   fi
23661 
23662 
23663   windows_path="$new_path"
23664   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23665     unix_path=`$CYGPATH -u "$windows_path"`
23666     new_path="$unix_path"
23667   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23668     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23669     new_path="$unix_path"
23670   fi
23671 
23672   if test "x$path" != "x$new_path"; then
23673     BOOT_JDK="$new_path"
23674     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23675 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23676   fi
23677 
23678   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23679   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23680 
23681   else
23682     # We're on a posix platform. Hooray! :)
23683     path="$BOOT_JDK"
23684     has_space=`$ECHO "$path" | $GREP " "`
23685     if test "x$has_space" != x; then
23686       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23687 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23688       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23689     fi
23690 
23691     # Use eval to expand a potential ~
23692     eval path="$path"
23693     if test ! -f "$path" && test ! -d "$path"; then
23694       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23695     fi
23696 
23697     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23698   fi
23699 
23700               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23701 $as_echo_n "checking for Boot JDK... " >&6; }
23702               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23703 $as_echo "$BOOT_JDK" >&6; }
23704               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23705 $as_echo_n "checking Boot JDK version... " >&6; }
23706               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23707               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23708 $as_echo "$BOOT_JDK_VERSION" >&6; }
23709             fi # end check jdk version
23710           fi # end check rt.jar
23711         fi # end check javac
23712       fi # end check java
23713     fi # end check boot jdk found
23714   fi
23715 
23716   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23717 
23718   if test "x$BOOT_JDK_FOUND" = xno; then
23719     # Now execute the test
23720 
23721   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23722   BOOT_JDK_SUFFIX="/Contents/Home"
23723   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23724   if test "x$ALL_JDKS_FOUND" != x; then
23725     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23726 
23727   if test "x$BOOT_JDK_FOUND" = xno; then
23728     # Now execute the test
23729 
23730         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23731         if test -d "$BOOT_JDK"; then
23732           BOOT_JDK_FOUND=maybe
23733           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23734 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23735         fi
23736 
23737 
23738     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23739     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23740       # Do we have a bin/java?
23741       if test ! -x "$BOOT_JDK/bin/java"; then
23742         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23743 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23744         BOOT_JDK_FOUND=no
23745       else
23746         # Do we have a bin/javac?
23747         if test ! -x "$BOOT_JDK/bin/javac"; then
23748           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23749 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23750           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23751 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23752           BOOT_JDK_FOUND=no
23753         else
23754           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23755           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23756             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23758             BOOT_JDK_FOUND=no
23759           else
23760             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23761             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23762 
23763             # Extra M4 quote needed to protect [] in grep expression.
23764             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23765             if test "x$FOUND_CORRECT_VERSION" = x; then
23766               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23767 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23768               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23769 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23770               BOOT_JDK_FOUND=no
23771             else
23772               # We're done! :-)
23773               BOOT_JDK_FOUND=yes
23774 
23775   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23776 
23777   # Input might be given as Windows format, start by converting to
23778   # unix format.
23779   path="$BOOT_JDK"
23780   new_path=`$CYGPATH -u "$path"`
23781 
23782   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23783   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23784   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23785   # "foo.exe" is OK but "foo" is an error.
23786   #
23787   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23788   # It is also a way to make sure we got the proper file name for the real test later on.
23789   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23790   if test "x$test_shortpath" = x; then
23791     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23792 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23793     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23794   fi
23795 
23796   # Call helper function which possibly converts this using DOS-style short mode.
23797   # If so, the updated path is stored in $new_path.
23798 
23799   input_path="$new_path"
23800   # Check if we need to convert this using DOS-style short mode. If the path
23801   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23802   # take no chances and rewrite it.
23803   # Note: m4 eats our [], so we need to use [ and ] instead.
23804   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23805   if test "x$has_forbidden_chars" != x; then
23806     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23807     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23808     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23809     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23810       # Going to short mode and back again did indeed matter. Since short mode is
23811       # case insensitive, let's make it lowercase to improve readability.
23812       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23813       # Now convert it back to Unix-stile (cygpath)
23814       input_path=`$CYGPATH -u "$shortmode_path"`
23815       new_path="$input_path"
23816     fi
23817   fi
23818 
23819   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23820   if test "x$test_cygdrive_prefix" = x; then
23821     # As a simple fix, exclude /usr/bin since it's not a real path.
23822     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23823       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23824       # a path prefixed by /cygdrive for fixpath to work.
23825       new_path="$CYGWIN_ROOT_PATH$input_path"
23826     fi
23827   fi
23828 
23829 
23830   if test "x$path" != "x$new_path"; then
23831     BOOT_JDK="$new_path"
23832     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23833 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23834   fi
23835 
23836   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23837 
23838   path="$BOOT_JDK"
23839   has_colon=`$ECHO $path | $GREP ^.:`
23840   new_path="$path"
23841   if test "x$has_colon" = x; then
23842     # Not in mixed or Windows style, start by that.
23843     new_path=`cmd //c echo $path`
23844   fi
23845 
23846 
23847   input_path="$new_path"
23848   # Check if we need to convert this using DOS-style short mode. If the path
23849   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23850   # take no chances and rewrite it.
23851   # Note: m4 eats our [], so we need to use [ and ] instead.
23852   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23853   if test "x$has_forbidden_chars" != x; then
23854     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23855     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23856   fi
23857 
23858 
23859   windows_path="$new_path"
23860   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23861     unix_path=`$CYGPATH -u "$windows_path"`
23862     new_path="$unix_path"
23863   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23864     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23865     new_path="$unix_path"
23866   fi
23867 
23868   if test "x$path" != "x$new_path"; then
23869     BOOT_JDK="$new_path"
23870     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23871 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23872   fi
23873 
23874   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23875   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23876 
23877   else
23878     # We're on a posix platform. Hooray! :)
23879     path="$BOOT_JDK"
23880     has_space=`$ECHO "$path" | $GREP " "`
23881     if test "x$has_space" != x; then
23882       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23883 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23884       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23885     fi
23886 
23887     # Use eval to expand a potential ~
23888     eval path="$path"
23889     if test ! -f "$path" && test ! -d "$path"; then
23890       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23891     fi
23892 
23893     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23894   fi
23895 
23896               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23897 $as_echo_n "checking for Boot JDK... " >&6; }
23898               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23899 $as_echo "$BOOT_JDK" >&6; }
23900               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23901 $as_echo_n "checking Boot JDK version... " >&6; }
23902               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23903               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23904 $as_echo "$BOOT_JDK_VERSION" >&6; }
23905             fi # end check jdk version
23906           fi # end check rt.jar
23907         fi # end check javac
23908       fi # end check java
23909     fi # end check boot jdk found
23910   fi
23911 
23912     done
23913   fi
23914 
23915 
23916     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23917     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23918       # Do we have a bin/java?
23919       if test ! -x "$BOOT_JDK/bin/java"; then
23920         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23921 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23922         BOOT_JDK_FOUND=no
23923       else
23924         # Do we have a bin/javac?
23925         if test ! -x "$BOOT_JDK/bin/javac"; then
23926           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23927 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23928           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23929 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23930           BOOT_JDK_FOUND=no
23931         else
23932           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23933           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23934             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23935 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23936             BOOT_JDK_FOUND=no
23937           else
23938             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23939             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23940 
23941             # Extra M4 quote needed to protect [] in grep expression.
23942             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23943             if test "x$FOUND_CORRECT_VERSION" = x; then
23944               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23945 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23946               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23947 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23948               BOOT_JDK_FOUND=no
23949             else
23950               # We're done! :-)
23951               BOOT_JDK_FOUND=yes
23952 
23953   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23954 
23955   # Input might be given as Windows format, start by converting to
23956   # unix format.
23957   path="$BOOT_JDK"
23958   new_path=`$CYGPATH -u "$path"`
23959 
23960   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23961   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23962   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23963   # "foo.exe" is OK but "foo" is an error.
23964   #
23965   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23966   # It is also a way to make sure we got the proper file name for the real test later on.
23967   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23968   if test "x$test_shortpath" = x; then
23969     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23970 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23971     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23972   fi
23973 
23974   # Call helper function which possibly converts this using DOS-style short mode.
23975   # If so, the updated path is stored in $new_path.
23976 
23977   input_path="$new_path"
23978   # Check if we need to convert this using DOS-style short mode. If the path
23979   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23980   # take no chances and rewrite it.
23981   # Note: m4 eats our [], so we need to use [ and ] instead.
23982   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23983   if test "x$has_forbidden_chars" != x; then
23984     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23985     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23986     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23987     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23988       # Going to short mode and back again did indeed matter. Since short mode is
23989       # case insensitive, let's make it lowercase to improve readability.
23990       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23991       # Now convert it back to Unix-stile (cygpath)
23992       input_path=`$CYGPATH -u "$shortmode_path"`
23993       new_path="$input_path"
23994     fi
23995   fi
23996 
23997   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23998   if test "x$test_cygdrive_prefix" = x; then
23999     # As a simple fix, exclude /usr/bin since it's not a real path.
24000     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24001       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24002       # a path prefixed by /cygdrive for fixpath to work.
24003       new_path="$CYGWIN_ROOT_PATH$input_path"
24004     fi
24005   fi
24006 
24007 
24008   if test "x$path" != "x$new_path"; then
24009     BOOT_JDK="$new_path"
24010     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24011 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24012   fi
24013 
24014   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24015 
24016   path="$BOOT_JDK"
24017   has_colon=`$ECHO $path | $GREP ^.:`
24018   new_path="$path"
24019   if test "x$has_colon" = x; then
24020     # Not in mixed or Windows style, start by that.
24021     new_path=`cmd //c echo $path`
24022   fi
24023 
24024 
24025   input_path="$new_path"
24026   # Check if we need to convert this using DOS-style short mode. If the path
24027   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24028   # take no chances and rewrite it.
24029   # Note: m4 eats our [], so we need to use [ and ] instead.
24030   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24031   if test "x$has_forbidden_chars" != x; then
24032     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24033     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24034   fi
24035 
24036 
24037   windows_path="$new_path"
24038   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24039     unix_path=`$CYGPATH -u "$windows_path"`
24040     new_path="$unix_path"
24041   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24042     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24043     new_path="$unix_path"
24044   fi
24045 
24046   if test "x$path" != "x$new_path"; then
24047     BOOT_JDK="$new_path"
24048     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24049 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24050   fi
24051 
24052   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24053   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24054 
24055   else
24056     # We're on a posix platform. Hooray! :)
24057     path="$BOOT_JDK"
24058     has_space=`$ECHO "$path" | $GREP " "`
24059     if test "x$has_space" != x; then
24060       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24061 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24062       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24063     fi
24064 
24065     # Use eval to expand a potential ~
24066     eval path="$path"
24067     if test ! -f "$path" && test ! -d "$path"; then
24068       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24069     fi
24070 
24071     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24072   fi
24073 
24074               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24075 $as_echo_n "checking for Boot JDK... " >&6; }
24076               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24077 $as_echo "$BOOT_JDK" >&6; }
24078               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24079 $as_echo_n "checking Boot JDK version... " >&6; }
24080               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24081               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24082 $as_echo "$BOOT_JDK_VERSION" >&6; }
24083             fi # end check jdk version
24084           fi # end check rt.jar
24085         fi # end check javac
24086       fi # end check java
24087     fi # end check boot jdk found
24088   fi
24089 
24090 
24091   if test "x$BOOT_JDK_FOUND" = xno; then
24092     # Now execute the test
24093 
24094   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24095   BOOT_JDK_SUFFIX="/Contents/Home"
24096   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24097   if test "x$ALL_JDKS_FOUND" != x; then
24098     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24099 
24100   if test "x$BOOT_JDK_FOUND" = xno; then
24101     # Now execute the test
24102 
24103         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24104         if test -d "$BOOT_JDK"; then
24105           BOOT_JDK_FOUND=maybe
24106           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24107 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24108         fi
24109 
24110 
24111     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24112     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24113       # Do we have a bin/java?
24114       if test ! -x "$BOOT_JDK/bin/java"; then
24115         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24116 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24117         BOOT_JDK_FOUND=no
24118       else
24119         # Do we have a bin/javac?
24120         if test ! -x "$BOOT_JDK/bin/javac"; then
24121           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24123           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24124 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24125           BOOT_JDK_FOUND=no
24126         else
24127           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24128           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24129             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24130 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24131             BOOT_JDK_FOUND=no
24132           else
24133             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24134             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24135 
24136             # Extra M4 quote needed to protect [] in grep expression.
24137             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24138             if test "x$FOUND_CORRECT_VERSION" = x; then
24139               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24140 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24141               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24142 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24143               BOOT_JDK_FOUND=no
24144             else
24145               # We're done! :-)
24146               BOOT_JDK_FOUND=yes
24147 
24148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24149 
24150   # Input might be given as Windows format, start by converting to
24151   # unix format.
24152   path="$BOOT_JDK"
24153   new_path=`$CYGPATH -u "$path"`
24154 
24155   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24156   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24157   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24158   # "foo.exe" is OK but "foo" is an error.
24159   #
24160   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24161   # It is also a way to make sure we got the proper file name for the real test later on.
24162   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24163   if test "x$test_shortpath" = x; then
24164     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24165 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24166     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24167   fi
24168 
24169   # Call helper function which possibly converts this using DOS-style short mode.
24170   # If so, the updated path is stored in $new_path.
24171 
24172   input_path="$new_path"
24173   # Check if we need to convert this using DOS-style short mode. If the path
24174   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24175   # take no chances and rewrite it.
24176   # Note: m4 eats our [], so we need to use [ and ] instead.
24177   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24178   if test "x$has_forbidden_chars" != x; then
24179     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24180     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24181     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24182     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24183       # Going to short mode and back again did indeed matter. Since short mode is
24184       # case insensitive, let's make it lowercase to improve readability.
24185       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24186       # Now convert it back to Unix-stile (cygpath)
24187       input_path=`$CYGPATH -u "$shortmode_path"`
24188       new_path="$input_path"
24189     fi
24190   fi
24191 
24192   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24193   if test "x$test_cygdrive_prefix" = x; then
24194     # As a simple fix, exclude /usr/bin since it's not a real path.
24195     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24196       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24197       # a path prefixed by /cygdrive for fixpath to work.
24198       new_path="$CYGWIN_ROOT_PATH$input_path"
24199     fi
24200   fi
24201 
24202 
24203   if test "x$path" != "x$new_path"; then
24204     BOOT_JDK="$new_path"
24205     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24206 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24207   fi
24208 
24209   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24210 
24211   path="$BOOT_JDK"
24212   has_colon=`$ECHO $path | $GREP ^.:`
24213   new_path="$path"
24214   if test "x$has_colon" = x; then
24215     # Not in mixed or Windows style, start by that.
24216     new_path=`cmd //c echo $path`
24217   fi
24218 
24219 
24220   input_path="$new_path"
24221   # Check if we need to convert this using DOS-style short mode. If the path
24222   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24223   # take no chances and rewrite it.
24224   # Note: m4 eats our [], so we need to use [ and ] instead.
24225   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24226   if test "x$has_forbidden_chars" != x; then
24227     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24228     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24229   fi
24230 
24231 
24232   windows_path="$new_path"
24233   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24234     unix_path=`$CYGPATH -u "$windows_path"`
24235     new_path="$unix_path"
24236   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24237     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24238     new_path="$unix_path"
24239   fi
24240 
24241   if test "x$path" != "x$new_path"; then
24242     BOOT_JDK="$new_path"
24243     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24244 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24245   fi
24246 
24247   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24248   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24249 
24250   else
24251     # We're on a posix platform. Hooray! :)
24252     path="$BOOT_JDK"
24253     has_space=`$ECHO "$path" | $GREP " "`
24254     if test "x$has_space" != x; then
24255       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24256 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24257       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24258     fi
24259 
24260     # Use eval to expand a potential ~
24261     eval path="$path"
24262     if test ! -f "$path" && test ! -d "$path"; then
24263       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24264     fi
24265 
24266     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24267   fi
24268 
24269               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24270 $as_echo_n "checking for Boot JDK... " >&6; }
24271               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24272 $as_echo "$BOOT_JDK" >&6; }
24273               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24274 $as_echo_n "checking Boot JDK version... " >&6; }
24275               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24276               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24277 $as_echo "$BOOT_JDK_VERSION" >&6; }
24278             fi # end check jdk version
24279           fi # end check rt.jar
24280         fi # end check javac
24281       fi # end check java
24282     fi # end check boot jdk found
24283   fi
24284 
24285     done
24286   fi
24287 
24288 
24289     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24290     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24291       # Do we have a bin/java?
24292       if test ! -x "$BOOT_JDK/bin/java"; then
24293         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24295         BOOT_JDK_FOUND=no
24296       else
24297         # Do we have a bin/javac?
24298         if test ! -x "$BOOT_JDK/bin/javac"; then
24299           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24301           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24302 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24303           BOOT_JDK_FOUND=no
24304         else
24305           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24306           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24307             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24309             BOOT_JDK_FOUND=no
24310           else
24311             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24312             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24313 
24314             # Extra M4 quote needed to protect [] in grep expression.
24315             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24316             if test "x$FOUND_CORRECT_VERSION" = x; then
24317               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24318 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24319               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24320 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24321               BOOT_JDK_FOUND=no
24322             else
24323               # We're done! :-)
24324               BOOT_JDK_FOUND=yes
24325 
24326   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24327 
24328   # Input might be given as Windows format, start by converting to
24329   # unix format.
24330   path="$BOOT_JDK"
24331   new_path=`$CYGPATH -u "$path"`
24332 
24333   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24334   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24335   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24336   # "foo.exe" is OK but "foo" is an error.
24337   #
24338   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24339   # It is also a way to make sure we got the proper file name for the real test later on.
24340   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24341   if test "x$test_shortpath" = x; then
24342     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24343 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24344     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24345   fi
24346 
24347   # Call helper function which possibly converts this using DOS-style short mode.
24348   # If so, the updated path is stored in $new_path.
24349 
24350   input_path="$new_path"
24351   # Check if we need to convert this using DOS-style short mode. If the path
24352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24353   # take no chances and rewrite it.
24354   # Note: m4 eats our [], so we need to use [ and ] instead.
24355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24356   if test "x$has_forbidden_chars" != x; then
24357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24358     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24359     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24360     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24361       # Going to short mode and back again did indeed matter. Since short mode is
24362       # case insensitive, let's make it lowercase to improve readability.
24363       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24364       # Now convert it back to Unix-stile (cygpath)
24365       input_path=`$CYGPATH -u "$shortmode_path"`
24366       new_path="$input_path"
24367     fi
24368   fi
24369 
24370   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24371   if test "x$test_cygdrive_prefix" = x; then
24372     # As a simple fix, exclude /usr/bin since it's not a real path.
24373     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24374       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24375       # a path prefixed by /cygdrive for fixpath to work.
24376       new_path="$CYGWIN_ROOT_PATH$input_path"
24377     fi
24378   fi
24379 
24380 
24381   if test "x$path" != "x$new_path"; then
24382     BOOT_JDK="$new_path"
24383     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24385   fi
24386 
24387   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24388 
24389   path="$BOOT_JDK"
24390   has_colon=`$ECHO $path | $GREP ^.:`
24391   new_path="$path"
24392   if test "x$has_colon" = x; then
24393     # Not in mixed or Windows style, start by that.
24394     new_path=`cmd //c echo $path`
24395   fi
24396 
24397 
24398   input_path="$new_path"
24399   # Check if we need to convert this using DOS-style short mode. If the path
24400   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24401   # take no chances and rewrite it.
24402   # Note: m4 eats our [], so we need to use [ and ] instead.
24403   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24404   if test "x$has_forbidden_chars" != x; then
24405     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24406     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24407   fi
24408 
24409 
24410   windows_path="$new_path"
24411   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24412     unix_path=`$CYGPATH -u "$windows_path"`
24413     new_path="$unix_path"
24414   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24415     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24416     new_path="$unix_path"
24417   fi
24418 
24419   if test "x$path" != "x$new_path"; then
24420     BOOT_JDK="$new_path"
24421     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24422 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24423   fi
24424 
24425   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24426   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24427 
24428   else
24429     # We're on a posix platform. Hooray! :)
24430     path="$BOOT_JDK"
24431     has_space=`$ECHO "$path" | $GREP " "`
24432     if test "x$has_space" != x; then
24433       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24434 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24435       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24436     fi
24437 
24438     # Use eval to expand a potential ~
24439     eval path="$path"
24440     if test ! -f "$path" && test ! -d "$path"; then
24441       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24442     fi
24443 
24444     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24445   fi
24446 
24447               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24448 $as_echo_n "checking for Boot JDK... " >&6; }
24449               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24450 $as_echo "$BOOT_JDK" >&6; }
24451               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24452 $as_echo_n "checking Boot JDK version... " >&6; }
24453               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24454               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24455 $as_echo "$BOOT_JDK_VERSION" >&6; }
24456             fi # end check jdk version
24457           fi # end check rt.jar
24458         fi # end check javac
24459       fi # end check java
24460     fi # end check boot jdk found
24461   fi
24462 
24463   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24464 
24465   if test "x$BOOT_JDK_FOUND" = xno; then
24466     # Now execute the test
24467 
24468   BOOT_JDK_PREFIX="/usr/lib/jvm"
24469   BOOT_JDK_SUFFIX=""
24470   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24471   if test "x$ALL_JDKS_FOUND" != x; then
24472     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24473 
24474   if test "x$BOOT_JDK_FOUND" = xno; then
24475     # Now execute the test
24476 
24477         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24478         if test -d "$BOOT_JDK"; then
24479           BOOT_JDK_FOUND=maybe
24480           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24481 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24482         fi
24483 
24484 
24485     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24486     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24487       # Do we have a bin/java?
24488       if test ! -x "$BOOT_JDK/bin/java"; then
24489         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24490 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24491         BOOT_JDK_FOUND=no
24492       else
24493         # Do we have a bin/javac?
24494         if test ! -x "$BOOT_JDK/bin/javac"; then
24495           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24497           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24498 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24499           BOOT_JDK_FOUND=no
24500         else
24501           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24502           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24503             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24505             BOOT_JDK_FOUND=no
24506           else
24507             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24508             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24509 
24510             # Extra M4 quote needed to protect [] in grep expression.
24511             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24512             if test "x$FOUND_CORRECT_VERSION" = x; then
24513               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24514 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24515               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24516 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24517               BOOT_JDK_FOUND=no
24518             else
24519               # We're done! :-)
24520               BOOT_JDK_FOUND=yes
24521 
24522   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24523 
24524   # Input might be given as Windows format, start by converting to
24525   # unix format.
24526   path="$BOOT_JDK"
24527   new_path=`$CYGPATH -u "$path"`
24528 
24529   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24530   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24531   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24532   # "foo.exe" is OK but "foo" is an error.
24533   #
24534   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24535   # It is also a way to make sure we got the proper file name for the real test later on.
24536   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24537   if test "x$test_shortpath" = x; then
24538     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24539 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24540     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24541   fi
24542 
24543   # Call helper function which possibly converts this using DOS-style short mode.
24544   # If so, the updated path is stored in $new_path.
24545 
24546   input_path="$new_path"
24547   # Check if we need to convert this using DOS-style short mode. If the path
24548   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24549   # take no chances and rewrite it.
24550   # Note: m4 eats our [], so we need to use [ and ] instead.
24551   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24552   if test "x$has_forbidden_chars" != x; then
24553     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24554     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24555     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24556     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24557       # Going to short mode and back again did indeed matter. Since short mode is
24558       # case insensitive, let's make it lowercase to improve readability.
24559       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24560       # Now convert it back to Unix-stile (cygpath)
24561       input_path=`$CYGPATH -u "$shortmode_path"`
24562       new_path="$input_path"
24563     fi
24564   fi
24565 
24566   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24567   if test "x$test_cygdrive_prefix" = x; then
24568     # As a simple fix, exclude /usr/bin since it's not a real path.
24569     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24570       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24571       # a path prefixed by /cygdrive for fixpath to work.
24572       new_path="$CYGWIN_ROOT_PATH$input_path"
24573     fi
24574   fi
24575 
24576 
24577   if test "x$path" != "x$new_path"; then
24578     BOOT_JDK="$new_path"
24579     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24580 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24581   fi
24582 
24583   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24584 
24585   path="$BOOT_JDK"
24586   has_colon=`$ECHO $path | $GREP ^.:`
24587   new_path="$path"
24588   if test "x$has_colon" = x; then
24589     # Not in mixed or Windows style, start by that.
24590     new_path=`cmd //c echo $path`
24591   fi
24592 
24593 
24594   input_path="$new_path"
24595   # Check if we need to convert this using DOS-style short mode. If the path
24596   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24597   # take no chances and rewrite it.
24598   # Note: m4 eats our [], so we need to use [ and ] instead.
24599   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24600   if test "x$has_forbidden_chars" != x; then
24601     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24602     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24603   fi
24604 
24605 
24606   windows_path="$new_path"
24607   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24608     unix_path=`$CYGPATH -u "$windows_path"`
24609     new_path="$unix_path"
24610   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24611     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24612     new_path="$unix_path"
24613   fi
24614 
24615   if test "x$path" != "x$new_path"; then
24616     BOOT_JDK="$new_path"
24617     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24618 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24619   fi
24620 
24621   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24622   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24623 
24624   else
24625     # We're on a posix platform. Hooray! :)
24626     path="$BOOT_JDK"
24627     has_space=`$ECHO "$path" | $GREP " "`
24628     if test "x$has_space" != x; then
24629       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24630 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24631       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24632     fi
24633 
24634     # Use eval to expand a potential ~
24635     eval path="$path"
24636     if test ! -f "$path" && test ! -d "$path"; then
24637       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24638     fi
24639 
24640     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24641   fi
24642 
24643               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24644 $as_echo_n "checking for Boot JDK... " >&6; }
24645               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24646 $as_echo "$BOOT_JDK" >&6; }
24647               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24648 $as_echo_n "checking Boot JDK version... " >&6; }
24649               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24650               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24651 $as_echo "$BOOT_JDK_VERSION" >&6; }
24652             fi # end check jdk version
24653           fi # end check rt.jar
24654         fi # end check javac
24655       fi # end check java
24656     fi # end check boot jdk found
24657   fi
24658 
24659     done
24660   fi
24661 
24662 
24663     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24664     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24665       # Do we have a bin/java?
24666       if test ! -x "$BOOT_JDK/bin/java"; then
24667         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24668 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24669         BOOT_JDK_FOUND=no
24670       else
24671         # Do we have a bin/javac?
24672         if test ! -x "$BOOT_JDK/bin/javac"; then
24673           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24674 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24675           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24676 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24677           BOOT_JDK_FOUND=no
24678         else
24679           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24680           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24681             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24682 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24683             BOOT_JDK_FOUND=no
24684           else
24685             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24686             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24687 
24688             # Extra M4 quote needed to protect [] in grep expression.
24689             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24690             if test "x$FOUND_CORRECT_VERSION" = x; then
24691               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24692 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24693               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24694 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9